Hi, when i use this item i get this error..
Script:
/Expotion.lua:8 attempt to call global 'doSetItemActiondId' < a nil value>
Script:
PHP:
function onUse(cid, item, frompos, item2, topos)
if not((getPlayerStorageValue(cid, 25651) > 0) and (getPlayerStorageValue(cid, 25652) > 0) and (getPlayerStorageValue(cid, 25653) > 0)) then
local charges = ((item.actionid == 0) and 3) or (item.actionid - 100)
if (charges == 1) then
doRemoveItem(item.uid)
else
charges = charges - 1
doSetItemActionId(item.uid, 100 + charges)
end
doCreatureSay(cid, "Exp UP!", TALKTYPE_ORANGE_1)
if not(getPlayerStorageValue(cid, 25651) > 0) then
setPlayerStorageValue(cid, 25651, 60 * 60)
elseif not(getPlayerStorageValue(cid, 25652) > 0) then
setPlayerStorageValue(cid, 25652, 60 * 60)
elseif not(getPlayerStorageValue(cid, 25653) > 0) then
setPlayerStorageValue(cid, 25653, 60 * 60)
end
else
doPlayerSendCancel(cid, "Você não pode usar mais que 3 Pacotes de EXP simultaneamente.")
end
return true
end