Hi, could you help me with this script?. I would like to use this item only in pz zone. THANKS
function onUse(cid, item, fromPosition, itemEx, toPosition)
local newpos = {x = 226,y = 140,z = 7}
setPlayerStorageValue(cid, 50002, -1)
setPlayerStorageValue(cid, 50003, -1)
setPlayerStorageValue(cid, 50004, -1)
setPlayerStorageValue(cid, 50005, -1)
setPlayerStorageValue(cid, 50006, -1)
setPlayerStorageValue(cid, 50007, -1)
doRemoveItem(item.uid,1)
doTeleportThing(cid, newpos)
doSendMagicEffect(newpos, 121)
doCreatureSay(cid, 'Aura Reset!', TALKTYPE_ORANGE_1)
return true
end