Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- amount = 2 -- Quantidade de levels que serão adicionados ao player
- function onUse(cid, item)
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You advanced from level "..getPlayerLevel(cid).." to level "..(getPlayerLevel(cid)+amount)..".")
- doPlayerAddLevel(cid, amount)
- doSendAnimatedText(getCreaturePosition(cid), "Texto", TEXTCOLOR_RED)
- doSendMagicEffect(getCreaturePosition(cid), 28)
- doRemoveItem(cid, item.uid, 1)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement