Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import:
- com.nisovin.magicspells.MagicSpells
- com.nisovin.magicspells.Spell
- com.nisovin.magicspells.mana.ManaChangeReason
- #
- command /willxp [<number>] [<player>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {_Exp} to arg-1 * {lvlmultipler::%arg-2%}
- add {_Exp} to {xpwill::%arg-2%}
- send "&a+%{_Exp}% de Forja &7&o(Mision)" to arg-2
- set {_details::*} to arg-2
- call custom event "forjar" to details {_details::*}
- evt "forjar":
- if {lvlwill::%event-player%} is greater than 25:
- stop
- else:
- if {xpwill::%event-player%} is greater than {nextwill::%event-player%}:
- set {xpwill::%event-player%} to {xpwill::%event-player%} - {nextwill::%event-player%}
- add 1 to {lvlwill::%event-player%}
- send "&fNivel de &6&lFORJA&f aumentado a %{lvlwill::%event-player%}%" to event-player
- add 150 to {nextwill::%event-player%}
- set {_query} to "UPDATE Ajustes SET lvlwill = ""%{lvlwill::%event-player%}%"", xpwill = ""%{xpwill::%event-player%}%"", nextwill = ""%{nextwill::%event-player%}%"" WHERE uuid = ""%event-player's uuid%"""
- execute unsafe {_query} in {-sql}
- on Citizen right click:
- if Citizen is named is "&6Will": #Entrar en el chat
- send "&8[&9&lHablando&8] &7[&d&k..&6&lFORJADOR&d&k..&7] &eWill&f: ¡Hola dale click derecho a mi yunque y comenzemos a fabricar cosas!" to player
- command /Forjarv2 [<text>]:
- permission: Staff
- trigger:
- if {NombreRol::%player%} is set:
- set {_nombre} to "%{NombreRol::%player%}%"
- else:
- set {_nombre} to "%player%"
- set {_p} to "%player%" parsed as player
- set {_x2} to MagicSpells.getManaHandler().getMaxMana({_p})
- if player has permission "Anbu":
- set {_trabajo} to "&7Anbu"
- if player has permission "Guardia":
- set {_trabajo} to "&9Guardia"
- if player has permission "Sensei":
- set {_trabajo} to "&eSensei"
- if arg 1 isn't set:
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&f&lFORJAR" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Cerrar" with lore "" and "&6• &fCerrar el Menu"
- set slot 12 of player's current inventory to magma cream named "&5&lKENJUTSU" with lore "&6• &fAdquiere habilidades especiales" and "&fpara tu herramienta!" and "" and "&e⚠ &cRequiere: &6Forja Nivel 15"
- set slot 14 of player's current inventory to magma cream named "&b&lHERRAMIENTAS &f&lELEMENTALES" with lore "&6• &fForja una herramienta con" and "&fafinidad elemental!" and "" and "&e⚠ &cRequiere: &6Forja Nivel 25"
- set slot 16 of player's current inventory to magma cream named "&4&lHERRAMIENTAS" with lore "&6• &f¡Forja herramientas Ninja!"
- set slot 35 of player's current inventory to magma cream named "&a&lMEJORAR HERRAMIENTAS" with lore "&6• &fSube el nivel de tus Katanas Esotericas" and "&fy otras Herramientas!"
- if arg 1 is "Kenjutsu":
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&5&lKENJUTSU" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 9 of player's current inventory to magma cream named "&6• &9Mochila de Will" with lore "&dPergaminos Tajo Silbante 50%%: &ax%{tajo50::%player%}%" and "&6Pergaminos Tajo Silbante 100%%: &ax%{tajo100::%player%}%" and "&dPergamino Atraccion 50%%: &ax%{atrac50::%player%}%" and "&6Pergamino Atraccion 100%%: &ax%{atrac100::%player%}%"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
- set slot 12 of player's current inventory to book named "&dPergamino Tajo Silbante &7- &c&l50%%" with lore "&6• &fUn &b50%%&f de todo el manuscrito requerido" and "&fpara dominar el &5&nKenjutsu&f &6Tajo Silbante" and "" and "&eCosto&f: &ax32 &7Material" and "&e &e &ax40 &6Pergaminos Maestria" and "" and "&2» Click Para Forjar «" #x1 framgento + eso bronce
- set slot 13 of player's current inventory to enchanted book named "&dPergamino Tajo Silbante &7- &6&l100%%" with lore "&6• &fFabrica el pergamino completo y desvela sus secretos" and "" and "&eCosto&f: &ax1 &6Pergaminos Tajo Silbante &7- &c50%%" and "&e &e &ax2 &6Esoterica Bronce" and "" and "&dPergaminos Tajo Siblante 50%% Disponibles&f: &ax%{tajo50::%player%}%" and "" and "&2» Click Para Forjar «" #x2 incompletos
- set slot 15 of player's current inventory to magma cream named "&aAplicar Pergamino Tajo Silbante" with lore "&6• &fAplica el Pergamino &6Tajo Silbante&f a una &dKatana Esoterica&f!" and "" and "&eCosto&f: &ax1 &6Pergamino Tajo Silbante 100%%" and "&e &e &ax1 &7Katana Esoterica &b+4" and "&e &e &ax60 &eRyos" and "" and "&dPergaminos Tajo Siblante 100%%&f: &ax%{tajo100::%player%}%" and "" and "&2» Click Para Aplicar «" #Eso 4 y perga completo
- set slot 21 of player's current inventory to book named "&dPergamino Atraccion &7- &c&l50%%" with lore "&6• &fUn &b50%%&f de todo el manuscrito requerido" and "&fpara dominar el &5&nKenjutsu&f &6Atraccion" and "" and "&eCosto&f: &ax32 &7Material" and "&e &e &ax70 &6Pergaminos Maestria" and "" and "&2» Click Para Forjar «"
- set slot 22 of player's current inventory to enchanted book named "&dPergamino Atraccion &7- &6&l100%%" with lore "&6• &fFabrica el pergamino completo y desvela sus secretos" and "" and "&eCosto&f: &ax1 &6Pergaminos Atraccion &7- &c50%%" and "&e &e &ax1 &6Esoterica Bronce" and "&e &e &ax1 &fEsoterica Blanca" and "" and "&dPergaminos Atraccion 50%% Disponibles&f: &ax%{atrac50::%player%}%" and "" and "&2» Click Para Forjar «"
- set slot 24 of player's current inventory to magma cream named "&aAplicar Pergamino Atraccion" with lore "&6• &fAplica el Pergamino &6Atraccion&f a una &dKatana Esoterica&f!" and "" and "&eCosto&f: &ax1 &6Pergamino Atraccion 100%%" and "&e &e &ax1 &7Katana Esoterica &b+4" and "&e &e &ax70 &eRyos" and "" and "&dPergaminos Atraccion 100%%&f: &ax%{atrac100::%player%}%" and "" and "&2» Click Para Aplicar «"
- if arg 1 is "Herramientas2":
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&4&lHERRAMIENTAS II" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar a la Pagina Anterior"
- set slot 9 of player's current inventory to magma cream named "&6• &9Mochila de Municiones" with lore "&bCuerda&f: &ax%{muni-cuerda::%player%}%" and "&6Kunai Bomba&f: &ax%{muni-bomba::%player%}%" and "&2Kunai Venenoso&f: &ax%{muni-veneno::%player%}%" and "&7Kunai Estandar&f: &ax%{muni-kunai::%player%}%"
- set slot 12 of player's current inventory to iron sword named "&9Wakizashi" with lore "&6• &fHerramienta de corto tamaño pero de uso versatil" and "" and "&eCosto&f: &ax3 &8Hierro" and "&e &e &ax20 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 10" and "" and "&2» Click Para Forjar «"
- set slot 13 of player's current inventory to rabbit hide named "&dMazo Fragmentado" with lore "&6•&f Un Antiguo Mazo que perdio rigidez!" and "" and "&eCosto&f: &ax20 &7Material" and "&e &e &ax10 &8Hierro" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 12" and "" and "&2» Click Para Forjar «"
- if arg 1 is "Herramientas":
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&4&lHERRAMIENTAS" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
- set slot 9 of player's current inventory to magma cream named "&6• &9Mochila de Municiones" with lore "&bCuerda&f: &ax%{muni-cuerda::%player%}%" and "&6Kunai Bomba&f: &ax%{muni-bomba::%player%}%" and "&2Kunai Venenoso&f: &ax%{muni-veneno::%player%}%" and "&7Kunai Estandar&f: &ax%{muni-kunai::%player%}%"
- set slot 12 of player's current inventory to arrow named "&9Kunai" with lore "&6• &fHerramienta muy versatil para un shinobi" and "&fpuede cambiar el tipo de municion apretando &7""&dF&7""" and "" and "&eCosto&f: &ax50&7 Material" and "&e &e &ax10 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 6" and "" and "&2» Click Para Forjar «"
- set slot 13 of player's current inventory to arrow named "&ax8 &7Kunais" with lore "&6•&f Municion estandar para el Kunai!" and "" and "&eCosto&f: &ax8 &7Material" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 6" and "" and "&2» Click Para Forjar «"
- set slot 14 of player's current inventory to arrow named "&ax8 &bMunicion Cuerda" with lore "&6•&f Municion para utilizar con el Kunai!" and "" and "&eCosto&f: &ax2 &cPiel de araña" and "&e &e &ax3 &7Material" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 9" and "" and "&2» Click Para Forjar «"
- set slot 15 of player's current inventory to arrow named "&ax8 &2Municion Venenosa" with lore "&6•&f Municion para utilizar con el Kunai!" and "" and "&eCosto&f: &ax1 &cPiel de araña" and "&e &e &ax2 &7Material" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 10" and "" and "&2» Click Para Forjar «"
- set slot 16 of player's current inventory to arrow named "&ax8 &6Municion Bomba" with lore "&6•&f Municion para utilizar con el Kunai!" and "" and "&eCosto&f: &ax3 &ePolvora" and "&e &e &ax5 &7Material" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 13" and "" and "&2» Click Para Forjar «"
- set slot 21 of player's current inventory to magenta dye named "&ax8 &bShurikens" with lore "&6• &fHerramienta arrojadiza con un daño medio," and "&fno puede faltar en tu arsenal!" and "" and "&eCosto&f: &ax8 &7Material" and "&e &e &ax1 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 4" and "" and "&2» Click Para Forjar «"
- set slot 22 of player's current inventory to nametag named "&ax2&6 Papel Bomba" with lore "&6•&f Una herramienta ideal para generar explosiones!" and "" and "&eCosto&f: &ax10 &cPolvora" and "&e &e &ax10 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 10" and "" and "&2» Click Para Forjar «"
- set slot 23 of player's current inventory to coal named "&ax8&5 Bomba Toxica" with lore "&6•&f Un veneno letal en area que deberias tener!" and "" and "&eCosto&f: &ax10 &7Material" and "&e &e &ax6 &cPiel de araña" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 7" and "" and "&2» Click Para Forjar «"
- set slot 24 of player's current inventory to coal named "&ax8&7 Bomba de Humo" with lore "&6•&f Ideal para todo shinobi en situaciones complicadas." and "" and "&eCosto&f: &ax6 &cPolvora" and "&e &e &ax12 &7Material" and "&e &e &ax1 &eRyo" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 5" and "" and "&2» Click Para Forjar «"
- set slot 25 of player's current inventory to diamond named "&5Kunai con Cuerda" with lore "&6•&f Ideal para escapar de situaciones complicadas" and "&fy no tener que comprar mas cuerda!" and "" and "&eCosto&f: &ax15 &5Circones" and "&e &e &ax128 &cPiel de araña" and "&e &e &ax50 &7Material" and "&e &e &ax100 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 17" and "" and "&2» Click Para Forjar «"
- set slot 35 of player's current inventory to magma cream named "&aSiguiente »" with lore "" and "&6• &fSiguiente Pagina"
- if arg 1 is "Elementos":
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&9&lHERRAMIENTAS &f&lELEMENTALES" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
- set slot 12 of player's current inventory to diamond named "&bKatana Elemental de Agua" with lore "&6• &fAplica tu afinidad elemental a una katana y obten mas poder!" and "" and "&eCosto&f: &ax64 &bPergaminos Agua" and "&e &e &ax128 &6Pergaminos Maestria" and "&e &e &ax1 &eEsoterica Oro" and "&e &e &ax128 &7Material" and "" and "&2» Click Para Forjar «"
- set slot 13 of player's current inventory to diamond named "&4Katana Elemental de Fuego" with lore "&6• &fAplica tu afinidad elemental a una katana y obten mas poder!" and "" and "&eCosto&f: &ax64 &bPergaminos Fuego" and "&e &e &ax128 &6Pergaminos Maestria" and "&e &e &ax1 &eEsoterica Oro" and "&e &e &ax128 &7Material" and "" and "&2» Click Para Forjar «"
- set slot 14 of player's current inventory to diamond named "&6Katana Elemental de Tierra" with lore "&6• &fAplica tu afinidad elemental a una katana y obten mas poder!" and "" and "&eCosto&f: &ax64 &bPergaminos Tierra" and "&e &e &ax128 &6Pergaminos Maestria" and "&e &e &ax1 &eEsoterica Oro" and "&e &e &ax128 &7Material" and "" and "&2» Click Para Forjar «"
- set slot 15 of player's current inventory to diamond named "&9Katana Elemental de Rayo" with lore "&6• &fAplica tu afinidad elemental a una katana y obten mas poder!" and "" and "&eCosto&f: &ax64 &bPergaminos Rayo" and "&e &e &ax128 &6Pergaminos Maestria" and "&e &e &ax1 &eEsoterica Oro" and "&e &e &ax128 &7Material" and "" and "&2» Click Para Forjar «"
- set slot 16 of player's current inventory to diamond named "&aKatana Elemental de Viento" with lore "&6• &fAplica tu afinidad elemental a una katana y obten mas poder!" and "" and "&eCosto&f: &ax64 &bPergaminos Viento" and "&e &e &ax128 &6Pergaminos Maestria" and "&e &e &ax1 &eEsoterica Oro" and "&e &e &ax128 &7Material" and "" and "&2» Click Para Forjar «"
- if arg 1 is "Mejorar":
- set {_p} to "%player%" parsed as player
- open chest with 4 rows named "&a&lMEJORAR HERRAMIENTAS" to player
- set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(1/3)" with lore "" and "&6• Rango Shinobi: &a%{VRank.%player%}%" and "&6• &bFama: &a%{fama::%player%}%" and "&6• &9Merito: &a%{merito::%player%}%" and "&6• &eRyos: &f%player's balance%" and "" and "&6• &dAldea: &f%{aldea::%player%}%" and "&6• Rango: &f%colored player's prefix%" and "&6• &cTrabajo: &f%{_trabajo}%" and "&6• &3Estado: &f%{chatEstado::%player%}%" and "" and "&2» Click para ver tus Atributos «"
- set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
- set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
- loop all items in the inventory of player:
- if name of loop-item is equal to "&7&lKATANA":
- set {_katana1} to "+0"
- if name of loop-item is equal to "&7&lKATANA ESOTERICA":
- set {_katana1} to "+1"
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+1":
- set {_katana1} to "+2"
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+2":
- set {_katana1} to "+3"
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+3":
- set {_katana1} to "+4"
- if {_katana1} isn't set:
- set slot 14 of player's current inventory to barrier named "&4¡No tienes nada para Mejorar!"
- if {_katana1} is "+0":
- set slot 14 of player's current inventory to gold sword named "&7&lKATANA &f➝ &7&lKATANA ESOTERICA" with lore "&6•&f Mejora tu Katana comun a una Esoterica" and "" and "&eCosto&f: &ax1&f Esoterica Blanca" and "&e &e &ax1 &7Katana" and "" and "&2» Click Para Mejorar «"
- if {_katana1} is "+1":
- set slot 14 of player's current inventory to gold sword named "&7&lKATANA ESOTERICA &f➝ &7&lKATANA ESOTERICA&b +1" with lore "&6•&f Mejora tu Katana Esoterica en &a+1" and "" and "&eCosto&f: &ax1&d Katana Esoterica" and "&e &e &ax2 &5Circones" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 4" and "" and "&2» Click Para Mejorar «"
- if {_katana1} is "+2":
- set slot 14 of player's current inventory to gold sword named "&7&lKATANA ESOTERICA&b +1 &f➝ &7&lKATANA ESOTERICA&b +2" with lore "&6•&f Mejora tu Katana Esoterica en &a+1" and "" and "&eCosto&f: &ax1&d Katana Esoterica +1" and "&e &e &ax3 &5Circones" and "&e &e &ax10 &eRyos" and "" and "&2» Click Para Mejorar «"
- if {_katana1} is "+3":
- set slot 14 of player's current inventory to gold sword named "&7&lKATANA ESOTERICA&b +2 &f➝ &7&lKATANA ESOTERICA&b +3" with lore "&6•&f Mejora tu Katana Esoterica en &a+1" and "" and "&eCosto&f: &ax1&d Katana Esoterica +2" and "&e &e &ax4 &5Circones" and "&e &e &ax10 &eRyos" and "" and "" and "&e⚠ &cRequiere: &6Forja Nivel 16" and "" and "&2» Click Para Mejorar «"
- if {_katana1} is "+4":
- set slot 14 of player's current inventory to iron sword named "&7&lKATANA ESOTERICA&b +3 &f➝ &7&lKATANA ESOTERICA&b +4" with lore "&6•&f Mejora tu Katana Esoterica en &a+1" and "" and "&eCosto&f: &ax1&d Katana Esoterica +3" and "&e &e &ax5 &5Circones" and "&e &e &ax15 &eRyos" and "" and "&2» Click Para Mejorar «"
- command /Municion [<text>] [<number>] [<player>]:
- trigger:
- if arg 1 isn't set:
- send "&6&lMOCHILA DE MUNICION"
- send ""
- send "&bCuerda&f: &ax%{muni-cuerda::%player%}%"
- send "&6Kunai Bomba&f: &ax%{muni-bomba::%player%}%"
- send "&2Kunai Venenoso&f: &ax%{muni-veneno::%player%}%"
- send "&7Kunai Estandar&f: &ax%{muni-kunai::%player%}%"
- send ""
- if player has permission "Staff":
- if arg 1 is "bomba":
- if arg 2 is set:
- if arg 3 is set:
- add arg-2 to {muni-bomba::%arg-3%}
- send "+%arg-2% Municion %arg-1%" to arg-3
- if arg 1 is "estandar":
- if arg 2 is set:
- if arg 3 is set:
- add arg-2 to {muni-kunai::%arg-3%}
- send "+%arg-2% Kunais" to arg-3
- if arg 1 is "veneno":
- if arg 2 is set:
- if arg 3 is set:
- add arg-2 to {muni-veneno::%arg-3%}
- send "+%arg-2% Municion %arg-1%" to arg-3
- if arg 1 is "cuerda":
- if arg 2 is set:
- if arg 3 is set:
- add arg-2 to {muni-cuerda::%arg-3%}
- send "+%arg-2% Municion %arg-1%" to arg-3
- on inventory click:
- if name of event-inventory is "&a&lMEJORAR HERRAMIENTAS" or "&4&lHERRAMIENTAS" or "&4&lHERRAMIENTAS II" or "&f&lFORJAR":
- set {_item} to event-item
- set {_lines::*} to lore of {_item}
- set {_linea} to 0
- loop {_lines::*}:
- add 1 to {_linea}
- if "%loop-value%" contains "&e⚠ &cRequiere: &6Forja Nivel":
- set {_nivel::*} to loop-value split at "Nivel"
- set {_nivelReq} to {_nivel::2} parsed as a number
- set {_c} to {_nivelReq} - {lvlwill::%player%}
- if {lvlwill::%player%} is greater or equal to {_nivelReq}:
- continue
- stop
- else:
- send "&fTe faltan &c%{_c}% Niveles de Forja"
- cancel event
- stop
- if name of event-inventory is "&a&lMEJORAR HERRAMIENTAS":
- cancel event
- if event-slot is 27:
- make player run command "/Forjarv2" as op
- if event-slot is 14:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&f&lESOTERICA BLANCA":
- set {_esotericablanca} to loop-item
- if name of loop-item is equal to "Circon":
- set {_circon} to loop-item
- if name of loop-item is equal to "&7&lKATANA":
- set {_katana1} to "+0"
- set {_katanaf} to loop-item
- if name of loop-item is equal to "&7&lKATANA ESOTERICA":
- set {_katana1} to "+1"
- set {_katanaf} to loop-item
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+1":
- set {_katana1} to "+2"
- set {_katanaf} to loop-item
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+2":
- set {_katana1} to "+3"
- set {_katanaf} to loop-item
- if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+3":
- set {_katana1} to "+4"
- set {_katanaf} to loop-item
- if {_katana1} isn't set:
- stop
- if {_katana1} is "+0":
- if amount of {_esotericablanca} in player's inventory is greater than 0:
- remove 1 of {_esotericablanca} from the player
- remove 1 of {_katanaf} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aMejora Exitosa"
- make console execute command "/ie give katanamoldeable %player% 1"
- make player run command "/forjarv2 mejorar" as op
- set {_Exp} to 10 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- if {_katana1} is "+1":
- if amount of {_circon} in player's inventory is greater than 1:
- remove 2 of {_circon} from the player
- remove 1 of {_katanaf} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aMejora Exitosa"
- make console execute command "/ie give katanamoldeable3 %player% 1"
- make player run command "/forjarv2 mejorar" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Circones"
- if {_katana1} is "+2":
- if amount of {_circon} in player's inventory is greater than 2:
- if player's balance is greater or equal to 10:
- subtract 10 from player's balance
- remove 3 of {_circon} from the player
- remove 1 of {_katanaf} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aMejora Exitosa"
- make console execute command "/ie give katanamoldeable4 %player% 1"
- make player run command "/forjarv2 mejorar" as op
- set {_Exp} to 10 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Ryos"
- else:
- send "&cTe faltan Circones"
- if {_katana1} is "+3":
- if amount of {_circon} in player's inventory is greater than 3:
- if player's balance is greater or equal to 10:
- subtract 10 from player's balance
- remove 4 of {_circon} from the player
- remove 1 of {_katanaf} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aMejora Exitosa"
- make console execute command "/ie give katanamoldeable5 %player% 1"
- make player run command "/forjarv2 mejorar" as op
- set {_Exp} to 15 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Ryos"
- else:
- send "&cTe faltan Circones"
- if {_katana1} is "+4":
- if amount of {_circon} in player's inventory is greater than 4:
- if player's balance is greater or equal to 15:
- subtract 15 from player's balance
- remove 5 of {_circon} from the player
- remove 1 of {_katanaf} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aMejora Exitosa"
- make console execute command "/ie give katanamoldeable6 %player% 1"
- make player run command "/forjarv2 mejorar" as op
- set {_Exp} to 15 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Ryos"
- else:
- send "&cTe faltan Circones"
- if name of event-inventory is "&9&lHERRAMIENTAS &f&lELEMENTALES":
- cancel event
- if event-slot is 27:
- make player run command "/Forjarv2" as op
- if event-slot is 16:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino Viento":
- set {_Pergaminoxd} to loop-item
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergaminomaestria} to loop-item
- if name of loop-item is equal to "&e&lESOTERICA ORO":
- set {_esoterica} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_pergaminomaestria} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 127:
- if amount of {_esoterica} in player's inventory is greater than 0:
- if amount of {_Pergaminoxd} in player's inventory is greater than 63:
- remove 128 of {_pergaminomaestria} from the player
- remove 128 of {_material} from the player
- remove 64 of {_Pergaminoxd} from the player
- remove 1 of {_esoterica} from the player
- subtract 30 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give KatanaViento %player% 1"
- make console execute command "/cast teach %player% KatanaViento"
- set {_Exp} to 100 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Pergaminos Viento"
- else:
- send "&cTe falta 1 esoterica oro!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe faltan Pergaminos de Maestria!"
- if event-slot is 15:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino Rayo":
- set {_Pergaminoxd} to loop-item
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergaminomaestria} to loop-item
- if name of loop-item is equal to "&e&lESOTERICA ORO":
- set {_esoterica} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_pergaminomaestria} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 127:
- if amount of {_esoterica} in player's inventory is greater than 0:
- if amount of {_Pergaminoxd} in player's inventory is greater than 63:
- remove 128 of {_pergaminomaestria} from the player
- remove 128 of {_material} from the player
- remove 64 of {_Pergaminoxd} from the player
- remove 1 of {_esoterica} from the player
- subtract 30 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give KatanaRayo %player% 1"
- make console execute command "/cast teach %player% CorteRayo"
- set {_Exp} to 100 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Pergaminos Rayo"
- else:
- send "&cTe falta 1 esoterica oro!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe faltan Pergaminos de Maestria!"
- if event-slot is 14:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino Tierra":
- set {_Pergaminoxd} to loop-item
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergaminomaestria} to loop-item
- if name of loop-item is equal to "&e&lESOTERICA ORO":
- set {_esoterica} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_pergaminomaestria} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 127:
- if amount of {_esoterica} in player's inventory is greater than 0:
- if amount of {_Pergaminoxd} in player's inventory is greater than 63:
- remove 128 of {_pergaminomaestria} from the player
- remove 128 of {_material} from the player
- remove 64 of {_Pergaminoxd} from the player
- remove 1 of {_esoterica} from the player
- subtract 30 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give Katanatierra %player% 1"
- make console execute command "/cast teach %player% KatanaTierra"
- set {_Exp} to 100 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Pergaminos Tierra"
- else:
- send "&cTe falta 1 esoterica oro!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe faltan Pergaminos de Maestria!"
- if event-slot is 13:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino Fuego":
- set {_Pergaminoxd} to loop-item
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergaminomaestria} to loop-item
- if name of loop-item is equal to "&e&lESOTERICA ORO":
- set {_esoterica} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_pergaminomaestria} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 127:
- if amount of {_esoterica} in player's inventory is greater than 0:
- if amount of {_Pergaminoxd} in player's inventory is greater than 63:
- remove 128 of {_pergaminomaestria} from the player
- remove 128 of {_material} from the player
- remove 64 of {_Pergaminoxd} from the player
- remove 1 of {_esoterica} from the player
- subtract 30 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give KatanaFuego %player% 1"
- make console execute command "/cast teach %player% KatanaFuego2"
- make console execute command "/cast teach %player% KatanaFuego"
- set {_Exp} to 100 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Pergaminos Fuego"
- else:
- send "&cTe falta 1 esoterica oro!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe faltan Pergaminos de Maestria!"
- if event-slot is 12:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino Agua":
- set {_Pergaminoxd} to loop-item
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergaminomaestria} to loop-item
- if name of loop-item is equal to "&e&lESOTERICA ORO":
- set {_esoterica} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_pergaminomaestria} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 127:
- if amount of {_esoterica} in player's inventory is greater than 0:
- if amount of {_Pergaminoxd} in player's inventory is greater than 63:
- remove 128 of {_pergaminomaestria} from the player
- remove 128 of {_material} from the player
- remove 64 of {_Pergaminoxd} from the player
- remove 1 of {_esoterica} from the player
- subtract 30 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give KatanaAgua %player% 1"
- make console execute command "/cast teach %player% katanaagua"
- make player execute command "/forjarv2 Elemental"
- set {_Exp} to 100 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Pergaminos Agua"
- else:
- send "&cTe falta 1 esoterica oro!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe faltan Pergaminos de Maestria!"
- if name of event-inventory is "&4&lHERRAMIENTAS":
- cancel event
- if event-slot is 27:
- make player run command "/Forjarv2" as op
- if event-slot is 25:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Piel de Arana":
- set {_piel} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Circon":
- set {_circon} to loop-item
- if amount of {_piel} in player's inventory is greater than 127:
- if amount of {_material} in player's inventory is greater than 49:
- if amount of {_circon} in player's inventory is greater than 14:
- if player's balance is greater than 99:
- remove 128 of {_piel} from the player
- remove 50 of {_material} from the player
- remove 15 of {_circon} from the player
- subtract 100 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/cast teach %player% KunaiCuerda"
- make console execute command "/mi give kunaiconcuerda %player%"
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 20 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&cTe faltan Ryos!"
- else:
- send "&cTe faltan Circones!"
- else:
- send "&cTe falta Material!"
- else:
- send "&cTe falta Piel de Araña!"
- if event-slot is 22:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Polvora":
- set {_polvora} to loop-item
- if amount of {_polvora} in player's inventory is greater than 9:
- if player's balance is greater than 9:
- remove 10 of {_polvora} from the player
- subtract 10 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give PapelM %player% 2"
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Polvora!"
- stop
- if event-slot is 23:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Piel de Arana":
- set {_piel} to loop-item
- if amount of {_material} in player's inventory is greater than 9:
- if amount of {_piel} in player's inventory is greater than 5:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 10 of {_material} from the player
- remove 6 of {_piel} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give bombat %player% 8"
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Piel de Araña!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 24:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Polvora":
- set {_polvora} to loop-item
- if amount of {_material} in player's inventory is greater than 11:
- if amount of {_polvora} in player's inventory is greater than 5:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 12 of {_material} from the player
- remove 6 of {_polvora} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give bombah %player% 8"
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Polvora!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 13:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_material} in player's inventory is greater than 7:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 8 of {_material} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fSe almaceno &ax8 &fde &7Kunais&f en tu &6Mochila de Municion &7&o(/Municion)"
- add 8 to {muni-kunai::%player%}
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 8 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 16:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Polvora":
- set {_polvora} to loop-item
- if amount of {_material} in player's inventory is greater than 4:
- if amount of {_polvora} in player's inventory is greater than 2:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 5 of {_material} from the player
- remove 3 of {_polvora} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fSe almaceno &ax8 &fde &6Municion Bomba&f en tu &6Mochila de Municion &7&o(/Municion)"
- add 8 to {muni-bomba::%player%}
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 16 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Polvora!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 15:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Piel de Arana":
- set {_piel} to loop-item
- if amount of {_material} in player's inventory is greater than 1:
- if amount of {_piel} in player's inventory is greater than 0:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 2 of {_material} from the player
- remove 1 of {_piel} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fSe almaceno &ax8 &fde &2Municion Venenosa&f en tu &6Mochila de Municion &7&o(/Municion)"
- add 8 to {muni-veneno::%player%}
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te Faltan Ryos!"
- else:
- send "&c¡Te falta Piel de Araña!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 14:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "Piel de Arana":
- set {_piel} to loop-item
- if amount of {_material} in player's inventory is greater than 2:
- if amount of {_piel} in player's inventory is greater than 1:
- if player's balance is greater than 0:
- subtract 1 from player's balance
- remove 3 of {_material} from the player
- remove 2 of {_piel} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fSe almaceno &ax2 &fde &bCuerda&f en tu &6Mochila de Municion &7&o(/Municion)"
- add 8 to {muni-cuerda::%player%}
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 12 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te Faltan Ryos!"
- else:
- send "&c¡Te falta Piel de Araña!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 12:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_material} in player's inventory is greater than 49:
- if player's balance is greater than 9:
- remove 50 of {_material} from the player
- subtract 10 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give Kunai %player% 1"
- set {state::%player%} to 1
- set {_Exp} to 10 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- make player run command "/forjarv2 Herramientas" as op
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 21:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_material} in player's inventory is greater than 7:
- if player's balance is greater than 0:
- remove 10 of {_material} from the player
- subtract 1 from player's balance
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/ie give Shurikens %player% 8"
- make player run command "/forjarv2 Herramientas" as op
- set {_Exp} to 5 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 35:
- make player run command "/forjarv2 Herramientas2" as op
- if name of event-inventory is "&4&lHERRAMIENTAS II":
- cancel event
- if event-slot is 27:
- make player run command "/forjarv2 Herramientas" as op
- if event-slot is 12:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&8Hierro":
- set {_hierro} to loop-item
- if amount of {_hierro} in player's inventory is greater than 2:
- if player's balance is greater than 19:
- remove 3 of {_hierro} from the player
- subtract 20 from player's balance
- make console execute command "/mi give Wakisaki %player%"
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- set {_Exp} to 15 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Ryos!"
- stop
- else:
- send "&c¡Te falta Hierro!"
- stop
- if event-slot is 13:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if name of loop-item is equal to "&8Hierro":
- set {_hierro} to loop-item
- if amount of {_material} in player's inventory is greater than 19:
- if amount of {_hierro} in player's inventory is greater than 9:
- remove 20 of {_material} from the player
- remove 10 of {_hierro} from the player
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aExito"
- make console execute command "/mi give MazoReforjado %player%"
- set {_Exp} to 15 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te falta Hierro!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if name of event-inventory is "&5&lKENJUTSU":
- cancel event
- if event-slot is 27:
- make player run command "/Forjarv2" as op
- if event-slot is 24:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&7&lKATANA ESOTERICA&b +4":
- set {_esoteric4} to loop-item
- if {atrac100::%player%} is greater than 0:
- if amount of {_esoteric4} in player's inventory is greater than 0:
- remove 1 of {_esoteric4} from the player
- subtract 1 from {atrac100::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aSe aplico el Kenjutsu en tu Katana Esoterica!"
- make console execute command "/ie give katanaatraccion %player% 1"
- make console execute command "/cast teach %player% KatanaAtraccion"
- make player run command "/forjarv2 Kenjutsu" as op
- set {_Exp} to 50 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te falta x1 Katana Esoterica +4!"
- stop
- else:
- send "&c¡Te falta x1 &dPergamino Atraccion &7- &6100%%!"
- stop
- if event-slot is 22:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&6&lESOTERICA BRONCE":
- set {_pergamino} to loop-item
- if name of loop-item is equal to "&f&lESOTERICA BLANCA":
- set {_pergamino2} to loop-item
- if {atrac50::%player%} is greater than 0:
- if amount of {_pergamino} in player's inventory is greater than 0:
- if amount of {_pergamino2} in player's inventory is greater than 0:
- remove 1 of {_pergamino} from the player
- remove 1 of {_pergamino2} from the player
- subtract 1 from {atrac50::%player%}
- add 1 to {atrac100::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fWill &aalmaceno &ftu &dPergamino Atraccion &7- &6100%%&f en su Mochila!"
- make player run command "/forjarv2 Kenjutsu" as op
- set {_Exp} to 35 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te faltan Esotericas Blanca!"
- stop
- else:
- send "&c¡Te faltan Esotericas Bronce!"
- stop
- else:
- send "&c¡Te falta x1 &dPergamino Atraccion &7- &c50%%!"
- stop
- if event-slot is 21:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergamino} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_material} in player's inventory is greater than 31:
- if amount of {_pergamino} in player's inventory is greater than 69:
- remove 70 of {_pergamino} from the player
- remove 32 of {_material} from the player
- add 1 to {atrac50::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fWill &aalmaceno &ftu &dPergamino Atraccion &7- &c50%%&f en su Mochila!"
- set {_Exp} to 25 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- make player run command "/forjarv2 Kenjutsu" as op
- else:
- send "&c¡Te falta Pergaminos de Maestria!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 12:
- loop all items in the inventory of player:
- if name of loop-item is equal to "Pergamino de Maestria":
- set {_pergamino} to loop-item
- if name of loop-item is equal to "Material":
- set {_material} to loop-item
- if amount of {_material} in player's inventory is greater than 31:
- if amount of {_pergamino} in player's inventory is greater than 39:
- remove 40 of {_pergamino} from the player
- remove 32 of {_material} from the player
- add 1 to {tajo50::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fWill &aalmaceno &ftu &dPergamino Tajo Silbante &7- &c50%%&f en su Mochila!"
- set {_Exp} to 25 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- execute unsafe {_query} in {-sql}
- else:
- send "&c¡Te falta Pergaminos de Maestria!"
- stop
- else:
- send "&c¡Te falta Material!"
- stop
- if event-slot is 13:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&6&lESOTERICA BRONCE":
- set {_pergamino} to loop-item
- if {tajo50::%player%} is greater than 0:
- if amount of {_pergamino} in player's inventory is greater than 1:
- remove 2 of {_pergamino} from the player
- subtract 1 from {tajo50::%player%}
- add 1 to {tajo100::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&fWill &aalmaceno &ftu &dPergamino Tajo Silbante &7- &6100%%&f en su Mochila!"
- set {_Exp} to 35 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- make player run command "/forjarv2 Kenjutsu" as op
- else:
- send "&c¡Te faltan Esotericas Bronce!"
- stop
- else:
- send "&c¡Te falta x1 &dPergamino Tajo Silbante &7- &c50%%!"
- stop
- if event-slot is 15:
- loop all items in the inventory of player:
- if name of loop-item is equal to "&7&lKATANA ESOTERICA&b +4":
- set {_esoteric4} to loop-item
- if {tajo100::%player%} is greater than 0:
- if amount of {_esoteric4} in player's inventory is greater than 0:
- remove 1 of {_esoteric4} from the player
- subtract 1 from {tajo100::%player%}
- play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
- send "&aSe aplico el Kenjutsu en tu Katana Esoterica!"
- make console execute command "/ie give TajoSilbante %player% 1"
- make console execute command "/cast teach %player% MultiDeTajoSilbante"
- make player run command "/forjarv2 Kenjutsu" as op
- set {_Exp} to 50 * {lvlmultipler::%player%}
- add {_Exp} to {xpwill::%player%}
- send "&a+%{_Exp}% de Forja" to player
- set {_details::*} to player
- call custom event "forjar" to details {_details::*}
- else:
- send "&c¡Te falta x1 Katana Esoterica +4!"
- stop
- else:
- send "&c¡Te falta x1 &dPergamino Tajo Silbante &7- &6100%%!"
- stop
- if name of event-inventory is "&f&lFORJAR":
- cancel event
- if event-slot is 27:
- close player's inventory
- if event-slot is 12:
- make player run command "/forjarv2 Kenjutsu" as op
- if event-slot is 14:
- make player run command "/Forjarv2 Elementos" as op
- if event-slot is 16:
- make player run command "/forjarv2 Herramientas" as op
- if event-slot is 35:
- make player run command "/Forjarv2 Mejorar" as op
- on swap hand items:
- if name of player's tool is "&9&lKUNAI":
- if offhand tool is air:
- cancel event
- if {state::%player%} is 4:
- set {state::%player%} to 1
- set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &7Normal"
- send "&dMunicion&f: &7Normal"
- stop
- if {state::%player%} is 3:
- set {state::%player%} to 4
- set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &bCuerda"
- send "&dMunicion&f: &bCuerda"
- stop
- if {state::%player%} is 2:
- set {state::%player%} to 3
- set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &6Explosiva"
- send "&dMunicion&f: &6Explosiva"
- stop
- if {state::%player%} is 1:
- set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &2Venenosa"
- send "&dMunicion&f: &2Venenosa"
- set {state::%player%} to 2
- stop
- on right click:
- if name of player's tool is "&9&lKUNAI":
- if {state::%player%} is 1:
- if {muni-kunai::%player%} is greater than 0:
- set {_spell} to "Kunai"
- set {_p} to player
- MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
- set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
- send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
- stop
- else:
- make console execute command "/cast forcecast %player% Kunai"
- subtract 1 from {muni-kunai::%player%}
- else:
- send "&cTus reservas de kunais son de %{muni-kunai::%player%}%"
- if {state::%player%} is 2:
- if {muni-veneno::%player%} is greater than 0:
- set {_spell} to "KunaiVenenoso"
- set {_p} to player
- MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
- set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
- send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
- stop
- else:
- make console execute command "/cast forcecast %player% KunaiVenenoso"
- subtract 1 from {muni-veneno::%player%}
- else:
- send "&cTus reservas de Kunais Venenosos son de %{muni-veneno::%player%}%"
- if {state::%player%} is 3:
- if {muni-bomba::%player%} is greater than 0:
- set {_spell} to "KunaiBomba"
- set {_p} to player
- MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
- set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
- send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
- stop
- else:
- make console execute command "/cast forcecast %player% KunaiBomba"
- subtract 1 from {muni-bomba::%player%}
- else:
- send "&cTus reservas de Kunais Bomba son de %{muni-bomba::%player%}%"
- if {state::%player%} is 4:
- if {muni-cuerda::%player%} is greater than 0:
- set {_spell} to "KunaiCuerda"
- set {_p} to player
- MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
- set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
- send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
- stop
- else:
- make console execute command "/cast forcecast %player% KunaiCuerda"
- subtract 1 from {muni-cuerda::%player%}
- else:
- send "&cTus reservas de Cuerda son de %{muni-cuerda::%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement