Advertisement
alexmoretoni

exp

Dec 6th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local pausa = 1800000 -- (1000 = 1 segundos) Tempo que o script durará
  2. local texto = 'Você acionou seu DoubleXP por 30 minutos'
  3. textofinal = 'Sua DoubleXP acbou, visite nossa loja'
  4. local exp = 2 --
  5. expfinal = 1 --
  6.  
  7. function potion(pos, cid)
  8. doPlayerSetExperienceRate(pos,expfinal)
  9. doPlayerSendTextMessage(pos,22,textofinal)
  10. end
  11.  
  12. function onUse(cid, item, frompos, item2, topos)
  13. if item.itemid == 7443 then --------
  14. doRemoveItem(item.uid,1)
  15. doPlayerSetrateExp(cid,exp)
  16. doSendMagicEffect(frompos,13)
  17. doPlayerSendTextMessage(cid,22,texto)
  18. addEvent(potion,pausa,cid)
  19. end
  20. return true
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement