From 4e269e9131b0f3ac3cf3c077f1f636646800b827 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Fri, 11 Nov 2022 14:46:54 +0100 Subject: [PATCH] *hopefully* fixed 7 errors preventing skript load --- plugins/scripts/scripts/skybattle.sk | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index ad71f06..bb8ff1a 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -55,10 +55,10 @@ command /minigame_skybattle_start: clear {skybattle::gaming_players::*} loop 10 times: loop entries of team "IDList%loop-number%": - add loop-value2 to {skybattle::gaming_players::*} - add loop-value2 to {skybattle::IDList%loop-number%::players::*} + add loop-value to {skybattle::gaming_players::*} + add loop-value to {skybattle::IDList%loop-number-1%::players::*} - set {skybattle::players::%loop-value2's uuid%::team} to "IDList%loop-number2%" + set {skybattle::players::%loop-value's uuid%::team} to "IDList%loop-number-1%" broadcast "Načítám minihru Oblačný Souboj" send title "§2Oblačný Souboj" to all players set {skybattle::game_status} to "init" @@ -95,7 +95,7 @@ command /minigame_skybattle_start: clear {skybattle::IDList%loop-number%::alive_players::*} set {skybattle::IDList%loop-number%::alive_number} to 4 loop entries of team "IDList%loop-number%": - add loop-value2 to {skybattle::IDList%loop-number%::alive_players::*} + add loop-value to {skybattle::IDList%loop-number-1%::alive_players::*} set {skybattle::current_arena} to {skybattle::current_arena} + 1 set {skybattle::teams_alive_num} to 10 @@ -208,7 +208,7 @@ command /skybattle_setspectatorspawn : if arg-1 is 3: set {skybattle::arena3::spectatorlocation} to player's location send "Spectator pro arenu 3 nastaven" - if arg-1 is not 1 or arg-1 is not 2 or arg-1 is not 3: + if arg-1 is not 1 and arg-1 is not 2 and arg-1 is not 3: send "You need to specify arena 1-3" command /skybattle_setspawner : @@ -226,7 +226,7 @@ command /skybattle_setspawner : 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 - if arg-1 is not 1 or arg-1 is not 2 or arg-1 is not 3: + if arg-1 is not 1 and arg-1 is not 2 and arg-1 is not 3: send "You must specify arena 1-3" if arg-2 < 0: send "You must specify a number from 1-10" @@ -314,7 +314,7 @@ function init_team_names(): on place: #if {skybattle::game_status} is "playing": if name of held item is "§7Blocks": - give helt item to the player + give held item to the player on death of player: # victim, attacker add victim's uuid to {skybattle::deadplayers::*}