# # SKRYPT NAPISANY PRZEZ PGMAJSTER & JURASO # PGMAJSTER.EU | SKRIPT.PL # ZAKAZ KOPIOWANIA ORAZ ROZPRZESZCZENIANIA SKRYPTU # #==================# # WSTĘPNA # # KONFIGURACJA # #==================# variables: {chance} = false #JEŻELI CHCESZ, ABY SZANSE NA SPAWN BYŁY WŁĄCZONE ZAMIEŃ FALSE NA TRUE {lmu.daj} = false #TEJ ZMIENNEJ NIE ZMIENIAJ options: tag: &f&l[&6&lLevelMobs&f&l] #TAG PRZED KAŻDĄ WIADOMOŚCIĄ time: 2 #CZAS W MINUTACH PO JAKIM MOŻNA PONOWNIE WZIĄŚĆ JAJKO chance: 50 #SZANSA NA SPAWN MOBA zombie: Zombiaczek #NAZWA ZOMBIE PO SPAWNIE kurczak: Kurak #NAZWA KURCZAKA PO -||- szkielet: Szkieletor #NAZWA SZKIELETA -||- krowa: Krufffsko #NAZWA KROWY -||- swinia: Chruum #NAZWA ŚWINI -||- kon: Konik #NAZWA KONIA -||- pajak: Pajajonk #NAZWA PAJĄKA -||- szlam: Szlamik #NAZWA SZLAMU -||- wilk: Wilczur #NAZWA WILKA -||- #==================# # PONIŻSZE # # OPCJE # # SĄ DO GUI # #==================# show1: s;1;i;spawn egg:54;n;&6Spawn zombie;l;&dKosztuje 10 lvl||&aSpawnuje zombie||&4Kup mnie;c;levelmobs zombiak nie %player%; show2: s;2;i;spawn egg:93;n;&6Spawn kurczaka;l;&dKosztuje 5 lvl||&aSpawnuje kurczaka||&4Kup mnie;c;levelmobs kurczak nie %player%; show3: s;3;i;spawn egg:51;n;&6Spawn szkieleta;l;&dKosztuje 10 lvl||&aSpawnuje szkieleta||&4Kup mnie;c;levelmobs szkielet nie %player%; show4: s;4;i;spawn egg:92;n;&6Spawn krowy;l;&dKosztuje 5 lvl||&aSpawnuje krowe||&4Kup mnie;c;levelmobs krowa nie %player%; show5: s;5;i;spawn egg:90;n;&6Spawn swinia;l;&dKosztuje 5 lvl||&aSpawnuje swinie||&4Kup mnie;c;levelmobs swinia nie %player%; show6: s;6;i;spawn egg:100;n;&6Spawn konia;l;&dKosztuje 5 lvl||&aSpawnuje konia||&4Kup mnie;c;levelmobs kon nie %player%; show7: s;7;i;spawn egg:52;n;&6Spawn pajaka;l;&dKosztuje 10 lvl||&aSpawnuje pajaka||&4Kup mnie;c;levelmobs pajak nie %player%; show8: s;8;i;spawn egg:55;n;&6Spawn szlamu;l;&dKosztuje 5 lvl||&aSpawnuje szlam||&4Kup mnie;c;levelmobs szlam nie %player%; show9: s;9;i;spawn egg:95;n;&6Spawn wilka;l;&dKosztuje 5 lvl||&aSpawnuje wilka||&4Kup mnie;c;levelmobs wilk nie %player%; show10: s;1;i;spawn egg:54;n;&6Spawn zombie;l;&dKosztuje 10 lvl||&aSpawnuje zombie||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs zombiak tak %player%; show11: s;2;i;spawn egg:93;n;&6Spawn kurczaka;l;&dKosztuje 5 lvl||&aSpawnuje kurczaka||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs kurczak tak %player%; show12: s;3;i;spawn egg:51;n;&6Spawn szkieleta;l;&dKosztuje 10 lvl||&aSpawnuje szkieleta||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs szkielet tak %player%; show13: s;4;i;spawn egg:92;n;&6Spawn krowy;l;&dKosztuje 5 lvl||&aSpawnuje krowe||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs krowa tak %player%; show14: s;5;i;spawn egg:90;n;&6Spawn swinia;l;&dKosztuje 5 lvl||&aSpawnuje swinie||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs swinia tak %player%; show15: s;6;i;spawn egg:100;n;&6Spawn konia;l;&dKosztuje 5 lvl||&aSpawnuje konia||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs kon tak %player%; show16: s;7;i;spawn egg:52;n;&6Spawn pajaka;l;&dKosztuje 10 lvl||&aSpawnuje pajaka||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs pajak tak %player%; show17: s;8;i;spawn egg:55;n;&6Spawn szlamu;l;&dKosztuje 5 lvl||&aSpawnuje szlam||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs szlam tak %player%; show18: s;9;i;spawn egg:95;n;&6Spawn wilka;l;&dKosztuje 5 lvl||&aSpawnuje wilka||&4Kup mnie||&dSzansa na spawn: %{chance.pokaz}%;c;levelmobs wilk tak %player%; #==================# # WYKONYWANIE # # KOMENDY # #==================# command /levelmobs [] [] []: executable by: console aliases: lm trigger: #==================# # Spawn zombiak # #==================# if arg 2 is "nie": if arg 1 is "zombiak": if arg player's level is greater than 9: spawn zombie 3 meters above the arg player set the spawned zombie's display name to "&4{@zombie}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@zombie}": if type of loop-entity is a zombie: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn kurczak # #==================# if arg 1 is "kurczak": if arg player's level is greater than 4: spawn chicken at location of arg player set the spawned chicken's display name to "&a{@kurczak}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn szkielet # #==================# if arg 1 is "szkielet": if arg player's level is greater than 9: spawn skeleton 3 meters above the arg player set the spawned skeleton's display name to "&4{@szkielet}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@szkielet}": if type of loop-entity is a skeleton: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn krowa # #==================# if arg 1 is "krowa": if arg player's level is greater than 4: spawn cow at location of arg player set the spawned cow's display name to "&a{@krowa}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn swinia # #==================# if arg 1 is "swinia": if arg player's level is greater than 4: spawn pig at location of arg player set the spawned pig's display name to "&a{@swinia}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn kon # #==================# if arg 1 is "kon": if arg player's level is greater than 4: spawn horse at location of arg player set the spawned horse's display name to "&a{@kon}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn pajak # #==================# if arg 1 is "pajak": if arg player's level is greater than 9: spawn spider at location of arg player set the spawned spider's display name to "&4{@pajak}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@pajak}": if type of loop-entity is a spider: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn szlam # #==================# if arg 1 is "szlam": if arg player's level is greater than 4: spawn slime at location of arg player set the spawned slime's display name to "&a{@szlam}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn wilk # #==================# if arg 1 is "wilk": if arg player's level is greater than 4: spawn wolf at location of arg player set the spawned wolf's display name to "&4{@wilk}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player if arg 2 is "tak": chance of {@chance}%: if arg 1 is "zombiak": if arg player's level is greater than 9: spawn zombie 3 meters above the arg player set the spawned zombie's display name to "&4{@zombie}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@zombie}": if type of loop-entity is a zombie: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn kurczak # #==================# if arg 1 is "kurczak": if arg player's level is greater than 4: spawn chicken at location of arg player set the spawned chicken's display name to "&a{@kurczak}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl! 5" to arg player #==================# # Spawn szkielet # #==================# if arg 1 is "szkielet": if arg player's level is greater than 9: spawn skeleton 3 meters above the arg player set the spawned skeleton's display name to "&4{@szkielet}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@szkielet}": if type of loop-entity is a skeleton: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn krowa # #==================# if arg 1 is "krowa": if arg player's level is greater than 4: spawn cow at location of arg player set the spawned cow's display name to "&a{@krowa}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn swinia # #==================# if arg 1 is "swinia": if arg player's level is greater than 4: spawn pig at location of arg player set the spawned pig's display name to "&a{@swinia}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn kon # #==================# if arg 1 is "kon": if arg player's level is greater than 4: spawn horse at location of arg player set the spawned horse's display name to "&a{@kon}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn pajak # #==================# if arg 1 is "pajak": if arg player's level is greater than 9: spawn spider at location of arg player set the spawned spider's display name to "&4{@pajak}" remove 10 from arg player's level create a fake explosion at location of arg player wait 2 seconds loop all entities: if type of loop-entity is creature: if name of loop-entity is "&4{@pajak}": if type of loop-entity is a spider: kill loop-entity send "{@tag}&6 Patrz, tam cos lezy!" to arg player else: send "{@tag}&c Potrzebujesz 10 lvl!" to arg player #==================# # Spawn szlam # #==================# if arg 1 is "szlam": if arg player's level is greater than 4: spawn slime at location of arg player set the spawned slime's display name to "&a{@szlam}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player #==================# # Spawn wilk # #==================# if arg 1 is "wilk": if arg player's level is greater than 4: spawn wolf at location of arg player set the spawned wolf's display name to "&4{@wilk}" remove 5 from arg player's level else: send "{@tag}&c Potrzebujesz 5 lvl!" to arg player stop #==================# # WYKONYWANIE # # KOMENDY # #==================# command /lmu []: trigger: if arg 1 is not set: send "{@tag}&c Wpisz /lmu daj, aby otrzymac jajko!!" to player if arg 1 is "daj" or "give": if {lmu.daj} is false: give 1 spawn egg named "&b&lJajuszko" to player send "{@tag}&7 Otrzymales jajko! Skorzystaj z niego." to player set {lmu.daj} to true wait {@time} minutes set {lmu.daj} to true else: send "{@tag}&c Odczekaj {@time} minut!" to player if player has permissions "levelmobs.lmu" or "levelmobs.*": if arg 1 is not set: send "{@tag}&c Wpisz /lmu help, aby uzyskac wiecej informacji!" to player if arg 1 is "help": send "{@tag}&7 Uzyj: /lmu true, aby wlaczyc szanse na spawn" to player send "{@tag}&7 Uzyj: /lmu false, aby wylaczyc szanse na spawn" to player if arg 1 is "true": set {chance} to true send "{@tag}&7 Ustawiles szanse na spawn!" to player set {chance.pokaz} to {@chance} if arg 1 is "false": set {chance} to false send "{@tag}&c Wylaczyles szanse na spawn!" to player else: send "{@tag}&c Nie masz uprawnien do wykonania tej komendy!" to player #==================# # DROP # # Z # # MOBÓW # #==================# on death of zombie or skeleton or spider: name of victim contains "&4{@zombie}" or "&4{@szkielet}" or "&4{@pajak}": chance of 100%: drop a apple at location of victim chance of 50%: drop a iron sword at location of victim chance of 10%: drop a diamond sword at location of victim #==================# # WYSWIETLANIE # # JAJEK # # W GUI # #==================# on rightclick with spawn egg: if {chance} is false: if name of player's tool is "&b&lJajuszko": show "{@show1}{@show2}{@show3}{@show4}{@show5}{@show6}{@show7}{@show8}{@show9}" with 1 rows named "&6LevelMobs" to player else: if name of player's tool is "&b&lJajuszko": show "{@show10}{@show11}{@show12}{@show13}{@show14}{@show15}{@show16}{@show17}{@show18}" with 1 rows named "&6LevelMobs" to player