Update 'plugins/scripts/scripts/skybattle.sk'

main
Anorak_1 2022-12-03 21:15:25 +00:00
parent 60b335c872
commit 812971a77c
1 changed files with 9 additions and 4 deletions

View File

@ -90,6 +90,7 @@ command /minigame_skybattle_start:
while {skybattle::game_on} is "True": while {skybattle::game_on} is "True":
if {skybattle::game_status} is "init": if {skybattle::game_status} is "init":
execute console command "/scoreboard players set MaxKolo XD 3" execute console command "/scoreboard players set MaxKolo XD 3"
execute console command "/papik_maxkol 3"
resetplayers() resetplayers()
resetteams() resetteams()
@ -120,9 +121,10 @@ command /minigame_skybattle_start:
if {skybattle::current_arena} is 1: if {skybattle::current_arena} is 1:
set {skybattle::stop_players} to "True" set {skybattle::stop_players} to "True"
execute console command "/scoreboard players set Kola XD 1" execute console command "/scoreboard players set Kola XD 1"
execute console command "/papik_kolo 1"
setbordercenter() setbordercenter()
changeborder(200, 1) changeborder(200, 1)
wait 1 second wait 3 second
spawnteam(1, 1) #team, spawner spawnteam(1, 1) #team, spawner
spawnteam(2, 2) spawnteam(2, 2)
spawnteam(3, 3) spawnteam(3, 3)
@ -137,9 +139,10 @@ command /minigame_skybattle_start:
if {skybattle::current_arena} is 2: if {skybattle::current_arena} is 2:
set {skybattle::stop_players} to "True" set {skybattle::stop_players} to "True"
execute console command "/scoreboard players set Kola XD 2" execute console command "/scoreboard players set Kola XD 2"
execute console command "/papik_kolo 2"
setbordercenter() setbordercenter()
changeborder(200, 1) changeborder(200, 1)
wait 1 second wait 3 second
spawnteam(1, 8) spawnteam(1, 8)
spawnteam(2, 6) spawnteam(2, 6)
spawnteam(3, 7) spawnteam(3, 7)
@ -154,9 +157,10 @@ command /minigame_skybattle_start:
if {skybattle::current_arena} is 3: if {skybattle::current_arena} is 3:
set {skybattle::stop_players} to "True" set {skybattle::stop_players} to "True"
execute console command "/scoreboard players set Kola XD 3" execute console command "/scoreboard players set Kola XD 3"
execute console command "/papik_kolo 3"
setbordercenter() setbordercenter()
changeborder(200, 1) changeborder(200, 1)
wait 1 second wait 3 second
spawnteam(1, 6) spawnteam(1, 6)
spawnteam(2, 4) spawnteam(2, 4)
spawnteam(3, 9) spawnteam(3, 9)
@ -507,6 +511,7 @@ on block place of concrete:
remove 1 of event-block from player's inventory remove 1 of event-block from player's inventory
on death of player: # victim, attacker on death of player: # victim, attacker
make console execute command "/scoreboard players add @a[gamemode=survival] Survivalgames 1"
add victim's uuid to {skybattle::deadplayers::*} add victim's uuid to {skybattle::deadplayers::*}
launch ball large coloured yellow fading to light green and black at victim's location with duration 0 launch ball large coloured yellow fading to light green and black at victim's location with duration 0
remove victim from {skybattle::%team of victim%::alive_players} remove victim from {skybattle::%team of victim%::alive_players}
@ -522,7 +527,7 @@ on death of player: # victim, attacker
set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1 set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1
remove team of victim from {skybattle::teams_alive::*} remove team of victim from {skybattle::teams_alive::*}
set {_vteam} to team of victim set {_vteam} to team of victim
broadcast "Zemřel celý tým %get_team({_vteam})%" #broadcast "Zemřel celý tým %get_team({_vteam})%"
on respawn: on respawn:
if {skybattle::deadplayers::*} contains player's uuid: if {skybattle::deadplayers::*} contains player's uuid: