Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pausa = 1800000 -- (1000 = 1 segundos) Tempo que o script durará
- local texto = 'Você acionou seu DoubleXP por 30 minutos'
- textofinal = 'Sua DoubleXP acbou, visite nossa loja'
- local exp = 2 --
- expfinal = 1 --
- function potion(pos, cid)
- doPlayerSetExperienceRate(pos,expfinal)
- doPlayerSendTextMessage(pos,22,textofinal)
- end
- function onUse(cid, item, frompos, item2, topos)
- if item.itemid == 7443 then --------
- doRemoveItem(item.uid,1)
- doPlayerSetrateExp(cid,exp)
- doSendMagicEffect(frompos,13)
- doPlayerSendTextMessage(cid,22,texto)
- addEvent(potion,pausa,cid)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement