Okay, so this is very weird. This command just adds something to a list, and it works with any arg 2's other than "a"
The problem is: It should add "A%{aceller}%", but it only adds "%{aceller}%" to {allce::*} and {ace::*}
Then you will understand
code_language.skript:
#Celler skript af vitusverden
options:
prefix: trt
#Y = Bredde
#X = Længde
#Z = Højde
#PRE = VIP celle
#Priser
cpris: 150
cprepris: 150
bpris: 150
bprepris: 150
apris: 150
aprepris: 150
command /ce [<text>] [<text>] [<integer>]:
trigger:
if arg 1 is not set:
send "{@prefix} &c/ce one (C, CPRE, B, BPRE, A, APRE)&a- Laver en celle"
else if arg 1 is "one":
send "Stå stille, laver en celle"
else if arg 1 is "oneauto":
if arg 2 is "C", "CPRE", "B", "BPRE", "A" or "APRE":
if arg 2 is "C":
add 1 to {cceller}
execute player command "/rg define c%{cceller}%"
execute player command "/as addrent c%{cceller}%"
execute player command "/as setprice {@cpris} c%{cceller}%"
add "C%{cceller}%" to {allce::*}
add "C%{cceller}%" to {cce::*}
if arg 2 is "CPRE":
add 1 to {cpreceller}
execute player command "/rg define cpre%{cpreceller}%"
execute player command "/as addrent cpre%{cpreceller}%"
execute player command "/as setprice {@cprepris} cpre%{cpreceller}%"
add "CPRE%{cpreceller}%" to {allce::*}
add "CPRE%{cpreceller}%" to {cprece::*}
if arg 2 is "B":
add 1 to {bceller}
execute player command "/rg define b%{bceller}%"
execute player command "/as addrent b%{bceller}%"
execute player command "/as setprice {@bpris} b%{bceller}%"
add "B%{bceller}%" to {allce::*}
add "B%{bceller}%" to {bce::*}
if arg 2 is "BPRE":
add 1 to {bpreceller}
execute player command "/rg define bpre%{cpreceller}%"
execute player command "/as addrent bpre%{cpreceller}%"
execute player command "/as setprice {@bprepris} bpre%{cpreceller}%"
add "BPRE%{bpreceller}%" to {allce::*}
add "BPRE%{bpreceller}%" to {bprece::*}
if arg 2 is "A":
add 1 to {aceller}
execute player command "/rg define a%{aceller}%"
execute player command "/as addrent a%{aceller}%"
execute player command "/as setprice {@apris} a%{aceller}%"
add "A%{aceller}%" to {allce::*}
add "A%{aceller}%" to {ace::*}
if arg 2 is "APRE":
add 1 to {apreceller}
execute player command "/rg define apre%{apreceller}%"
execute player command "/as addrent apre%{cpreceller}%"
execute player command "/as setprice {@aprepris} apre%{cpreceller}%"
add "APRE%{apreceller}%" to {allce::*}
add "APRE%{apreceller}%" to {aprece::*}
else if arg 1 is "list":
if arg 2 is "all":
set {_list} to "%{allce::*}%"
replace all " and" with " og" in {_list}
send "Liste:"
send "%{_list}%"
else if arg 1 is "remove" or "delete":
if {allce::*} contains arg 2:
execute player command "/rg remove ctest"
execute player command "/as removerent ctest"
remove arg 2 from {allce::*}
if arg 2 contains "CPRE":
remove arg 2 from {cprece::*}
remove 1 from {cpreceller}
else if arg 2 contains "C":
remove arg 2 from {cce::*}
remove 1 from {cceller}
else if arg 2 contains "BPRE":
remove arg 2 from {bprece::*}
remove 1 from {bpreceller}
else if arg 2 contains "B":
remove arg 2 from {bce::*}
remove 1 from {bceller}
else if arg 2 contains "APRE":
remove arg 2 from {aprece::*}
remove 1 from {apreceller}
else if arg 2 contains "A":
remove arg 2 from {ace::*}
remove 1 from {aceller}
send "Slettede %arg 2%"
else:
send "Cellen findes ikke."
The problem is: It should add "A%{aceller}%", but it only adds "%{aceller}%" to {allce::*} and {ace::*}
Then you will understand
Last edited: