# # WYMAGANIA # # 1. Vault [EKONOMIA] # 2. SKRIPT # 3. Skript Plus # 4. Wild Skript # # START SKRIPT - USTWAIENIA # variables: {cg.pkt} = 250 options: tag: &8[&2CasinoGame&8] tag.bez.[]: &2CasinoGame cena: 200 cena.pet: 100 # # KUPOWANIE PRZEZ TABLICZKE # on sign change: if line 1 is "casinogame" or "cg": if line 2 is "kup" or "buy": if line 3 is "item": set line 1 to "{@tag.bez.[]}" set line 2 to "&bKUP / BUY" set line 3 to "&lCena:" set line 4 to "&a${@cena}" on rightclick on sign: if line 1 is "{@tag.bez.[]}": if line 2 is "&bKUP / BUY": if line 3 is "&lCena:": if line 4 is "&a${@cena}": if player's balance is greater or equal to {@cena}: remove {@cena} from player's balance send "{@tag} &7Kupiles przedmiot dzieki ktoremy bedziesz mogl wylosowac jakis przedmiot! Cena: &a${@cena}" give stick of unbreaking 5 named "{@tag} &e&oSK Item" with lore "&9Kliknij &6PPM &9aby cos wylosowac!" to player else: send "{@tag} &cNie stac Cie!" on sign change: if line 1 is "casinogame" or "cg": if line 2 is "kup" or "buy": if line 3 is "zwierzak" or "pet": set line 1 to "{@tag.bez.[]}" set line 2 to "&bKUP / BUY" set line 3 to "&lZwierzak /PET" set line 4 to "&oCena: &a${@cena.pet}" on rightclick on sign: if line 1 is "{@tag.bez.[]}": if line 2 is "&bKUP / BUY": if line 3 is "&lZwierzak /PET": if line 4 is "&oCena: &a${@cena.pet}": execute player command "zwierzak" # # LOSOWANIE # on rightclick with stick: if name of player's tool is "{@tag} &e&oSK Item": if lore of player's tool is "&9Kliknij &6PPM &9aby cos wylosowac!": remove stick of unbreaking 5 named "{@tag} &e&oSK Item" with lore "&9Kliknij &6PPM &9aby cos wylosowac!" from player send "{@tag} &bLosowanie... [%random char%%random char%%random char%]" create timed bar with text "&aZaczynam losowac! ...." to player for 10 seconds wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%%random char%%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bLosowanie... [%random char%%random char%%random char%%random char%]" wait 1 seconds send "{@tag} &bWylosowane! Wygrales/as:" chance of 25%: send "{@tag} &6&lMiecz diamentowy sharpness 10" give diamond sword of sharpness 10 named "&fDiamentowy Miecz" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player broadcast "{@tag} &bGracz &6%player% &bwygral &6&lMiecz diamentowy sharpness 10" create timed bar with text "&bWygrales/as: &6&lMiecz diamentowy sharpness 10" to player for 20 seconds stop chance of 25%: send "{@tag} &6&lMiecz diamentowy sharpness 50" give diamond sword of sharpness 50 named "&fDiamentowy Miecz" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player broadcast "{@tag} &bGracz &6%player% &bwygral &6&lMiecz diamentowy sharpness 50" create timed bar with text "&bWygrales/as: &6&lMiecz diamentowy sharpness 50" to player for 20 seconds stop chance of 50%: send "{@tag} &6&l1000 monet!" execute console command "eco give %player% 1000" broadcast "{@tag} &bGracz &6%player% &bwygral &6&l1000 zloty!" create timed bar with text "&bWygrales/as: &6&l1000" to player for 20 seconds stop chance of 50%: send "{@tag} &6&l200 monet!" execute console command "eco give %player% 200" broadcast "{@tag} &bGracz &6%player% &bwygral &6&l200 zloty!" create timed bar with text "&bWygrales/as: &6&l200 monet" to player for 20 seconds stop chance of 50%: send "{@tag} &6&lJeszcze jeden los!" give stick of unbreaking 5 named "{@tag} &e&oSK Item" with lore "&9Kliknij &6PPM &9aby cos wylosowac!" to player create timed bar with text "&bWygrales/as: &6&lJeszcze jeden los" to player for 20 seconds broadcast "{@tag} &bGracz &6%player% &bwygral &6&lJeszcze jeden los" stop chance of 50%: send "{@tag} &6&lPopychaczka + 500 monet!" give stick of knockback 100 named "&eP&6o&ap&1y&9c&4h&la&3c&bz&dk&oa" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player create timed bar with text "&bWygrales/as: &6&lPopychaczka + 500 monet" to player for 20 seconds execute console command "eco give %player% 500" broadcast "{@tag} &bGracz &6%player% &bwygral &6&l500 zloty + popychaczka" stop chance of 50%: send "{@tag} &6&lNIC :(" broadcast "{@tag} &bGracz &6%player% &bwygral &6&lnic" create timed bar with text "&bWygrales/as: &6&lNIC :(" to player for 20 seconds stop chance of 50%: send "{@tag} &6&lKoxa" give golden apple:1 named "&fBardzo dobre zlote jablko [KOX]" to player broadcast "{@tag} &bGracz &6%player% &bwygral &6&lKoxa" create timed bar with text "&bWygrales/as: &6&lKoxa" to player for 20 seconds stop chance of 50%: send "{@tag} &6&lPrzedmioty z diamentu" give diamond pickaxe named "&fDiamentowy Kilof" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player give diamond axe named "&fDiamentowa Siekiera" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player give diamond shovel named "&fDiamentowa Lopata" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player give diamond hoe named "&fDiamentowa Motyka" with lore "&a---> PRZEDMIOT ZOSTAL WYGRANY! <---" to player broadcast "{@tag} &bGracz &6%player% &bwygral &6&lPrzedmioty z diamentu" create timed bar with text "&bWygrales/as: &6&lPrzedmioty z diamentu" to player for 20 seconds stop chance of 50%: send "{@tag} &6&lWiadomosc o wygraniu" broadcast "{@tag} &7Gracz &6%player% &7wygral nagrode! [wiadomosc :D]" create timed bar with text "&bWygrales/as: &6&lWiadomosc o wygraniu" to player for 20 seconds stop chance of 50%: broadcast "{@tag} &bGracz &6%player% &bzostal wyrzucony przez &6{@tag.bez.[]} &bGG" kick the player due to "{@tag} &eZostales wyrzucony przez ta gre! GG" stop command /zwierzak: trigger: if player's balance is greater or equal to {@cena.pet}: remove {@cena.pet} from player's balance set {_int} to a random integer between 1 and 5 if {_int} is 1: send "{@tag} &eUdalo Ci sie wylosowac: &1Owce" give spawn egg named "&8[SHEEP] &9Zwierzak: &6%player%" to player create timed bar with text "&eOwca jest w twoich rekach!" to player for 20 seconds stop if {_int} is 2: send "{@tag} &eUdalo Ci sie wylosowac: &1Krowe" give spawn egg named "&8[COW] &9Zwierzak: &6%player%" to player create timed bar with text "&eKrowa jest w twoich rekach!" to player for 20 seconds stop if {_int} is 3: send "{@tag} &eUdalo Ci sie wylosowac: &1Zombie" give spawn egg named "&8[ZOMBIE] &9Zwierzak: &6%player%" to player create timed bar with text "&eZombie jest w twoich rekach!" to player for 20 seconds stop if {_int} is 4: send "{@tag} &eUdalo Ci sie wylosowac: &1Kurczaka" give spawn egg named "&8[CHICKEN] &9Zwierzak: &6%player%" to player create timed bar with text "&eKurczak jest w twoich rekach!" to player for 20 seconds stop if {_int} is 5: send "{@tag} &eUdalo Ci sie wylosowac: &1Wiesniaka" give spawn egg named "&8[VILLAGER] &9Zwierzak: &6%player%" to player create timed bar with text "&eWiesniak jest w twoich rekach!" to player for 20 seconds stop else: send "{@tag} &cNie stac Cie!" on rightclick with spawn egg: if name of player's tool contain "&8[COW] &9Zwierzak: &6%player%": spawn a cow stop if name of player's tool contain "&8[SHEEP] &9Zwierzak: &6%player%": spawn a sheep stop if name of player's tool contain "&8[ZOMBIE] &9Zwierzak: &6%player%": spawn a zombie stop if name of player's tool contain "&8[CHICKEN] &9Zwierzak: &6%player%": spawn a chicken stop if name of player's tool contain "&8[VILLAGER] &9Zwierzak: &6%player%": spawn a villager stop # # USTAWIANIE DOMU I KASYNA # command /ustawdom: trigger: send "&6Ustawiles dom! Teraz wpisz &7/casino &6aby przeteleportowac sie do kasyna!" set {homes.%player%.use} to location of player command /dom: trigger: if {homes.%player%.use} is set: send "&6Witaj w domu %player%!" teleport player to {homes.%player%.use} else if {homes.%player%.use} is not set: send "Nie masz domu!" command /usundom: trigger: send "&6Usuneles dom!" set {homes.%player%.use} to 0 command /casino []: trigger: if player has permission "casino.set": if arg 1 is "ustaw" or "set": set {casino} to location of player send "{@tag} &aUstawiono!" if arg 1 is not set: teleport player to {casino} send "{@tag} &9Witamy w kasynie!" # # END SKRIPT #