Aller au contenu
  • 0

probleme de "name of clicked"


Question

Posté(e)

Mc et serveur 1.8.8

Systeme Spigot

addons Les add on de la signature de @@PsYZiiK + SKQuery 4

 

 

Bonjour a tous !

J'ai un soucis lors du reload de mes skript voici les screenshots

 

http://prnt.sc/db6ovi

 

Voici le code :

 

#---------- Navigation ----------#

on right click:
   name of player's tool is "&6&lNavigation &7(clic droit)":
       open chest with 6 rows named "&6&lNavigation" to player
       wait 2 ticks
       format slot 12 of player with jukebox named "&aMini-Jeux" to close
       format slot 14 of player with gold ingot named "&6Boutique" to close
       format slot 20 of player with iron sword named "PVPBox" to close
       format slot 22 of player with gold sword named "PvP 1vs1" to close
       format slot 24 of player with diamond sword named "Faction" to close
       format slot 37 of player with beacon named "&dEvent" to close
       format slot 40 of player with ender chest named "&3Cosmetic" to close
       format slot 43 of player with paper named "&8Info" to close
       format slot 0 of player with red glass named " " to be unstealable
       format slot 1 of player with red glass named " " to be unstealable
       format slot 2 of player with red glass named " " to be unstealable
       format slot 3 of player with red glass named " " to be unstealable
       format slot 4 of player with red glass named " " to be unstealable
       format slot 5 of player with red glass named " " to be unstealable
       format slot 6 of player with red glass named " " to be unstealable
       format slot 7 of player with red glass named " " to be unstealable
       format slot 8 of player with red glass named " " to be unstealable
       format slot 9 of player with red glass named " " to be unstealable
       format slot 17 of player with red glass named " " to be unstealable
       format slot 18 of player with red glass named " " to be unstealable
       format slot 26 of player with red glass named " " to be unstealable
       format slot 27 of player with red glass named " " to be unstealable
       format slot 35 of player with red glass named " " to be unstealable
       format slot 36 of player with red glass named " " to be unstealable
       format slot 44 of player with red glass named " " to be unstealable
       format slot 45 of player with red glass named " " to be unstealable
       format slot 46 of player with red glass named " " to be unstealable
       format slot 47 of player with red glass named " " to be unstealable
       format slot 48 of player with red glass named " " to be unstealable
       format slot 49 of player with red glass named " " to be unstealable
       format slot 50 of player with red glass named " " to be unstealable
       format slot 51 of player with red glass named " " to be unstealable
       format slot 52 of player with red glass named " " to be unstealable
       format slot 53 of player with red glass named " " to be unstealable

#---------- Navigation ----------#

#---------- Cosmetic ----------#

on right click:
   name of player's tool is "&3&lCosmetic &7&o(clic droit)":
       open chest with 6 rows named "&3&lCosmetic" to player
       wait 2 ticks
       format slot 13 of player with ender portal frame named "&dMétamorphoses" to close
       unformat slot 13 of player
       format slot 19 of player with player head named "&2Chapeau" to close
       unformat slot 19 of player
       format slot 21 of player with chest named "&6Gadjet" to close
       unformat slot 21 of player
       format slot 23 of player with spawn egg named "&3Animaux" to close
       unformat slot 23 of player
       format slot 25 of player with blaze powder named "&eParticles" to close
       unformat slot 25 of player
       format slot 31 of player with nether star named "&9Mini-Jeux" to close
       unformat slot 31 of player
       format slot 43 of player with paper named "&8Info" to close
       unformat slot 43 of player
       format slot 0 of player with white glass named " " to be unstealable
       format slot 1 of player with white glass named " " to be unstealable
       format slot 2 of player with white glass named " " to be unstealable
       format slot 3 of player with white glass named " " to be unstealable
       format slot 4 of player with white glass named " " to be unstealable
       format slot 5 of player with white glass named " " to be unstealable
       format slot 6 of player with white glass named " " to be unstealable
       format slot 7 of player with white glass named " " to be unstealable
       format slot 8 of player with white glass named " " to be unstealable
       format slot 9 of player with white glass named " " to be unstealable
       format slot 17 of player with white glass named " " to be unstealable
       format slot 18 of player with white glass named " " to be unstealable
       format slot 26 of player with white glass named " " to be unstealable
       format slot 27 of player with white glass named " " to be unstealable
       format slot 35 of player with white glass named " " to be unstealable
       format slot 36 of player with white glass named " " to be unstealable
       format slot 44 of player with white glass named " " to be unstealable
       format slot 45 of player with white glass named " " to be unstealable
       format slot 46 of player with white glass named " " to be unstealable
       format slot 47 of player with white glass named " " to be unstealable
       format slot 48 of player with white glass named " " to be unstealable
       format slot 49 of player with white glass named " " to be unstealable
       format slot 50 of player with white glass named " " to be unstealable
       format slot 51 of player with white glass named " " to be unstealable
       format slot 52 of player with white glass named " " to be unstealable
       format slot 53 of player with white glass named " " to be unstealable

