Je ne sais pas comment faire pour chekcer si un joueur à des coordonnées précises pour qu'il gagne, la par exemple, le joueur doit aller dans la base de l'adverse
command /coo:
trigger:
set {_x} to x-coordinate of player
set {_z} to z-coordinate of player
message " %{_x}% %{_z}%"
command /dofus [<text>] [<player>] [<player>]:
trigger:
if arg 1 is not set:
message "&6start &c<player> <player> &f-&3 Lancer la partie Dofus"
message "&6version &f-&3 Informations sur le script"
message "&6config &f-&3 Configurer le Dofus"
message "&6setup &f-&3 Definir les valeurs du Dofus"
message " &4Script en cours de développement ! "
else if arg 1 is "start":
if {dofusSetup} is true:
if arg 2 is set:
if arg 2 is arg 3:
message "Vous ne pouvez pas jouer vous même !"
else:
set {winCheck} to false
set {player1} to arg-2
set {player2} to arg-3
make player execute command "tp %arg-2% 187 253 146"
make player execute command "tp %arg-3% 187 253 194"
send arg-2 and arg-3 title "&9jte dis que cete un test -_-" with subtitle "&7Test" for 5 seconds
make player execute command "pfc"
set {player1}'s walk speed to 0
set {player2}'s walk speed to 0
set {jumpOff} to true
while {winCheck} is false:
if {FirstPN} is 0:
add 1 to {FirstPN}
F_vchest1()
else if {FirstPN} >= {SecondPN}:
F_vchest1()
else if {FirstPN} < {SecondPN}:
F_vchest2()
while {winCheck} is false:
#Code ????
else:
message "&7 Fais d'abbord /dofus setup"
else if arg 1 is "setup":
set {dofusSetup} to true
make player execute command "time set day"
set {jumpOff} to false
else if arg 1 is "version":
message "&6 Dofus Créé par MomoLeFr69 &f- &6 Avec l'imagination de Boc3481"
message "&3 Version 1.0.0 Beta 1.0.3ab"
message " &4 script en cours de développement"
command /pfc [<text>]:
trigger:
open virtual chest with 1 row to {player1} and {player2}
format slot 2 of {player1} with paper named "&ePapier" to close then run [make player execute command "/§choix %{player2}%papier"]
format slot 5 of {player1} with flint named "&bCaillou" to close then run [make player execute command "/§choix %{player2}% pierre"]
format slot 8 of {player1} with shears named "&aCiseau" to close then run [make player execute command "/§choix %{player2}% ciseau"]
format slot 3 of {player2} with paper named "&ePapier" to close then run [make player execute command "/§choix %{player1}% papier"]
format slot 5 of {player2} with flint named "&bCaillou" to close then run [make player execute command "/§choix %{player1}% pierre"]
format slot 8 of {player2} with shears named "&aCiseau" to close then run [make player execute command "/§choix %{player1}% ciseau"]
command /§choix <player> <text>:
trigger:
if arg 2 is "pierre":
set {choix.%{player1}%} to "pierre"
set {CPFC.%{player1}%} to true
if arg 2 is "papier":
set {choix.%{player1}%} to "papier"
set {CPFC.%{player1}%} to true
if arg 2 is "ciseau":
set {choix.%{player1}%} to "ciseau"
set {CPFC.%{player1}%} to true
send "&aEn attente de &c%{player2}% &a!" to {player1}
wait 5 ticks
open chest with 3 rows named "&6Voir Résultat" to {player1}
wait 2 ticks
format slot 13 of {player1} with paper named "&6Voir les résulats" to close then run [make {player1} execute command "/§resultOK %{player2}%"]
command /§ResultOK <player>:
trigger:
if {CPFC.%{player2}%} is true:
wait 3 ticks
open chest with 3 rows named "&6Résultat" to {player1}
wait 3 ticks
open chest with 3 rows named "&6Résultat" to {player2}
wait 2 ticks
format slot 9 of {player1} with {player1}'s skull named "&6%{player1}%" to be unstealable
format slot 9 of {player2} with {player1}'s skull named "&6%{player1}%" to be unstealable
format slot 17 of {player1} with skull of {player2} named "&6%{player2}%" to be unstealable
format slot 17 of {player2} with skull of {player2} named "&6%{player2}%" to be unstealable
format slot 4 of {player1} with white glass pane named "" to be unstealable
format slot 13 of {player1} with white glass pane named "" to be unstealable
format slot 22 of {player1} with white glass pane named "" to be unstealable
format slot 4 of {player2} with white glass pane named "" to be unstealable
format slot 13 of {player2} with white glass pane named "" to be unstealable
format slot 22 of {player2} with white glass pane named "" to be unstealable
if {choix.%{player1}%} is "pierre":
format slot 11 of {player1} with stone named "&3Pierre" to be unstealable
format slot 11 of {player2} with stone named "&3Pierre" to be unstealable
else if {choix.%{player1}%} is "papier":
format slot 11 of {player1} with paper named "&3Papier" to be unstealable
format slot 11 of {player2} with paper named "&3Papier" to be unstealable
else if {choix.%{player1}%} is "ciseau":
format slot 11 of {player1} with shears named "&3Ciseau" to be unstealable
format slot 11 of {player2} with shears named "&3Ciseau" to be unstealable
if {choix.%{player2}%} is "pierre":
format slot 15 of {player1} with stone named "&3Pierre" to be unstealable
format slot 15 of {player2} with stone named "&3Pierre" to be unstealable
else if {choix.%{player2}%} is "papier":
format slot 15 of {player1} with paper named "&3Papier" to be unstealable
format slot 15 of {player2} with paper named "&3Papier" to be unstealable
else if {choix.%{player2}%} is "ciseau":
format slot 15 of {player1} with shears named "&3Ciseau" to be unstealable
format slot 15 of {player2} with shears named "&3Ciseau" to be unstealable
wait 3 seconds
close {player1}'s inventory
close {player2}'s inventory
if {choix.%{player1}%} is "pierre":
if {choix.%{player2}%} is "pierre":
send "&4[PFC] &f> &6Egalité !" to {player1}
send "&4[PFC] &f> &6Egalité !" to {player2}
stop
if {choix.%{player2}%} is "papier":
send "&4[PFC] &f> &cPerdu !" to {player1}
send "&4[PFC] &f> &aGagné !" to {player2}
set {firstP} to {player2}
set {secondP} to {player1}
if {choix.%{player2}%} is "ciseau":
send "&4[PFC] &f> &aGagné !" to {player1}
send "&4[PFC] &f> &cPerdu !" to {player2}
set {firstP} to {player1}
set {secondP} to {player2}
if {choix.%{player1}%} is "papier":
if {choix.%{player2}%} is "pierre":
send "&4[PFC] &f> &aGagné !" to {player1}
send "&4[PFC] &f> &cPerdu !" to {player2}
set {firstP} to {player1}
set {secondP} to {player2}
stop
if {choix.%{player2}%} is "papier":
send "&4[PFC] &f> &6Egalité !" to {player1}
send "&4[PFC] &f> &6Egalité !" to {player2}
if {choix.%{player2}%} is "ciseau":
send "&4[PFC] &f> &cPerdu !" to {player1}
send "&4[PFC] &f> &aGagné !" to {player2}
set {firstP} to {player2}
set {secondP} to {player1}
if {choix.%{player1}%} is "ciseau":
if {choix.%{player2}%} is "pierre":
send "&4[PFC] &f> &cPerdu !" to {player1}
send "&4[PFC] &f> &aGagné !" to {player2}
set {firstP} to {player2}
set {secondP} to {player1}
stop
if {choix.%{player2}%} is "papier":
send "&4[PFC] &f> &aGagné !" to {player1}
send "&4[PFC] &f> &cPerdu !" to {player2}
set {firstP} to {player1}
set {secondP} to {player2}
if {choix.%{player2}%} is "ciseau":
send "&4[PFC] &f> &6Egalité !" to {player1}
send "&4[PFC] &f> &6Egalité !" to {player2}
delete {demande.%{player2}%.%{player1}%}
delete {demande.%{player1}%.%{player2}%}
delete {CPFC.%{player1}%}
delete {CPFC.%{player2}%}
delete {choix.%{player1}%}
delete {choix.%{player2}%}
delete {InGamePFC.%{player1}%}
delete {InGamePFC.%{player2}%}
else:
send "&cLe joueur n'as pas fait sont choix !" to {player1}
wait 3 ticks
open chest with 3 rows named "&6Voir Résultat" to {player1}
wait 2 ticks
format slot 13 of {player1} with paper named "&6Voir les résulats" to close then run [make {player1} execute command "/§resultOK %{player2}%"]
stop
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
MomoLeFr69
Version de Minecraft : 1.12.2
Version de Skript : 2.4.9 beta
Addons utilisés: MundoSK, SKellett, SkQuery, SkFall, Tuske
Type du skript : Mini jeu
Description du script :
Je ne sais pas comment faire pour chekcer si un joueur à des coordonnées précises pour qu'il gagne, la par exemple, le joueur doit aller dans la base de l'adverse
5 réponses à cette question
Messages recommandés