Aller au contenu

Kwizzy

Membre
  • Compteur de contenus

    262
  • Inscription

  • Dernière visite

  • Jours gagnés

    5

Tout ce qui a été posté par Kwizzy

  1. Kwizzy

    Hotel des ventes

    @SaladeNuggets
  2. Kwizzy

    Boîte Mystère V1

    C'est parce que vous n'avez pas les bon addons, perso ça marche.
  3. Kwizzy

    Hotel des ventes

    Que se passe t-il quand le gui est pleins ? Tu as pensé un système de pagination ou pas ? ^^ Je viens de voir quelque chose d'horrible XD. Pourquoi tu n'utilise pas les ::* ? Là de ce que j'ai compris tu peux mettre qu'un item en hdv c'est ça ?
  4. Kwizzy

    Variable ::* Loop-value

    plop
  5. Kwizzy

    Boîte Mystère V1

    Je l'ai mis. :)
  6. Kwizzy

    Variable ::* Loop-value

    Non, je viens d'essayé ..
  7. Kwizzy

    Variable ::* Loop-value

    Dans tous les cas il faut que je la set à 0 après..
  8. OMG... Tu te compliques vraiment la vie ... xD Sinon merci pour le tutoriel que tu apportes à skript-mc, l'intention est bonne ! ;)
  9. Kwizzy

    Variable ::* Loop-value

    Bonjour, j'ai un petit problème, la variable ne veut pas se mettre à 0 @Chouyoux : [spoiler=Code] on join: loop {joueurs.apo::*}: "%player%" is "%loop-value%" set {_deja_dedans} to true {_deja_dedans} is not set add "%player%" to {joueurs.apo::*} command /trigger: trigger: loop {joueurs.apo::*}: set {APO.point.%loop-value%} to 0 broadcast "%{APO.point.%loop-value%}%" send "%{joueurs.apo::*}%" send "%{APO.point.%player%}%" # -> http://prntscr.com/7u8vrj
  10. Pas du tout compatible avec bungeecord. Je vais t'expliquer quelque chose. Quand on dit compatible avec Bungeecord c'est pour dire ça se passe sur tous les serveurs. Or là, c'est pas le cas. Si t'es banni sur un serveur A tu n'es pas banni sur un serveur B étant donné que tes variables sont locales. Autre point ton système de bannissement est vraiment très simple tu aurais du te cassé un peu plus la tête . Voilà deux skript de ban que j'ai commencé mais jamais finis : [spoiler=Code] # /sanction joueur text text # /sanction <player> tempban chiffre raison # /sanction <player> kick raison # /sanction <player> ban raison # /sanction <player> mute chiffre raison # /sanction <player> warn raison # |ID|PLAYER|UUID|SANCTION(type)|RAISON|TEMPS|AUTEUR| script options: $ db url jdbc:mysql://localhost:3306/skript $ db username root $ db password ****** options: table: sanction on script load: update "CREATE TABLE IF NOT EXISTS `{@table}` (`ID` varchar(255),`PSEUDO` varchar(255),`UUID` varchar(255),`SANCTION` varchar(255),`RAISON` varchar(255),`TEMPS` varchar(255),`AUTEUR` varchar(255),`DATE` varchar(255))" update "CREATE TABLE IF NOT EXISTS `LastBan` (`PSEUDO` varchar(255),`UUID` varchar(255),`TIMELASTBAN` varchar(255),`LASTRAISON` varchar(255),`LASTNOW` varchar(255))" on join: wait 2 ticks set {_tempban.maintenant::*} to objects in column "TIMELASTBAN" from result of query "SELECT * FROM `Lastban` WHERE `UUID` = '%UUID of player%'" wait 2 ticks set {_tempban.raison::*} to objects in column "LASTRAISON" from result of query "SELECT * FROM `Lastban` WHERE `UUID` = '%UUID of player%'" wait 2 ticks set {_tempban.now::*} to objects in column "LASTNOW" from result of query "SELECT * FROM `Lastban` WHERE `UUID` = '%UUID of player%'" wait 2 ticks set {_maintenantduban} to "%{_tempban.maintenant::*}%" parsed as timespan set {_Count} to "%{_tempban.now::*}%" parsed as timespan if difference between {_Count} and now is smaller than {_maintenantduban}: send "bla" wait 2 ticks set {_wait} to difference between now and {_maintenantduban} reduce {_Count} by {_wait} set {_Count} to "%{_Count}%" parsed as text replace "s" with "" in {_Count} replace "econd" with "seconde(s)" in {_Count} replace "minute" with "minute(s)" in {_Count} replace "and" with "et" in {_Count} replace "hour" with "heure(s)" in {_Count} replace "day" with "jour(s)" in {_Count} kick player due to "&fTu as temporairement été banni(e) pour :%nl%&a%{_tempban.raison::*}%%nl%&fIl reste : &a%{_Count}%" set join message to "" wait 2 ticks hide player to all players else: reveal player to all players set {DB_.tempban.%UUID of player%} to false clear {DB_.tempban.raison.%UUID of player%} clear {DB_.tempban.temps.%UUID of player%} clear {DB_.tempban.maintenant.%UUID of player%} command /sanctiontempban [<player>] [<integer>] [<text>]: trigger: if arg 1 is set: if arg 2 is set: if arg 3 is set: if has permission "pala.sanction": if {DB_.tempban.%UUID of arg 1%} is false: set {_tempban.nom} to arg 1 set {_tempban} to "Tempban" parsed as text set {DB_.tempban.raison.%UUID of arg 1%} to arg 3 set {_tempban.auteur} to player set {DB_.tempban.temps.%UUID of arg 1%} to "%arg 2% minutes" parsed as timespan set {DB_.tempban.%UUID of arg 1%} to true set {DB_.tempban.maintenant.%UUID of arg 1%} to now update "INSERT INTO `{@table}` (`ID`, `PSEUDO`, `UUID`, `SANCTION`, `RAISON`, `TEMPS`, `AUTEUR`,`DATE`) VALUES ('%{id.%UUID of player%}%', '%{_tempban.nom}%', '%UUID of {_tempban.nom}%', '%{_tempban}%', '%{DB_.tempban.raison.%UUID of player%}%', '%{DB_.tempban.temps.%UUID of arg 1%}%', '%{_tempban.auteur}%', '%now%')" if {1sttempban.%UUID of arg 1%} is not set: update "INSERT INTO `LastBan` (`PSEUDO`, `UUID`, `TIMELASTBAN`, `LASTRAISON`, `LASTNOW`) VALUES ('%arg 1%', '%UUID of arg 1%', '%{DB_.tempban.temps.%UUID of arg 1%}%', '%{DB_.tempban.raison.%UUID of arg 1%}%', '%{DB_.tempban.maintenant.%UUID of arg 1%}%')" kick arg 1 due to "&fTu as temporairement été banni(e) pour :%nl%&a%{DB_.tempban.raison.%UUID of arg 1%}%%nl%&fIl reste : &a%{DB_.tempban.temps.%UUID of arg 1%}%" set {1sttempban.%UUID of arg 1%} to true else: wait 3 ticks update "UPDATE `LastBan` SET `LastBan`.`PSEUDO` = '%arg 1%' WHERE `LastBan`.`UUID` = '%UUID of player%'" wait 3 ticks update "UPDATE `LastBan` SET `LastBan`.`UUID` = '%UUID of arg 1%' WHERE `LastBan`.`UUID` = '%UUID of player%'" wait 3 ticks update "UPDATE `LastBan` SET `LastBan`.`TIMELASTBAN` = '%{DB_.tempban.temps.%UUID of arg 1%}%' WHERE `LastBan`.`UUID` = '%UUID of arg 1%'" wait 3 ticks update "UPDATE `LastBan` SET `LastBan`.`LASTRAISON` = '%{DB_.tempban.raison.%UUID of arg 1%}%' WHERE `LastBan`.`UUID` = '%UUID of arg 1%'" wait 3 ticks update "UPDATE `LastBan` SET `LastBan`.`LASTNOW` = '%{DB_.tempban.maintenant.%UUID of arg 1%}%' WHERE `LastBan`.`UUID` = '%UUID of arg 1%'" kick arg 1 due to "&fTu as temporairement été banni(e) pour :%nl%&a%{DB_.tempban.raison.%UUID of arg 1%}%%nl%&fIl reste : &a%{DB_.tempban.temps.%UUID of arg 1%}%" else: send "&cTu n'as pas la permission de faire cette commande." else: send "&cTu dois préciser une raison !" else: send "&cPrécise un temps en minutes" else: send "&cPrécise un joueur" et #MAX MODERATION # = Configuration = # options: Already_banned: &cCe joueur est déjà bannis. Ban_message: &cTu as été bannis pour %arg 2%. ban_message_on_join: &cTu as été bannis pour %{ban.reason.%player%}%. Unban_message_to_admin: &cUnban %arg 1% ! Unban_Fail: &cCe joueur n'est pas bannis ! # = Permission = # # perm.ban = /ban <player> # perm.unban = /unban <player> # = BAN DEF = # command /ban [<offlineplayer>] [<text>]: trigger: if player has Permission "perm.ban": if arg 1 is set: if {ban.banned.%arg 1%} is true: send "&c{@Already_banned}" to player if arg 1 is set: if arg 2 is set: set {ban.banned.%arg 1%} to true kick the arg 1 due to "{@Ban_message}" set {ban.reason.%arg 1%} to "%arg 2%" add arg 1 to yaml list "Banned" from file "Banned.yml" set yaml value "Banned.%arg 1%.Raison" from file "MaxModeration/Banned.yml" to "%arg 2%" set yaml value "Banned.%arg 1%.Bannis" from file "MaxModeration/Banned.yml" to "oui" if arg 1 is not set: send "&c/ban <player> <raison>" on join: if {ban.banned.%player%} is true: wait 5 ticks kick the player due to "{@ban_message_on_join}" else: stop # = UNBAN = # command /unban [<offlineplayer>]: trigger: if {ban.banned.%arg 1%} is true: if player has Permission "perm.unban": if arg 1 is online: set {ban.banned.%arg 1%} to false send "{@Unban_message_to_admin}" to console set yaml value "Banned.%arg 1%.Bannis" from file "MaxModeration/Banned.yml" to "non" else: clear {ban.banned.%arg 1%} send "{@Unban_message_to_admin}" to console set yaml value "Banned.%arg 1%.Bannis" from file "MaxModeration/Banned.yml" to "non" else: send "{@Unban_Fail}" to player
  11. Très belles présentation ! J'ai quelques ajouts à te proposer ! - Log des commandes - Log des commandes WE - Log des insultes - Log des commandes du faction Un config.yml pour activer/désactiver certaines options des logs. .. Sinon très bon skript !
  12. Kwizzy

    FriendSpoke

    MON DIEUX !!! Utilise les variables {_variable} ... toutes les variables sont gardés en mémoire là xD En plus ça t'évites de faire de les supprimés après.
  13. Kwizzy

    Keygen

    Merci :3
  14. Kwizzy

    Keygen

    Essayez ça : command /number: trigger: set {_key} to "%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%" while {keylist::*} contain "%{_key}%": send "&e** déjà dans la liste **" set {_key} to "%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%" add {_key} to {keylist::*} if folder "plugins/9codes/" doesn't exists: create folder "plugins/9codes/" if file "plugins/9codes/9codes.yml" doesn't exists: create file "plugins/9codes/9codes.yml" wf "%{_key}%" to "plugins/9codes/9codes.yml" send "%{_key}%" wait 0.5 tick execute console command "/number" stop Je suis pas encore une seule fois tomber sur une combinaison pareil xD. Besoin de wildskript.
  15. Kwizzy

    Keygen

    Ah d'accord :D. Très bon système alors.
  16. Kwizzy

    Boss Creator [0.2]

    Vraiment beau skript :3
  17. Kwizzy

    Keygen

    Bon skript, la chance que le joueur trouve la clé est vraiment infine xD Sais-tu combien de combinaison est-it possible avec 9 chiffres ? :') Voilà la réponse : Sum(10^k,k=1,9) = 1111111110
  18. Kwizzy

    Départ d'un région

    Attention pour information : Les on region enter/leave ne fonctionnent pas avec le plugin faction / massivecore.
  19. Kwizzy

    [0.1]Skit = Skript de 5 kits

    Je t'invite à essayer d'améliorer ton plugin de kit, en faisant des kits configurable dans l'inventaire. Ou ce genre de choses :D.
  20. Utilisez le code->lua au lieu de paste le code en brut.
  21. Kwizzy

    Particule Evolved

    Un peu plus de présentation non ? Là tu balance un hastebin. Je sais pas tu avais un métro à prendre ? Ou bien la flemme non je pense.
  22. C'est déplacé. Joris, tu aurais du utiliser le bouton "report".
  23. Kwizzy

    Menu Skript

    Pour information le "menu" comme tu dis ça s’appelle un gui :)
  24. Faudrait voir ça avec des contain, à mon avis :)
×
×
  • 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.