Skript Version (do not put latest): Skript 2.2 Fixes V8b.jar
Skript Author: Bensku
Minecraft Version: 1.8.8
---
Full Code:
I want a loop of player's which is in support. But if i klick a player head in the gui, everytime it runs the latest loop.
Skript Author: Bensku
Minecraft Version: 1.8.8
---
Full Code:
I want a loop of player's which is in support. But if i klick a player head in the gui, everytime it runs the latest loop.
Code:
Command /support [<text>] [<player>]:
trigger:
if arg-1 is not set:
if {support::%player%} is not set:
set {support::%player%} to "OPEN"
send "{@Prefix} &7Du hast die &eWarteschlange &7betreten&8."
send "{@Prefix} &7Warte einen kurzen Augenblick&8."
play sound "CLICK" to player with volume 5000 and pitch 14
loop all players:
if loop-player has permission "skytanic.team":
send "" to loop-player
send "{@Prefix} &7%{p::%player%}% &7benötigt &aSupport&8." to loop-player
send "{@Prefix} &7Verwende &e/support list&8." to loop-player
send "" to loop-player
play sound "ANVIL_LAND" to loop-player with volume 5000 and pitch 14
else:
send "{@Prefix} &cDu bist bereits im &4Support&8."
play sound "ANVIL_USE" to player with volume 5000 and pitch 14
else:
if arg-1 is "list":
if player has permission "skytanic.team":
play sound "WOOD_CLICK" to player with volume 5000 and pitch 14
wait 1 tick
open chest with 5 rows named "&8► &aSupport Räume" to player
wait 2 ticks
format slot 0 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 1 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 2 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 3 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 4 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 5 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 6 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 7 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 8 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 36 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 37 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 38 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 39 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 40 of player with skull of "MHF_ArrowDown" parsed as a offline player named "&8■ &c&lZurück" to close
format slot 41 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 42 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 43 of player with black stained glass pane named "&8» / &8«" to run ""
format slot 44 of player with black stained glass pane named "&8» / &8«" to run ""
set {_i} to 8
loop {support::*}:
add 1 to {_i}
add 1 to {_raum}
format slot {_i} of player with skull of ("%loop-index%" parsed as an offline player) named "&8[&e&lRaum-%{_raum}%&8] %{p::%loop-index%}%" with lore "&7Status&8: &e%{support::%loop-index%}%" to close then run [make player execute command "support annehmen %loop-index%"]
if arg-1 is "annehmen":
if player has permission "skytanic.team":
if arg-2 is set:
if arg-2 is online:
if {support::%arg-2%} is "OPEN":
set {support::%arg-2%} to "IN BEARBEITUNG"
set {spieler::%player%} to arg-2
set {supporter::%arg-2%} to player
send "{@Prefix} &7Du hast den Spieler %{p::%arg-2%}% &7übernommen&8."
play sound "WOOD_CLICK" to player with volume 5000 and pitch 14
send "" to arg-2
send "{@Prefix} &7Du bist nun im &eSupport&8-&eChat&8." to arg-2
send "{@Prefix} &7Dein Gesprächspartner&8: %{p::%player%}%" to arg-2
send "" to arg-2
wait 1 second
play sound "CLICK" to player with volume 5000 and pitch 14
play sound "CLICK" to arg-2 with volume 5000 and pitch 14
send "{@Prefix} %{p::%player%}% &8» &eHerzlich Willkommen im Support-Chat von SkyTanic. Bitte schildere mir dein Anliegen! :)" to arg-2
send "{@Prefix} %{p::%player%}% &8» &eHerzlich Willkommen im Support-Chat von SkyTanic. Bitte schildere mir dein Anliegen! :)" to player