Wheemangga

Lottere

May 23rd, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.90 KB | None | 0 0
  1. #Lotere :v
  2. #Made by Wheemango :v
  3. #Special Thx to Cimbraien for Number Roler \:v/
  4. options:
  5.     duit: 5000
  6.     L: &7[&6Lottery&7]
  7.     maxnumber: 1000
  8. command /lotere [<text="help">] [<number>] [<integer>]:
  9.     aliases: lotto, lot
  10.     trigger:
  11.         arg 1 is "help":
  12.             send "{@L} &aLotere Menu"
  13.             send " "
  14.             send "{@L} &a/Lotere roll <number> &7- Membeli tiket untuk digosok"
  15.             send "{@L} &a/Lotere gosok <ticket> &7- Menggosok tiket yang tadi dibeli"
  16.             send "{@L} &a/Lotere about &7- Credit dan versi Skript."
  17.             send "{@L} 1 Tiket = &a${@duit}"
  18.         arg 1 is "roll":
  19.             if player's money is above or equal to {@duit}:
  20.                 remove {@duit} from player's money
  21.                 argument 2 is smaller than 1:
  22.                     message "{@L} Kamu butuh"
  23.                     stop
  24.                 argument 2 is bigger than {@maxnumber}:
  25.                     message "{@L} Maximum limit to roll : &c{@maxnumber}"
  26.                     stop
  27.                 set {random.%player%} to a random integer between 0 and argument 2
  28.                 send "{@L} Harap tunggu. . ."
  29.                 wait 2 seconds
  30.                 message "{@L} Kamu mendapat nomor &a%{random.%player%}% &7dari Nomor &c%arg 2%"
  31.                 send "{@L} Kamu mendapat tiket nomor &a%{random.%player%}%&7."
  32.                 wait 3 seconds
  33.                 send "{@L} Kamu sekarang bisa gosok tiketnya!"
  34.                 stop
  35.             else:
  36.                 send "{@L} Kamu butuh &a${@duit}&7 Untuk membeli tiket!!"
  37.         arg 1 is "redeem" or "gosok":
  38.             arg 2 is {random.%player%}:
  39.                 chance of 25%:
  40.                     send "{@L} Memproses. . . "
  41.                     wait 3 second
  42.                     send "{@L} &aSukses mendapat hadiah!"
  43.                     add 1 to {coin.%player%}
  44.                     send "{@L} &a1 Coin &7Telah ditambahkan ke dompetmu."
  45.                     set {random.%player%} to a random integer between 0 and 1000
  46.                 else:
  47.                     send "{@L} Memproses. . . "
  48.                     wait 3 second
  49.                     send "{@L} &cMaaf&7, anda kurang beruntung."
  50.                     set {random.%player%} to a random integer between 0 and 1000
  51.             else:
  52.                 send "{@L} Tiket sudah expired atau salah nomor!"
  53.         arg 1 is "about":
  54.             send "{@L} &aLottery 1.0&7 by &bWheemango"
Advertisement
Add Comment
Please, Sign In to add comment