2022-08-12 18:34:10 +00:00
|
|
|
command /scoreupdate:
|
|
|
|
permission: skript.op
|
|
|
|
trigger:
|
|
|
|
set {teampoints_reset} to 0
|
|
|
|
|
2022-09-13 19:11:37 +00:00
|
|
|
function teamInfo(tmn: text) :: text:
|
2022-12-02 20:44:49 +00:00
|
|
|
if "%{_tmn}%" is "IDList0":
|
|
|
|
return "&7SPECTATOR"
|
|
|
|
else if "%{_tmn}%" is "IDList1":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "紅 &cKarmínová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList2":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "橙 &6Jantarová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList3":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "黃 &eKrémová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList4":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "婊 &aLimetková"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList5":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "綠 &2Smaragdová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList6":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "松 &3Azurová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList7":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "色 &bBlankytná"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList8":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "藍 &9Nebeská"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList9":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "紫 &5Nachová"
|
2022-09-13 19:09:55 +00:00
|
|
|
else if "%{_tmn}%" is "IDList10":
|
2022-09-13 18:57:12 +00:00
|
|
|
return "粉 &dŠvestková"
|
2022-09-13 19:05:58 +00:00
|
|
|
else:
|
2022-09-13 19:06:33 +00:00
|
|
|
return ""
|
2022-09-13 18:57:12 +00:00
|
|
|
|
2022-08-12 18:34:10 +00:00
|
|
|
on join:
|
2022-12-02 20:44:49 +00:00
|
|
|
set join message to "&2[&a+&2] &f%player%"
|
|
|
|
|
|
|
|
on join:
|
|
|
|
send "" to player
|
|
|
|
send "&4&l[&c&l!&4&l] &ePokud zde: &f[ 紅橙黃婊綠松色藍紫粉 &f] &eNevidíš krystalky, prosím stáhni si resource pack." to player
|
|
|
|
send "<link:https://www.dropbox.com/scl/fo/5tmu4u9pk59odth8641tm/h?dl=0&rlkey=pa9fjw448i8xj2ydym21z4d64> &eZde." to player
|
|
|
|
send "" to player
|
2022-08-12 18:34:10 +00:00
|
|
|
|
|
|
|
on quit:
|
2022-12-02 20:44:49 +00:00
|
|
|
set leave message to "&4[&c-&4] &f%player%"
|
2022-08-12 18:34:10 +00:00
|
|
|
|
|
|
|
on placeholderapi placeholder request for the prefix "player":
|
2022-09-13 18:24:15 +00:00
|
|
|
if the identifier is "znak":
|
2022-09-13 18:29:06 +00:00
|
|
|
if placeholder "team_name" from player is "IDList1":
|
|
|
|
set the result to "紅"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList2":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "橙"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList3":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "黃"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList4":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "婊"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList5":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "綠"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList6":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "松"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList7":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "色"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList8":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "藍"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList9":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "紫"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList10":
|
2022-09-13 18:29:06 +00:00
|
|
|
set the result to "粉"
|
2022-09-14 16:54:29 +00:00
|
|
|
else:
|
|
|
|
set the result to ""
|
|
|
|
|
2022-09-13 18:29:06 +00:00
|
|
|
|
2022-09-13 18:31:00 +00:00
|
|
|
if the identifier is "jmeno":
|
2022-12-02 20:44:49 +00:00
|
|
|
if placeholder "team_name" from player is "IDList0":
|
|
|
|
set the result to "&7SPECTATOR"
|
|
|
|
else if placeholder "team_name" from player is "IDList1":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&cKarmínová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList2":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&6Jantarová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList3":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&eKrémová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList4":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&aLimetková"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList5":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&2Smaragdová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList6":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&3Azurová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList7":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&bBlankytná"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList8":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&9Nebeská"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList9":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&5Nachová"
|
2022-09-14 16:54:29 +00:00
|
|
|
else if placeholder "team_name" from player is "IDList10":
|
2022-09-13 18:35:25 +00:00
|
|
|
set the result to "&dŠvestková"
|
2022-09-14 16:54:29 +00:00
|
|
|
else:
|
|
|
|
set the result to ""
|
2022-09-13 18:31:00 +00:00
|
|
|
|
2022-08-12 18:34:10 +00:00
|
|
|
if the identifier is "teammate": # The placeholder would be 'custom_message'
|
|
|
|
loop entries of team placeholder "team_name" from player:
|
|
|
|
if loop-value is not player:
|
|
|
|
if loop-value's gamemode is spectator:
|
|
|
|
add "§m&7%loop-value% ☠" to {_team_players::*}
|
|
|
|
else:
|
|
|
|
add "%loop-value% §a%loop-value's health * 2%%placeholder "team_color" from player%❤" to {_team_players::*}
|
|
|
|
if {_team_players::*} is not set:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "%{_team_players::*}%"
|
|
|
|
|
|
|
|
if the identifier is "myself":
|
|
|
|
set the result to "%player% §a%player's health * 2%%placeholder "team_color" from player%❤"
|
|
|
|
if the identifier is "teampoints":
|
|
|
|
loop entries of team placeholder "team_name" from player:
|
|
|
|
add placeholder "objective_score_GridoGames" from loop-value to {_team_points::*}
|
|
|
|
loop {_team_points::*}:
|
|
|
|
set {_team_point} to {_team_point} + loop-value parsed as integer
|
|
|
|
set the result to "%{_team_point}%"
|
2022-12-02 20:44:49 +00:00
|
|
|
if the identifier is "points":
|
|
|
|
set the result to placeholder "objective_score_GridoGames" from player
|
2022-08-12 18:34:10 +00:00
|
|
|
|
2022-12-02 21:08:11 +00:00
|
|
|
every 1 second:
|
|
|
|
set {_name} to "MaxKolo" parsed as offline player
|
|
|
|
set {_result} to placeholder "objective_score_XD" from {_name}
|
|
|
|
set {PapikMaxKola} to {_result}
|
|
|
|
|
|
|
|
set {_name} to "Minuty" parsed as offline player
|
|
|
|
set {_result} to placeholder "objective_score_XD" from {_name}
|
|
|
|
set {PapikMinuty} to {_result}
|
|
|
|
|
|
|
|
set {_name} to "Sekundy" parsed as offline player
|
|
|
|
set {_result} to placeholder "objective_score_XD" from {_name}
|
|
|
|
set {PapikSekundy} to {_result}
|
|
|
|
|
|
|
|
set {_name} to "Kola" parsed as offline player
|
|
|
|
set {_result} to placeholder "objective_score_XD" from {_name}
|
|
|
|
set {PapikKola} to {_result}
|
|
|
|
|
|
|
|
set {_name} to "Hry" parsed as offline player
|
|
|
|
set {_result} to placeholder "objective_score_XD" from {_name}
|
|
|
|
set {PapikHry} to {_result}
|
|
|
|
|
2022-08-12 18:34:10 +00:00
|
|
|
on placeholderapi placeholder request for the prefix "game":
|
2022-09-11 17:35:41 +00:00
|
|
|
if the identifier is "maxkola":
|
2022-12-02 21:08:11 +00:00
|
|
|
set the result to {PapikMaxKola}
|
2022-09-11 17:35:41 +00:00
|
|
|
if the identifier is "minuta":
|
2022-12-02 21:08:11 +00:00
|
|
|
set the result to {PapikMinuty}
|
2022-09-11 17:35:41 +00:00
|
|
|
if the identifier is "sekunda":
|
2022-12-02 21:08:11 +00:00
|
|
|
set the result to {PapikSekundy}
|
2022-08-12 18:34:10 +00:00
|
|
|
if the identifier is "kola":
|
2022-12-02 21:08:11 +00:00
|
|
|
set the result to {PapikKola}
|
2022-08-12 18:34:10 +00:00
|
|
|
if the identifier is "hra":
|
2022-12-02 21:08:11 +00:00
|
|
|
set the result to {PapikHry}
|
2022-08-12 18:34:10 +00:00
|
|
|
|
2022-12-02 20:56:45 +00:00
|
|
|
every 10 seconds:
|
|
|
|
set {_lu} to "Anorak_1" parsed as player
|
|
|
|
clear {team_all_points::*}
|
|
|
|
loop 10 times:
|
|
|
|
clear {_team_point}
|
|
|
|
clear {_team_points::*}
|
|
|
|
loop entries of team "IDList%loop-number%":
|
|
|
|
add placeholder "objective_score_GridoGames" from loop-value-2 to {_team_points::*}
|
|
|
|
loop {_team_points::*}:
|
|
|
|
set {_team_point} to {_team_point} + loop-value-2 parsed as integer
|
|
|
|
if entries of team "IDList%loop-number%" is set:
|
|
|
|
set {teampoints::IDList%loop-number%} to {_team_point}
|
|
|
|
add {_team_point} to {team_all_points::*}
|
|
|
|
set {team_all_point::*} to reversed sorted {team_all_points::*}
|
|
|
|
clear {1stteam}
|
|
|
|
clear {2stteam}
|
|
|
|
clear {3stteam}
|
|
|
|
clear {4stteam}
|
|
|
|
clear {5stteam}
|
|
|
|
clear {6stteam}
|
|
|
|
clear {7stteam}
|
|
|
|
clear {8stteam}
|
|
|
|
clear {9stteam}
|
|
|
|
clear {10stteam}
|
|
|
|
set {1stset} to ""
|
|
|
|
set {2stset} to ""
|
|
|
|
set {3stset} to ""
|
|
|
|
set {4stset} to ""
|
|
|
|
set {5stset} to ""
|
|
|
|
set {6stset} to ""
|
|
|
|
set {7stset} to ""
|
|
|
|
set {8stset} to ""
|
|
|
|
set {9stset} to ""
|
|
|
|
set {10stset} to ""
|
|
|
|
loop 10 times:
|
|
|
|
if 10st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {10stteam} is not set:
|
|
|
|
set {10stteam} to "IDList%loop-number%"
|
|
|
|
set {10stset} to "True"
|
|
|
|
continue
|
|
|
|
if 9st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {9stteam} is not set:
|
|
|
|
set {9stteam} to "IDList%loop-number%"
|
|
|
|
set {9stset} to "True"
|
|
|
|
continue
|
|
|
|
if 8st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {8stteam} is not set:
|
|
|
|
set {8stteam} to "IDList%loop-number%"
|
|
|
|
set {8stset} to "True"
|
|
|
|
continue
|
|
|
|
if 7st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {7stteam} is not set:
|
|
|
|
set {7stteam} to "IDList%loop-number%"
|
|
|
|
set {7stset} to "True"
|
|
|
|
continue
|
|
|
|
if 6st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {6stteam} is not set:
|
|
|
|
set {6stteam} to "IDList%loop-number%"
|
|
|
|
set {6stset} to "True"
|
|
|
|
continue
|
|
|
|
if 5st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {5stteam} is not set:
|
|
|
|
set {5stteam} to "IDList%loop-number%"
|
|
|
|
set {5stset} to "True"
|
|
|
|
continue
|
|
|
|
if 4st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {3stteam} is not set:
|
|
|
|
set {4stteam} to "IDList%loop-number%"
|
|
|
|
set {4stset} to "True"
|
|
|
|
continue
|
|
|
|
if 3st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {3stteam} is not set:
|
|
|
|
set {3stteam} to "IDList%loop-number%"
|
|
|
|
set {3stset} to "True"
|
|
|
|
continue
|
|
|
|
if 2st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {2stteam} is not set:
|
|
|
|
set {2stteam} to "IDList%loop-number%"
|
|
|
|
set {2stset} to "True"
|
|
|
|
continue
|
|
|
|
if 1st element of {team_all_point::*} is {teampoints::IDList%loop-number%}:
|
|
|
|
if {1stteam} is not set:
|
|
|
|
set {1stteam} to "IDList%loop-number%"
|
|
|
|
set {1stset} to "True"
|
2022-08-12 18:34:10 +00:00
|
|
|
|
2022-12-02 20:56:45 +00:00
|
|
|
on placeholderapi placeholder request for the prefix "game1":
|
|
|
|
if the identifier is "poradi1":
|
2022-08-12 18:34:10 +00:00
|
|
|
if prefix of team {1stteam} is set:
|
|
|
|
if {teampoints::%{1stteam}%} is 0:
|
2022-12-02 20:44:49 +00:00
|
|
|
set the result to "&r&7-"
|
2022-08-12 18:34:10 +00:00
|
|
|
else:
|
2022-12-02 20:44:49 +00:00
|
|
|
set the result to "&r%teamInfo({1stteam})% &r%{teampoints::%{1stteam}%}%"
|
2022-08-12 18:34:10 +00:00
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
#set {new::*} to sorted {play::*}
|
|
|
|
if the identifier is "poradi2":
|
|
|
|
if prefix of team {2stteam} is set:
|
|
|
|
if {teampoints::%{2stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
2022-12-02 20:44:49 +00:00
|
|
|
set the result to "&r%teamInfo({2stteam})% &r%{teampoints::%{2stteam}%}%"
|
2022-08-12 18:34:10 +00:00
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi3":
|
|
|
|
if prefix of team {3stteam} is set:
|
|
|
|
if {teampoints::%{3stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
2022-12-02 20:44:49 +00:00
|
|
|
set the result to "&r%teamInfo({3stteam})% &r%{teampoints::%{3stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi4":
|
|
|
|
if prefix of team {4stteam} is set:
|
|
|
|
if {teampoints::%{4stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({4stteam})% &r%{teampoints::%{4stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi5":
|
|
|
|
if prefix of team {5stteam} is set:
|
|
|
|
if {teampoints::%{5stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({5stteam})% &r%{teampoints::%{5stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi6":
|
|
|
|
if prefix of team {6stteam} is set:
|
|
|
|
if {teampoints::%{6stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({6stteam})% &r%{teampoints::%{6stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi7":
|
|
|
|
if prefix of team {7stteam} is set:
|
|
|
|
if {teampoints::%{7stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({7stteam})% &r%{teampoints::%{7stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi8":
|
|
|
|
if prefix of team {8stteam} is set:
|
|
|
|
if {teampoints::%{8stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({8stteam})% &r%{teampoints::%{8stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi9":
|
|
|
|
if prefix of team {9stteam} is set:
|
|
|
|
if {teampoints::%{9stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({9stteam})% &r%{teampoints::%{9stteam}%}%"
|
|
|
|
else:
|
|
|
|
set the result to "&7-"
|
|
|
|
if the identifier is "poradi10":
|
|
|
|
if prefix of team {10stteam} is set:
|
|
|
|
if {teampoints::%{10stteam}%} is 0:
|
|
|
|
set the result to "&7-"
|
|
|
|
else:
|
|
|
|
set the result to "&r%teamInfo({10stteam})% &r%{teampoints::%{10stteam}%}%"
|
2022-08-12 18:34:10 +00:00
|
|
|
else:
|
|
|
|
set the result to "&7-"
|