Titre du sujet : Skript de block.
Sujet :
Version de minecraft / skript : 1.7.10 modé
Type du skript : Skript de block
Description du script :
Bonjour,
Je voudrait enfaite
Quand ont marque sur un block ( métait un block aléatoire je changerais )
Sa nous donne un papier avec ecrit dessus > &4Journal ( Commande > /ABDHS )
et sa lui mais ( &aVous avez reçu votre journal )
Et image quand il marche sur le block et qu'il a déja le journal ba sa lui donne pas
et sa lui mes pas le message
---------------------------
un autre block aussi
quand ont marche sur un block ( métait un block aléatoire je changerais )
si il et brigadier sa lui mes &aBonjour, Brigadier
et si il et pas brigadier sa le tp au /warp retourbrigadier
perm brigadier > Brigadier.all
------------------------------------------
aussi je voudrait que vous crée une commande :
Perm > Mod.aide
Quand un joueur fait /aide message
Sa envoi un ptit son genre dig au modo
et sa lui envoi comme message dans le t'chat >
&4[AIDE] &aJoueur qui envoi le /aide &8> &cMessage d'aide
----------------------------------------------------
Et un skript quand ont casse un block de stone le block réaparer et il donne 2 block de stone au joueur
----------------------------------------------------
Probleme avec mon skript d'atm quand je clic sur le block ou je fait/atm sa marche pas >
aliases:
atm = 496
money = 498
billet5 = 6695
billet10 = 6472
billet20 = 6542
billet50 = 6553
billet100 = 6689
billet10000 = 4194
billet100000 = 4195
on join:
if {money.%player%} is not set:
set {money.%player%} to 0
command /atm [<text> <number>] [<number>]:
trigger:
if arg 1 is not set:
if {lore.carte.%player%} is set:
wait 2 tick
set {atmopen.%player%} to true
open chest with 6 rows named "&6CrystalRP-ATM" to player
wait 1 tick
format slot 1 of player with billet5 named "&3Retirer 5$" to run [make player execute command "/atm retirer 5"]
format slot 2 of player with billet10 named "&3Retirer 10$" to run [make player execute command "/atm retirer 10"]
format slot 3 of player with billet20 named "&3Retirer 20$" to run [make player execute command "/atm retirer 20"]
format slot 4 of player with billet50 named "&3Retirer 50$" to run [make player execute command "/atm retirer 50"]
format slot 5 of player with billet100 named "&3Retirer 100$" to run [make player execute command "/atm retirer 100"]
format slot 6 of player with billet10000 named "&3Retirer 10.000$" to run [make player execute command "/atm retirer 10000"]
format slot 7 of player with billet100000 named "&3Retirer 100.000$" to run [make player execute command "/atm retirer 100000"]
format slot 10 of player with 16 of billet5 named "&3Retirer 80$" to run [make player execute command "/atm retirer 5 16"]
format slot 11 of player with 16 of billet10 named "&3Retirer 160$" to run [make player execute command "/atm retirer 10 16"]
format slot 12 of player with 16 of billet20 named "&3Retirer 320$" to run [make player execute command "/atm retirer 20 16"]
format slot 13 of player with 16 of billet50 named "&3Retirer 800$" to run [make player execute command "/atm retirer 50 16"]
format slot 14 of player with 16 of billet100 named "&3Retirer 1600$" to run [make player execute command "/atm retirer 100 16"]
format slot 15 of player with 16 of billet10000 named "&3Retirer 160.000$" to run [make player execute command "/atm retirer 10000 16"]
format slot 16 of player with 16 of billet100000 named "&3Retirer 1.600.000$" to run [make player execute command "/atm retirer 100000 16"]
format slot 46 of player with billet5 named "&3Deposer 5$" to run [make player execute command "/atm deposer 5"]
format slot 47 of player with billet10 named "&3Deposer 10$" to run [make player execute command "/atm deposer 10"]
format slot 48 of player with billet20 named "&3Deposer 20$" to run [make player execute command "/atm deposer 20"]
format slot 49 of player with billet50 named "&3Deposer 50$" to run [make player execute command "/atm deposer 50"]
format slot 50 of player with billet100 named "&3Deposer 100$" to run [make player execute command "/atm deposer 100"]
format slot 51 of player with billet10000 named "&3Deposer 10.000$" to run [make player execute command "/atm deposer 10000"]
format slot 52 of player with billet100000 named "&3Deposer 100.000$" to run [make player execute command "/atm deposer 100000"]
format slot 37 of player with 16 of billet5 named "&3Deposer 80$" to run [make player execute command "/atm deposer 5 16"]
format slot 38 of player with 16 of billet10 named "&3Deposer 160$" to run [make player execute command "/atm deposer 10 16"]
format slot 39 of player with 16 of billet20 named "&3Deposer 320$" to run [make player execute command "/atm deposer 20 16"]
format slot 40 of player with 16 of billet50 named "&3Deposer 800$" to run [make player execute command "/atm deposer 50 16"]
format slot 41 of player with 16 of billet100 named "&3Deposer 1600$" to run [make player execute command "/atm deposer 100 16"]
format slot 42 of player with 16 of billet10000 named "&3Deposer 160.000$" to run [make player execute command "/atm deposer 10000 16"]
format slot 43 of player with 16 of billet100000 named "&3Deposer 1.600.000$" to run [make player execute command "/atm deposer 100000 16"]
format slot 0 of player with purple glass named " " to be unstealable
format slot 8 of player with purple glass named " " to be unstealable
format slot 17 of player with purple glass named " " to be unstealable
format slot 19 of player with purple glass named " " to be unstealable
format slot 20 of player with purple glass named " " to be unstealable
format slot 21 of player with purple glass named " " to be unstealable
format slot 22 of player with purple glass named " " to be unstealable
format slot 23 of player with purple glass named " " to be unstealable
format slot 24 of player with purple glass named " " to be unstealable
format slot 25 of player with purple glass named " " to be unstealable
format slot 26 of player with purple glass named " " to be unstealable
format slot 28 of player with purple glass named " " to be unstealable
format slot 29 of player with purple glass named " " to be unstealable
format slot 30 of player with purple glass named " " to be unstealable
format slot 31 of player with purple glass named " " to be unstealable
format slot 32 of player with purple glass named " " to be unstealable
format slot 33 of player with purple glass named " " to be unstealable
format slot 34 of player with purple glass named " " to be unstealable
format slot 35 of player with purple glass named " " to be unstealable
format slot 36 of player with purple glass named " " to be unstealable
format slot 44 of player with purple glass named " " to be unstealable
format slot 53 of player with purple glass named " " to be unstealable
format slot 9 of player with purple glass named " " to be unstealable
format slot 18 of player with purple glass named " " to be unstealable
format slot 27 of player with purple glass named " " to be unstealable
format slot 45 of player with purple glass named " " to be unstealable
else if arg 1 is "retirer":
if arg 3 is equal to 16:
set {_b} to 16
else:
set {_b} to 1
if {money.%{lore.carte.%player%}%} is smaller than arg 2*{_b}:
send "&4Tu n'as pas assez d'argent" to player
else:
if arg 2 is 5:
give player {_b} of billet5
else if arg 2 is 10:
give player {_b} of billet10
else if arg 2 is 20:
give player {_b} of billet20
else if arg 2 is 50:
give player {_b} of billet50
else if arg 2 is 100:
give player {_b} of billet100
else if arg 2 is 10000:
give player {_b} of billet10000
else if arg 2 is 100000:
give player {_b} of billet100000
remove {_b}*arg 2 from {money.%{lore.carte.%player%}%}
format slot 22 of player with money named "&3&lMoney : %{money.%{lore.carte.%player%}%}%$" to be unstealable
format slot 31 of player with money named "&3&lMoney : %{money.%{lore.carte.%player%}%}%$" to be unstealable
else if arg 1 is "deposer":
if arg 3 is equal to 16:
set {_b} to 16
else:
set {_b} to 1
if arg 2 is 5:
if player's inventory contains {_b} of billet5:
remove {_b} of billet5 from player's inventory
loop {_b} times:
add 5 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 10:
if player's inventory contains {_b} of billet10:
remove {_b} of billet10 from player's inventory
loop {_b} times:
add 10 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 20:
if player's inventory contains {_b} of billet20:
remove {_b} of billet20 from player's inventory
loop {_b} times:
add 20 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 50:
if player's inventory contains {_b} of billet50:
remove {_b} of billet50 from player's inventory
loop {_b} times:
add 50 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 100:
if player's inventory contains {_b} of billet100:
remove {_b} of billet100 from player's inventory
loop {_b} times:
add 100 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 10000:
if player's inventory contains {_b} of billet10000:
remove {_b} of billet10000 from player's inventory
loop {_b} times:
add 10000 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
else if arg 2 is 100000:
if player's inventory contains {_b} of billet100000:
remove {_b} of billet100000 from player's inventory
loop {_b} times:
add 100000 to {money.%{lore.carte.%player%}%}
else:
send "&4Tu n'as pas assez d'argent" to player
format slot 22 of player with money named "&3&lMoney : %{money.%{lore.carte.%player%}%}%$" to be unstealable
format slot 31 of player with money named "&3&lMoney : %{money.%{lore.carte.%player%}%}%$" to be unstealable
Voilà Merci de m'aider