Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pcm.Mobs} = "zombie,skeleton,zombie pigman"
- #--------- Détection des actions courantes nécessaire au script ---------
- on region enter:
- #set {pcm.currentRegion} to region
- on chat:
- clear {pcm.currentChat}
- if {pcm.addDungeon.chat} is true:
- if message is "oui":
- set {pcm.currentChat} to "oui"
- else if message is "non":
- set {pcm.currentChat} to "non"
- set {pcm.response} to true
- set {pcm.addDungeon.chat} to false
- #----------------------------------- / -----------------------------------
- command /dj help:
- trigger:
- message "<yellow>-------- Commandes principales --------"
- message "<yellow>/addDungeon"
- message "<yellow>/addMob"
- command /addDungeon:
- trigger:
- if {pcm.currentRegion} isn't empty:
- set {pcm.addDungeon.chat} to true
- message "<cyan>La région actuelle est %{pcm.currentRegion}%"
- message "<yellow>Souhaitez vous lier cette region à votre donjon ? (oui ou non)"
- set {_timer} to 0
- set {pcm.response} to false
- while {pcm.response} is false:
- wait 3 seconds
- add 1 to {_timer}
- if {_timer} is larger than 3:
- message "<pink>Aucun réponse, annulation de la commande..."
- stop trigger
- if {pcm.currentChat} contain "oui":
- set {pcm.region::*} to {pcm.currentRegion}
- message "<light green> Votre donjon à bien été ajouté"
- stop trigger
- else if {pcm.currentChat} contain "non":
- message "<yellow>Placer-vous dans une autre région et répéter la commande /addDungeon"
- stop trigger
- else:
- message "<pink>Veuillez vous placer dans une region"
- command /addMobs:
- trigger:
- set {pcm.listMobs::*} to {Mobs} split at ","
- message "<yellow>-------- Mobs disponibles --------"
- loop {pcm.listMobs::*}:
- message "<yellow>%loop-index% : %loop-value%"
Advertisement
Add Comment
Please, Sign In to add comment