Felipinho

Untitled

Mar 3rd, 2013
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local config = {
  2. msgs = "Parabens, voce obteve double exp!.",
  3. msgs2 = "Voce nao obteve double exp, desculpe!."
  4.   }
  5. local rates = 2
  6.  
  7. -- End Configs --
  8. function onUse(cid, item, frompos, item2, topos)
  9.       getPlayerStorageValue(cid, 1872)
  10.         if quesstatus == -1 then
  11.           if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then
  12.              doPlayerSetMagicRate(cid, rates*60)
  13.                doPlayerPopupFYI(cid, config.msgs)
  14.                setPlayerStorageValue(cid, 1872)
  15.            end
  16.         else
  17.           doPlayerPopupFYI(cid, config.msgs2)
  18.            doTeleportThing(cid, fromPosition, true)
  19.         end
  20.    return TRUE
  21. end
Advertisement
Add Comment
Please, Sign In to add comment