Bonjour,
J'ai besoin de loop l'inventaire d'un joueur et de le mettre dans un gui, pour pouvoir rajouter d'autre information sur une 'row' supplémentaire.
set {_count} to 0
loop 36 times:
set {inv.%player%.%{_count}%.custom1} to slot {_count} of player's inventory
add 1 to {_count}
set {inv.%player%.helmet.custom1} to player's helmet
set {inv.%player%.chest.custom1} to player's chestplate
set {inv.%player%.legs.custom1} to player's leggings
set {inv.%player%.feet.custom1} to player's boots
loop 36 times:
set slot {_count} of player's inventory to {inv.%player%.%{_count}%.custom1}
add 1 to {_count}
set the helmet of player to {inv.%player%.helmet.custom1}
set the chestplate of player to {inv.%player%.chest.custom1}
set the leggings of player to {inv.%player%.legs.custom1}
set the boots of player to {inv.%player%.feet.custom1}
J'ai réussis à le mettre dans un inventaire, mais pas dans un coffre, c'est assez gênant...
Merci pour votre aide :).