Aller au contenu
  • 0

Coupure de courant Skript inutilisable


Question

Posté(e)

Version de Minecraft : 1.7.10
Version de Skript : 2.1.2

Addons utilisés: Aucun (je crois qu'il ne marche pas)

Type du skript : Skript ne marche plus

Description du script :

Bonjour, hier j'ai eu une coupure de courant donc tout eteint ensuite quand j'ai r'allumer le serveur et le skript atm ne marchait plus, merci d'avance

 

aliases:
    atm = 97:5
    money = 386
    billet1 = 341
    billet50 = 341

command /Atm [<text> <number>] [<number>]:
    trigger:
        if arg 1 is not set:
            wait 0.1 tick
            set {atmopen.%player%} to true
            open chest with 1 rows named "&2Banque" to player
            format slot 1 of player with billet1 named "&3Retirer 1$" to run [make player execute command "/Atm retirer 1 1"]
            format slot 2 of player with 10 of billet1 named "&3Retirer 10$" to run [make player execute command "/Atm retirer 1 10"]
            format slot 3 of player with 50 of billet1 named "&3Retirer 50$" to run [make player execute command "/Atm retirer 1 50"]
            format slot 7 of player with billet1 named "&3Deposer 1$" to run [make player execute command "/Atm deposer 1 1"]
            format slot 6 of player with 10 of billet1 named "&3Deposer 10$" to run [make player execute command "/Atm deposer 1 10"]
            format slot 5 of player with 50 of billet1 named "&3Deposer 50$" to run [make player execute command "/Atm deposer 1 50"]

            format slot 4 of player with money named "&3&lMoney : %player's money%$" to be unstealable
            
        else if arg 1 is "retirer":
            if arg 3 is equal to 50:
                set {_b} to 50
            else if arg 3 is equal to 10:
                set {_b} to 10
            else:
                set {_b} to 1
            if player's money is smaller than arg 2*{_b}:
                send "&4[&cDictature&4]&c Tu n'as pas assez d'argent " to player
            else:
                if arg 2 is 1:
                    give player {_b} of billet1
                else if arg 2 is 10:
                    give player {_b} of 10 of billet1
                else if arg 2 is 50:
                    give player {_b} of 50 billet50
                remove {_b}*arg 2 from player's money
        else if arg 1 is "deposer":
            if arg 3 is equal to 50:
                set {_b} to 50
            else if arg 3 is equal to 10:
                set {_b} to 10
            else:
                set {_b} to 1
            if arg 2 is 1:
                if player's inventory contains {_b} of billet1:
                    remove {_b} of billet1 from player's inventory
                    loop {_b} times:
                        add 1 to player's money
                else:
                    send "&4[&cDictature&4]&c Tu n'as pas assez d'argent " to player
            
on inventory close:
    if {atmopen.%player%} is true:
        set {atmopen.%player%} to false

on rightclick on atm:
    cancel event
    send "&4[&cDictature&4]&7 Bienvenue sur votre compte bancaire."
    make player execute command "/Atm"

 

3 réponses à cette question

Messages recommandés

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

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.