Ecstacy
Mothafuckaaa
Hey,
This action is not working and I have no idea why.
when I use it I get no error, nor it works when I use it.
This action is not working and I have no idea why.
LUA:
local item,storage,message,mana,level,cancelmsg = 7440,71150,'Your mana have been boosted by 300.000 mana!',300000,50000,'You can not use this!'
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (item.itemid == item) then
if getPlayerStorageValue(cid, storage) < 1 then
if getPlayerLevel(cid) >= level then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,message)
setCreatureMaxMana(cid, (getCreatureMaxMana(cid)+mana))
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid,cancelmsg)
end
return TRUE
else
doPlayerSendCancel(cid,cancelmsg)
end
end
end
when I use it I get no error, nor it works when I use it.