GarQet
Own3d!
- Joined
- Feb 10, 2009
- Messages
- 1,381
- Solutions
- 14
- Reaction score
- 81
I need to do something like this in sources:
My attempts to create this (movement.cpp):
Unfortunately, it doesn't work.
Please help with this.
Yours GarQet.
LUA:
function onEquip(cid, item, slot)
if(getPlayerStorageValue(cid, 2469) ~= 1) then
doPlayerSendTextMessage(cid, 25, "You can't wear it.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
else
return TRUE
end
end
Code:
std::string str;
getStorage("2332", str);
int32_t SRT = atoi(str.c_str());
if(SRT == 1 && Item::items[item->2332()])
return false;
Please help with this.
Yours GarQet.