PabloEduardo

Marionetas

Jun 5th, 2022 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.69 KB | None | 0 0
  1. on damage:
  2. if victim is set:
  3. if name of attacker contains "&7Marioneta Salamandra":
  4. set {_Arena} to name of attacker
  5. set {_Killer} to subtext of {_Arena} from characters 24 to (the length of {_Arena})
  6. if name of attacker contains "&7Marioneta Hormiga":
  7. set {_Arena} to name of attacker
  8. set {_Killer} to subtext of {_Arena} from characters 21 to (the length of {_Arena})
  9. if name of attacker contains "&2Marioneta Venenosa":
  10. set {_Arena} to name of attacker
  11. set {_Killer} to subtext of {_Arena} from characters 22 to (the length of {_Arena})
  12. if name of attacker contains "&aMarioneta Sello":
  13. set {_Arena} to name of attacker
  14. set {_Killer} to subtext of {_Arena} from characters 19 to (the length of {_Arena})
  15. if name of attacker contains "&cM Madre":
  16. set {_Arena} to name of attacker
  17. set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
  18. if name of attacker contains "&dMarioneta Kazekage":
  19. set {_Arena} to name of attacker
  20. set {_Killer} to subtext of {_Arena} from characters 22 to (the length of {_Arena})
  21. if name of attacker contains "&6Marioneta Anbu":
  22. set {_Arena} to name of attacker
  23. set {_Killer} to subtext of {_Arena} from characters 18 to (the length of {_Arena})
  24. if name of attacker contains "&7Marioneta":
  25. set {_Arena} to name of attacker
  26. set {_Killer} to subtext of {_Arena} from characters 13 to (the length of {_Arena})
  27. if name of attacker contains "&dABReina":
  28. set {_Arena} to name of attacker
  29. set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
  30. if name of attacker contains "&eDokis":
  31. set {_Arena} to name of attacker
  32. set {_Killer} to subtext of {_Arena} from characters 9 to (the length of {_Arena})
  33. if name of attacker contains "&eKamatari":
  34. set {_Arena} to name of attacker
  35. set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
  36. if name of attacker contains "&dBabosa" or "&7Secuaz" or "&6Secuaz":
  37. set {_Arena} to name of attacker
  38. set {_Killer} to subtext of {_Arena} from characters 10 to (the length of {_Arena})
  39. if name of attacker contains "&dGamabunta":
  40. set {_Arena} to name of attacker
  41. set {_Killer} to subtext of {_Arena} from characters 13 to (the length of {_Arena})
  42. if name of attacker contains "&cBiju" or "&dBaku" or "&dAoda":
  43. set {_Arena} to name of attacker
  44. set {_Killer} to subtext of {_Arena} from characters 8 to (the length of {_Arena})
  45. loop all players:
  46. if name of attacker contains "&c%{Invocacion.Prefijo.%loop-player%}% %loop-player%":
  47. set {_Killer} to loop-player
  48. if {_Killer} is set:
  49. if damage is greater than health of victim:
  50. set {_Killer} to {_Killer} parsed as player
  51. make {_Killer} damage victim by 2000
  52. stop
  53. command /MarionetaSalamandra [<text>]:
  54. permission: MarionetaSalamandra
  55. cooldown: 90 seconds
  56. cooldown message: &6Disponible dentro de 90 segundos.
  57. trigger:
  58. if arg 1 is "arrelgar":
  59. set {Invocacion.Esperando.MarionetaSalamandra.%player%} to false
  60. send "&aFix aplicado"
  61. if arg 1 contains "Invocar":
  62. if {Invocacion.Esperando.MarionetaSalamandra.%player%} is true:
  63. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  64. else:
  65. set {Invocacion.Acciones.MarionetaSalamandra} to enchanted book named "&8&o(S+D) &9Bomba Toxica &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Bomba Humo"
  66. set {Invocacion.Eliminar.MarionetaSalamandra} to paper named "&cEliminar Marioneta Salamandra"
  67. give {Invocacion.Eliminar.MarionetaSalamandra} to player
  68. give {Invocacion.Acciones.MarionetaSalamandra} to player
  69. set {Invocacion.Activacion.MarionetaSalamandra.%player%} to true
  70. set {Invocacion.Esperando.MarionetaSalamandra.%player%} to true
  71. set {_npcsombra} to a citizen with name "&7Marioneta Salamandra %player%" and entity type "ZOMBIE"
  72. wait 1 tick
  73. spawn npc {_npcsombra} at location of player
  74. set {Invocacion.Residual.MarionetaSalamandra.%player%} to {_npcsombra}
  75. set {_npcid} to id of npc {_npcsombra}
  76. #Hat y Vulnerabilidad
  77. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Salamandra"
  78. make console execute command "/npc sel %{_npcid}%"
  79. make console execute command "/npc vulnerable"
  80. #Salud
  81. set citizen {_npcid} max health to 80
  82.  
  83. heal citizen {_npcid}
  84. apply slowness 2 to citizen {_npcid} for 99999 seconds
  85. apply strength 2 to citizen {_npcid} for 99999 seconds
  86. apply resistance 2 to citizen {_npcid} for 99999 seconds
  87. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  88. on right click:
  89. if player's tool is {Invocacion.Acciones.MarionetaSalamandra}:
  90. if player is sneaking:
  91. if targeted entity is set:
  92. if name of targeted entity is "&7Marioneta Salamandra %player%":
  93. send "&c[Error] &fEstas apuntando a tu Invocación."
  94. stop
  95. else:
  96. if {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is not set:
  97. set {Invocacion.BombaToxicaMarionetaSalamandra.%player%} to 0
  98. if {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is less than 1:
  99. set {Invocacion.BombaToxicaMarionetaSalamandra.%player%} to 90
  100. make target run command "/cast BombaToxicaMarioneta" as op
  101. send "&6[Invocacion] &f¡Bomba Toxica!" to player
  102. send "&6[Invocacion] &f¡Bomba Toxica!" to target
  103. while {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is more than 0:
  104. subtract 1 from {Invocacion.BombaToxicaMarionetaSalamandra.%player%}
  105. wait 1 second
  106. else:
  107. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaSalamandra.%player%}%&7&os )" to player
  108. stop
  109. else:
  110. force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to follow player with aggressive state false
  111. on left click:
  112. if player's tool is {Invocacion.Eliminar.MarionetaSalamandra}:
  113. delete npc {Invocacion.Residual.MarionetaSalamandra.%player%}
  114. delete {Invocacion.BombaToxicaMarionetaSalamandra.%player%}
  115. delete {Invocacion.Residual.MarionetaSalamandra.%player%}
  116. delete {Invocacion.HumoMarionetaSalamandra.%player%}
  117. remove {Invocacion.Eliminar.MarionetaSalamandra} from player's inventory
  118. remove {Invocacion.Acciones.MarionetaSalamandra} from player's inventory
  119. set {Invocacion.Esperando.MarionetaSalamandra.%player%} to false
  120. set {Invocacion.Activacion.MarionetaSalamandra.%player%} to true
  121. if player's tool is {Invocacion.Acciones.MarionetaSalamandra}:
  122. if player is sneaking:
  123. if targeted entity is set:
  124. if name of targeted entity is "&7Marioneta Salamandra %player%":
  125. send "&c[Error] &fEstas apuntando a tu Invocación."
  126. stop
  127. else:
  128. if {Invocacion.HumoMarionetaSalamandra.%player%} is not set:
  129. set {Invocacion.HumoMarionetaSalamandra.%player%} to 0
  130. if {Invocacion.HumoMarionetaSalamandra.%player%} is less than 1:
  131. set {Invocacion.HumoMarionetaSalamandra.%player%} to 60
  132. force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to attack targeted entity with aggressive state true
  133. make target run command "/cast BombaHumoMarioneta" as op
  134. send "&6[Invocacion] &f¡Bomba de Humo!" to player
  135. send "&6[Invocacion] &f¡Bomba de Humo!" to target
  136. while {Invocacion.HumoMarionetaSalamandra.%player%} is more than 0:
  137. subtract 1 from {Invocacion.HumoMarionetaSalamandra.%player%}
  138. wait 1 second
  139. else:
  140. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaSalamandra.%player%}%&7&os )" to player
  141. stop
  142. else:
  143. if targeted entity is set:
  144. if name of targeted entity is "&7Marioneta Salamandra %player%":
  145. send "&c[Error] &fEstas apuntando a tu Invocación."
  146. stop
  147. else:
  148. force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to attack targeted entity with aggressive state true
  149. on death:
  150. loop all players:
  151. if name of victim contains "&7Marioneta Salamandra %loop-player%":
  152. if {Invocacion.Activacion.MarionetaSalamandra.%loop-player%} is true:
  153. delete npc {Invocacion.Residual.MarionetaSalamandra.%loop-player%}
  154. delete {Invocacion.Residual.MarionetaSalamandra.%loop-player%}
  155. delete {Invocacion.BombaToxicaMarionetaSalamandra.%loop-player%}
  156. delete {Invocacion.HumoMarionetaSalamandra.%loop-player%}
  157. remove {Invocacion.Eliminar.MarionetaSalamandra} from loop-player's inventory
  158. remove {Invocacion.Acciones.MarionetaSalamandra} from loop-player's inventory
  159. set {Invocacion.Esperando.MarionetaSalamandra.%loop-player%} to false
  160. set {Invocacion.Activacion.MarionetaSalamandra.%loop-player%} to true
  161. send "&6[Invocacion]&f Tu &7Marioneta Salamandra&f acaba de despawnear a manos de &6%attacker%" to loop-player
  162. on damage:
  163. if name of attacker contains "&7Marioneta Hormiga":
  164. chance of 10%:
  165. send "&6[Invocacion]&f ¡Picadura!" to victim
  166. apply potion of poison of tier 2 to victim for 5 seconds
  167. apply potion of weakness of tier 1 to victim for 5 seconds
  168. apply potion of nausea of tier 3 to victim for 4 seconds
  169. apply potion of slowness of tier 1 to victim for 5 seconds
  170. command /MarionetaHormiga [<text>]:
  171. permission: MarionetaHormiga
  172. cooldown: 90 seconds
  173. cooldown message: &6Disponible dentro de 90 segundos.
  174. trigger:
  175. if arg 1 is "arrelgar":
  176. set {Invocacion.Esperando.MarionetaHormiga.%player%} to false
  177. send "&aFix aplicado"
  178. if arg 1 contains "Invocar":
  179. if {Invocacion.Esperando.MarionetaHormiga.%player%} is true:
  180. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  181. else:
  182. set {Invocacion.Acciones.MarionetaHormiga} to enchanted book named "&8&o(S+D) &9Picadura Grave &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Ocultamiento"
  183. set {Invocacion.Eliminar.MarionetaHormiga} to paper named "&cEliminar Marioneta Hormiga"
  184. give {Invocacion.Eliminar.MarionetaHormiga} to player
  185. give {Invocacion.Acciones.MarionetaHormiga} to player
  186. set {Invocacion.Activacion.MarionetaHormiga.%player%} to true
  187. set {Invocacion.Esperando.MarionetaHormiga.%player%} to true
  188. set {_npcsombra} to a citizen with name "&7Marioneta Hormiga %player%" and entity type "SILVERFISH"
  189. wait 1 tick
  190. spawn npc {_npcsombra} at location of player
  191. set {Invocacion.Residual.MarionetaHormiga.%player%} to {_npcsombra}
  192. set {_npcid} to id of npc {_npcsombra}
  193. #Hat y Vulnerabilidad
  194. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Hormiga"
  195. make console execute command "/npc sel %{_npcid}%"
  196. make console execute command "/npc vulnerable"
  197. #Salud
  198. set citizen {_npcid} max health to 50
  199.  
  200. heal citizen {_npcid}
  201. apply speed 4 to citizen {_npcid} for 99999 seconds
  202. apply strength 2 to citizen {_npcid} for 99999 seconds
  203. apply resistance 2 to citizen {_npcid} for 99999 seconds
  204. #apply invisibility 3 to citizen {_npcid} for 99999 seconds
  205. on right click:
  206. if player's tool is {Invocacion.Acciones.MarionetaHormiga}:
  207. if player is sneaking:
  208. if targeted entity is set:
  209. if name of targeted entity is "&7Marioneta Hormiga %player%":
  210. send "&c[Error] &fEstas apuntando a tu Invocación."
  211. stop
  212. else:
  213. if {Invocacion.BombaToxicaMarionetaHormiga.%player%} is not set:
  214. set {Invocacion.BombaToxicaMarionetaHormiga.%player%} to 0
  215. if {Invocacion.BombaToxicaMarionetaHormiga.%player%} is less than 1:
  216. set {Invocacion.BombaToxicaMarionetaHormiga.%player%} to 20
  217. force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
  218. wait 5 ticks
  219. teleport npc {Invocacion.Residual.MarionetaHormiga.%player%} to location of target
  220. make player damage target by 6
  221. send "&6[Invocacion] &f¡Picadura Grave!" to player
  222. send "&6[Invocacion] &f¡Picadura Grave!" to target
  223. while {Invocacion.BombaToxicaMarionetaHormiga.%player%} is more than 0:
  224. subtract 1 from {Invocacion.BombaToxicaMarionetaHormiga.%player%}
  225. wait 1 second
  226. else:
  227. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaHormiga.%player%}%&7&os )" to player
  228. stop
  229. else:
  230. force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to follow player with aggressive state false
  231. on death:
  232. loop all players:
  233. if name of victim contains "&7Marioneta Hormiga %loop-player%":
  234. if {Invocacion.Activacion.MarionetaHormiga.%loop-player%} is true:
  235. delete npc {Invocacion.Residual.MarionetaHormiga.%loop-player%}
  236. delete {Invocacion.Residual.MarionetaHormiga.%loop-player%}
  237. delete {Invocacion.BombaToxicaMarionetaHormiga.%loop-player%}
  238. delete {Invocacion.HumoMarionetaHormiga.%loop-player%}
  239. remove {Invocacion.Eliminar.MarionetaHormiga} from loop-player's inventory
  240. remove {Invocacion.Acciones.MarionetaHormiga} from loop-player's inventory
  241. set {Invocacion.Esperando.MarionetaHormiga.%loop-player%} to false
  242. set {Invocacion.Activacion.MarionetaHormiga.%loop-player%} to true
  243. send "&6[Invocacion]&f Tu &7Marioneta Hormiga&f acaba de despawnear a manos de &6%attacker%" to loop-player
  244. on left click:
  245. if player's tool is {Invocacion.Eliminar.MarionetaHormiga}:
  246. delete npc {Invocacion.Residual.MarionetaHormiga.%player%}
  247. delete {Invocacion.BombaToxicaMarionetaHormiga.%player%}
  248. delete {Invocacion.Residual.MarionetaHormiga.%player%}
  249. delete {Invocacion.HumoMarionetaHormiga.%player%}
  250. remove {Invocacion.Eliminar.MarionetaHormiga} from player's inventory
  251. remove {Invocacion.Acciones.MarionetaHormiga} from player's inventory
  252. set {Invocacion.Esperando.MarionetaHormiga.%player%} to false
  253. set {Invocacion.Activacion.MarionetaHormiga.%player%} to true
  254. if player's tool is {Invocacion.Acciones.MarionetaHormiga}:
  255. if player is sneaking:
  256. if {Invocacion.HumoMarionetaHormiga.%player%} is not set:
  257. set {Invocacion.HumoMarionetaHormiga.%player%} to 0
  258. if {Invocacion.HumoMarionetaHormiga.%player%} is less than 1:
  259. set {Invocacion.HumoMarionetaHormiga.%player%} to 60
  260. force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
  261. apply invisibility 3 to player for 15 seconds
  262. apply invisibility 3 to {Invocacion.Residual.MarionetaHormiga.%player%} for 15 seconds
  263. send "&6[Invocacion] &f¡Ocultamiento!" to player
  264. while {Invocacion.HumoMarionetaHormiga.%player%} is more than 0:
  265. subtract 1 from {Invocacion.HumoMarionetaHormiga.%player%}
  266. wait 1 second
  267. else:
  268. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaHormiga.%player%}%&7&os )" to player
  269. stop
  270. else:
  271. if targeted entity is set:
  272. if name of targeted entity is "&7Marioneta Hormiga %player%":
  273. send "&c[Error] &fEstas apuntando a tu Invocación."
  274. stop
  275. else:
  276. force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
  277. command /Marioneta [<text>]:
  278. permission: Marioneta
  279. cooldown: 30 seconds
  280. cooldown message: &6Disponible dentro de 30 segundos.
  281. trigger:
  282. if arg 1 is "reparar":
  283. set {Invocacion.Esperando.MarionetaSimple.%player%} to false
  284. send "&areparar aplicado"
  285. if arg 1 contains "Invocar":
  286. if {Invocacion.Esperando.MarionetaSimple.%player%} is true:
  287. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  288. else:
  289. set {Invocacion.Acciones.MarionetaSimple} to enchanted book named "&8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Bomba de Humo"
  290. set {Invocacion.Eliminar.MarionetaSimple} to paper named "&cEliminar Marioneta Simple"
  291. give {Invocacion.Eliminar.MarionetaSimple} to player
  292. give {Invocacion.Acciones.MarionetaSimple} to player
  293. set {_npcsombra} to a citizen with name "&7Marioneta %player%" and entity type "ZOMBIE"
  294. wait 1 tick
  295. set {Invocacion.Residual.MarionetaSimple.%player%} to {_npcsombra}
  296. spawn npc {_npcsombra} at location of player
  297. set {Invocacion.Activacion.MarionetaSimple.%player%} to true
  298. set {Invocacion.Esperando.MarionetaSimple.%player%} to true
  299. set {_npcid} to id of npc {_npcsombra}
  300. #Hat y Vulnerabilidad
  301. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta"
  302. make console execute command "/npc sel %{_npcid}%"
  303. make console execute command "/npc vulnerable"
  304. #Salud
  305. set citizen {_npcid} max health to 60
  306.  
  307. heal citizen {_npcid}
  308. apply speed 2 to citizen {_npcid} for 99999 seconds
  309. apply strength 2 to citizen {_npcid} for 99999 seconds
  310. apply resistance 3 to citizen {_npcid} for 99999 seconds
  311. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  312. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  313. on right click:
  314. if player's tool is {Invocacion.Acciones.MarionetaSimple}:
  315. force the npc {Invocacion.Residual.MarionetaSimple.%player%} to follow player with aggressive state false
  316. on death:
  317. loop all players:
  318. if name of victim contains "&7Marioneta %loop-player%":
  319. if {Invocacion.Activacion.MarionetaSimple.%loop-player%} is true:
  320. delete npc {Invocacion.Residual.MarionetaSimple.%loop-player%}
  321. delete {Invocacion.Residual.MarionetaSimple.%loop-player%}
  322. delete {Invocacion.HumoMSimple.%loop-player%}
  323. remove {Invocacion.Eliminar.MarionetaSimple} from loop-player's inventory
  324. remove {Invocacion.Acciones.MarionetaSimple} from loop-player's inventory
  325. set {Invocacion.Esperando.MarionetaSimple.%loop-player%} to false
  326. set {Invocacion.Activacion.MarionetaSimple.%loop-player%} to true
  327. send "&6[Invocacion]&f Tu &7Marioneta&f acaba de despawnear a manos de &6%attacker%" to loop-player
  328. on left click:
  329. if player's tool is {Invocacion.Eliminar.MarionetaSimple}:
  330. delete npc {Invocacion.Residual.MarionetaSimple.%player%}
  331. delete {Invocacion.Residual.MarionetaSimple.%player%}
  332. delete {Invocacion.HumoMSimple.%player%}
  333. remove {Invocacion.Eliminar.MarionetaSimple} from player's inventory
  334. remove {Invocacion.Acciones.MarionetaSimple} from player's inventory
  335. set {Invocacion.Esperando.MarionetaSimple.%player%} to false
  336. set {Invocacion.Activacion.MarionetaSimple.%player%} to true
  337. if player's tool is {Invocacion.Acciones.MarionetaSimple}:
  338. if player is sneaking:
  339. if targeted entity is set:
  340. if name of targeted entity is "&7Marioneta %player%":
  341. send "&c[Error] &fEstas apuntando a tu Invocación."
  342. stop
  343. else:
  344. if {Invocacion.HumoMSimple.%player%} is not set:
  345. set {Invocacion.HumoMSimple.%player%} to 0
  346. if {Invocacion.HumoMSimple.%player%} is less than 1:
  347. set {Invocacion.HumoMSimple.%player%} to 90
  348. force the npc {Invocacion.Residual.MarionetaSimple.%player%} to attack targeted entity with aggressive state true
  349. make target run command "/cast BombaHumoMarioneta" as op
  350. send "&6[Invocacion] &f¡Bomba de Humo!" to player
  351. send "&6[Invocacion] &f¡Bomba de Humo!" to target
  352. while {Invocacion.HumoMSimple.%player%} is more than 0:
  353. subtract 1 from {Invocacion.HumoMSimple.%player%}
  354. wait 1 second
  355. else:
  356. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMSimple.%player%}%&7&os )" to player
  357. stop
  358. else:
  359. if targeted entity is set:
  360. if name of targeted entity is "&7Marioneta %player%":
  361. send "&c[Error] &fEstas apuntando a tu Invocación."
  362. stop
  363. else:
  364. force the npc {Invocacion.Residual.MarionetaSimple.%player%} to attack targeted entity with aggressive state true
  365.  
  366. # MAnbu
  367. command /MarionetaAnbu [<text>]:
  368. permission: MarionetaAnbu
  369. cooldown: 250 seconds
  370. cooldown message: &6Disponible dentro de 80 segundos.
  371. trigger:
  372. if arg 1 is "reparar":
  373. set {Invocacion.Esperando.MarionetaAnbu.%player%} to false
  374. send "&areparar aplicado"
  375. if arg 1 contains "Invocar":
  376. if {Invocacion.Esperando.MarionetaAnbu.%player%} is true:
  377. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  378. else:
  379. set {Invocacion.Acciones.MarionetaAnbu} to enchanted book named "&8&o(S+D) &dSello Multiple &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Bomba de Humo"
  380. set {Invocacion.Eliminar.MarionetaAnbu} to paper named "&cEliminar Marioneta Anbu"
  381. give {Invocacion.Eliminar.MarionetaAnbu} to player
  382. give {Invocacion.Acciones.MarionetaAnbu} to player
  383. set {Invocacion.Activacion.MarionetaAnbu.%player%} to true
  384. set {Invocacion.Esperando.MarionetaAnbu.%player%} to true
  385. set {_npcsombra} to a citizen with name "&6Marioneta Anbu %player%" and entity type "ZOMBIE"
  386. wait 1 tick
  387. set {Invocacion.Residual.MarionetaAnbu.%player%} to {_npcsombra}
  388. spawn npc {_npcsombra} at location of player
  389. set {Invocacion.Esperando.MarionetaAnbu.%player%} to true
  390. set {_npcid} to id of npc {_npcsombra}
  391. #Hat y Vulnerabilidad
  392. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Anbu"
  393. make console execute command "/npc sel %{_npcid}%"
  394. make console execute command "/npc vulnerable"
  395. set citizen {_npcid} max health to 200
  396. heal citizen {_npcid}
  397. apply speed 7 to citizen {_npcid} for 99999 seconds
  398. apply strength 4 to citizen {_npcid} for 99999 seconds
  399. apply resistance 3 to citizen {_npcid} for 99999 seconds
  400. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  401.  
  402. on right click:
  403. if player's tool is {Invocacion.Acciones.MarionetaAnbu}:
  404. if player is sneaking:
  405. if targeted entity is set:
  406. if name of targeted entity is "&6Marioneta Anbu %player%":
  407. send "&c[Error] &fEstas apuntando a tu Invocación."
  408. stop
  409. else:
  410. if {Invocacion.SelloMultipleMarionetaAnbu.%player%} is not set:
  411. set {Invocacion.SelloMultipleMarionetaAnbu.%player%} to 0
  412. if {Invocacion.SelloMultipleMarionetaAnbu.%player%} is less than 1:
  413. set {Invocacion.SelloMultipleMarionetaAnbu.%player%} to 60
  414. make player run command "/cast MarionetaSM" as op
  415. send "&6[Invocacion] &f¡Sello Multiple!" to player
  416. send "&6[Invocacion] &f¡Sello Multiple!" to target
  417. teleport npc {Invocacion.Residual.MarionetaAnbu.%player%} to player
  418. while {Invocacion.SelloMultipleMarionetaAnbu.%player%} is more than 0:
  419. subtract 1 from {Invocacion.SelloMultipleMarionetaAnbu.%player%}
  420. wait 1 second
  421. else:
  422. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.SelloMultipleMarionetaAnbu.%player%}%&7&os )" to player
  423. stop
  424. else:
  425. force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to follow player with aggressive state false
  426. on death:
  427. loop all players:
  428. if name of victim contains "&6Marioneta Anbu %loop-player%":
  429. if {Invocacion.Activacion.MarionetaAnbu.%loop-player%} is true:
  430. delete npc {Invocacion.Residual.MarionetaAnbu.%loop-player%}
  431. delete {Invocacion.Residual.MarionetaAnbu.%loop-player%}
  432. delete {Invocacion.SelloMultipleMarionetaAnbu.%loop-player%}
  433. delete {Invocacion.HumoMarionetaAnbu.%loop-player%}
  434. remove {Invocacion.Eliminar.MarionetaAnbu} from loop-player's inventory
  435. remove {Invocacion.Acciones.MarionetaAnbu} from loop-player's inventory
  436. set {Invocacion.Esperando.MarionetaAnbu.%loop-player%} to false
  437. set {Invocacion.Activacion.MarionetaAnbu.%loop-player%} to true
  438. send "&6[Invocacion]&f Tu &6Marioneta Anbu&f acaba de despawnear a manos de &6%attacker%" to loop-player
  439. on left click:
  440. if player's tool is {Invocacion.Eliminar.MarionetaAnbu}:
  441. delete npc {Invocacion.Residual.MarionetaAnbu.%player%}
  442. delete {Invocacion.Residual.MarionetaAnbu.%player%}
  443. delete {Invocacion.SelloMultipleMarionetaAnbu.%player%}
  444. delete {Invocacion.HumoMarionetaAnbu.%player%}
  445. remove {Invocacion.Eliminar.MarionetaAnbu} from player's inventory
  446. remove {Invocacion.Acciones.MarionetaAnbu} from player's inventory
  447. set {Invocacion.Esperando.MarionetaAnbu.%player%} to false
  448. set {Invocacion.Activacion.MarionetaAnbu.%player%} to true
  449. if player's tool is {Invocacion.Acciones.MarionetaAnbu}:
  450. if player is sneaking:
  451. if targeted entity is set:
  452. if name of targeted entity is "&6Marioneta Anbu %player%":
  453. send "&c[Error] &fEstas apuntando a tu Invocación."
  454. stop
  455. else:
  456. if {Invocacion.HumoMarionetaAnbu.%player%} is not set:
  457. set {Invocacion.HumoMarionetaAnbu.%player%} to 0
  458. if {Invocacion.HumoMarionetaAnbu.%player%} is less than 1:
  459. set {Invocacion.HumoMarionetaAnbu.%player%} to 90
  460. force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to attack targeted entity with aggressive state true
  461. make target run command "/cast BombaHumoMarioneta" as op
  462. send "&6[Invocacion] &f¡Bomba de Humo!" to player
  463. send "&6[Invocacion] &f¡Bomba de Humo!" to target
  464. while {Invocacion.HumoMarionetaAnbu.%player%} is more than 0:
  465. subtract 1 from {Invocacion.HumoMarionetaAnbu.%player%}
  466. wait 1 second
  467. else:
  468. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaAnbu.%player%}%&7&os )" to player
  469. stop
  470. else:
  471. if targeted entity is set:
  472. if name of targeted entity is "&6Marioneta Anbu %player%":
  473. send "&c[Error] &fEstas apuntando a tu Invocación."
  474. stop
  475. else:
  476. force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to attack targeted entity with aggressive state true
  477.  
  478. #MKaze
  479. on damage:
  480. if name of attacker contains "&dMarioneta Kazekage" or "Marioneta Kazekage":
  481. chance of 15%:
  482. send "&6[Invocacion] &f¡Sello Kazekage!" to victim
  483. make victim run command "/cast MarionetaSelloKazekage" as op
  484.  
  485. command /MarionetaKazekage [<text>]:
  486. permission: MarionetaKazekage
  487. cooldown: 200 seconds
  488. cooldown message: &6Disponible dentro de 150 segundos.
  489. trigger:
  490. if arg 1 is "reparar":
  491. set {Invocacion.Esperando.MarionetaKazekage.%player%} to false
  492. send "&areparar aplicado"
  493. if arg 1 contains "Invocar":
  494. if {Invocacion.Esperando.MarionetaKazekage.%player%} is true:
  495. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  496. else:
  497. set {Invocacion.Acciones.MarionetaKazekage} to enchanted book named "&8&o(S+D) &dSubida Multiple &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &9Piramide"
  498. set {Invocacion.Eliminar.MarionetaKazekage} to paper named "&cEliminar Marioneta Kazekage"
  499. give {Invocacion.Eliminar.MarionetaKazekage} to player
  500. give {Invocacion.Acciones.MarionetaKazekage} to player
  501. set {Invocacion.Activacion.MarionetaKazekage.%player%} to true
  502. set {Invocacion.Esperando.MarionetaKazekage.%player%} to true
  503. set {_npcsombra} to a citizen with name "&dMarioneta Kazekage %player%" and entity type "ZOMBIE"
  504. wait 1 tick
  505. set {Invocacion.Residual.MarionetaKazekage.%player%} to {_npcsombra}
  506. spawn npc {_npcsombra} at location of player
  507. set {_npcid} to id of npc {_npcsombra}
  508. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Kazekage"
  509. make console execute command "/npc sel %{_npcid}%"
  510. make console execute command "/npc vulnerable"
  511. set citizen {_npcid} max health to 500
  512. heal citizen {_npcid}
  513. apply speed 7 to citizen {_npcid} for 99999 seconds
  514. apply strength 5 to citizen {_npcid} for 99999 seconds
  515. apply resistance 3 to citizen {_npcid} for 99999 seconds
  516. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  517. on right click:
  518. if player's tool is {Invocacion.Acciones.MarionetaKazekage}:
  519. if player is sneaking:
  520. if targeted entity is set:
  521. if name of targeted entity is "&dMarioneta Kazekage %player%":
  522. send "&c[Error] &fEstas apuntando a tu Invocación."
  523. stop
  524. else:
  525. if {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is not set:
  526. set {Invocacion.SubidaMultipleMarionetaKazekage.%player%} to 0
  527. if {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is less than 1:
  528. set {Invocacion.SubidaMultipleMarionetaKazekage.%player%} to 6
  529. force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
  530. make player run command "/cast SubidaMultiplearenahM" as op
  531. send "&6[Invocacion] &f¡Subida Multiple!" to player
  532. send "&6[Invocacion] &f¡Subida Multiple!" to target
  533. while {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is more than 0:
  534. subtract 1 from {Invocacion.SubidaMultipleMarionetaKazekage.%player%}
  535. wait 1 second
  536. else:
  537. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.SubidaMultipleMarionetaKazekage.%player%}%&7&os )" to player
  538. stop
  539. else:
  540. force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to follow player with aggressive state false
  541. on death:
  542. loop all players:
  543. if name of victim contains "&dMarioneta Kazekage %loop-player%":
  544. if {Invocacion.Activacion.MarionetaKazekage.%loop-player%} is true:
  545. delete npc {Invocacion.Residual.MarionetaKazekage.%loop-player%}
  546. delete {Invocacion.Residual.MarionetaKazekage.%loop-player%}
  547. delete {Invocacion.SubidaMultipleMarionetaKazekage.%loop-player%}
  548. delete {Invocacion.PiramideMarionetaKazekage.%loop-player%}
  549. remove {Invocacion.Eliminar.MarionetaKazekage} from loop-player's inventory
  550. remove {Invocacion.Acciones.MarionetaKazekage} from loop-player's inventory
  551. set {Invocacion.Esperando.MarionetaKazekage.%loop-player%} to false
  552. set {Invocacion.Activacion.MarionetaKazekage.%loop-player%} to true
  553. send "&6[Invocacion]&f Tu &dMarioneta Kazekage&f acaba de despawnear a manos de &6%attacker%" to loop-player
  554. on left click:
  555. if player's tool is {Invocacion.Eliminar.MarionetaKazekage}:
  556. delete npc {Invocacion.Residual.MarionetaKazekage.%player%}
  557. delete {Invocacion.Residual.MarionetaKazekage.%player%}
  558. delete {Invocacion.SubidaMultipleMarionetaKazekage.%player%}
  559. delete {Invocacion.PiramideMarionetaKazekage.%player%}
  560. remove {Invocacion.Eliminar.MarionetaKazekage} from player's inventory
  561. remove {Invocacion.Acciones.MarionetaKazekage} from player's inventory
  562. set {Invocacion.Esperando.MarionetaKazekage.%player%} to false
  563. set {Invocacion.Activacion.MarionetaKazekage.%player%} to true
  564. if player's tool is {Invocacion.Acciones.MarionetaKazekage}:
  565. if player is sneaking:
  566. if targeted entity is set:
  567. if name of targeted entity is "&dMarioneta Kazekage %player%":
  568. send "&c[Error] &fEstas apuntando a tu Invocación."
  569. stop
  570. else:
  571. if {Invocacion.PiramideMarionetaKazekage.%player%} is not set:
  572. set {Invocacion.PiramideMarionetaKazekage.%player%} to 0
  573. if {Invocacion.PiramideMarionetaKazekage.%player%} is less than 1:
  574. set {Invocacion.PiramideMarionetaKazekage.%player%} to 120
  575. force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
  576. make console execute command "cast teach %player% PiramideKaze"
  577. make target run command "/cast PiramideKaze" as op
  578. make console execute command "cast forget %player% PiramideKaze"
  579. send "&6[Invocacion] &f¡Piramide!" to player
  580. send "&6[Invocacion] &f¡Piramide!" to target
  581. while {Invocacion.PiramideMarionetaKazekage.%player%} is more than 0:
  582. subtract 1 from {Invocacion.PiramideMarionetaKazekage.%player%}
  583. wait 1 second
  584. else:
  585. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.PiramideMarionetaKazekage.%player%}%&7&os )" to player
  586. stop
  587. else:
  588. if targeted entity is set:
  589. if name of targeted entity is "&dMarioneta Kazekage %player%":
  590. send "&c[Error] &fEstas apuntando a tu Invocación."
  591. stop
  592. else:
  593. force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
  594. #Sello
  595. on damage:
  596. if name of attacker contains "&aMarioneta Sello":
  597. chance of 15%:
  598. send "&6[Invocacion] &f¡Sello Basico!" to victim
  599. make victim run command "/cast MarionetaSelloBasico" as op
  600. chance of 20%:
  601. send "&6[Invocacion] &f¡Puñalada!" to victim
  602. make attacker damage victim by 7
  603.  
  604. command /MarionetaSello [<text>]:
  605. permission: MarionetaSello
  606. cooldown: 180 seconds
  607. cooldown message: &6Disponible dentro de 180 segundos.
  608. trigger:
  609. if arg 1 is "reparar":
  610. set {Invocacion.Esperando.MarionetaSello.%player%} to false
  611. send "&areparar aplicado"
  612. if arg 1 contains "Invocar":
  613. if {Invocacion.Esperando.MarionetaSello.%player%} is true:
  614. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  615. else:
  616. set {Invocacion.Acciones.MarionetaSello} to enchanted book named "&8&o(D) &dSeguir &f/ &8&o(I) &cAtacar"
  617. set {Invocacion.Eliminar.MarionetaSello} to paper named "&cEliminar Marioneta Sello"
  618. give {Invocacion.Eliminar.MarionetaSello} to player
  619. give {Invocacion.Acciones.MarionetaSello} to player
  620. set {Invocacion.Activacion.MarionetaSello.%player%} to true
  621. set {Invocacion.Esperando.MarionetaSello.%player%} to true
  622. set {_npcsombra} to a citizen with name "&aMarioneta Sello %player%" and entity type "ZOMBIE"
  623. wait 1 tick
  624. set {Invocacion.Residual.MarionetaSello.%player%} to {_npcsombra}
  625. spawn npc {_npcsombra} at location of player
  626. set {_npcid} to id of npc {_npcsombra}
  627. make console execute command "/npc sel %{_npcid}%"
  628. make console execute command "/npc vulnerable"
  629. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Sello"
  630. set citizen {_npcid} max health to 80
  631. heal citizen {_npcid}
  632. apply speed 7 to citizen {_npcid} for 99999 seconds
  633. apply strength 4 to citizen {_npcid} for 99999 seconds
  634. apply resistance 2 to citizen {_npcid} for 99999 seconds
  635. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  636. on right click:
  637. if player's tool is {Invocacion.Acciones.MarionetaSello}:
  638. force the npc {Invocacion.Residual.MarionetaSello.%player%} to follow player with aggressive state false
  639. on death:
  640. loop all players:
  641. if name of victim contains "&aMarioneta Sello %loop-player%":
  642. if {Invocacion.Activacion.MarionetaSello.%loop-player%} is true:
  643. delete npc {Invocacion.Residual.MarionetaSello.%loop-player%}
  644. delete {Invocacion.Residual.MarionetaSello.%loop-player%}
  645. #delete {Invocacion.SubidaMultipleMarionetaKazekage.%loop-player%}
  646. #delete {Invocacion.PiramideMarionetaKazekage.%loop-player%}
  647. remove {Invocacion.Eliminar.MarionetaSello} from loop-player's inventory
  648. remove {Invocacion.Acciones.MarionetaSello} from loop-player's inventory
  649. set {Invocacion.Esperando.MarionetaSello.%loop-player%} to false
  650. set {Invocacion.Activacion.MarionetaSello.%loop-player%} to true
  651. send "&6[Invocacion]&f Tu &aMarioneta Sello&f acaba de despawnear a manos de &6%attacker%" to loop-player
  652. on left click:
  653. if player's tool is {Invocacion.Eliminar.MarionetaSello}:
  654. delete npc {Invocacion.Residual.MarionetaSello.%player%}
  655. delete {Invocacion.Residual.MarionetaSello.%player%}
  656. remove {Invocacion.Eliminar.MarionetaSello} from player's inventory
  657. remove {Invocacion.Acciones.MarionetaSello} from player's inventory
  658. set {Invocacion.Esperando.MarionetaSello.%player%} to false
  659. set {Invocacion.Activacion.MarionetaSello.%player%} to true
  660. if player's tool is {Invocacion.Acciones.MarionetaSello}:
  661. if targeted entity is set:
  662. if name of targeted entity is "&aMarioneta Sello %player%":
  663. send "&c[Error] &fEstas apuntando a tu Invocación."
  664. stop
  665. else:
  666. force the npc {Invocacion.Residual.MarionetaSello.%player%} to attack targeted entity with aggressive state true
  667. #Madre
  668. on damage:
  669. if name of attacker contains "&cM Madre":
  670. chance of 15%:
  671. send "&6[Invocacion] &f¡Bomba de Humo!" to victim
  672. make victim run command "/cast Madre1" as op
  673. chance of 20%:
  674. send "&6[Invocacion] &f¡Golpe Fuerte!" to victim
  675. make attacker damage victim by 6
  676. #chance of 5%:
  677. # send "&6[Invocacion] &f¡Sello!" to victim
  678. # make victim run command "/cast MarionetaSelloBasico" as op
  679. command /MadreMarioneta [<text>]:
  680. permission: MarionetaMadre
  681. cooldown: 100 seconds
  682. cooldown message: &6Disponible dentro de 100 segundos.
  683. trigger:
  684. if arg 1 is "reparar":
  685. set {Invocacion.Esperando.MadreMarioneta.%player%} to false
  686. if arg 1 contains "Invocar":
  687. if {Invocacion.Esperando.MadreMarioneta.%player%} is true:
  688. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  689. else:
  690. set {Invocacion.Acciones.MadreMarioneta} to book named "&8&o(S+D) &aBomba Toxica &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Bomba de Humo"
  691. set {Invocacion.Eliminar.MadreMarioneta} to paper named "&cEliminar Marioneta Madre"
  692. give {Invocacion.Eliminar.MadreMarioneta} to player
  693. give {Invocacion.Acciones.MadreMarioneta} to player
  694. set {Invocacion.Activacion.MadreMarioneta.%player%} to true
  695. set {Invocacion.Esperando.MadreMarioneta.%player%} to true
  696. set {_npcsombra} to a citizen with name "&cM Madre %player%" and entity type "ZOMBIE"
  697. wait 1 tick
  698. set {Invocacion.Residual.MadreMarioneta.%player%} to {_npcsombra}
  699. spawn npc {_npcsombra} at location of player
  700. set {_npcid} to id of npc {_npcsombra}
  701. set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Madre"
  702. make console execute command "/npc sel %{_npcid}%"
  703. make console execute command "/npc vulnerable"
  704. set citizen {_npcid} max health to 200
  705. heal citizen {_npcid}
  706. apply speed 5 to citizen {_npcid} for 99999 seconds
  707. apply strength 4 to citizen {_npcid} for 99999 seconds
  708. apply resistance 3 to citizen {_npcid} for 99999 seconds
  709. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  710. on right click:
  711. if player's tool is {Invocacion.Acciones.MadreMarioneta}:
  712. if player is sneaking:
  713. if targeted entity is set:
  714. if name of targeted entity is "&cM Madre %player%":
  715. send "&c[Error] &fEstas apuntando a tu Invocación."
  716. stop
  717. else:
  718. if {Invocacion.BombaToxicaMadreMarioneta.%player%} is not set:
  719. set {Invocacion.BombaToxicaMadreMarioneta.%player%} to 0
  720. if {Invocacion.BombaToxicaMadreMarioneta.%player%} is less than 1:
  721. set {Invocacion.BombaToxicaMadreMarioneta.%player%} to 30
  722. force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
  723. make target run command "/cast BombaToxicaMarioneta" as op
  724. send "&6[Invocacion] &f¡Bomba Toxica!" to player
  725. send "&6[Invocacion] &f¡Bomba Toxica!" to target
  726. while {Invocacion.BombaToxicaMadreMarioneta.%player%} is more than 0:
  727. subtract 1 from {Invocacion.BombaToxicaMadreMarioneta.%player%}
  728. wait 1 second
  729. else:
  730. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMadreMarioneta.%player%}%&7&os )" to player
  731. stop
  732. else:
  733. force the npc {Invocacion.Residual.MadreMarioneta.%player%} to follow player with aggressive state false
  734. on death:
  735. loop all players:
  736. if name of victim contains "&cM Madre %loop-player%":
  737. if {Invocacion.Activacion.MadreMarioneta.%loop-player%} is true:
  738. delete npc {Invocacion.Residual.MadreMarioneta.%loop-player%}
  739. delete {Invocacion.Residual.MadreMarioneta.%loop-player%}
  740. delete {Invocacion.BombaToxicaMadreMarioneta.%loop-player%}
  741. delete {Invocacion.HumoMadreMarioneta.%loop-player%}
  742. remove {Invocacion.Eliminar.MadreMarioneta} from loop-player's inventory
  743. remove {Invocacion.Acciones.MadreMarioneta} from loop-player's inventory
  744. set {Invocacion.Esperando.MadreMarioneta.%loop-player%} to false
  745. set {Invocacion.Activacion.MadreMarioneta.%loop-player%} to true
  746. send "&6[Invocacion]&f Tu &cM Madre&f acaba de despawnear a manos de &6%attacker%" to loop-player
  747. on left click:
  748. if player's tool is {Invocacion.Eliminar.MadreMarioneta}:
  749. delete npc {Invocacion.Residual.MadreMarioneta.%player%}
  750. delete {Invocacion.BombaToxicaMadreMarioneta.%player%}
  751. delete {Invocacion.Residual.MadreMarioneta.%player%}
  752. delete {Invocacion.HumoMadreMarioneta.%player%}
  753. remove {Invocacion.Eliminar.MadreMarioneta} from player's inventory
  754. remove {Invocacion.Acciones.MadreMarioneta} from player's inventory
  755. set {Invocacion.Esperando.MadreMarioneta.%player%} to false
  756. set {Invocacion.Activacion.MadreMarioneta.%player%} to true
  757. if player's tool is {Invocacion.Acciones.MadreMarioneta}:
  758. if player is sneaking:
  759. if targeted entity is set:
  760. if name of targeted entity is "&cM Madre %player%":
  761. send "&c[Error] &fEstas apuntando a tu Invocación."
  762. stop
  763. else:
  764. if {Invocacion.HumoMadreMarioneta.%player%} is not set:
  765. set {Invocacion.HumoMadreMarioneta.%player%} to 0
  766. if {Invocacion.HumoMadreMarioneta.%player%} is less than 1:
  767. set {Invocacion.HumoMadreMarioneta.%player%} to 50
  768. force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
  769. make target run command "/cast BombaHumoMarioneta" as op
  770. send "&6[Invocacion] &f¡Bomba de Humo!" to player
  771. send "&6[Invocacion] &f¡Bomba de Humo!" to target
  772. while {Invocacion.HumoMadreMarioneta.%player%} is more than 0:
  773. subtract 1 from {Invocacion.HumoMadreMarioneta.%player%}
  774. wait 1 second
  775. else:
  776. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMadreMarioneta.%player%}%&7&os )" to player
  777. stop
  778. else:
  779. if targeted entity is set:
  780. if name of targeted entity is "&cM Madre %player%":
  781. send "&c[Error] &fEstas apuntando a tu Invocación."
  782. stop
  783. else:
  784. force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
  785. #
  786. on any movement:
  787. if {Efectos.Paralizis.%player%} is true:
  788. cancel event
  789. wait 2 seconds
  790. set {Efectos.Paralizis.%player%} to false
  791. on damage:
  792. if name of attacker contains "&2Marioneta Venenosa":
  793. chance of 6%:
  794. send "&6[Invocacion]&f ¡Paralizis!" to victim
  795. set {Efectos.Paralizis.%victim%} to true
  796. wait 2 seconds
  797. set {Efectos.Paralizis.%victim%} to false
  798. chance of 15%:
  799. send "&6[Invocacion]&f ¡Picadura!" to victim
  800. apply potion of poison of tier 4 to victim for 45 seconds
  801. apply potion of weakness of tier 2 to victim for 25 seconds
  802. apply potion of nausea of tier 5 to victim for 12 seconds
  803. apply potion of slowness of tier 2 to victim for 12 seconds
  804. command /MarionetaVeneno [<text>]:
  805. permission: MarionetaVeneno
  806. cooldown: 45 seconds
  807. cooldown message: &6Disponible dentro de 45 segundos.
  808. trigger:
  809. if arg 1 is "reparar":
  810. set {Invocacion.Esperando.MarionetaVeneno.%player%} to false
  811. send "&areparar aplicado"
  812. if arg 1 contains "Invocar":
  813. if {Invocacion.Esperando.MarionetaVeneno.%player%} is true:
  814. send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
  815. else:
  816. set {Invocacion.Acciones.MarionetaVeneno} to enchanted book named "&8&o(S+D) &2Bomba Toxica &f/ &8&o(D) &dSeguir &f/ &8&o(I) &cAtacar &f/ &8&o(S+I) &7Bomba de Humo"
  817. set {Invocacion.Eliminar.MarionetaVeneno} to paper named "&cEliminar Marioneta Venenosa"
  818. give {Invocacion.Eliminar.MarionetaVeneno} to player
  819. give {Invocacion.Acciones.MarionetaVeneno} to player
  820. set {Invocacion.Activacion.MarionetaVeneno.%player%} to true
  821. set {Invocacion.Esperando.MarionetaVeneno.%player%} to true
  822. set {_npcsombra} to a citizen with name "&2Marioneta Venenosa %player%" and entity type "SPIDER"
  823. wait 1 tick
  824. set {Invocacion.Residual.MarionetaVeneno.%player%} to {_npcsombra}
  825. spawn npc {_npcsombra} at location of player
  826. set {_npcid} to id of npc {_npcsombra}
  827. #Hat y Vulnerabilidad
  828. make console execute command "/npc sel %{_npcid}%"
  829. make console execute command "/npc vulnerable"
  830. set citizen {_npcid} max health to 80
  831. heal citizen {_npcid}
  832. apply speed 5 to citizen {_npcid} for 99999 seconds
  833. apply strength 4 to citizen {_npcid} for 99999 seconds
  834. apply resistance 3 to citizen {_npcid} for 99999 seconds
  835. apply invisibility 3 to citizen {_npcid} for 99999 seconds
  836. on right click:
  837. if player's tool is {Invocacion.Acciones.MarionetaVeneno}:
  838. if player is sneaking:
  839. if targeted entity is set:
  840. if name of targeted entity is "&2Marioneta Venenosa %player%":
  841. send "&c[Error] &fEstas apuntando a tu Invocación."
  842. stop
  843. else:
  844. if {Invocacion.BombaToxicaMarionetaVeneno.%player%} is not set:
  845. set {Invocacion.BombaToxicaMarionetaVeneno.%player%} to 0
  846. if {Invocacion.BombaToxicaMarionetaVeneno.%player%} is less than 1:
  847. set {Invocacion.BombaToxicaMarionetaVeneno.%player%} to 20
  848. force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
  849. make target run command "/cast BombaToxicaMarioneta" as op
  850. send "&6[Invocacion] &f¡Bomba Toxica!" to player
  851. send "&6[Invocacion] &f¡Bomba Toxica!" to target
  852. while {Invocacion.BombaToxicaMarionetaVeneno.%player%} is more than 0:
  853. subtract 1 from {Invocacion.BombaToxicaMarionetaVeneno.%player%}
  854. wait 1 second
  855. else:
  856. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaVeneno.%player%}%&7&os )" to player
  857. stop
  858. else:
  859. force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to follow player with aggressive state false
  860. on death:
  861. loop all players:
  862. if name of victim contains "&2Marioneta Venenosa %loop-player%":
  863. if {Invocacion.Activacion.MarionetaVeneno.%loop-player%} is true:
  864. delete npc {Invocacion.Residual.MarionetaVeneno.%loop-player%}
  865. delete {Invocacion.Residual.MarionetaVeneno.%loop-player%}
  866. delete {Invocacion.BombaToxicaMarionetaVeneno.%loop-player%}
  867. delete {Invocacion.HumoMarionetaVeneno.%loop-player%}
  868. remove {Invocacion.Eliminar.MarionetaVeneno} from loop-player's inventory
  869. remove {Invocacion.Acciones.MarionetaVeneno} from loop-player's inventory
  870. set {Invocacion.Esperando.MarionetaVeneno.%loop-player%} to false
  871. set {Invocacion.Activacion.MarionetaVeneno.%loop-player%} to true
  872. send "&6[Invocacion]&f Tu &2Marioneta Venenosa&f acaba de despawnear a manos de &6%attacker%" to loop-player
  873. on left click:
  874. if player's tool is {Invocacion.Eliminar.MarionetaVeneno}:
  875. delete npc {Invocacion.Residual.MarionetaVeneno.%player%}
  876. delete {Invocacion.BombaToxicaMarionetaVeneno.%player%}
  877. delete {Invocacion.Residual.MarionetaVeneno.%player%}
  878. delete {Invocacion.HumoMarionetaVeneno.%player%}
  879. remove {Invocacion.Eliminar.MarionetaVeneno} from player's inventory
  880. remove {Invocacion.Acciones.MarionetaVeneno} from player's inventory
  881. set {Invocacion.Esperando.MarionetaVeneno.%player%} to false
  882. set {Invocacion.Activacion.MarionetaVeneno.%player%} to true
  883. if player's tool is {Invocacion.Acciones.MarionetaVeneno}:
  884. if player is sneaking:
  885. if targeted entity is set:
  886. if name of targeted entity is "&2Marioneta Venenosa %player%":
  887. send "&c[Error] &fEstas apuntando a tu Invocación."
  888. stop
  889. else:
  890. if {Invocacion.HumoMarionetaVeneno.%player%} is not set:
  891. set {Invocacion.HumoMarionetaVeneno.%player%} to 0
  892. if {Invocacion.HumoMarionetaVeneno.%player%} is less than 1:
  893. set {Invocacion.HumoMarionetaVeneno.%player%} to 50
  894. force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
  895. make target run command "/cast BombaHumoMarioneta" as op
  896. send "&6[Invocacion] &f¡Bomba de Humo!" to player
  897. send "&6[Invocacion] &f¡Bomba de Humo!" to target
  898. while {Invocacion.HumoMarionetaVeneno.%player%} is more than 0:
  899. subtract 1 from {Invocacion.HumoMarionetaVeneno.%player%}
  900. wait 1 second
  901. else:
  902. send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaVeneno.%player%}%&7&os )" to player
  903. stop
  904. else:
  905. if targeted entity is set:
  906. if name of targeted entity is "&2Marioneta Venenosa %player%":
  907. send "&c[Error] &fEstas apuntando a tu Invocación."
  908. stop
  909. else:
  910. force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
Add Comment
Please, Sign In to add comment