I have this scripts working, but i need conditional change to:
OnUse with shovel
OnUse with pick
OnUse with shovel
Code:
function onUse(cid, item, frompos, item2, topos)
local storage = 51006
if item.uid == 7662 then
queststatus = getPlayerStorageValue(cid,storage)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found an acient amulet. Strange engravings cover it. Maybe Morris can make them out.")
setPlayerStorageValue(cid,storage,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
end
OnUse with pick
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 7663 then
local pos = {x= 533, y=746, z=8}
doTeleportThing(cid, pos)
end
end