on inventory click:
   inventory name of current inventory of player is "&3&lCosmetic":
       cancel event

       name of clicked item's is "&dMétamorphoses":
           close player's inventory
           wait 2 ticks
           open chest with 4 rows named "&dMétamorphoses" to player
           wait 2 ticks
           format slot 11 of player with creeper spawn egg named "&2Creeper" to be unstealable
           unformat slot 11 of player
           format slot 13 of player with wither skeleton head named "&0Wither Skeleton" to be unstealable
           unformat slot 13 of player
           format slot 15 of player with skeleton spawn egg named "&7Skeleton" to be unstealable
           unformat slot 15 of player
           format slot 21 of player with spawn egg:52 named "&0Spider" to be unstealable
           unformat slot 21 of player          
           format slot 23 of player with zombie spawn egg named "&2Zombie" to be unstealable
           unformat slot 23 of player
           format slot 0 of player with lime glass named " " to be unstealable
           format slot 1 of player with lime glass named " " to be unstealable
           format slot 2 of player with lime glass named " " to be unstealable
           format slot 3 of player with lime glass named " " to be unstealable
           format slot 4 of player with lime glass named " " to be unstealable
           format slot 5 of player with lime glass named " " to be unstealable
           format slot 6 of player with lime glass named " " to be unstealable
           format slot 7 of player with lime glass named " " to be unstealable
           format slot 8 of player with lime glass named " " to be unstealable
           format slot 9 of player with lime glass named " " to be unstealable
           format slot 17 of player with lime glass named " " to be unstealable
           format slot 18 of player with lime glass named " " to be unstealable
           format slot 26 of player with lime glass named " " to be unstealable
           format slot 27 of player with lime glass named " " to be unstealable
           format slot 28 of player with lime glass named " " to be unstealable
           format slot 29 of player with lime glass named " " to be unstealable
           format slot 30 of player with lime glass named " " to be unstealable
           format slot 31 of player with lime glass named " " to be unstealable
           format slot 32 of player with lime glass named " " to be unstealable
           format slot 33 of player with lime glass named " " to be unstealable
           format slot 34 of player with lime glass named " " to be unstealable
           format slot 35 of player with arrow named "&4&lRetour au menu principale des cosmetics" to be unstealable
           unformat slot 35 of player

       name of clicked item's is "&2Chapeau":
           close player's inventory
           wait 2 ticks
           open chest with 4 rows named "&2Chapeau" to player
           wait 2 ticks
           format slot 11 of player with chest named "&eChest" to be unstealable
           unformat slot 11 of player
           format slot 13 of player with dropper named "&7Dropper" to be unstealable
           unformat slot 13 of player
           format slot 15 of player with tnt named "&4TNT" to be unstealable
           unformat slot 15 of player
           format slot 0 of player with brown glass named " " to be unstealable
           format slot 1 of player with brown glass named " " to be unstealable
           format slot 2 of player with brown glass named " " to be unstealable
           format slot 3 of player with brown glass named " " to be unstealable
           format slot 4 of player with brown glass named " " to be unstealable
           format slot 5 of player with brown glass named " " to be unstealable
           format slot 6 of player with brown glass named " " to be unstealable
           format slot 7 of player with brown glass named " " to be unstealable
           format slot 8 of player with brown glass named " " to be unstealable
           format slot 9 of player with brown glass named " " to be unstealable
           format slot 17 of player with brown glass named " " to be unstealable
           format slot 18 of player with brown glass named " " to be unstealable
           format slot 26 of player with brown glass named " " to be unstealable
           format slot 27 of player with brown glass named " " to be unstealable
           format slot 28 of player with brown glass named " " to be unstealable
           format slot 29 of player with brown glass named " " to be unstealable
           format slot 30 of player with brown glass named " " to be unstealable
           format slot 31 of player with brown glass named " " to be unstealable
           format slot 32 of player with brown glass named " " to be unstealable
           format slot 33 of player with brown glass named " " to be unstealable
           format slot 34 of player with brown glass named " " to be unstealable
           format slot 35 of player with arrow named "&4&lRetour au menu principale des cosmetics" to be unstealable
           unformat slot 35 of player

       name of clicked item is "&6Gadjet":
           close player's inventory
           wait 2 ticks
           open chest with 6 rows named "&6Gadjet" to player
           wait 2 ticks

       name of clicked item is "&3Animaux":
           close player's inventory
           wait 2 ticks
           open chest with 4 rows named "&3Animaux" to player
           wait 2 ticks
           format slot 11 of player with wolf spawn egg named "&7Wolf" to be unstealable
           unformat slot 11 of player
           format slot 13 of player with pig spawn egg named "&dPig" to be unstealable
           unformat slot 13 of player
           format slot 15 of player with spawn egg:101 named "&6Lapin" to be unstealable
           unformat slot 15 of player
           format slot 21 of player with sheep spawn egg named "&fSheep" to be unstealable
           unformat slot 21 of player
           format slot 22 of player with player's skull named "&eMini Me" to be unstealable
           unformat slot 22 of player
           format slot 23 of player with chicken spawn egg named "&ePoule" to be unstealable
           unformat slot 23 of player
           format slot 0 of player with gray glass named " " to be unstealable
           format slot 1 of player with gray glass named " " to be unstealable
           format slot 2 of player with gray glass named " " to be unstealable
           format slot 3 of player with gray glass named " " to be unstealable
           format slot 4 of player with gray glass named " " to be unstealable
           format slot 5 of player with gray glass named " " to be unstealable
           format slot 6 of player with gray glass named " " to be unstealable
           format slot 7 of player with gray glass named " " to be unstealable
           format slot 8 of player with gray glass named " " to be unstealable
           format slot 9 of player with gray glass named " " to be unstealable
           format slot 17 of player with gray glass named " " to be unstealable
           format slot 18 of player with gray glass named " " to be unstealable
           format slot 26 of player with gray glass named " " to be unstealable
           format slot 27 of player with gray glass named " " to be unstealable
           format slot 28 of player with gray glass named " " to be unstealable
           format slot 29 of player with gray glass named " " to be unstealable
           format slot 30 of player with gray glass named " " to be unstealable
           format slot 31 of player with gray glass named " " to be unstealable
           format slot 32 of player with gray glass named " " to be unstealable
           format slot 33 of player with gray glass named " " to be unstealable
           format slot 34 of player with gray glass named " " to be unstealable
           format slot 35 of player with arrow named "&4&lRetour au menu principale des cosmetics" to be unstealable
           unformat slot 35 of player

       name of clicked item is "&eParticles":
           close player's inventory
           wait 2 ticks
           open chest with 3 rows named "&eParticles" to player
           wait 2 ticks
           format slot 0 of player with purple glass named " " to be unstealable
           format slot 1 of player with purple glass named " " to be unstealable
           format slot 2 of player with purple glass named " " to be unstealable
           format slot 3 of player with purple glass named " " to be unstealable
           format slot 4 of player with purple glass named " " to be unstealable
           format slot 5 of player with purple glass named " " to be unstealable
           format slot 6 of player with purple glass named " " to be unstealable
           format slot 7 of player with purple glass named " " to be unstealable
           format slot 8 of player with purple glass named " " to be unstealable
           format slot 9 of player with purple glass named " " to be unstealable
           format slot 17 of player with purple glass named " " to be unstealable
           format slot 18 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 arrow named "&4&lRetour au menu principale des cosmetics" to be unstealable
           unformat slot 26 of player

       name of clicked item is "&9Mini-Jeux":
           close player's inventory
           wait 2 ticks
           open chest with 4 rows named "&9Mini-Jeux" to player
           wait 2 ticks

   name of clicked item is "&4&lRetour au menu principale des cosmetics":
       close player's inventory
       wait 2 ticks
       open chest with 6 rows named "&3&lCosmetic" to player
       wait 2 ticks
       format slot 13 of player with ender portal frame named "&dMétamorphoses" to close
       unformat slot 13 of player
       format slot 19 of player with player head named "&2Chapeau" to close
       unformat slot 19 of player
       format slot 21 of player with chest named "&6Gadjet" to close
       unformat slot 21 of player
       format slot 23 of player with spawn egg named "&3Animaux" to close
       unformat slot 23 of player
       format slot 25 of player with blaze powder named "&eParticles" to close
       unformat slot 25 of player
       format slot 31 of player with nether star named "&9Mini-Jeux" to close
       unformat slot 31 of player
       format slot 43 of player with paper named "&8Info" to close
       unformat slot 43 of player
       format slot 0 of player with white glass named " " to be unstealable
       format slot 1 of player with white glass named " " to be unstealable
       format slot 2 of player with white glass named " " to be unstealable
       format slot 3 of player with white glass named " " to be unstealable
       format slot 4 of player with white glass named " " to be unstealable
       format slot 5 of player with white glass named " " to be unstealable
       format slot 6 of player with white glass named " " to be unstealable
       format slot 7 of player with white glass named " " to be unstealable
       format slot 8 of player with white glass named " " to be unstealable
       format slot 9 of player with white glass named " " to be unstealable
       format slot 17 of player with white glass named " " to be unstealable
       format slot 18 of player with white glass named " " to be unstealable
       format slot 26 of player with white glass named " " to be unstealable
       format slot 27 of player with white glass named " " to be unstealable
       format slot 35 of player with white glass named " " to be unstealable
       format slot 36 of player with white glass named " " to be unstealable
       format slot 44 of player with white glass named " " to be unstealable
       format slot 45 of player with white glass named " " to be unstealable
       format slot 46 of player with white glass named " " to be unstealable
       format slot 47 of player with white glass named " " to be unstealable
       format slot 48 of player with white glass named " " to be unstealable
       format slot 49 of player with white glass named " " to be unstealable
       format slot 50 of player with white glass named " " to be unstealable
       format slot 51 of player with white glass named " " to be unstealable
       format slot 52 of player with white glass named " " to be unstealable
       format slot 53 of player with white glass named " " to be unstealable

#---------- Cosmetic ----------#

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Petite aide:

 

on inventory click:
   set {_slot} to clicked slot
   {_slot} is 3:
       send "Yep !"

command /giveitem:
   trigger:
       wait 1 tick
       set slot 3 of player to clock named "&6&lNavigation &7(clic droit)"

  • 0
Posté(e)

J'avais essayé avant de t'envoyer ça de trouver un moyen pour set le nom de l'objet, mais la seule façon sans erreur que j'ai trouvé ne fonctionnait pas, ça ne reconnaissait pas lorsque les noms étaient les mêmes. Le skript pensait que les noms étaient différents, alors qu'ils étaient exactement semblables

  • 0
Posté(e)

Salutations,

 

Il me semble que c'est:

name of clicked item is "blabla":
   suite...

Et non

name of clicked item's is "blabla":
   suite...

 

Cdt,

Tyoons.

×
×
  • 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.