Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Lotere :v
- #Made by Wheemango :v
- #Special Thx to Cimbraien for Number Roler \:v/
- options:
- duit: 5000
- L: &7[&6Lottery&7]
- maxnumber: 1000
- command /lotere [<text="help">] [<number>] [<integer>]:
- aliases: lotto, lot
- trigger:
- arg 1 is "help":
- send "{@L} &aLotere Menu"
- send " "
- send "{@L} &a/Lotere roll <number> &7- Membeli tiket untuk digosok"
- send "{@L} &a/Lotere gosok <ticket> &7- Menggosok tiket yang tadi dibeli"
- send "{@L} &a/Lotere about &7- Credit dan versi Skript."
- send "{@L} 1 Tiket = &a${@duit}"
- arg 1 is "roll":
- if player's money is above or equal to {@duit}:
- remove {@duit} from player's money
- argument 2 is smaller than 1:
- message "{@L} Kamu butuh"
- stop
- argument 2 is bigger than {@maxnumber}:
- message "{@L} Maximum limit to roll : &c{@maxnumber}"
- stop
- set {random.%player%} to a random integer between 0 and argument 2
- send "{@L} Harap tunggu. . ."
- wait 2 seconds
- message "{@L} Kamu mendapat nomor &a%{random.%player%}% &7dari Nomor &c%arg 2%"
- send "{@L} Kamu mendapat tiket nomor &a%{random.%player%}%&7."
- wait 3 seconds
- send "{@L} Kamu sekarang bisa gosok tiketnya!"
- stop
- else:
- send "{@L} Kamu butuh &a${@duit}&7 Untuk membeli tiket!!"
- arg 1 is "redeem" or "gosok":
- arg 2 is {random.%player%}:
- chance of 25%:
- send "{@L} Memproses. . . "
- wait 3 second
- send "{@L} &aSukses mendapat hadiah!"
- add 1 to {coin.%player%}
- send "{@L} &a1 Coin &7Telah ditambahkan ke dompetmu."
- set {random.%player%} to a random integer between 0 and 1000
- else:
- send "{@L} Memproses. . . "
- wait 3 second
- send "{@L} &cMaaf&7, anda kurang beruntung."
- set {random.%player%} to a random integer between 0 and 1000
- else:
- send "{@L} Tiket sudah expired atau salah nomor!"
- arg 1 is "about":
- send "{@L} &aLottery 1.0&7 by &bWheemango"
Advertisement
Add Comment
Please, Sign In to add comment