Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if victim is set:
- if name of attacker contains "&7Marioneta Salamandra":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 24 to (the length of {_Arena})
- if name of attacker contains "&7Marioneta Hormiga":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 21 to (the length of {_Arena})
- if name of attacker contains "&2Marioneta Venenosa":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 22 to (the length of {_Arena})
- if name of attacker contains "&aMarioneta Sello":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 19 to (the length of {_Arena})
- if name of attacker contains "&cM Madre":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
- if name of attacker contains "&dMarioneta Kazekage":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 22 to (the length of {_Arena})
- if name of attacker contains "&6Marioneta Anbu":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 18 to (the length of {_Arena})
- if name of attacker contains "&7Marioneta":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 13 to (the length of {_Arena})
- if name of attacker contains "&dABReina":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
- if name of attacker contains "&eDokis":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 9 to (the length of {_Arena})
- if name of attacker contains "&eKamatari":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 11 to (the length of {_Arena})
- if name of attacker contains "&dBabosa" or "&7Secuaz" or "&6Secuaz":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 10 to (the length of {_Arena})
- if name of attacker contains "&dGamabunta":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 13 to (the length of {_Arena})
- if name of attacker contains "&cBiju" or "&dBaku" or "&dAoda":
- set {_Arena} to name of attacker
- set {_Killer} to subtext of {_Arena} from characters 8 to (the length of {_Arena})
- loop all players:
- if name of attacker contains "&c%{Invocacion.Prefijo.%loop-player%}% %loop-player%":
- set {_Killer} to loop-player
- if {_Killer} is set:
- if damage is greater than health of victim:
- set {_Killer} to {_Killer} parsed as player
- make {_Killer} damage victim by 2000
- stop
- command /MarionetaSalamandra [<text>]:
- permission: MarionetaSalamandra
- cooldown: 90 seconds
- cooldown message: &6Disponible dentro de 90 segundos.
- trigger:
- if arg 1 is "arrelgar":
- set {Invocacion.Esperando.MarionetaSalamandra.%player%} to false
- send "&aFix aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaSalamandra.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaSalamandra} to paper named "&cEliminar Marioneta Salamandra"
- give {Invocacion.Eliminar.MarionetaSalamandra} to player
- give {Invocacion.Acciones.MarionetaSalamandra} to player
- set {Invocacion.Activacion.MarionetaSalamandra.%player%} to true
- set {Invocacion.Esperando.MarionetaSalamandra.%player%} to true
- set {_npcsombra} to a citizen with name "&7Marioneta Salamandra %player%" and entity type "ZOMBIE"
- wait 1 tick
- spawn npc {_npcsombra} at location of player
- set {Invocacion.Residual.MarionetaSalamandra.%player%} to {_npcsombra}
- set {_npcid} to id of npc {_npcsombra}
- #Hat y Vulnerabilidad
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Salamandra"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- #Salud
- set citizen {_npcid} max health to 80
- heal citizen {_npcid}
- apply slowness 2 to citizen {_npcid} for 99999 seconds
- apply strength 2 to citizen {_npcid} for 99999 seconds
- apply resistance 2 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaSalamandra}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta Salamandra %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is not set:
- set {Invocacion.BombaToxicaMarionetaSalamandra.%player%} to 0
- if {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is less than 1:
- set {Invocacion.BombaToxicaMarionetaSalamandra.%player%} to 90
- make target run command "/cast BombaToxicaMarioneta" as op
- send "&6[Invocacion] &f¡Bomba Toxica!" to player
- send "&6[Invocacion] &f¡Bomba Toxica!" to target
- while {Invocacion.BombaToxicaMarionetaSalamandra.%player%} is more than 0:
- subtract 1 from {Invocacion.BombaToxicaMarionetaSalamandra.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaSalamandra.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to follow player with aggressive state false
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaSalamandra}:
- delete npc {Invocacion.Residual.MarionetaSalamandra.%player%}
- delete {Invocacion.BombaToxicaMarionetaSalamandra.%player%}
- delete {Invocacion.Residual.MarionetaSalamandra.%player%}
- delete {Invocacion.HumoMarionetaSalamandra.%player%}
- remove {Invocacion.Eliminar.MarionetaSalamandra} from player's inventory
- remove {Invocacion.Acciones.MarionetaSalamandra} from player's inventory
- set {Invocacion.Esperando.MarionetaSalamandra.%player%} to false
- set {Invocacion.Activacion.MarionetaSalamandra.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaSalamandra}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta Salamandra %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.HumoMarionetaSalamandra.%player%} is not set:
- set {Invocacion.HumoMarionetaSalamandra.%player%} to 0
- if {Invocacion.HumoMarionetaSalamandra.%player%} is less than 1:
- set {Invocacion.HumoMarionetaSalamandra.%player%} to 60
- force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaHumoMarioneta" as op
- send "&6[Invocacion] &f¡Bomba de Humo!" to player
- send "&6[Invocacion] &f¡Bomba de Humo!" to target
- while {Invocacion.HumoMarionetaSalamandra.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMarionetaSalamandra.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaSalamandra.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta Salamandra %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaSalamandra.%player%} to attack targeted entity with aggressive state true
- on death:
- loop all players:
- if name of victim contains "&7Marioneta Salamandra %loop-player%":
- if {Invocacion.Activacion.MarionetaSalamandra.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaSalamandra.%loop-player%}
- delete {Invocacion.Residual.MarionetaSalamandra.%loop-player%}
- delete {Invocacion.BombaToxicaMarionetaSalamandra.%loop-player%}
- delete {Invocacion.HumoMarionetaSalamandra.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaSalamandra} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaSalamandra} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaSalamandra.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaSalamandra.%loop-player%} to true
- send "&6[Invocacion]&f Tu &7Marioneta Salamandra&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on damage:
- if name of attacker contains "&7Marioneta Hormiga":
- chance of 10%:
- send "&6[Invocacion]&f ¡Picadura!" to victim
- apply potion of poison of tier 2 to victim for 5 seconds
- apply potion of weakness of tier 1 to victim for 5 seconds
- apply potion of nausea of tier 3 to victim for 4 seconds
- apply potion of slowness of tier 1 to victim for 5 seconds
- command /MarionetaHormiga [<text>]:
- permission: MarionetaHormiga
- cooldown: 90 seconds
- cooldown message: &6Disponible dentro de 90 segundos.
- trigger:
- if arg 1 is "arrelgar":
- set {Invocacion.Esperando.MarionetaHormiga.%player%} to false
- send "&aFix aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaHormiga.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaHormiga} to paper named "&cEliminar Marioneta Hormiga"
- give {Invocacion.Eliminar.MarionetaHormiga} to player
- give {Invocacion.Acciones.MarionetaHormiga} to player
- set {Invocacion.Activacion.MarionetaHormiga.%player%} to true
- set {Invocacion.Esperando.MarionetaHormiga.%player%} to true
- set {_npcsombra} to a citizen with name "&7Marioneta Hormiga %player%" and entity type "SILVERFISH"
- wait 1 tick
- spawn npc {_npcsombra} at location of player
- set {Invocacion.Residual.MarionetaHormiga.%player%} to {_npcsombra}
- set {_npcid} to id of npc {_npcsombra}
- #Hat y Vulnerabilidad
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Hormiga"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- #Salud
- set citizen {_npcid} max health to 50
- heal citizen {_npcid}
- apply speed 4 to citizen {_npcid} for 99999 seconds
- apply strength 2 to citizen {_npcid} for 99999 seconds
- apply resistance 2 to citizen {_npcid} for 99999 seconds
- #apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaHormiga}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta Hormiga %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.BombaToxicaMarionetaHormiga.%player%} is not set:
- set {Invocacion.BombaToxicaMarionetaHormiga.%player%} to 0
- if {Invocacion.BombaToxicaMarionetaHormiga.%player%} is less than 1:
- set {Invocacion.BombaToxicaMarionetaHormiga.%player%} to 20
- force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
- wait 5 ticks
- teleport npc {Invocacion.Residual.MarionetaHormiga.%player%} to location of target
- make player damage target by 6
- send "&6[Invocacion] &f¡Picadura Grave!" to player
- send "&6[Invocacion] &f¡Picadura Grave!" to target
- while {Invocacion.BombaToxicaMarionetaHormiga.%player%} is more than 0:
- subtract 1 from {Invocacion.BombaToxicaMarionetaHormiga.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaHormiga.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&7Marioneta Hormiga %loop-player%":
- if {Invocacion.Activacion.MarionetaHormiga.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaHormiga.%loop-player%}
- delete {Invocacion.Residual.MarionetaHormiga.%loop-player%}
- delete {Invocacion.BombaToxicaMarionetaHormiga.%loop-player%}
- delete {Invocacion.HumoMarionetaHormiga.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaHormiga} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaHormiga} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaHormiga.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaHormiga.%loop-player%} to true
- send "&6[Invocacion]&f Tu &7Marioneta Hormiga&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaHormiga}:
- delete npc {Invocacion.Residual.MarionetaHormiga.%player%}
- delete {Invocacion.BombaToxicaMarionetaHormiga.%player%}
- delete {Invocacion.Residual.MarionetaHormiga.%player%}
- delete {Invocacion.HumoMarionetaHormiga.%player%}
- remove {Invocacion.Eliminar.MarionetaHormiga} from player's inventory
- remove {Invocacion.Acciones.MarionetaHormiga} from player's inventory
- set {Invocacion.Esperando.MarionetaHormiga.%player%} to false
- set {Invocacion.Activacion.MarionetaHormiga.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaHormiga}:
- if player is sneaking:
- if {Invocacion.HumoMarionetaHormiga.%player%} is not set:
- set {Invocacion.HumoMarionetaHormiga.%player%} to 0
- if {Invocacion.HumoMarionetaHormiga.%player%} is less than 1:
- set {Invocacion.HumoMarionetaHormiga.%player%} to 60
- force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
- apply invisibility 3 to player for 15 seconds
- apply invisibility 3 to {Invocacion.Residual.MarionetaHormiga.%player%} for 15 seconds
- send "&6[Invocacion] &f¡Ocultamiento!" to player
- while {Invocacion.HumoMarionetaHormiga.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMarionetaHormiga.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaHormiga.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta Hormiga %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaHormiga.%player%} to attack targeted entity with aggressive state true
- command /Marioneta [<text>]:
- permission: Marioneta
- cooldown: 30 seconds
- cooldown message: &6Disponible dentro de 30 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MarionetaSimple.%player%} to false
- send "&areparar aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaSimple.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaSimple} to paper named "&cEliminar Marioneta Simple"
- give {Invocacion.Eliminar.MarionetaSimple} to player
- give {Invocacion.Acciones.MarionetaSimple} to player
- set {_npcsombra} to a citizen with name "&7Marioneta %player%" and entity type "ZOMBIE"
- wait 1 tick
- set {Invocacion.Residual.MarionetaSimple.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {Invocacion.Activacion.MarionetaSimple.%player%} to true
- set {Invocacion.Esperando.MarionetaSimple.%player%} to true
- set {_npcid} to id of npc {_npcsombra}
- #Hat y Vulnerabilidad
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- #Salud
- set citizen {_npcid} max health to 60
- heal citizen {_npcid}
- apply speed 2 to citizen {_npcid} for 99999 seconds
- apply strength 2 to citizen {_npcid} for 99999 seconds
- apply resistance 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaSimple}:
- force the npc {Invocacion.Residual.MarionetaSimple.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&7Marioneta %loop-player%":
- if {Invocacion.Activacion.MarionetaSimple.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaSimple.%loop-player%}
- delete {Invocacion.Residual.MarionetaSimple.%loop-player%}
- delete {Invocacion.HumoMSimple.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaSimple} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaSimple} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaSimple.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaSimple.%loop-player%} to true
- send "&6[Invocacion]&f Tu &7Marioneta&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaSimple}:
- delete npc {Invocacion.Residual.MarionetaSimple.%player%}
- delete {Invocacion.Residual.MarionetaSimple.%player%}
- delete {Invocacion.HumoMSimple.%player%}
- remove {Invocacion.Eliminar.MarionetaSimple} from player's inventory
- remove {Invocacion.Acciones.MarionetaSimple} from player's inventory
- set {Invocacion.Esperando.MarionetaSimple.%player%} to false
- set {Invocacion.Activacion.MarionetaSimple.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaSimple}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.HumoMSimple.%player%} is not set:
- set {Invocacion.HumoMSimple.%player%} to 0
- if {Invocacion.HumoMSimple.%player%} is less than 1:
- set {Invocacion.HumoMSimple.%player%} to 90
- force the npc {Invocacion.Residual.MarionetaSimple.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaHumoMarioneta" as op
- send "&6[Invocacion] &f¡Bomba de Humo!" to player
- send "&6[Invocacion] &f¡Bomba de Humo!" to target
- while {Invocacion.HumoMSimple.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMSimple.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMSimple.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&7Marioneta %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaSimple.%player%} to attack targeted entity with aggressive state true
- # MAnbu
- command /MarionetaAnbu [<text>]:
- permission: MarionetaAnbu
- cooldown: 250 seconds
- cooldown message: &6Disponible dentro de 80 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MarionetaAnbu.%player%} to false
- send "&areparar aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaAnbu.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaAnbu} to paper named "&cEliminar Marioneta Anbu"
- give {Invocacion.Eliminar.MarionetaAnbu} to player
- give {Invocacion.Acciones.MarionetaAnbu} to player
- set {Invocacion.Activacion.MarionetaAnbu.%player%} to true
- set {Invocacion.Esperando.MarionetaAnbu.%player%} to true
- set {_npcsombra} to a citizen with name "&6Marioneta Anbu %player%" and entity type "ZOMBIE"
- wait 1 tick
- set {Invocacion.Residual.MarionetaAnbu.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {Invocacion.Esperando.MarionetaAnbu.%player%} to true
- set {_npcid} to id of npc {_npcsombra}
- #Hat y Vulnerabilidad
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Anbu"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid} max health to 200
- heal citizen {_npcid}
- apply speed 7 to citizen {_npcid} for 99999 seconds
- apply strength 4 to citizen {_npcid} for 99999 seconds
- apply resistance 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaAnbu}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&6Marioneta Anbu %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.SelloMultipleMarionetaAnbu.%player%} is not set:
- set {Invocacion.SelloMultipleMarionetaAnbu.%player%} to 0
- if {Invocacion.SelloMultipleMarionetaAnbu.%player%} is less than 1:
- set {Invocacion.SelloMultipleMarionetaAnbu.%player%} to 60
- make player run command "/cast MarionetaSM" as op
- send "&6[Invocacion] &f¡Sello Multiple!" to player
- send "&6[Invocacion] &f¡Sello Multiple!" to target
- teleport npc {Invocacion.Residual.MarionetaAnbu.%player%} to player
- while {Invocacion.SelloMultipleMarionetaAnbu.%player%} is more than 0:
- subtract 1 from {Invocacion.SelloMultipleMarionetaAnbu.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.SelloMultipleMarionetaAnbu.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&6Marioneta Anbu %loop-player%":
- if {Invocacion.Activacion.MarionetaAnbu.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaAnbu.%loop-player%}
- delete {Invocacion.Residual.MarionetaAnbu.%loop-player%}
- delete {Invocacion.SelloMultipleMarionetaAnbu.%loop-player%}
- delete {Invocacion.HumoMarionetaAnbu.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaAnbu} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaAnbu} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaAnbu.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaAnbu.%loop-player%} to true
- send "&6[Invocacion]&f Tu &6Marioneta Anbu&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaAnbu}:
- delete npc {Invocacion.Residual.MarionetaAnbu.%player%}
- delete {Invocacion.Residual.MarionetaAnbu.%player%}
- delete {Invocacion.SelloMultipleMarionetaAnbu.%player%}
- delete {Invocacion.HumoMarionetaAnbu.%player%}
- remove {Invocacion.Eliminar.MarionetaAnbu} from player's inventory
- remove {Invocacion.Acciones.MarionetaAnbu} from player's inventory
- set {Invocacion.Esperando.MarionetaAnbu.%player%} to false
- set {Invocacion.Activacion.MarionetaAnbu.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaAnbu}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&6Marioneta Anbu %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.HumoMarionetaAnbu.%player%} is not set:
- set {Invocacion.HumoMarionetaAnbu.%player%} to 0
- if {Invocacion.HumoMarionetaAnbu.%player%} is less than 1:
- set {Invocacion.HumoMarionetaAnbu.%player%} to 90
- force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaHumoMarioneta" as op
- send "&6[Invocacion] &f¡Bomba de Humo!" to player
- send "&6[Invocacion] &f¡Bomba de Humo!" to target
- while {Invocacion.HumoMarionetaAnbu.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMarionetaAnbu.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaAnbu.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&6Marioneta Anbu %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaAnbu.%player%} to attack targeted entity with aggressive state true
- #MKaze
- on damage:
- if name of attacker contains "&dMarioneta Kazekage" or "Marioneta Kazekage":
- chance of 15%:
- send "&6[Invocacion] &f¡Sello Kazekage!" to victim
- make victim run command "/cast MarionetaSelloKazekage" as op
- command /MarionetaKazekage [<text>]:
- permission: MarionetaKazekage
- cooldown: 200 seconds
- cooldown message: &6Disponible dentro de 150 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MarionetaKazekage.%player%} to false
- send "&areparar aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaKazekage.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaKazekage} to paper named "&cEliminar Marioneta Kazekage"
- give {Invocacion.Eliminar.MarionetaKazekage} to player
- give {Invocacion.Acciones.MarionetaKazekage} to player
- set {Invocacion.Activacion.MarionetaKazekage.%player%} to true
- set {Invocacion.Esperando.MarionetaKazekage.%player%} to true
- set {_npcsombra} to a citizen with name "&dMarioneta Kazekage %player%" and entity type "ZOMBIE"
- wait 1 tick
- set {Invocacion.Residual.MarionetaKazekage.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {_npcid} to id of npc {_npcsombra}
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Kazekage"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid} max health to 500
- heal citizen {_npcid}
- apply speed 7 to citizen {_npcid} for 99999 seconds
- apply strength 5 to citizen {_npcid} for 99999 seconds
- apply resistance 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaKazekage}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&dMarioneta Kazekage %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is not set:
- set {Invocacion.SubidaMultipleMarionetaKazekage.%player%} to 0
- if {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is less than 1:
- set {Invocacion.SubidaMultipleMarionetaKazekage.%player%} to 6
- force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
- make player run command "/cast SubidaMultiplearenahM" as op
- send "&6[Invocacion] &f¡Subida Multiple!" to player
- send "&6[Invocacion] &f¡Subida Multiple!" to target
- while {Invocacion.SubidaMultipleMarionetaKazekage.%player%} is more than 0:
- subtract 1 from {Invocacion.SubidaMultipleMarionetaKazekage.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.SubidaMultipleMarionetaKazekage.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&dMarioneta Kazekage %loop-player%":
- if {Invocacion.Activacion.MarionetaKazekage.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaKazekage.%loop-player%}
- delete {Invocacion.Residual.MarionetaKazekage.%loop-player%}
- delete {Invocacion.SubidaMultipleMarionetaKazekage.%loop-player%}
- delete {Invocacion.PiramideMarionetaKazekage.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaKazekage} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaKazekage} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaKazekage.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaKazekage.%loop-player%} to true
- send "&6[Invocacion]&f Tu &dMarioneta Kazekage&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaKazekage}:
- delete npc {Invocacion.Residual.MarionetaKazekage.%player%}
- delete {Invocacion.Residual.MarionetaKazekage.%player%}
- delete {Invocacion.SubidaMultipleMarionetaKazekage.%player%}
- delete {Invocacion.PiramideMarionetaKazekage.%player%}
- remove {Invocacion.Eliminar.MarionetaKazekage} from player's inventory
- remove {Invocacion.Acciones.MarionetaKazekage} from player's inventory
- set {Invocacion.Esperando.MarionetaKazekage.%player%} to false
- set {Invocacion.Activacion.MarionetaKazekage.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaKazekage}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&dMarioneta Kazekage %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.PiramideMarionetaKazekage.%player%} is not set:
- set {Invocacion.PiramideMarionetaKazekage.%player%} to 0
- if {Invocacion.PiramideMarionetaKazekage.%player%} is less than 1:
- set {Invocacion.PiramideMarionetaKazekage.%player%} to 120
- force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
- make console execute command "cast teach %player% PiramideKaze"
- make target run command "/cast PiramideKaze" as op
- make console execute command "cast forget %player% PiramideKaze"
- send "&6[Invocacion] &f¡Piramide!" to player
- send "&6[Invocacion] &f¡Piramide!" to target
- while {Invocacion.PiramideMarionetaKazekage.%player%} is more than 0:
- subtract 1 from {Invocacion.PiramideMarionetaKazekage.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.PiramideMarionetaKazekage.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&dMarioneta Kazekage %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaKazekage.%player%} to attack targeted entity with aggressive state true
- #Sello
- on damage:
- if name of attacker contains "&aMarioneta Sello":
- chance of 15%:
- send "&6[Invocacion] &f¡Sello Basico!" to victim
- make victim run command "/cast MarionetaSelloBasico" as op
- chance of 20%:
- send "&6[Invocacion] &f¡Puñalada!" to victim
- make attacker damage victim by 7
- command /MarionetaSello [<text>]:
- permission: MarionetaSello
- cooldown: 180 seconds
- cooldown message: &6Disponible dentro de 180 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MarionetaSello.%player%} to false
- send "&areparar aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaSello.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- set {Invocacion.Acciones.MarionetaSello} to enchanted book named "&8&o(D) &dSeguir &f/ &8&o(I) &cAtacar"
- set {Invocacion.Eliminar.MarionetaSello} to paper named "&cEliminar Marioneta Sello"
- give {Invocacion.Eliminar.MarionetaSello} to player
- give {Invocacion.Acciones.MarionetaSello} to player
- set {Invocacion.Activacion.MarionetaSello.%player%} to true
- set {Invocacion.Esperando.MarionetaSello.%player%} to true
- set {_npcsombra} to a citizen with name "&aMarioneta Sello %player%" and entity type "ZOMBIE"
- wait 1 tick
- set {Invocacion.Residual.MarionetaSello.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {_npcid} to id of npc {_npcsombra}
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Sello"
- set citizen {_npcid} max health to 80
- heal citizen {_npcid}
- apply speed 7 to citizen {_npcid} for 99999 seconds
- apply strength 4 to citizen {_npcid} for 99999 seconds
- apply resistance 2 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaSello}:
- force the npc {Invocacion.Residual.MarionetaSello.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&aMarioneta Sello %loop-player%":
- if {Invocacion.Activacion.MarionetaSello.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaSello.%loop-player%}
- delete {Invocacion.Residual.MarionetaSello.%loop-player%}
- #delete {Invocacion.SubidaMultipleMarionetaKazekage.%loop-player%}
- #delete {Invocacion.PiramideMarionetaKazekage.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaSello} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaSello} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaSello.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaSello.%loop-player%} to true
- send "&6[Invocacion]&f Tu &aMarioneta Sello&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaSello}:
- delete npc {Invocacion.Residual.MarionetaSello.%player%}
- delete {Invocacion.Residual.MarionetaSello.%player%}
- remove {Invocacion.Eliminar.MarionetaSello} from player's inventory
- remove {Invocacion.Acciones.MarionetaSello} from player's inventory
- set {Invocacion.Esperando.MarionetaSello.%player%} to false
- set {Invocacion.Activacion.MarionetaSello.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaSello}:
- if targeted entity is set:
- if name of targeted entity is "&aMarioneta Sello %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaSello.%player%} to attack targeted entity with aggressive state true
- #Madre
- on damage:
- if name of attacker contains "&cM Madre":
- chance of 15%:
- send "&6[Invocacion] &f¡Bomba de Humo!" to victim
- make victim run command "/cast Madre1" as op
- chance of 20%:
- send "&6[Invocacion] &f¡Golpe Fuerte!" to victim
- make attacker damage victim by 6
- #chance of 5%:
- # send "&6[Invocacion] &f¡Sello!" to victim
- # make victim run command "/cast MarionetaSelloBasico" as op
- command /MadreMarioneta [<text>]:
- permission: MarionetaMadre
- cooldown: 100 seconds
- cooldown message: &6Disponible dentro de 100 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MadreMarioneta.%player%} to false
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MadreMarioneta.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MadreMarioneta} to paper named "&cEliminar Marioneta Madre"
- give {Invocacion.Eliminar.MadreMarioneta} to player
- give {Invocacion.Acciones.MadreMarioneta} to player
- set {Invocacion.Activacion.MadreMarioneta.%player%} to true
- set {Invocacion.Esperando.MadreMarioneta.%player%} to true
- set {_npcsombra} to a citizen with name "&cM Madre %player%" and entity type "ZOMBIE"
- wait 1 tick
- set {Invocacion.Residual.MadreMarioneta.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {_npcid} to id of npc {_npcsombra}
- set citizen {_npcid}'s helmet slot to soul sand named "Marioneta Madre"
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid} max health to 200
- heal citizen {_npcid}
- apply speed 5 to citizen {_npcid} for 99999 seconds
- apply strength 4 to citizen {_npcid} for 99999 seconds
- apply resistance 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MadreMarioneta}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&cM Madre %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.BombaToxicaMadreMarioneta.%player%} is not set:
- set {Invocacion.BombaToxicaMadreMarioneta.%player%} to 0
- if {Invocacion.BombaToxicaMadreMarioneta.%player%} is less than 1:
- set {Invocacion.BombaToxicaMadreMarioneta.%player%} to 30
- force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaToxicaMarioneta" as op
- send "&6[Invocacion] &f¡Bomba Toxica!" to player
- send "&6[Invocacion] &f¡Bomba Toxica!" to target
- while {Invocacion.BombaToxicaMadreMarioneta.%player%} is more than 0:
- subtract 1 from {Invocacion.BombaToxicaMadreMarioneta.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMadreMarioneta.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MadreMarioneta.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&cM Madre %loop-player%":
- if {Invocacion.Activacion.MadreMarioneta.%loop-player%} is true:
- delete npc {Invocacion.Residual.MadreMarioneta.%loop-player%}
- delete {Invocacion.Residual.MadreMarioneta.%loop-player%}
- delete {Invocacion.BombaToxicaMadreMarioneta.%loop-player%}
- delete {Invocacion.HumoMadreMarioneta.%loop-player%}
- remove {Invocacion.Eliminar.MadreMarioneta} from loop-player's inventory
- remove {Invocacion.Acciones.MadreMarioneta} from loop-player's inventory
- set {Invocacion.Esperando.MadreMarioneta.%loop-player%} to false
- set {Invocacion.Activacion.MadreMarioneta.%loop-player%} to true
- send "&6[Invocacion]&f Tu &cM Madre&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MadreMarioneta}:
- delete npc {Invocacion.Residual.MadreMarioneta.%player%}
- delete {Invocacion.BombaToxicaMadreMarioneta.%player%}
- delete {Invocacion.Residual.MadreMarioneta.%player%}
- delete {Invocacion.HumoMadreMarioneta.%player%}
- remove {Invocacion.Eliminar.MadreMarioneta} from player's inventory
- remove {Invocacion.Acciones.MadreMarioneta} from player's inventory
- set {Invocacion.Esperando.MadreMarioneta.%player%} to false
- set {Invocacion.Activacion.MadreMarioneta.%player%} to true
- if player's tool is {Invocacion.Acciones.MadreMarioneta}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&cM Madre %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.HumoMadreMarioneta.%player%} is not set:
- set {Invocacion.HumoMadreMarioneta.%player%} to 0
- if {Invocacion.HumoMadreMarioneta.%player%} is less than 1:
- set {Invocacion.HumoMadreMarioneta.%player%} to 50
- force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaHumoMarioneta" as op
- send "&6[Invocacion] &f¡Bomba de Humo!" to player
- send "&6[Invocacion] &f¡Bomba de Humo!" to target
- while {Invocacion.HumoMadreMarioneta.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMadreMarioneta.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMadreMarioneta.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&cM Madre %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MadreMarioneta.%player%} to attack targeted entity with aggressive state true
- #
- on any movement:
- if {Efectos.Paralizis.%player%} is true:
- cancel event
- wait 2 seconds
- set {Efectos.Paralizis.%player%} to false
- on damage:
- if name of attacker contains "&2Marioneta Venenosa":
- chance of 6%:
- send "&6[Invocacion]&f ¡Paralizis!" to victim
- set {Efectos.Paralizis.%victim%} to true
- wait 2 seconds
- set {Efectos.Paralizis.%victim%} to false
- chance of 15%:
- send "&6[Invocacion]&f ¡Picadura!" to victim
- apply potion of poison of tier 4 to victim for 45 seconds
- apply potion of weakness of tier 2 to victim for 25 seconds
- apply potion of nausea of tier 5 to victim for 12 seconds
- apply potion of slowness of tier 2 to victim for 12 seconds
- command /MarionetaVeneno [<text>]:
- permission: MarionetaVeneno
- cooldown: 45 seconds
- cooldown message: &6Disponible dentro de 45 segundos.
- trigger:
- if arg 1 is "reparar":
- set {Invocacion.Esperando.MarionetaVeneno.%player%} to false
- send "&areparar aplicado"
- if arg 1 contains "Invocar":
- if {Invocacion.Esperando.MarionetaVeneno.%player%} is true:
- send "&c[Error] &fNo puedes invocar otra Marioneta de este tipo mientras tengas una ya Invocada"
- else:
- 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"
- set {Invocacion.Eliminar.MarionetaVeneno} to paper named "&cEliminar Marioneta Venenosa"
- give {Invocacion.Eliminar.MarionetaVeneno} to player
- give {Invocacion.Acciones.MarionetaVeneno} to player
- set {Invocacion.Activacion.MarionetaVeneno.%player%} to true
- set {Invocacion.Esperando.MarionetaVeneno.%player%} to true
- set {_npcsombra} to a citizen with name "&2Marioneta Venenosa %player%" and entity type "SPIDER"
- wait 1 tick
- set {Invocacion.Residual.MarionetaVeneno.%player%} to {_npcsombra}
- spawn npc {_npcsombra} at location of player
- set {_npcid} to id of npc {_npcsombra}
- #Hat y Vulnerabilidad
- make console execute command "/npc sel %{_npcid}%"
- make console execute command "/npc vulnerable"
- set citizen {_npcid} max health to 80
- heal citizen {_npcid}
- apply speed 5 to citizen {_npcid} for 99999 seconds
- apply strength 4 to citizen {_npcid} for 99999 seconds
- apply resistance 3 to citizen {_npcid} for 99999 seconds
- apply invisibility 3 to citizen {_npcid} for 99999 seconds
- on right click:
- if player's tool is {Invocacion.Acciones.MarionetaVeneno}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&2Marioneta Venenosa %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.BombaToxicaMarionetaVeneno.%player%} is not set:
- set {Invocacion.BombaToxicaMarionetaVeneno.%player%} to 0
- if {Invocacion.BombaToxicaMarionetaVeneno.%player%} is less than 1:
- set {Invocacion.BombaToxicaMarionetaVeneno.%player%} to 20
- force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaToxicaMarioneta" as op
- send "&6[Invocacion] &f¡Bomba Toxica!" to player
- send "&6[Invocacion] &f¡Bomba Toxica!" to target
- while {Invocacion.BombaToxicaMarionetaVeneno.%player%} is more than 0:
- subtract 1 from {Invocacion.BombaToxicaMarionetaVeneno.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.BombaToxicaMarionetaVeneno.%player%}%&7&os )" to player
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to follow player with aggressive state false
- on death:
- loop all players:
- if name of victim contains "&2Marioneta Venenosa %loop-player%":
- if {Invocacion.Activacion.MarionetaVeneno.%loop-player%} is true:
- delete npc {Invocacion.Residual.MarionetaVeneno.%loop-player%}
- delete {Invocacion.Residual.MarionetaVeneno.%loop-player%}
- delete {Invocacion.BombaToxicaMarionetaVeneno.%loop-player%}
- delete {Invocacion.HumoMarionetaVeneno.%loop-player%}
- remove {Invocacion.Eliminar.MarionetaVeneno} from loop-player's inventory
- remove {Invocacion.Acciones.MarionetaVeneno} from loop-player's inventory
- set {Invocacion.Esperando.MarionetaVeneno.%loop-player%} to false
- set {Invocacion.Activacion.MarionetaVeneno.%loop-player%} to true
- send "&6[Invocacion]&f Tu &2Marioneta Venenosa&f acaba de despawnear a manos de &6%attacker%" to loop-player
- on left click:
- if player's tool is {Invocacion.Eliminar.MarionetaVeneno}:
- delete npc {Invocacion.Residual.MarionetaVeneno.%player%}
- delete {Invocacion.BombaToxicaMarionetaVeneno.%player%}
- delete {Invocacion.Residual.MarionetaVeneno.%player%}
- delete {Invocacion.HumoMarionetaVeneno.%player%}
- remove {Invocacion.Eliminar.MarionetaVeneno} from player's inventory
- remove {Invocacion.Acciones.MarionetaVeneno} from player's inventory
- set {Invocacion.Esperando.MarionetaVeneno.%player%} to false
- set {Invocacion.Activacion.MarionetaVeneno.%player%} to true
- if player's tool is {Invocacion.Acciones.MarionetaVeneno}:
- if player is sneaking:
- if targeted entity is set:
- if name of targeted entity is "&2Marioneta Venenosa %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- if {Invocacion.HumoMarionetaVeneno.%player%} is not set:
- set {Invocacion.HumoMarionetaVeneno.%player%} to 0
- if {Invocacion.HumoMarionetaVeneno.%player%} is less than 1:
- set {Invocacion.HumoMarionetaVeneno.%player%} to 50
- force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
- make target run command "/cast BombaHumoMarioneta" as op
- send "&6[Invocacion] &f¡Bomba de Humo!" to player
- send "&6[Invocacion] &f¡Bomba de Humo!" to target
- while {Invocacion.HumoMarionetaVeneno.%player%} is more than 0:
- subtract 1 from {Invocacion.HumoMarionetaVeneno.%player%}
- wait 1 second
- else:
- send "&c[Error]&f Habilidad en Enfriamiento &7&o( %{Invocacion.HumoMarionetaVeneno.%player%}%&7&os )" to player
- stop
- else:
- if targeted entity is set:
- if name of targeted entity is "&2Marioneta Venenosa %player%":
- send "&c[Error] &fEstas apuntando a tu Invocación."
- stop
- else:
- force the npc {Invocacion.Residual.MarionetaVeneno.%player%} to attack targeted entity with aggressive state true
Add Comment
Please, Sign In to add comment