Advertisement
RoksasNunes

Eae

Apr 13th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local needvoc = 5 -- ID DA VOCATION QUE PODE USAR
  2.  
  3. function onUse(cid, item, frompos, item2, topos)
  4.     if getPlayerVocation(cid) == needvoc then
  5.         if getPlayerStorageValue(cid, 20003) 0 then
  6.             doTeleportThing(cid, RETORNAR)
  7.                 doSendMagicEffect(RETORNAR,28)
  8.                     doSendAnimatedText(RETORNAR,"Returned!",math.random(1,255))
  9.                         doRemoveItem(item.uid, 1)
  10.                        
  11.         doPlayerSendTextMessage(cid, 27, "You returned to its initial position. To save again, simply use the Positioner.")
  12.             setPlayerStorageValue(cid, 20000, 0)
  13.                 setPlayerStorageValue(cid, 20001, 0)
  14.                     setPlayerStorageValue(cid, 20002, 0)
  15.                         setPlayerStorageValue(cid, 20003, 0)
  16.                     end
  17.                 end
  18.                     return true
  19.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement