Advertisement
Guest User

Correção

a guest
Oct 28th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. amount = 2 -- Quantidade de levels que serão adicionados ao player
  2.  
  3. function onUse(cid, item)
  4.         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You advanced from level "..getPlayerLevel(cid).." to level "..(getPlayerLevel(cid)+amount)..".")
  5.         doPlayerAddLevel(cid, amount)
  6.         doSendAnimatedText(getCreaturePosition(cid), "Texto", TEXTCOLOR_RED)
  7.         doSendMagicEffect(getCreaturePosition(cid), 28)
  8.         doRemoveItem(cid, item.uid, 1)
  9. return true
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement