function onUse(cid, item, frompos, item2, topos)
if item.uid == 1015 then
queststatus = getPlayerStorageValue(cid,2090)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Freedom Key.")
doPlayerAddItem(cid,2090,1)
doItemSetAttribute(2090, aid, 4200)
setPlayerStorageValue(cid,2090,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.")
end
else
return 0
end
return 1
end
this is the script i am using, and idk whats wrong with it.
i'm running an 8.54 ot server, and you are suppost to click on the ground to get the key. the key is appearing, but the action id is 0 not 4200. can anyone help?
if item.uid == 1015 then
queststatus = getPlayerStorageValue(cid,2090)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have found a Freedom Key.")
doPlayerAddItem(cid,2090,1)
doItemSetAttribute(2090, aid, 4200)
setPlayerStorageValue(cid,2090,1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"It is empty.")
end
else
return 0
end
return 1
end
this is the script i am using, and idk whats wrong with it.
i'm running an 8.54 ot server, and you are suppost to click on the ground to get the key. the key is appearing, but the action id is 0 not 4200. can anyone help?