Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local needvoc = 5 -- ID DA VOCATION QUE PODE USAR
- function onUse(cid, item, frompos, item2, topos)
- if getPlayerVocation(cid) == needvoc then
- if getPlayerStorageValue(cid, 20003)== 0 then
- doTeleportThing(cid, RETORNAR)
- doSendMagicEffect(RETORNAR,28)
- doSendAnimatedText(RETORNAR,"Returned!",math.random(1,255))
- doRemoveItem(item.uid, 1)
- doPlayerSendTextMessage(cid, 27, "You returned to its initial position. To save again, simply use the Positioner.")
- setPlayerStorageValue(cid, 20000, 0)
- setPlayerStorageValue(cid, 20001, 0)
- setPlayerStorageValue(cid, 20002, 0)
- setPlayerStorageValue(cid, 20003, 0)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement