Advertisement
RoksasNunes

Naruto item2

Apr 17th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. function onUse(cid, item, frompos, item2, topos)
  2.  
  3.     if item2 then
  4.  
  5.     if getPlayerVocation(cid) ~= vocneed then
  6.         doPlayerSendTextMessage(cid, 27, "Vocation wrong!")
  7.             return true
  8.         end
  9.  
  10.         doTeleportThing(cid, getThingPos(item2.uid))
  11.             doRemoveItem(item.uid, 1)
  12.         end
  13.             return true
  14.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement