Aller au contenu

Messages recommandés

Posté(e)

Hello ! j'aurais besoin d'un petit skript car j'ai tester et re tester mais je ne sais pas pourquoi je n'y arrive pas :c

 

je voudrais que quand un modo faire click droit sur un joueur avec un livre ça lui ouvre un inventaire avec tout les items du joueur comme invsee quoi ! Merci de votre aide !

Posté(e)

Voila , j'ai utilisé le skript de @MyKayros "SkVerif"

 

on rightclick with book:
   if targeted entity is a player:
       if player have permission "modo.verif":
           set {_name} to targeted entity's name
           make player execute command "/verif %{_name}%"


command /verif <player>:
   permission: modo.verif
   trigger:
       wait 1 tick
       set {target.%player%} to arg 1
       open chest with 5 rows named "&4Inventaire > %arg 1%" to player
       set {_playerinv} to arg 1
       set {_slot} to 0
       loop 36 times:
           set {verif.%arg 1%.%{_slot}%} to slot {_slot} of arg 1's inventory
           add 1 to {_slot}
       set {_slot} to 0
       set {_slotmenu} to 9
       wait 1 tick
       loop 36 times:
           format slot {_slotmenu} of player with {verif.%arg 1%.%{_slot}%} to close
           add 1 to {_slot}
           add 1 to {_slotmenu}
       set {armorview.helmet.%arg 1%} to arg 1's helmet
       set {armorview.chestplate.%arg 1%} to arg 1's chestplate
       set {armorview.leggings.%arg 1%} to arg 1's leggings
       set {armorview.boots.%arg 1%} to arg 1's boots
       format slot 0 of player with {armorview.helmet.%arg 1%} to close
       format slot 1 of player with {armorview.chestplate.%arg 1%} to close
       format slot 2 of player with {armorview.leggings.%arg 1%} to close
       format slot 3 of player with {armorview.boots.%arg 1%} to close

Posté(e)

Bonjour à toi ! J'ai fait ceçi j'espère que ca te convient ;'D

on click on a player:
if player has permission "inv.sk":
	if player is holding a book named "&a&oInventaire":
		open the clicked player's inventory for the player
		message "&b&l&oSkript-MC&c&l&o >&b&l&o Tu a ouvert l'inventaire de &e&l&o%clicked player%&b&l&o avec succès!" to player

Posté(e)
Bonjour à toi ! J'ai fait ceçi j'espère que ca te convient ;'D

on click on a player:
if player has permission "inv.sk":
	if player is holding a book named "&a&oInventaire":
		open the clicked player's inventory for the player
		message "&b&l&oSkript-MC&c&l&o >&b&l&o Tu a ouvert l'inventaire de &e&l&o%clicked player%&b&l&o avec succès!" to player

Il manque l'armure avec ton code :/

Posté(e)

Je reprend le code @AxelGaming :

 

on click on a player:
  if player has permission "inv.sk":
      if player is holding a book named "&a&oInventaire":
           open the clicked player's inventory for the player
           wait a tick
           format slot 36 of player with helmet of clicked player
           format slot 37 of player with chestplate of clicked player
           format slot 38 of player with leggings of clicked player
           format slot 39 of player with boots of clicked player
           message "&b&l&oSkript-MC&c&l&o >&b&l&o Tu a ouvert l'inventaire de &e&l&o%clicked player%&b&l&o avec succès!" to player

Posté(e)
on click on a player:

if player has permission "inv.sk":

if player is holding a book named "&a&oInventaire":

open the clicked player's inventory for the player

wait a tick

format slot 36 of player with helmet of clicked player

format slot 37 of player with chestplate of clicked player

format slot 38 of player with leggings of clicked player

format slot 39 of player with boots of clicked player

message "&b&l&oSkript-MC&c&l&o >&b&l&o Tu a ouvert l'inventaire de &e&l&o%clicked player%&b&l&o avec succès!" to player

Je n'y avais pas penser mais gg a toi )x

Après l'avoir tester l'armure ne fonctionne pas.

Posté(e)

Mais j'ai proposer un code qui donne l'inventaire et l'armure pourquoi vous chercher à compliquer la tâche

Je reprend le code @AxelGaming :

 

on click on a player:
  if player has permission "inv.sk":
      if player is holding a book named "&a&oInventaire":
           open the clicked player's inventory for the player
           wait a tick
           format slot 36 of player with helmet of clicked player
           format slot 37 of player with chestplate of clicked player
           format slot 38 of player with leggings of clicked player
           format slot 39 of player with boots of clicked player
           message "&b&l&oSkript-MC&c&l&o >&b&l&o Tu a ouvert l'inventaire de &e&l&o%clicked player%&b&l&o avec succès!" to player

 

ça peut pas marcher tu ouvre l'inventaire du joueur pas un gui...

Posté(e)
Mais wesh j'ai proposer un code qui donne l'inventaire et l'armure pourquoi vous chercher à compliquer la tâche

 

 

ça peut pas marcher tu ouvre l'inventaire du joueur pas un gui...

Salut @Soufreur78 je suis preneur pour le look et peut etre l'use.

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