Siemka, tworze skrypt na castlemod'a mam problem z loop'ami, kod jest tutaj
NIE dodaje itemków teamowi BLUE!
every 300 ticks:
loop {castlemod.arena-list::*}:
if {castle.%loop-value%.status} is "&cOczekuje":
if {castlemod.num.%loop-value%} is smaller than 3:
loop {castlemod.gracze.%loop-value%::*}:
send "{@tag} Arena za 30 sec wystartuje!" to loop-value-2
set {castle.%loop-value-1%.status} to "&cOdliczanie"
wait 20 seconds
send "{@tag} Arena startuje za 10 sec!" to loop-value-2
wait 5 seconds
send "{@tag} Arena startuje za 5 sec!" to loop-value-2
set the loop-value-2's level to 5
wait 1 second
set the loop-value-2's level to 4
wait 1 second
set the loop-value-2's level to 3
wait 1 second
set the loop-value-2's level to 2
wait 1 second
set the loop-value-2's level to 1
wait 1 second
set the loop-value-2's level to 0
wait 1 second
send "{@tag} Zaraz zostaniesz przeteleportowany na swoja pozycje!" to loop-value-2
if {castlemod.team.%loop-value-2%} is "red":
send "{@tag} Twój team to &4&lRED! &cSkład twojego teamu to:" to loop-value-2
loop {castlemod.team.red.%loop-value-1%::*}:
send "&4%loop-value-3%" to loop-value-3
equip loop-value-3 with diamond helmet of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with Diamond Chestplate of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with diamond Leggings of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with diamond boots of protection 4 named "&8[&c%arg 2%&8] &4Red"
if {castlemod.team.%loop-value-2%} is "blue":
send "{@tag} Twój team to &1&lBLUE! &cSkład twojego teamu to:" to loop-value-2
loop {castlemod.team.blue.%loop-value-1%::*}:
send "&1%loop-value-3%" to loop-value-3
equip loop-value-3 with diamond helmet of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with Diamond Chestplate of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with diamond Leggings of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with diamond boots of protection 4 named "&8[&c%arg 2%&8] &1Blue"
Pytanie
LopataGaming 22
Siemka, tworze skrypt na castlemod'a mam problem z loop'ami, kod jest tutaj
NIE dodaje itemków teamowi BLUE!
every 300 ticks:
loop {castlemod.arena-list::*}:
if {castle.%loop-value%.status} is "&cOczekuje":
if {castlemod.num.%loop-value%} is smaller than 3:
loop {castlemod.gracze.%loop-value%::*}:
send "{@tag} Arena za 30 sec wystartuje!" to loop-value-2
set {castle.%loop-value-1%.status} to "&cOdliczanie"
wait 20 seconds
send "{@tag} Arena startuje za 10 sec!" to loop-value-2
wait 5 seconds
send "{@tag} Arena startuje za 5 sec!" to loop-value-2
set the loop-value-2's level to 5
wait 1 second
set the loop-value-2's level to 4
wait 1 second
set the loop-value-2's level to 3
wait 1 second
set the loop-value-2's level to 2
wait 1 second
set the loop-value-2's level to 1
wait 1 second
set the loop-value-2's level to 0
wait 1 second
send "{@tag} Zaraz zostaniesz przeteleportowany na swoja pozycje!" to loop-value-2
if {castlemod.team.%loop-value-2%} is "red":
send "{@tag} Twój team to &4&lRED! &cSkład twojego teamu to:" to loop-value-2
loop {castlemod.team.red.%loop-value-1%::*}:
send "&4%loop-value-3%" to loop-value-3
equip loop-value-3 with diamond helmet of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with Diamond Chestplate of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with diamond Leggings of protection 4 named "&8[&c%arg 2%&8] &4Red"
equip loop-value-3 with diamond boots of protection 4 named "&8[&c%arg 2%&8] &4Red"
if {castlemod.team.%loop-value-2%} is "blue":
send "{@tag} Twój team to &1&lBLUE! &cSkład twojego teamu to:" to loop-value-2
loop {castlemod.team.blue.%loop-value-1%::*}:
send "&1%loop-value-3%" to loop-value-3
equip loop-value-3 with diamond helmet of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with Diamond Chestplate of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with diamond Leggings of protection 4 named "&8[&c%arg 2%&8] &1Blue"
equip loop-value-3 with diamond boots of protection 4 named "&8[&c%arg 2%&8] &1Blue"
Odnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi