SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local config = {
|
| 1 | + | |
| 2 | - | msgs = "Parabens, voce obteve double exp!.", |
| 2 | + | local msg = {
|
| 3 | - | msgs2 = "Voce nao obteve double exp, desculpe!." |
| 3 | + | msg1 = "Parabens, voce obteve double exp!.", |
| 4 | - | } |
| 4 | + | msg2 = "Desculpe, voce nao obteve double exp!." |
| 5 | } | |
| 6 | local rates = 2 | |
| 7 | -- End Configs -- | |
| 8 | function onUse(cid, item, frompos, item2, topos) | |
| 9 | - | getPlayerStorageValue(cid, 1872) |
| 9 | + | if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then |
| 10 | - | if quesstatus == -1 then |
| 10 | + | doPlayerSetMagicRate(cid, rates * 60) |
| 11 | - | if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then |
| 11 | + | doPlayerPopupFYI(cid, msg.msg1) |
| 12 | - | doPlayerSetMagicRate(cid, rates*60) |
| 12 | + | end |
| 13 | - | doPlayerPopupFYI(cid, config.msgs) |
| 13 | + | else |
| 14 | - | setPlayerStorageValue(cid, 1872) |
| 14 | + | doPlayerPopupFYI(cid, msg.msg2) |
| 15 | - | end |
| 15 | + | end |
| 16 | - | else |
| 16 | + | return TRUE |
| 17 | - | doPlayerPopupFYI(cid, config.msgs2) |
| 17 | + |