if isCreature(itemEx.uid) then
return true
end
if itemEx.itemid == 12998 and itemEx.actionid == xxxx then
end
[22:39:26.784] [Error - Action Interface]
[22:39:26.784] data/actions/scripts/9.7/dark_desintegration_VORTEX.luanUse
[22:39:26.785] Description:
[22:39:26.785] ...a/actions/scripts/9.7/dark_desintegration_VORTEX.lua:2: attempt to index global 'itemEx' (a nil value)
[22:39:26.785] stack traceback:
[22:39:26.785] ...a/actions/scripts/9.7/dark_desintegration_VORTEX.lua:2: in function <...a/actions/scripts/9.7/dark_desintegration_VORTEX.lua:1>
function onUse(cid, item, frompos, item2, topos)
if itemEx.itemid == 15560 and itemEx.actionid == 12998 then
if getPlayerStorageValue(cid,62340) < 3 then
if getPlayerStorageValue(cid,62341) == -1 then
doPlayerAddItem(cid, 15431,1)
setPlayerStorageValue(cid,62341,1)
print("1")
else
doPlayerSendTextMessage(cid, 21, "You don\'t have \'Hear of the Sea\'")
end
else
doPlayerSendTextMessage(cid, 21, "You\'re not allowed")
end
end
end