#=========================# # Loteria v.1.1 # # Stworzone przez: # # mati770ka # # Edycja na wlasny uzytek # #=========================# options: tag: &f[&bLoteria&f] item: 128 cobblestone #Itemy potrzebne do stworzenia losu mozesz dowolnie zmieniac Kox: 3 #Ilosc Zlotych jablek do zestawu Kox domyslnie 3 Kox2: 10 #Ilosc Zlotych jablek do zestawu Diamond domyslnie 10 exp: 4000 #Ilosc xp do zestawu Lucznik domyslnie 4000 exp2: 8000 #Ilosc xp do zestawu Diamond domyslnie 8000 command /loteria []: trigger: if arg 1 is "info": if player have permissions "loteria.mati": send "&6***************************&bLoteria&6***************************" send "&7Do rozpoczecia loteri potrzebujesz &6128 &7Cobbleston'a" send "&7Gdy masz juz &6128 &7Cobbleston'a wpisz &c/loteria &7otrzymasz Los" send "&7Gdy otrzymasz juz Los kliknij na niego &6PPM" send "&c/zestawy &f- &7Dostepne zestawy do wylosowania" send "&cLoteria v.1.1 &7stworzona przez &6mati770ka" send "&6***************************&bLoteria&6***************************" if arg 1 is not set: if player have {@item}: give a paper of power 1 named "&bLos" to player send "{@tag} &7Otrzymales &bLos" remove {@item} from player else: send "{@tag} &7Nie posiadasz &6128 &7Cobbleston'a" stop on leftclick with paper: if name of player's tool is "&bLos": chance of 45%: remove 1 paper named "&bLos" from player send "{@tag} &7Loteria rozpoczeta" send "{@tag} &7Zaczekaj &65 sekund" wait 2 seconds send "{@tag} &c*****&63&c*****" wait 1 second send "{@tag} &c*****&62&c*****" wait 1 seconds send "{@tag} &c*****&61&c*****" wait 1 second send "{@tag} &7Otrzymales zestaw &cKox" give {@Kox} enchanted golden apple named "&cZestaw Kox'a" to player give potion of:8233 named "&cZestaw Kox'a" to player chance of 25%: remove 1 paper named "&bLos" from player send "{@tag} &7Loteria rozpoczeta" send "{@tag} &7Zaczekaj &65 sekund" wait 2 seconds send "{@tag} &c*****&63&c*****" wait 1 second send "{@tag} &c*****&62&c*****" wait 1 seconds send "{@tag} &c*****&61&c*****" wait 1 seconds send "{@tag} &7Otrzymales zestaw &2Wojownik" give iron helmet named "&2Zestaw Wojownika" to player give iron chestplate named "&2Zestaw Wojownika" to player give iron leggings named "&2Zestaw Wojownika" to player give iron boots named "&2Zestaw Wojownika" to player chance of 10%: remove 1 paper named "&bLos" from player send "{@tag} &7Loteria rozpoczeta" send "{@tag} &7Zaczekaj &65 sekund" wait 2 seconds send "{@tag} &c*****&63&c*****" wait 1 second send "{@tag} &c*****&62&c*****" wait 1 seconds send "{@tag} &c*****&61&c*****" wait 1 seconds send "{@tag} &7Otrzymales zestaw &6Magik" give potion of:8257 named "&6Zestaw Magika" to player give potion of:8229 named "&6Zestaw Magika" to player give potion of:8262 named "&6Zestaw Magika" to player give potion of:8259 named "&6Zestaw Magika" to player chance of 30%: remove 1 paper named "&bLos" from player send "{@tag} &7Loteria rozpoczeta" send "{@tag} &7Zaczekaj &65 sekund" wait 2 seconds send "{@tag} &c*****&63&c*****" wait 1 second send "{@tag} &c*****&62&c*****" wait 1 seconds send "{@tag} &c*****&61&c*****" wait 1 seconds send "{@tag} &7Otrzymales zestaw &eLucznik" give bow named "&6Zestaw Lucznika" to player execute console command "/xp {@exp} %player%" give leather cap named "&eZestaw Lucznika" to player give leather tunic named "&eZestaw Lucznika" to player give leather pants named "&eZestaw Lucznika" to player give leather boots named "&eZestaw Lucznika" to player chance of 5%: remove 1 paper named "&bLos" from player send "{@tag} &7Loteria rozpoczeta" send "{@tag} &7Zaczekaj &65 sekund" wait 2 seconds send "{@tag} &c*****&63&c*****" wait 1 second send "{@tag} &c*****&62&c*****" wait 1 seconds send "{@tag} &c*****&61&c*****" wait 1 seconds send "{@tag} &7Otrzymales zestaw &6Diamond" execute console command "/xp {@exp2} %player%" give diamond helmet named "&bZestaw Diamond" to player give diamond chestplate named "&bZestaw Diamond" to player give diamond leggings named "&bZestaw Diamond" to player give diamond boots named "&bZestaw Diamond" to player give {@Kox2} enchanted golden apple named "&dZestaw Diamond" to player stop command /zestawy []: trigger: if player have permissions "loteria.mati": send "&6***************************&bLoteria&6***************************" send "&7Dostepne Zestawy do wylosowania:" send "&f- &aKox: &6Szansa: &a45 Procent" send "&f- &aWojownik: &6Szansa: &a25 Procent" send "&f- &aMagik: &6Szansa: &a10 Procent" send "&f- &aLucznik: &6Szansa: &a30 Procent" send "&f- &aDiamond: &6Szansa: &a5 Procent" send "&6***************************&bLoteria&6***************************" else: send "{@tag} &7Nie posiadasz permisji" stop