Quelqun a fait un skript mes le probleme ya pas les tabulation aider moi svp :'(
code :
on join:
if {money.%player%} is not set:
set {money.%player%} to 0
on right click on 0583:8 with 6025 :
open chest with 1 rows named " &aATM" to player
wait 1 tick
format slot 3 of player with chest named "&aRetirer de l'argent" to run [make player execute command "money take"]
format slot 5 of player with chest named "&aDéposer de l'argent" to run [make player execute command "money deposit"]
format slot 4 of player with book named "&aDétails" with lore "&9Vous avez&7: &6%{money.%player%}% billets" to be unstealable
command /money [<text>] [<text>] [<text>] [<text>]:
trigger:
if arg 1 is "take":
if arg 2 is not set:
open chest with 1 rows named " &aRetirer de l'argent" to player
wait 1 tick
format slot 0 of player with 6018 named "&a1 billet" to run [make player execute command "money take 1"]
format slot 2 of player with 6020 named "&a5 billet" to run [make player execute command "money take 5"]
format slot 4 of player with 6021 named "&a10 billet" to run [make player execute command "money take 10"]
format slot 6 of player with 6023 named "&a50 billet" to run [make player execute command "money take 50"]
format slot 8 of player with 6024 named "&a100 billet" to run [make player execute command "money take 100"]
if arg 2 is set:
set {_number} to arg 2
set {money.%player%} to {money.%player%} parsed as number
if {money.%player%} is 0:
message "Tu as %{money.%player%}% billets !"
else:
if arg 2 is "1":
if {money.%player%} is greater than 0 :
add -1 to {money.%player%}
give 1 6018 to player
else:
message "Tu n'a pas assez sur ton compte bancaire (&9%{money.%player%}%&r)"
if arg 2 is "5":
if {money.%player%} is greater than 4 :
add -5 to {money.%player%}
give 1 6020 to player
else:
message "Tu n'a pas assez sur ton compte bancaire (&9%{money.%player%}%&r)"
if arg 2 is "10":
if {money.%player%} is greater than 9 :
add -10 to {money.%player%}
give 1 6021 to player
else:
message "Tu n'a pas assez sur ton compte bancaire (&9%{money.%player%}%&r)"
if arg 2 is "50":
if {money.%player%} is greater than 49 :
add -50 to {money.%player%}
give 1 6023 to player
else:
message "Tu n'a pas assez sur ton compte bancaire (&9%{money.%player%}%&r)"
if arg 2 is "100":
if {money.%player%} is greater than 99 :
add -100 to {money.%player%}
give 1 6024 to player
else:
message "Tu n'a pas assez sur ton compte bancaire (&9%{money.%player%}%&r)"
if arg 1 is "deposit":
if arg 2 is not set:
open chest with 1 rows named " &aDéposer de l'argent" to player
wait 1 tick
format slot 0 of player with 6018 named "&a1 billet" to run [make player execute command "money deposit 1"]
format slot 2 of player with 6020 named "&a5 billet" to run [make player execute command "money deposit 5"]
format slot 4 of player with 6021 named "&a10 billet" to run [make player execute command "money deposit 10"]
format slot 6 of player with 6023 named "&a50 billet" to run [make player execute command "money deposit 50"]
format slot 8 of player with 6024 named "&a100 billet" to run [make player execute command "money deposit 100"]
if arg 2 is set:
if arg 2 is "1":
if player has 1 6018 :
remove 1 6018 from player
add -1 to {money.%player%}
else:
message "Tu n'as de billet de 1"
if arg 2 is "5":
if player has 1 6020 :
remove 1 6020 from player
add 5 to {money.%player%}
else:
message "Tu n'as de billet de 5"
if arg 2 is "10":
if player has 1 6021 :
remove 1 6021 from player
add 10 to {money.%player%}
else:
message "Tu n'as de billet de 10"
if arg 2 is "50":
if player has 1 6023 :
remove 1 6023 from player
add 50 to {money.%player%}
else:
message "Tu n'as de billet de 50"
if arg 2 is "100":
if player has 1 6024 :
remove 1 6024 from player
add 100 to {money.%player%}
else:
message "Tu n'as de billet de 100"
if arg 1 is "add":
set {money.%player%} to arg 2
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
SriKill
Bonjour,
Quelqun a fait un skript mes le probleme ya pas les tabulation aider moi svp :'(
code :
14 réponses à cette question
Messages recommandés