Limos,
function onUse(cid, item, frompos, item2, topos)
if item.uid == 2182 then
if(getPlayerVocation(cid) == 1) or (getPlayerVocation(cid) == 5) then
queststatus = getPlayerStorageValue(cid,4001)
if queststatus == -1 then
doPlayerSendTextMessage(cid,25,'You have found something')
doPlayerAddItem(cid,2190,1)
setPlayerStorageValue(cid,4001,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end
else
doPlayerSendTextMessage(cid,22,"This is only for sorcerers.")
end
end
return true
end
If item uid 2182 that the uid from the chest do player add item 2190 is wand of vortex
i saved this in a lua file called quest sorc in action/quest
but it doesnt work nothing happens when chest opens I've set it to action id 2000 and 0 but nothing happens
ps: hoi