Aller au contenu

Messages recommandés

Posté(e)

Titre du sujet : Skript RP Banque

Sujet :

Version de minecraft / skript : 1.7.10

Type du skript : Skript de banque

Description du script :

Alors sa serait bien quand on clique par exemple sur de la stone sa nous ouvre un gui d'un coté ta retirer et l'autre ta ajouter dans la partie ajouter il faudrait que la personne puisse ajouter des lingots d'or et que sa se convertisse en monnaie virtuelle avec essentials et vice versa pour qu'il retire par exemple un lingot d'or sa fait : 100€ si il retire 1 lingots d'or sa lui donne le lingot et -100€ sur son compte voilà

Commandes éventuelles avec les permissions :

Je n'ai pas besoin de commandes particulières

Autres précisions (bout de skript déjà fait, systèmes actuellement utilisés, etc.) :

  • 2 semaines après...
Posté(e) (modifié)

options
   atm: stone

   billet.100: gold ingot

on rightclick on {@atm}:
   make console execute command "/atm %player%"

command /atm <player> <text> <number>:
   permission: *
   trigger:
       if arg 2 isn't set:
           open virtual chest inventory with size 3 named "Distributeur" to arg-1
           format gui slot 0 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 1 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 2 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 3 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 4 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 5 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 6 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 7 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 8 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 9 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 17 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 18 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 19 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 20 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 21 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 22 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 23 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 24 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 25 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 26 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 10 of arg 1 with 1 {@billet.100} with lore "&aDépôt" to run console command "/atm %arg-1% d 100"
           format gui slot 11 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 12 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 13 of arg 1 with 1 clock named "§6Solde : §c%arg-1's money%" to do nothing
           format gui slot 14 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 15 of arg 1 with 1 160:15 named " " to do nothing
           format gui slot 16 of arg 1 with 1 {@billet.100} with lore "&cRetrait" to run console command "/atm %arg-1% r 100"

       else if arg 2 is "r":
           if arg-1's money >= arg-3:
               remove arg-3 from arg-1's money
               give {@billet.100} to arg-1

       else if arg 2 is "d":
           if arg-1 has {@billet.100}:
               remove {@billet.100} from arg-1's inventory
               add arg-3 to arg-1's money

 

Voilà, c'est censé fonctionner

 

EDIT: Ou alors tu peux utiliser mon skript juste ici : https://skript-mc.fr/forum/resources/advanced-a-t-m-»-razorix06.1069/

Modifié par Razo
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.