Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- msgs = "Parabens, voce obteve double exp!.",
- msgs2 = "Voce nao obteve double exp, desculpe!."
- }
- local rates = 2
- -- End Configs --
- function onUse(cid, item, frompos, item2, topos)
- getPlayerStorageValue(cid, 1872)
- if quesstatus == -1 then
- if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then
- doPlayerSetMagicRate(cid, rates*60)
- doPlayerPopupFYI(cid, config.msgs)
- setPlayerStorageValue(cid, 1872)
- end
- else
- doPlayerPopupFYI(cid, config.msgs2)
- doTeleportThing(cid, fromPosition, true)
- end
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment