DrPsykoz
Membre-
Compteur de contenus
8 -
Inscription
-
Dernière visite
-
Crédits
0 [Faire un don]
Réputation sur la communauté
1 NeutreÀ propos de DrPsykoz
-
Rang
Nouveau
Visiteurs récents du profil
Le bloc de visiteurs récents est désactivé et il n’est pas visible pour les autres utilisateurs.
-
DrPsykoz a gagné Trophée Deux ans déjà ?
-
DrPsykoz a gagné Trophée Petit Nouveau
-
-
DrPsykoz submitted a new resource: [plain]Cookie Clicker[/plain] - [plain]Mini-jeu utilisable dans vos lobby / hub[/plain] Read more about this resource...
-
Reduire, c'est pas trop possible... j'ai créé un kobra pour que ce soit plus simple a expliquer .... [Contenu masqué]
-
Bonjour, j'aimerais savoir si il y a moyen d'optimiser ce skript... Il sert a créer un système de temps qui s'affiche en action bar mais avec beaucoup de joueurs il commence a générer un peux de latence... options: noperm: &c&l✖ Tu n'as pas la permission. on quit: set {timeur.%player%} to 0 on first join: wait 2 second set {timeur.%player%} to 1 set {time.%player%} to 14400 on join: wait 2 second set {timeur.%player%} to 1 every second: loop all players: if {timeur.%loop-player%} = 1: if loop-player is op: set action bar of loop-player to "&6&lTon grade te permet d'être immortel." else: if {time.%loop-player%} is equal to 0: add 7200 to {time.%loop-player%} set {_joueur} to loop-player bungeecord connect loop-player to "lobby" execute console command "/tempban %{_joueur}% 30m Tu est a cours de &c&lTEMPS&r. Merci de te reconnecter dans 30 minutes." execute console command "/tablist refresh" if {time.%loop-player%} is smaller than 0: add 7200 to {time.%loop-player%} set {_joueur} to loop-player bungeecord connect loop-player to "lobby" execute console command "/tempban %{_joueur}% 30m Tu est a cours de &c&lTEMPS&r. Merci de te reconnecter dans 30 minutes." execute console command "/tablist refresh" else: set {_total.%loop-player%} to {time.%loop-player%} while {_total.%loop-player%} > 59: add 1 to {_minutes.%loop-player%} remove 60 from {_total.%loop-player%} while {_minutes.%loop-player%} > 59: add 1 to {_heures.%loop-player%} remove 60 from {_minutes.%loop-player%} if {_heures.%loop-player%} is not set: set {_heures.%loop-player%} to 0 if {_minutes.%loop-player%} is not set: set {_minutes.%loop-player%} to 0 set action bar of loop-player to "&6&lTemps restant :&r %{_heures.%loop-player%}% H &l:&r %{_minutes.%loop-player%}% M &l:&r %{_total.%loop-player%}% S " remove 1 from {time.%loop-player%} command /reset <player>: trigger: player is op: set {time.%arg 1%} to 14400 message "&c&lRESET des variables de %arg 1% éffectué." else: send "{@noperm}" command /givetime <player> <number>: usage:/givetime PSEUDO TEMP (en minutes) trigger: player is op: set {_time} to arg 2 set {_givedtime} to {_time} * 60 add {_givedtime} to {time.%arg 1%} send "&9[&bFactionRun&9] &c&lGain de %{_givedtime}% secondes" to arg 1 else: send "{@noperm}" on right click with clock: if name of player's tool is "&b+ 30M": add 1800 to {time.%player%} send "&9[&bFactionRun&9] &c&lGain de 30 minutes" to player remove 1 clock named "&b+ 30M" from player's inventory else if name of player's tool is "&b+ 1H": add 3600 to {time.%player%} send "&9[&bFactionRun&9] &c&lGain de 1 heure" to player remove 1 clock named "&b+ 1H" from player's inventory else if name of player's tool is "&b+ 2H": add 7200 to {time.%player%} send "&9[&bFactionRun&9] &c&lGain de 2 heures" to player remove 1 clock named "&b+ 2H" from player's inventory command /pay <player> <number>: usage:/pay PSEUDO TEMP (en minutes) trigger: set {_time} to arg 2 set {_givedtime} to {_time} * 60 add {_givedtime} to {time.%arg 1%} remove {_givedtime} from {time.%player%} send "&9[&bFactionRun&9] &c&l%player% vient de t'envoyer : %{_time}% minutes" to arg 1 send "&9[&bFactionRun&9] &c&lTu viens d'envoyer %{_time}% minutes a %arg 1%" to player
-
Je viens de regler le beug... il suffisait de changer le "wait 1 tick" par "wait 3 tick" (ouverture des inventaires)
-
Je suis sous spigot... et je ne pense pas que sa vienne des plugins.... Je vais essayer de modifier ma version de spigot... Merci quand meme de ta reponse :)
-
Ok, merci de vos réponses... D'après ce que j'ai plus comprendre il m'est donc impossible de faire un inventaire de ce genre sans beug ? :/
-
Bonjour, J'ai un probleme avec mon skript, De temp a autres, les joueurs peuvent prendre les items dans mon /boutique... Alors qu'il ne sont pas censé pouvoir le faire :/ command /boutique [<number>]: trigger: if arg 1 is not set: open chest with 3 rows named "&6Boutique > &eAccueil" to player wait 1 tick format slot 11 of player with diamond pickaxe named "&6Items &e&lExclusifs" to run [make player execute command "/boutique 1"] format slot 13 of player with iron chestplate named "&6Grades &e&lTemporaires" to run [make player execute command "/boutique 2"] format slot 15 of player with mob spawner named "&6Spawners &e&lUnique" to run [make player execute command "/boutique 3"] format slot 26 of player with 166 named "&c&lQuitter la boutique" to close if arg 1 is 1: open chest with 3 rows named "&6Boutique > &eItems" to player wait 1 tick format slot 11 of player with golden pickaxe named "&e&lMarteau" to run [make player execute command "/shop hammer"] format slot 13 of player with golden hoe named "&e&lPied de biche" to run [make player execute command "/shop piedbiche"] format slot 18 of player with arrow named "&c&lRetour" to run [make player execute command "/boutique"] format slot 26 of player with 166 named "&c&lQuitter la boutique" to close if arg 1 is 2: open chest with 3 rows named "&6Boutique > &eGrades" to player wait 1 tick format slot 11 of player with leather chestplate named "&6Grade &e&lChevalier" with lore "&8&oGrade valable &7&o1 semaine||&8&oPrix : &7&o7200 s" to run [make player execute command "/shop chevalier"] format slot 13 of player with iron chestplate named "&6Grade &e&lNoble" with lore "&8&oGrade valable &7&o1 semaine||&8&oPrix : &7&o7200 s" to run [make player execute command "/shop noble"] format slot 15 of player with diamond chestplate named "&6Grade &e&lSeigneur" with lore "&8&oGrade valable &7&o1 semaine||&8&oPrix : &7&o7200 s" to run [make player execute command "/shop seigneur"] format slot 18 of player with arrow named "&c&lRetour" to run [make player execute command "/boutique"] format slot 26 of player with 166 named "&c&lQuitter la boutique" to close if arg 1 is 3: open chest with 3 rows named "&6Boutique > &eSpawner" to player wait 1 tick format slot 11 of player with diamond pickaxe named "&6Items &e&lExclusifs" to run [make player execute command "/boutique 1"] format slot 13 of player with iron chestplate named "&6Grades &e&lTemporaires" to run [make player execute command "/boutique 2"] format slot 15 of player with mob spawner named "&6Spawners &e&lUnique" to run [make player execute command "/boutique 3"] format slot 18 of player with arrow named "&c&lRetour" to run [make player execute command "/boutique"] format slot 26 of player with 166 named "&c&lQuitter la boutique" to close command /shop [<text>]: trigger: if arg 1 is not set: make player execute command "/boutique" if arg 1 is "hammer": ...... if arg 1 is "piedbiche": ........ if arg 1 is "chevalier": ....... if arg 1 is "noble": ...... if arg 1 is "seigneur": ..... command /buy [<text>]: trigger: if arg 1 is not set: make player execute command "/boutique" if arg 1 is "hammer": ..... if arg 1 is "piedbiche": ...... if arg 1 is "chevalier": ..... if arg 1 is "noble": ..... if arg 1 is "seigneur": ..... on command "/boutique" or "/shop" or "/buy": play raw sound "note.pling" at player with pitch 1 volume 10 Les "......" c'est juste qu'il y a trop de caractères... Bref, c'est un systeme hyper basique mais le probléme est que les joueurs peuvent drop ou prendre les items dnas leut inventaire perso puis les utiliser.. Est-ce un beug de skipt ? Ou ai-je mal fait mon code ?
-
Bonjour, J'ai un petit problème avec mon skript, every second: loop all players: if {timeur.%loop-player%} is equal to 1: if {time.%loop-player%} is between 1 and 100: remove 1 from {time.%loop-player%} set action bar of loop-player to "{@temp}" if {time.%loop-player%} is greater than 60: add 1 to {time.minutes.%loop-player%} remove 60 from {time.%loop-player%} else if {time.minutes.%loop-player%} is greater than 60: add 1 to {time.heure.%loop-player%} remove 60 from {time.minutes.%loop-player%} else if {time.%loop-player%} is equal to 0: if {time.minutes.%loop-player%} is greater than 0: add 60 to {time.%loop-player%} remove 1 from {time.minutes.%loop-player%} else if {time.heure.%loop-player%} is greater than 0: add 59 to {time.minutes.%loop-player%} remove 1 from {time.heure.%loop-player%} else: execute console command "/tempban %loop-player% 5s Tu est a cours de TEMPS" add 60 to {time.%loop-player%} Plus principalement a la ligne "set action bar of loop-player to "{@temp}"" J'obtien cette erreur quand je reload : There's no world in a periodic event if no world is given in the event (e.g like 'every hour in "world"') (Compteur.sk, line 23: set action bar of loop-player to "{@temp}"') Voila j'hespere que vous pourrez m'aider