Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- npc: &6[NPC]&e
- npcmd: "citizens:citizens" or "citizens:citizens2" or "citizens:npc2" or "citizens:sc" or "citizens:script" or "citizens:template" or "citizens:tpl" or "citizens:tr" or "citizens:trait" or "citizens:traitc" or "citizens:trc" or "citizens:waypoint" or "citizens:waypoints" or "citizens:wp" or "wp" or "waypoints" or "waypoint" or "trc" or "traitc" or "trait" or "tr" or "tpl" or "template" or "sc" or "script" or "citizens" or "citizens2" or "npc" or "npc2"
- on command:
- if command is {@npcmd}:
- send "&cCommande désactivé"
- send "&6/sknpc"
- cancel event
- command /sknpc [<text>] [<text>] [<offlineplayer>]:
- permission: npc.all
- permission message: Vous n'avez pas la permission de faire cette command
- trigger:
- if arg 1 is "add" or "spawn" or "summon" or "create":
- if arg 2 is set:
- if arg 3 is set:
- if {npc.point} is set:
- if {npc.cout.%player%} is not set:
- set {npc.cout.%player%} to 0
- add 1 to {npc.cout.%player%}
- create a citizen named "%arg 2%" at {npc.point}
- set {npc.create.%player%.%{npc.cout.%player%}%.id} to last created citizen id
- set {npc.create.%player%.%{npc.cout.%player%}%.name} to arg 2
- wait 2 ticks
- change citizen {npc.create.%player%.%{npc.cout.%player%}%.id} skin to "%arg 3%"
- send "{@npc} Vous vennez de crée un npc en %{npc.point}%"
- send "&6[NPC]&7 Id : %{npc.create.%player%.%{npc.cout.%player%}%.id}%"
- send "&6[NPC]&7 Nom : %{npc.create.%player%.%{npc.cout.%player%}%.name}%"
- else:
- send "&6[NPC]&c Vous n'avez pas définit de point d'apparition !"
- send "&6[NPC]&c - /sknpc setpoint&7 (le point sera définit à votre position)"
- stop
- else:
- make player execute command "/sknpc %arg 1% %arg 2% %arg 2%"
- else:
- send "&6[NPC]&c Vous devez donné un nom a votre NPC !"
- if arg 1 is "setpos" or "setpoint" or "spawnnpc":
- set {npc.point} to player's location
- send "{@npc} Vous vennez de définir le point de spawn de npc en %player's location%"
- if arg 1 is "list" or "liste":
- if arg 2 is set:
- if {npc.cout.%arg 2%} exists:
- send "{@npc} Liste des npc de %arg 2%"
- set {_nb} to 1
- if citizen {npc.cout.%arg 2%} exists:
- loop {npc.cout.%arg 2%} times:
- send "&6Npc%{_nb}%: &eId : %{npc.create.%arg 2%.%{_nb}%.id}%"
- send "&6Npc%{_nb}%: &eNom : %{npc.create.%arg 2%.%{_nb}%.name}%"
- send "&6Npc%{_nb}% ---- Fin"
- add 1 to {_nb}
- stop
- else:
- delete {npc.create.%arg 2%.%{_nb}%.id}
- delete {npc.create.%arg 2%.%{_nb}%.name}
- remove 1 from {npc.cout.%arg 2%}
- else:
- send "{@npc} &c%arg 2% n'a jamais créé de NPC"
- else:
- loop all offline players:
- if {npc.cout.%loop-value-1%} is set:
- send "{@npc} Liste des npc de %loop-value%"
- set {_nb} to 1
- loop {npc.cout.%loop-value-1%} times:
- if citizen {npc.create.%loop-value-1%.%{_nb}%.id} exists:
- send "&6Npc%{_nb}%: &eId : %{npc.create.%loop-value-1%.%{_nb}%.id}%"
- send "&6Npc%{_nb}%: &eNom : %{npc.create.%loop-value-1%.%{_nb}%.name}%"
- send "&6Npc%{_nb}% ---- Fin"
- add 1 to {_nb}
- stop
- else:
- delete {npc.create.%loop-value-1%.%{_nb}%.id}
- delete {npc.create.%loop-value-1%.%{_nb}%.name}
- remove 1 from {npc.cout.%loop-value-1%}
- if arg 1 is "remove" or "supp" or "rem" or "supprimer":
- if {npc.count.%player%} is set:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement