Advertisement
AurasPrivate

Arcane's Ranking System

Jun 29th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1.  
  2. #==================================================[ NPC ]==================================================#
  3.  
  4.  
  5.  
  6. on rightclick on zombie:
  7. if name of zombie is "&6&lBard":
  8. cancel event
  9. execute player command "/Bard"
  10. else if name of zombie is "&6&lDiamond":
  11. cancel event
  12. execute player command "/Diamond"
  13. else if name of zombie is "&6&lArcher":
  14. cancel event
  15. execute player command "/Archer"
  16. else if name of zombie is "&6&lRogue":
  17. cancel event
  18. execute player command "/Rogue"
  19.  
  20. on damage:
  21. if victim is a zombie:
  22. if name of victim is "&6&lBard" or "&6&lDiamond" or "&6&lArcher" or "&6&lRogue":
  23. cancel event
  24.  
  25. #==================================================[ Creathe ]==================================================#
  26.  
  27. command /KitMap [<text=help>] [<text>] [<text>]:
  28. permission: KitMap.ez
  29. permission message: &cYou do not have permission.
  30. trigger:
  31. if player is op:
  32. if arg 1 is "help":
  33. message "&9&m-------[ &6KitMap&8 ]&9&m-------"
  34. message " &7➜ &c/KitMap setnpc <Class.>"
  35. message " &7➜ &c/KitMap delnpc"
  36. message "&9&m-------[ &6KitMap&8 ]&9&m-------"
  37. stop
  38.  
  39. if arg 1 is "setnpc":
  40. if arg 2 is set:
  41. if arg 2 is "bard" or "Bard":
  42. set {npc.bard} to location of player
  43. wait 1 second
  44. spawn a Zombie at {npc.bard}
  45. apply slowness 1000 to last spawned entity for 9999 days
  46. set name of spawned entity to "&6&lBard"
  47. message "&7It has been created called &eBard&7."
  48. wait 1 second
  49. delete {npc.bard}
  50. else if arg 2 is "diamond" or "Diamond":
  51. set {npc.diamond} to location of player
  52. wait 1 second
  53. spawn a Zombie at {npc.diamond}
  54. apply slowness 1000 to last spawned entity for 9999 days
  55. set name of spawned entity to "&6&lDiamond"
  56. message "&7It has been created called &eDiamond&7."
  57. wait 1 second
  58. delete {npc.diamond}
  59. else if arg 2 is "archer" or "Archer":
  60. set {npc.archer} to location of player
  61. wait 1 second
  62. spawn a zombie at {npc.archer}
  63. apply slowness 1000 to last spawned entity for 9999 days
  64. set name of spawned entity to "&6&lArcher"
  65. message "&7It has been created called &eArcher&7."
  66. wait 1 second
  67. delete {npc.archer}
  68. else if arg 2 is "rogue" or "Rogue":
  69. set {npc.rogue} to location of player
  70. wait 1 second
  71. spawn a zombie at {npc.rogue}
  72. apply slowness 1000 to last spawned entity for 9999 days
  73. set name of spawned entity to "&6&lRogue"
  74. message "&7It has been created called &eRogue&7."
  75. wait 1 second
  76. delete {npc.rogue}
  77. if arg 1 is "delnpc":
  78. loop villagers in player's world:
  79. kill loop-entity
  80. message "&7 El NPC se ha eliminado."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement