Fixed some bugs in code
parent
5355c26dd9
commit
f35b780181
|
@ -57,7 +57,7 @@ command /minigame_skybattle_start:
|
|||
trigger:
|
||||
execute console command "/gamerule doImmediateRespawn true"
|
||||
# časomíra podle které se nastaví zbytek skriptu
|
||||
set {skybattle::time} to 240
|
||||
set {skybattle::time} to 270
|
||||
clear {skybattle::gaming_players::*}
|
||||
loop 10 times:
|
||||
loop entries of team "IDList%loop-number%":
|
||||
|
@ -79,7 +79,7 @@ command /minigame_skybattle_start:
|
|||
hide {skybattle::gaming_players::*}
|
||||
wait 1 second
|
||||
send "§e----------- Oblačný Souboj -----------" to {gaming_players::*}
|
||||
send "V této minihře máte za úkol §cpřežít§r a zabít co nejvíce svých §cprotivníků. Můžete zničit a využít celý svět:D Třeba §7Iron Blocky §rjsou docela užitečné." to {gaming_players::*}
|
||||
send "V této minihře máte za úkol §cpřežít§r a zabít co nejvíce svých §cprotivníků§r. Můžete zničit a využít celý svět:D Třeba §7Iron Blocky §rjsou docela užitečné." to {gaming_players::*}
|
||||
wait 10 seconds
|
||||
reveal {skybattle::gaming_players::*}
|
||||
set {skybattle::stop_players} to "False"
|
||||
|
@ -106,12 +106,14 @@ command /minigame_skybattle_start:
|
|||
set {skybattle::current_arena} to {skybattle::current_arena} + 1
|
||||
set {skybattle::teams_alive_num} to 10
|
||||
reset_teams_alive()
|
||||
clear inventory of {skybattle::gaming_players::*}
|
||||
|
||||
if {skybattle::current_arena} is 1:
|
||||
set {skybattle::stop_players} to "True"
|
||||
execute console command "/scoreboard players set Kola XD 1"
|
||||
setbordercenter()
|
||||
changeborder(200, 1)
|
||||
wait 1 second
|
||||
spawnteam(1, 1) #team, spawner
|
||||
spawnteam(2, 2)
|
||||
spawnteam(3, 3)
|
||||
|
@ -128,6 +130,7 @@ command /minigame_skybattle_start:
|
|||
execute console command "/scoreboard players set Kola XD 2"
|
||||
setbordercenter()
|
||||
changeborder(200, 1)
|
||||
wait 1 second
|
||||
spawnteam(1, 8)
|
||||
spawnteam(2, 6)
|
||||
spawnteam(3, 7)
|
||||
|
@ -144,6 +147,7 @@ command /minigame_skybattle_start:
|
|||
execute console command "/scoreboard players set Kola XD 3"
|
||||
setbordercenter()
|
||||
changeborder(200, 1)
|
||||
wait 1 second
|
||||
spawnteam(1, 6)
|
||||
spawnteam(2, 4)
|
||||
spawnteam(3, 9)
|
||||
|
@ -189,16 +193,20 @@ command /minigame_skybattle_start:
|
|||
if {skybattle::timer} is 0:
|
||||
send title "§c§lDošel čas!" to all players
|
||||
set {skybattle::gaming_players::*}'s gamemode to spectator
|
||||
|
||||
set {skybattle::game_status} to "next"
|
||||
|
||||
wait 5 seconds
|
||||
set {skybattle::game_status} to "next"
|
||||
|
||||
if {skybattle::teams_alive_num} is 1:
|
||||
send title "Vyhrál team %{skybattle::teams_alive::*}%" to all players
|
||||
set {skybattle::gaming_players::*}'s gamemode to spectator
|
||||
wait 5 seconds
|
||||
set {skybattle::game_status} to "next"
|
||||
|
||||
if {skybattle::teams_alive_num} is 0:
|
||||
send title "Tak prej nevyhrál nikdo lul :D" to all players
|
||||
set {skybattle::gaming_players::*}'s gamemode to spectator
|
||||
wait 5 seconds
|
||||
set {skybattle::game_status} to "next"
|
||||
|
||||
wait 1 second
|
||||
|
||||
|
@ -260,7 +268,7 @@ command /skybattle_checklist <number>:
|
|||
send "Spawner locations: §a✔"
|
||||
else:
|
||||
send "Spawner locations: §4✕"
|
||||
if arg-3 is 3:
|
||||
if arg-1 is 3:
|
||||
send "ARENA 3 Checklist"
|
||||
if {skybattle::introlocation} exists:
|
||||
send "Intro location: §a✔"
|
||||
|
@ -286,7 +294,9 @@ command /skybattle_checklist <number>:
|
|||
command /skybattle_nextround:
|
||||
permission: skript.op
|
||||
trigger:
|
||||
set {game_status} to "next"
|
||||
send title "&4Konec kola" to all players
|
||||
wait 3 seconds
|
||||
set {skybattle::game_status} to "next"
|
||||
|
||||
function setbordercenter():
|
||||
set {_x} to {skybattle::arena%{skybattle::current_arena}%::border}'s x coord
|
||||
|
@ -294,6 +304,7 @@ function setbordercenter():
|
|||
set {_w} to world("021")
|
||||
set {_b} to {_w}.getWorldBorder()
|
||||
{_b}.setDamageBuffer(0)
|
||||
{_b}.setDamageAmount(2)
|
||||
{_b}.setCenter({_x}, {_z})
|
||||
|
||||
function changeborder(size: number, time: number):
|
||||
|
@ -360,10 +371,10 @@ command /skybattle_setspawner <number> <number>:
|
|||
send "Set spawn location %arg-2% in arena %arg-1% to %player's location%" to player
|
||||
else if arg-1 is 2:
|
||||
set {skybattle::arena2::spawn_location::%arg-2%} to player's location
|
||||
send "Set spawn location %arg-1%" to player
|
||||
send "Set spawn location %arg-2% in arena %arg-1% to %player's location%" to player
|
||||
else if arg-1 is 3:
|
||||
set {skybattle::arena3::spawn_location::%arg-2%} to player's location
|
||||
send "Set spawn location %arg-2% for Sky Battle" to player
|
||||
send "Set spawn location %arg-2% in arena %arg-1% to %player's location%" to player
|
||||
else:
|
||||
send "You must specify a spawner from 1-10 and area from 1-3"
|
||||
if arg-2 > 10:
|
||||
|
|
Loading…
Reference in New Issue