• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Script Check

hasbro

Member
Joined
Feb 15, 2009
Messages
286
Reaction score
6
Hello,
I have one doubt , i create one script but the player use one item x in one vortex (vortex actiond id = 12998) but i dont know how check the action id of the vortex..
 
LUA:
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.lua:onUse
[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>

LUA:
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
 
Back
Top