Comme le titre l'indique je rencontre un petit problème avec une fonction 😅
function menu(p: player,npc: text):
wait 0.2 seconds
close inventory of {_p}
wait 1 ticks
open chest with 5 rows named "Equipement des %{_npc}%s" to {_p}
if {%{_p}%.Money} < 5000:
format slot 19 of {_p} with Red Stained Glass Pane to be unstealable
format slot 11 of {_p} with Red Stained Glass Pane to be unstealable
format slot 29 of {_p} with Red Stained Glass Pane to be unstealable
else:
format slot 19 of {_p} with Green Stained Glass Pane to be unstealable
format slot 11 of {_p} with Green Stained Glass Pane to be unstealable
format slot 29 of {_p} with Green Stained Glass Pane to be unstealable
if {%{_p}%.Money} < 25000:
format slot 31 of {_p} with Red Stained Glass Pane to be unstealable
format slot 22 of {_p} with Red Stained Glass Pane to be unstealable
format slot 13 of {_p} with Red Stained Glass Pane to be unstealable
else:
format slot 31 of {_p} with Green Stained Glass Pane to be unstealable
format slot 22 of {_p} with Green Stained Glass Pane to be unstealable
format slot 13 of {_p} with Green Stained Glass Pane to be unstealable
if {%{_p}%.Money} < 50000:
format slot 24 of {_p} with Red Stained Glass Pane to be unstealable
else:
format slot 31 of {_p} with Green Stained Glass Pane to be unstealable
format slot 18 of {_p} with stick named "Stade1" to run [make {_p} say "/%{_npc}% 1"]
format slot 30 of {_p} with stick named "Stade2" to run [make {_p} execute command "/%{_npc}% 2"]
format slot 12 of {_p} with stick named "Stade2" to run [make {_p} execute command "/%{_npc}% 3"]
format slot 23 of {_p} with Blaze rod named "Stade3" to run [make {_p} execute command "/%{_npc}% 4"]
format slot 25 of {_p} with Blaze rod named "Stade4" to run [make {_p} execute command "/%{_npc}% 5"]
Ces une fonction assez basique mais je ne sais pour quelle raison les 5 dernières lignes ne fonctionne pas...
Révélation
Le menu marche bien mais rien ne ce passe quand je clic sur les différents items
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.
Question
010101012
Version de Minecraft : 1.12.2
Version de Skript : 2.2.5-alpha3
Addons utilisés: SkBee-1.1.0,SkQuery-Lime 4.1.2,TuSKe
Type du skript :
Description du script :
Bonjour à tous et as toute,
Comme le titre l'indique je rencontre un petit problème avec une fonction 😅
Ces une fonction assez basique mais je ne sais pour quelle raison les 5 dernières lignes ne fonctionne pas...
Le menu marche bien mais rien ne ce passe quand je clic sur les différents items
Merci de votre aide ^^
6 réponses à cette question
Messages recommandés