04-14-2021, 08:04 AM
It should be Type "ONCE" and subtype something like "ONCE_ETC". Just do a screenshot of your tool if you need to know more.
Oh and i just saw why its erroring for you probably. you need to change the "rmsg" variable for it to work. I updated the main post too, so either copy the following things and replace it or just use how you do now. Replacing these lines will make it work properly!
if (ch->m_level < item->m_itemProto->GetItemProtoLevel() || ch->m_level > item->m_itemProto->GetItemProtoLevel2())
{
CNetMsg::SP msg(new CNetMsg);
ResponseClient::ItemNotUseMsg(msg, MSG_ITEM_USE_ERROR_LOWLEVEL);
SEND_Q(msg, ch->m_desc);
return;
}
CLCString message(1024);
message.Format("Wow, you just recieved %d cash!", amount);
CNetMsg::SP clientMsg(new CNetMsg);
SayMsg(clientMsg, MSG_CHAT_NOTICE, 0, "", "", message);
SEND_Q(clientMsg, ch->m_desc);

