Advertisement
PabloEduardo

Will

May 3rd, 2022 (edited)
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.60 KB | None | 0 0
  1. import:
  2. com.nisovin.magicspells.MagicSpells
  3. com.nisovin.magicspells.Spell
  4. com.nisovin.magicspells.mana.ManaChangeReason
  5. #
  6. command /willxp [<number>] [<player>]:
  7. executable by: console
  8. trigger:
  9. if arg 1 is set:
  10. if arg 2 is set:
  11. set {_Exp} to arg-1 * {lvlmultipler::%arg-2%}
  12. add {_Exp} to {xpwill::%arg-2%}
  13. send "&a+%{_Exp}% de Forja &7&o(Mision)" to arg-2
  14. set {_details::*} to arg-2
  15. call custom event "forjar" to details {_details::*}
  16. evt "forjar":
  17. if {lvlwill::%event-player%} is greater than 25:
  18. stop
  19. else:
  20. if {xpwill::%event-player%} is greater than {nextwill::%event-player%}:
  21. set {xpwill::%event-player%} to {xpwill::%event-player%} - {nextwill::%event-player%}
  22. add 1 to {lvlwill::%event-player%}
  23. send "&fNivel de &6&lFORJA&f aumentado a %{lvlwill::%event-player%}%" to event-player
  24. add 150 to {nextwill::%event-player%}
  25. set {_query} to "UPDATE Ajustes SET lvlwill = ""%{lvlwill::%event-player%}%"", xpwill = ""%{xpwill::%event-player%}%"", nextwill = ""%{nextwill::%event-player%}%"" WHERE uuid = ""%event-player's uuid%"""
  26. execute unsafe {_query} in {-sql}
  27. on Citizen right click:
  28. if Citizen is named is "&6Will": #Entrar en el chat
  29. 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
  30. command /Forjarv2 [<text>]:
  31. permission: Staff
  32. trigger:
  33. if {NombreRol::%player%} is set:
  34. set {_nombre} to "%{NombreRol::%player%}%"
  35. else:
  36. set {_nombre} to "%player%"
  37. set {_p} to "%player%" parsed as player
  38. set {_x2} to MagicSpells.getManaHandler().getMaxMana({_p})
  39. if player has permission "Anbu":
  40. set {_trabajo} to "&7Anbu"
  41. if player has permission "Guardia":
  42. set {_trabajo} to "&9Guardia"
  43. if player has permission "Sensei":
  44. set {_trabajo} to "&eSensei"
  45. if arg 1 isn't set:
  46. set {_p} to "%player%" parsed as player
  47. open chest with 4 rows named "&f&lFORJAR" to player
  48. 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 «"
  49. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  50. set slot 27 of player's current inventory to magma cream named "&c« Cerrar" with lore "" and "&6• &fCerrar el Menu"
  51.  
  52. 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"
  53. 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"
  54. set slot 16 of player's current inventory to magma cream named "&4&lHERRAMIENTAS" with lore "&6• &f¡Forja herramientas Ninja!"
  55.  
  56. 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!"
  57. if arg 1 is "Kenjutsu":
  58. set {_p} to "%player%" parsed as player
  59. open chest with 4 rows named "&5&lKENJUTSU" to player
  60. 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 «"
  61. 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%}%"
  62. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  63. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
  64.  
  65. 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
  66. 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
  67. 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
  68. 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 «"
  69. 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 «"
  70. 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 «"
  71. if arg 1 is "Herramientas2":
  72. set {_p} to "%player%" parsed as player
  73. open chest with 4 rows named "&4&lHERRAMIENTAS II" to player
  74. 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 «"
  75. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  76. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar a la Pagina Anterior"
  77. 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%}%"
  78.  
  79.  
  80. 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 «"
  81. 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 «"
  82.  
  83. if arg 1 is "Herramientas":
  84. set {_p} to "%player%" parsed as player
  85. open chest with 4 rows named "&4&lHERRAMIENTAS" to player
  86. 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 «"
  87. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  88. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
  89. 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%}%"
  90. 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 «"
  91. 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 «"
  92. 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 «"
  93. 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 «"
  94. 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 «"
  95.  
  96. 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 «"
  97. 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 «"
  98. 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 «"
  99. 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 «"
  100. 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 «"
  101. set slot 35 of player's current inventory to magma cream named "&aSiguiente »" with lore "" and "&6• &fSiguiente Pagina"
  102. if arg 1 is "Elementos":
  103. set {_p} to "%player%" parsed as player
  104. open chest with 4 rows named "&9&lHERRAMIENTAS &f&lELEMENTALES" to player
  105. 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 «"
  106. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  107. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
  108.  
  109. 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 «"
  110. 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 «"
  111. 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 «"
  112. 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 «"
  113. 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 «"
  114. if arg 1 is "Mejorar":
  115. set {_p} to "%player%" parsed as player
  116. open chest with 4 rows named "&a&lMEJORAR HERRAMIENTAS" to player
  117. 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 «"
  118. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  119. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresar"
  120. loop all items in the inventory of player:
  121. if name of loop-item is equal to "&7&lKATANA":
  122. set {_katana1} to "+0"
  123. if name of loop-item is equal to "&7&lKATANA ESOTERICA":
  124. set {_katana1} to "+1"
  125. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+1":
  126. set {_katana1} to "+2"
  127. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+2":
  128. set {_katana1} to "+3"
  129. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+3":
  130. set {_katana1} to "+4"
  131. if {_katana1} isn't set:
  132. set slot 14 of player's current inventory to barrier named "&4¡No tienes nada para Mejorar!"
  133. if {_katana1} is "+0":
  134. 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 «"
  135. if {_katana1} is "+1":
  136. 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 «"
  137. if {_katana1} is "+2":
  138. 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 «"
  139. if {_katana1} is "+3":
  140. 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 «"
  141. if {_katana1} is "+4":
  142. 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 «"
  143. command /Municion [<text>] [<number>] [<player>]:
  144. trigger:
  145. if arg 1 isn't set:
  146. send "&6&lMOCHILA DE MUNICION"
  147. send ""
  148. send "&bCuerda&f: &ax%{muni-cuerda::%player%}%"
  149. send "&6Kunai Bomba&f: &ax%{muni-bomba::%player%}%"
  150. send "&2Kunai Venenoso&f: &ax%{muni-veneno::%player%}%"
  151. send "&7Kunai Estandar&f: &ax%{muni-kunai::%player%}%"
  152. send ""
  153. if player has permission "Staff":
  154. if arg 1 is "bomba":
  155. if arg 2 is set:
  156. if arg 3 is set:
  157. add arg-2 to {muni-bomba::%arg-3%}
  158. send "+%arg-2% Municion %arg-1%" to arg-3
  159. if arg 1 is "estandar":
  160. if arg 2 is set:
  161. if arg 3 is set:
  162. add arg-2 to {muni-kunai::%arg-3%}
  163. send "+%arg-2% Kunais" to arg-3
  164. if arg 1 is "veneno":
  165. if arg 2 is set:
  166. if arg 3 is set:
  167. add arg-2 to {muni-veneno::%arg-3%}
  168. send "+%arg-2% Municion %arg-1%" to arg-3
  169. if arg 1 is "cuerda":
  170. if arg 2 is set:
  171. if arg 3 is set:
  172. add arg-2 to {muni-cuerda::%arg-3%}
  173. send "+%arg-2% Municion %arg-1%" to arg-3
  174.  
  175. on inventory click:
  176. if name of event-inventory is "&a&lMEJORAR HERRAMIENTAS" or "&4&lHERRAMIENTAS" or "&4&lHERRAMIENTAS II" or "&f&lFORJAR":
  177. set {_item} to event-item
  178. set {_lines::*} to lore of {_item}
  179. set {_linea} to 0
  180. loop {_lines::*}:
  181. add 1 to {_linea}
  182. if "%loop-value%" contains "&e⚠ &cRequiere: &6Forja Nivel":
  183. set {_nivel::*} to loop-value split at "Nivel"
  184. set {_nivelReq} to {_nivel::2} parsed as a number
  185. set {_c} to {_nivelReq} - {lvlwill::%player%}
  186. if {lvlwill::%player%} is greater or equal to {_nivelReq}:
  187. continue
  188. stop
  189. else:
  190. send "&fTe faltan &c%{_c}% Niveles de Forja"
  191. cancel event
  192. stop
  193. if name of event-inventory is "&a&lMEJORAR HERRAMIENTAS":
  194. cancel event
  195. if event-slot is 27:
  196. make player run command "/Forjarv2" as op
  197. if event-slot is 14:
  198. loop all items in the inventory of player:
  199. if name of loop-item is equal to "&f&lESOTERICA BLANCA":
  200. set {_esotericablanca} to loop-item
  201. if name of loop-item is equal to "Circon":
  202. set {_circon} to loop-item
  203. if name of loop-item is equal to "&7&lKATANA":
  204. set {_katana1} to "+0"
  205. set {_katanaf} to loop-item
  206. if name of loop-item is equal to "&7&lKATANA ESOTERICA":
  207. set {_katana1} to "+1"
  208. set {_katanaf} to loop-item
  209. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+1":
  210. set {_katana1} to "+2"
  211. set {_katanaf} to loop-item
  212. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+2":
  213. set {_katana1} to "+3"
  214. set {_katanaf} to loop-item
  215. if name of loop-item is equal to "&7&lKATANA ESOTERICA &B+3":
  216. set {_katana1} to "+4"
  217. set {_katanaf} to loop-item
  218. if {_katana1} isn't set:
  219. stop
  220. if {_katana1} is "+0":
  221. if amount of {_esotericablanca} in player's inventory is greater than 0:
  222. remove 1 of {_esotericablanca} from the player
  223. remove 1 of {_katanaf} from the player
  224. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  225. send "&aMejora Exitosa"
  226. make console execute command "/ie give katanamoldeable %player% 1"
  227. make player run command "/forjarv2 mejorar" as op
  228. set {_Exp} to 10 * {lvlmultipler::%player%}
  229. add {_Exp} to {xpwill::%player%}
  230. send "&a+%{_Exp}% de Forja" to player
  231. set {_details::*} to player
  232. call custom event "forjar" to details {_details::*}
  233. if {_katana1} is "+1":
  234. if amount of {_circon} in player's inventory is greater than 1:
  235. remove 2 of {_circon} from the player
  236. remove 1 of {_katanaf} from the player
  237. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  238. send "&aMejora Exitosa"
  239. make console execute command "/ie give katanamoldeable3 %player% 1"
  240. make player run command "/forjarv2 mejorar" as op
  241. set {_Exp} to 12 * {lvlmultipler::%player%}
  242. add {_Exp} to {xpwill::%player%}
  243. send "&a+%{_Exp}% de Forja" to player
  244. set {_details::*} to player
  245. call custom event "forjar" to details {_details::*}
  246. else:
  247. send "&cTe faltan Circones"
  248. if {_katana1} is "+2":
  249. if amount of {_circon} in player's inventory is greater than 2:
  250. if player's balance is greater or equal to 10:
  251. subtract 10 from player's balance
  252. remove 3 of {_circon} from the player
  253. remove 1 of {_katanaf} from the player
  254. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  255. send "&aMejora Exitosa"
  256. make console execute command "/ie give katanamoldeable4 %player% 1"
  257. make player run command "/forjarv2 mejorar" as op
  258. set {_Exp} to 10 * {lvlmultipler::%player%}
  259. add {_Exp} to {xpwill::%player%}
  260. send "&a+%{_Exp}% de Forja" to player
  261. set {_details::*} to player
  262. call custom event "forjar" to details {_details::*}
  263. else:
  264. send "&cTe faltan Ryos"
  265. else:
  266. send "&cTe faltan Circones"
  267. if {_katana1} is "+3":
  268. if amount of {_circon} in player's inventory is greater than 3:
  269. if player's balance is greater or equal to 10:
  270. subtract 10 from player's balance
  271. remove 4 of {_circon} from the player
  272. remove 1 of {_katanaf} from the player
  273. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  274. send "&aMejora Exitosa"
  275. make console execute command "/ie give katanamoldeable5 %player% 1"
  276. make player run command "/forjarv2 mejorar" as op
  277. set {_Exp} to 15 * {lvlmultipler::%player%}
  278. add {_Exp} to {xpwill::%player%}
  279. send "&a+%{_Exp}% de Forja" to player
  280. set {_details::*} to player
  281. call custom event "forjar" to details {_details::*}
  282. else:
  283. send "&cTe faltan Ryos"
  284. else:
  285. send "&cTe faltan Circones"
  286. if {_katana1} is "+4":
  287. if amount of {_circon} in player's inventory is greater than 4:
  288. if player's balance is greater or equal to 15:
  289. subtract 15 from player's balance
  290. remove 5 of {_circon} from the player
  291. remove 1 of {_katanaf} from the player
  292. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  293. send "&aMejora Exitosa"
  294. make console execute command "/ie give katanamoldeable6 %player% 1"
  295. make player run command "/forjarv2 mejorar" as op
  296. set {_Exp} to 15 * {lvlmultipler::%player%}
  297. add {_Exp} to {xpwill::%player%}
  298. send "&a+%{_Exp}% de Forja" to player
  299. set {_details::*} to player
  300. call custom event "forjar" to details {_details::*}
  301. else:
  302. send "&cTe faltan Ryos"
  303. else:
  304. send "&cTe faltan Circones"
  305. if name of event-inventory is "&9&lHERRAMIENTAS &f&lELEMENTALES":
  306. cancel event
  307. if event-slot is 27:
  308. make player run command "/Forjarv2" as op
  309. if event-slot is 16:
  310. loop all items in the inventory of player:
  311. if name of loop-item is equal to "Pergamino Viento":
  312. set {_Pergaminoxd} to loop-item
  313. if name of loop-item is equal to "Pergamino de Maestria":
  314. set {_pergaminomaestria} to loop-item
  315. if name of loop-item is equal to "&e&lESOTERICA ORO":
  316. set {_esoterica} to loop-item
  317. if name of loop-item is equal to "Material":
  318. set {_material} to loop-item
  319. if amount of {_pergaminomaestria} in player's inventory is greater than 127:
  320. if amount of {_material} in player's inventory is greater than 127:
  321. if amount of {_esoterica} in player's inventory is greater than 0:
  322. if amount of {_Pergaminoxd} in player's inventory is greater than 63:
  323. remove 128 of {_pergaminomaestria} from the player
  324. remove 128 of {_material} from the player
  325. remove 64 of {_Pergaminoxd} from the player
  326. remove 1 of {_esoterica} from the player
  327. subtract 30 from player's balance
  328. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  329. send "&aExito"
  330. make console execute command "/ie give KatanaViento %player% 1"
  331. make console execute command "/cast teach %player% KatanaViento"
  332. set {_Exp} to 100 * {lvlmultipler::%player%}
  333. add {_Exp} to {xpwill::%player%}
  334. send "&a+%{_Exp}% de Forja" to player
  335. set {_details::*} to player
  336. call custom event "forjar" to details {_details::*}
  337. else:
  338. send "&cTe faltan Pergaminos Viento"
  339. else:
  340. send "&cTe falta 1 esoterica oro!"
  341. else:
  342. send "&cTe falta Material!"
  343. else:
  344. send "&cTe faltan Pergaminos de Maestria!"
  345. if event-slot is 15:
  346. loop all items in the inventory of player:
  347. if name of loop-item is equal to "Pergamino Rayo":
  348. set {_Pergaminoxd} to loop-item
  349. if name of loop-item is equal to "Pergamino de Maestria":
  350. set {_pergaminomaestria} to loop-item
  351. if name of loop-item is equal to "&e&lESOTERICA ORO":
  352. set {_esoterica} to loop-item
  353. if name of loop-item is equal to "Material":
  354. set {_material} to loop-item
  355. if amount of {_pergaminomaestria} in player's inventory is greater than 127:
  356. if amount of {_material} in player's inventory is greater than 127:
  357. if amount of {_esoterica} in player's inventory is greater than 0:
  358. if amount of {_Pergaminoxd} in player's inventory is greater than 63:
  359. remove 128 of {_pergaminomaestria} from the player
  360. remove 128 of {_material} from the player
  361. remove 64 of {_Pergaminoxd} from the player
  362. remove 1 of {_esoterica} from the player
  363. subtract 30 from player's balance
  364. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  365. send "&aExito"
  366. make console execute command "/ie give KatanaRayo %player% 1"
  367. make console execute command "/cast teach %player% CorteRayo"
  368. set {_Exp} to 100 * {lvlmultipler::%player%}
  369. add {_Exp} to {xpwill::%player%}
  370. send "&a+%{_Exp}% de Forja" to player
  371. set {_details::*} to player
  372. call custom event "forjar" to details {_details::*}
  373. else:
  374. send "&cTe faltan Pergaminos Rayo"
  375. else:
  376. send "&cTe falta 1 esoterica oro!"
  377. else:
  378. send "&cTe falta Material!"
  379. else:
  380. send "&cTe faltan Pergaminos de Maestria!"
  381. if event-slot is 14:
  382. loop all items in the inventory of player:
  383. if name of loop-item is equal to "Pergamino Tierra":
  384. set {_Pergaminoxd} to loop-item
  385. if name of loop-item is equal to "Pergamino de Maestria":
  386. set {_pergaminomaestria} to loop-item
  387. if name of loop-item is equal to "&e&lESOTERICA ORO":
  388. set {_esoterica} to loop-item
  389. if name of loop-item is equal to "Material":
  390. set {_material} to loop-item
  391. if amount of {_pergaminomaestria} in player's inventory is greater than 127:
  392. if amount of {_material} in player's inventory is greater than 127:
  393. if amount of {_esoterica} in player's inventory is greater than 0:
  394. if amount of {_Pergaminoxd} in player's inventory is greater than 63:
  395. remove 128 of {_pergaminomaestria} from the player
  396. remove 128 of {_material} from the player
  397. remove 64 of {_Pergaminoxd} from the player
  398. remove 1 of {_esoterica} from the player
  399. subtract 30 from player's balance
  400. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  401. send "&aExito"
  402. make console execute command "/ie give Katanatierra %player% 1"
  403. make console execute command "/cast teach %player% KatanaTierra"
  404. set {_Exp} to 100 * {lvlmultipler::%player%}
  405. add {_Exp} to {xpwill::%player%}
  406. send "&a+%{_Exp}% de Forja" to player
  407. set {_details::*} to player
  408. call custom event "forjar" to details {_details::*}
  409. else:
  410. send "&cTe faltan Pergaminos Tierra"
  411. else:
  412. send "&cTe falta 1 esoterica oro!"
  413. else:
  414. send "&cTe falta Material!"
  415. else:
  416. send "&cTe faltan Pergaminos de Maestria!"
  417. if event-slot is 13:
  418. loop all items in the inventory of player:
  419. if name of loop-item is equal to "Pergamino Fuego":
  420. set {_Pergaminoxd} to loop-item
  421. if name of loop-item is equal to "Pergamino de Maestria":
  422. set {_pergaminomaestria} to loop-item
  423. if name of loop-item is equal to "&e&lESOTERICA ORO":
  424. set {_esoterica} to loop-item
  425. if name of loop-item is equal to "Material":
  426. set {_material} to loop-item
  427. if amount of {_pergaminomaestria} in player's inventory is greater than 127:
  428. if amount of {_material} in player's inventory is greater than 127:
  429. if amount of {_esoterica} in player's inventory is greater than 0:
  430. if amount of {_Pergaminoxd} in player's inventory is greater than 63:
  431. remove 128 of {_pergaminomaestria} from the player
  432. remove 128 of {_material} from the player
  433. remove 64 of {_Pergaminoxd} from the player
  434. remove 1 of {_esoterica} from the player
  435. subtract 30 from player's balance
  436. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  437. send "&aExito"
  438. make console execute command "/ie give KatanaFuego %player% 1"
  439. make console execute command "/cast teach %player% KatanaFuego2"
  440. make console execute command "/cast teach %player% KatanaFuego"
  441. set {_Exp} to 100 * {lvlmultipler::%player%}
  442. add {_Exp} to {xpwill::%player%}
  443. send "&a+%{_Exp}% de Forja" to player
  444. set {_details::*} to player
  445. call custom event "forjar" to details {_details::*}
  446. else:
  447. send "&cTe faltan Pergaminos Fuego"
  448. else:
  449. send "&cTe falta 1 esoterica oro!"
  450. else:
  451. send "&cTe falta Material!"
  452. else:
  453. send "&cTe faltan Pergaminos de Maestria!"
  454. if event-slot is 12:
  455. loop all items in the inventory of player:
  456. if name of loop-item is equal to "Pergamino Agua":
  457. set {_Pergaminoxd} to loop-item
  458. if name of loop-item is equal to "Pergamino de Maestria":
  459. set {_pergaminomaestria} to loop-item
  460. if name of loop-item is equal to "&e&lESOTERICA ORO":
  461. set {_esoterica} to loop-item
  462. if name of loop-item is equal to "Material":
  463. set {_material} to loop-item
  464. if amount of {_pergaminomaestria} in player's inventory is greater than 127:
  465. if amount of {_material} in player's inventory is greater than 127:
  466. if amount of {_esoterica} in player's inventory is greater than 0:
  467. if amount of {_Pergaminoxd} in player's inventory is greater than 63:
  468. remove 128 of {_pergaminomaestria} from the player
  469. remove 128 of {_material} from the player
  470. remove 64 of {_Pergaminoxd} from the player
  471. remove 1 of {_esoterica} from the player
  472. subtract 30 from player's balance
  473. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  474. send "&aExito"
  475. make console execute command "/ie give KatanaAgua %player% 1"
  476. make console execute command "/cast teach %player% katanaagua"
  477. make player execute command "/forjarv2 Elemental"
  478. set {_Exp} to 100 * {lvlmultipler::%player%}
  479. add {_Exp} to {xpwill::%player%}
  480. send "&a+%{_Exp}% de Forja" to player
  481. set {_details::*} to player
  482. call custom event "forjar" to details {_details::*}
  483. else:
  484. send "&cTe faltan Pergaminos Agua"
  485. else:
  486. send "&cTe falta 1 esoterica oro!"
  487. else:
  488. send "&cTe falta Material!"
  489. else:
  490. send "&cTe faltan Pergaminos de Maestria!"
  491. if name of event-inventory is "&4&lHERRAMIENTAS":
  492. cancel event
  493. if event-slot is 27:
  494. make player run command "/Forjarv2" as op
  495. if event-slot is 25:
  496. loop all items in the inventory of player:
  497. if name of loop-item is equal to "Piel de Arana":
  498. set {_piel} to loop-item
  499. if name of loop-item is equal to "Material":
  500. set {_material} to loop-item
  501. if name of loop-item is equal to "Circon":
  502. set {_circon} to loop-item
  503. if amount of {_piel} in player's inventory is greater than 127:
  504. if amount of {_material} in player's inventory is greater than 49:
  505. if amount of {_circon} in player's inventory is greater than 14:
  506. if player's balance is greater than 99:
  507. remove 128 of {_piel} from the player
  508. remove 50 of {_material} from the player
  509. remove 15 of {_circon} from the player
  510. subtract 100 from player's balance
  511. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  512. send "&aExito"
  513. make console execute command "/cast teach %player% KunaiCuerda"
  514. make console execute command "/mi give kunaiconcuerda %player%"
  515. make player run command "/forjarv2 Herramientas" as op
  516. set {_Exp} to 20 * {lvlmultipler::%player%}
  517. add {_Exp} to {xpwill::%player%}
  518. send "&a+%{_Exp}% de Forja" to player
  519. set {_details::*} to player
  520. call custom event "forjar" to details {_details::*}
  521. else:
  522. send "&cTe faltan Ryos!"
  523. else:
  524. send "&cTe faltan Circones!"
  525. else:
  526. send "&cTe falta Material!"
  527. else:
  528. send "&cTe falta Piel de Araña!"
  529. if event-slot is 22:
  530. loop all items in the inventory of player:
  531. if name of loop-item is equal to "Polvora":
  532. set {_polvora} to loop-item
  533. if amount of {_polvora} in player's inventory is greater than 9:
  534. if player's balance is greater than 9:
  535. remove 10 of {_polvora} from the player
  536. subtract 10 from player's balance
  537. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  538. send "&aExito"
  539. make console execute command "/ie give PapelM %player% 2"
  540. make player run command "/forjarv2 Herramientas" as op
  541. set {_Exp} to 12 * {lvlmultipler::%player%}
  542. add {_Exp} to {xpwill::%player%}
  543. send "&a+%{_Exp}% de Forja" to player
  544. set {_details::*} to player
  545. call custom event "forjar" to details {_details::*}
  546. else:
  547. send "&c¡Te faltan Ryos!"
  548. stop
  549. else:
  550. send "&c¡Te falta Polvora!"
  551. stop
  552. if event-slot is 23:
  553. loop all items in the inventory of player:
  554. if name of loop-item is equal to "Material":
  555. set {_material} to loop-item
  556. if name of loop-item is equal to "Piel de Arana":
  557. set {_piel} to loop-item
  558. if amount of {_material} in player's inventory is greater than 9:
  559. if amount of {_piel} in player's inventory is greater than 5:
  560. if player's balance is greater than 0:
  561. subtract 1 from player's balance
  562. remove 10 of {_material} from the player
  563. remove 6 of {_piel} from the player
  564. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  565. send "&aExito"
  566. make console execute command "/ie give bombat %player% 8"
  567. make player run command "/forjarv2 Herramientas" as op
  568. set {_Exp} to 12 * {lvlmultipler::%player%}
  569. add {_Exp} to {xpwill::%player%}
  570. send "&a+%{_Exp}% de Forja" to player
  571. set {_details::*} to player
  572. call custom event "forjar" to details {_details::*}
  573. else:
  574. send "&c¡Te faltan Ryos!"
  575. stop
  576. else:
  577. send "&c¡Te falta Piel de Araña!"
  578. stop
  579. else:
  580. send "&c¡Te falta Material!"
  581. stop
  582. if event-slot is 24:
  583. loop all items in the inventory of player:
  584. if name of loop-item is equal to "Material":
  585. set {_material} to loop-item
  586. if name of loop-item is equal to "Polvora":
  587. set {_polvora} to loop-item
  588. if amount of {_material} in player's inventory is greater than 11:
  589. if amount of {_polvora} in player's inventory is greater than 5:
  590. if player's balance is greater than 0:
  591. subtract 1 from player's balance
  592. remove 12 of {_material} from the player
  593. remove 6 of {_polvora} from the player
  594. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  595. send "&aExito"
  596. make console execute command "/ie give bombah %player% 8"
  597. make player run command "/forjarv2 Herramientas" as op
  598. set {_Exp} to 12 * {lvlmultipler::%player%}
  599. add {_Exp} to {xpwill::%player%}
  600. send "&a+%{_Exp}% de Forja" to player
  601. set {_details::*} to player
  602. call custom event "forjar" to details {_details::*}
  603. else:
  604. send "&c¡Te faltan Ryos!"
  605. stop
  606. else:
  607. send "&c¡Te falta Polvora!"
  608. stop
  609. else:
  610. send "&c¡Te falta Material!"
  611. stop
  612. if event-slot is 13:
  613. loop all items in the inventory of player:
  614. if name of loop-item is equal to "Material":
  615. set {_material} to loop-item
  616. if amount of {_material} in player's inventory is greater than 7:
  617. if player's balance is greater than 0:
  618. subtract 1 from player's balance
  619. remove 8 of {_material} from the player
  620. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  621. send "&fSe almaceno &ax8 &fde &7Kunais&f en tu &6Mochila de Municion &7&o(/Municion)"
  622. add 8 to {muni-kunai::%player%}
  623. make player run command "/forjarv2 Herramientas" as op
  624. set {_Exp} to 8 * {lvlmultipler::%player%}
  625. add {_Exp} to {xpwill::%player%}
  626. send "&a+%{_Exp}% de Forja" to player
  627. set {_details::*} to player
  628. call custom event "forjar" to details {_details::*}
  629. else:
  630. send "&c¡Te faltan Ryos!"
  631. stop
  632. else:
  633. send "&c¡Te falta Material!"
  634. stop
  635. if event-slot is 16:
  636. loop all items in the inventory of player:
  637. if name of loop-item is equal to "Material":
  638. set {_material} to loop-item
  639. if name of loop-item is equal to "Polvora":
  640. set {_polvora} to loop-item
  641. if amount of {_material} in player's inventory is greater than 4:
  642. if amount of {_polvora} in player's inventory is greater than 2:
  643. if player's balance is greater than 0:
  644. subtract 1 from player's balance
  645. remove 5 of {_material} from the player
  646. remove 3 of {_polvora} from the player
  647. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  648. send "&fSe almaceno &ax8 &fde &6Municion Bomba&f en tu &6Mochila de Municion &7&o(/Municion)"
  649. add 8 to {muni-bomba::%player%}
  650. make player run command "/forjarv2 Herramientas" as op
  651. set {_Exp} to 16 * {lvlmultipler::%player%}
  652. add {_Exp} to {xpwill::%player%}
  653. send "&a+%{_Exp}% de Forja" to player
  654. set {_details::*} to player
  655. call custom event "forjar" to details {_details::*}
  656. else:
  657. send "&c¡Te faltan Ryos!"
  658. stop
  659. else:
  660. send "&c¡Te falta Polvora!"
  661. stop
  662. else:
  663. send "&c¡Te falta Material!"
  664. stop
  665. if event-slot is 15:
  666. loop all items in the inventory of player:
  667. if name of loop-item is equal to "Material":
  668. set {_material} to loop-item
  669. if name of loop-item is equal to "Piel de Arana":
  670. set {_piel} to loop-item
  671. if amount of {_material} in player's inventory is greater than 1:
  672. if amount of {_piel} in player's inventory is greater than 0:
  673. if player's balance is greater than 0:
  674. subtract 1 from player's balance
  675. remove 2 of {_material} from the player
  676. remove 1 of {_piel} from the player
  677. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  678. send "&fSe almaceno &ax8 &fde &2Municion Venenosa&f en tu &6Mochila de Municion &7&o(/Municion)"
  679. add 8 to {muni-veneno::%player%}
  680. make player run command "/forjarv2 Herramientas" as op
  681. set {_Exp} to 12 * {lvlmultipler::%player%}
  682. add {_Exp} to {xpwill::%player%}
  683. send "&a+%{_Exp}% de Forja" to player
  684. set {_details::*} to player
  685. call custom event "forjar" to details {_details::*}
  686. else:
  687. send "&c¡Te Faltan Ryos!"
  688. else:
  689. send "&c¡Te falta Piel de Araña!"
  690. stop
  691. else:
  692. send "&c¡Te falta Material!"
  693. stop
  694. if event-slot is 14:
  695. loop all items in the inventory of player:
  696. if name of loop-item is equal to "Material":
  697. set {_material} to loop-item
  698. if name of loop-item is equal to "Piel de Arana":
  699. set {_piel} to loop-item
  700. if amount of {_material} in player's inventory is greater than 2:
  701. if amount of {_piel} in player's inventory is greater than 1:
  702. if player's balance is greater than 0:
  703. subtract 1 from player's balance
  704. remove 3 of {_material} from the player
  705. remove 2 of {_piel} from the player
  706. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  707. send "&fSe almaceno &ax2 &fde &bCuerda&f en tu &6Mochila de Municion &7&o(/Municion)"
  708. add 8 to {muni-cuerda::%player%}
  709. make player run command "/forjarv2 Herramientas" as op
  710. set {_Exp} to 12 * {lvlmultipler::%player%}
  711. add {_Exp} to {xpwill::%player%}
  712. send "&a+%{_Exp}% de Forja" to player
  713. set {_details::*} to player
  714. call custom event "forjar" to details {_details::*}
  715. else:
  716. send "&c¡Te Faltan Ryos!"
  717. else:
  718. send "&c¡Te falta Piel de Araña!"
  719. stop
  720. else:
  721. send "&c¡Te falta Material!"
  722. stop
  723. if event-slot is 12:
  724. loop all items in the inventory of player:
  725. if name of loop-item is equal to "Material":
  726. set {_material} to loop-item
  727. if amount of {_material} in player's inventory is greater than 49:
  728. if player's balance is greater than 9:
  729. remove 50 of {_material} from the player
  730. subtract 10 from player's balance
  731. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  732. send "&aExito"
  733. make console execute command "/ie give Kunai %player% 1"
  734. set {state::%player%} to 1
  735. set {_Exp} to 10 * {lvlmultipler::%player%}
  736. add {_Exp} to {xpwill::%player%}
  737. send "&a+%{_Exp}% de Forja" to player
  738. set {_details::*} to player
  739. call custom event "forjar" to details {_details::*}
  740. make player run command "/forjarv2 Herramientas" as op
  741. else:
  742. send "&c¡Te faltan Ryos!"
  743. stop
  744. else:
  745. send "&c¡Te falta Material!"
  746. stop
  747. if event-slot is 21:
  748. loop all items in the inventory of player:
  749. if name of loop-item is equal to "Material":
  750. set {_material} to loop-item
  751. if amount of {_material} in player's inventory is greater than 7:
  752. if player's balance is greater than 0:
  753. remove 10 of {_material} from the player
  754. subtract 1 from player's balance
  755. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  756. send "&aExito"
  757. make console execute command "/ie give Shurikens %player% 8"
  758. make player run command "/forjarv2 Herramientas" as op
  759. set {_Exp} to 5 * {lvlmultipler::%player%}
  760. add {_Exp} to {xpwill::%player%}
  761. send "&a+%{_Exp}% de Forja" to player
  762. set {_details::*} to player
  763. call custom event "forjar" to details {_details::*}
  764. else:
  765. send "&c¡Te faltan Ryos!"
  766. stop
  767. else:
  768. send "&c¡Te falta Material!"
  769. stop
  770. if event-slot is 35:
  771. make player run command "/forjarv2 Herramientas2" as op
  772. if name of event-inventory is "&4&lHERRAMIENTAS II":
  773. cancel event
  774. if event-slot is 27:
  775. make player run command "/forjarv2 Herramientas" as op
  776. if event-slot is 12:
  777. loop all items in the inventory of player:
  778. if name of loop-item is equal to "&8Hierro":
  779. set {_hierro} to loop-item
  780. if amount of {_hierro} in player's inventory is greater than 2:
  781. if player's balance is greater than 19:
  782. remove 3 of {_hierro} from the player
  783. subtract 20 from player's balance
  784. make console execute command "/mi give Wakisaki %player%"
  785. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  786. send "&aExito"
  787. set {_Exp} to 15 * {lvlmultipler::%player%}
  788. add {_Exp} to {xpwill::%player%}
  789. send "&a+%{_Exp}% de Forja" to player
  790. set {_details::*} to player
  791. call custom event "forjar" to details {_details::*}
  792. else:
  793. send "&c¡Te faltan Ryos!"
  794. stop
  795. else:
  796. send "&c¡Te falta Hierro!"
  797. stop
  798. if event-slot is 13:
  799. loop all items in the inventory of player:
  800. if name of loop-item is equal to "Material":
  801. set {_material} to loop-item
  802. if name of loop-item is equal to "&8Hierro":
  803. set {_hierro} to loop-item
  804. if amount of {_material} in player's inventory is greater than 19:
  805. if amount of {_hierro} in player's inventory is greater than 9:
  806. remove 20 of {_material} from the player
  807. remove 10 of {_hierro} from the player
  808. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  809. send "&aExito"
  810. make console execute command "/mi give MazoReforjado %player%"
  811. set {_Exp} to 15 * {lvlmultipler::%player%}
  812. add {_Exp} to {xpwill::%player%}
  813. send "&a+%{_Exp}% de Forja" to player
  814. set {_details::*} to player
  815. call custom event "forjar" to details {_details::*}
  816. else:
  817. send "&c¡Te falta Hierro!"
  818. stop
  819. else:
  820. send "&c¡Te falta Material!"
  821. stop
  822. if name of event-inventory is "&5&lKENJUTSU":
  823. cancel event
  824. if event-slot is 27:
  825. make player run command "/Forjarv2" as op
  826. if event-slot is 24:
  827. loop all items in the inventory of player:
  828. if name of loop-item is equal to "&7&lKATANA ESOTERICA&b +4":
  829. set {_esoteric4} to loop-item
  830. if {atrac100::%player%} is greater than 0:
  831. if amount of {_esoteric4} in player's inventory is greater than 0:
  832. remove 1 of {_esoteric4} from the player
  833. subtract 1 from {atrac100::%player%}
  834. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  835. send "&aSe aplico el Kenjutsu en tu Katana Esoterica!"
  836. make console execute command "/ie give katanaatraccion %player% 1"
  837. make console execute command "/cast teach %player% KatanaAtraccion"
  838. make player run command "/forjarv2 Kenjutsu" as op
  839. set {_Exp} to 50 * {lvlmultipler::%player%}
  840. add {_Exp} to {xpwill::%player%}
  841. send "&a+%{_Exp}% de Forja" to player
  842. set {_details::*} to player
  843. call custom event "forjar" to details {_details::*}
  844. else:
  845. send "&c¡Te falta x1 Katana Esoterica +4!"
  846. stop
  847. else:
  848. send "&c¡Te falta x1 &dPergamino Atraccion &7- &6100%%!"
  849. stop
  850. if event-slot is 22:
  851. loop all items in the inventory of player:
  852. if name of loop-item is equal to "&6&lESOTERICA BRONCE":
  853. set {_pergamino} to loop-item
  854. if name of loop-item is equal to "&f&lESOTERICA BLANCA":
  855. set {_pergamino2} to loop-item
  856. if {atrac50::%player%} is greater than 0:
  857. if amount of {_pergamino} in player's inventory is greater than 0:
  858. if amount of {_pergamino2} in player's inventory is greater than 0:
  859. remove 1 of {_pergamino} from the player
  860. remove 1 of {_pergamino2} from the player
  861. subtract 1 from {atrac50::%player%}
  862. add 1 to {atrac100::%player%}
  863. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  864. send "&fWill &aalmaceno &ftu &dPergamino Atraccion &7- &6100%%&f en su Mochila!"
  865. make player run command "/forjarv2 Kenjutsu" as op
  866. set {_Exp} to 35 * {lvlmultipler::%player%}
  867. add {_Exp} to {xpwill::%player%}
  868. send "&a+%{_Exp}% de Forja" to player
  869. set {_details::*} to player
  870. call custom event "forjar" to details {_details::*}
  871. else:
  872. send "&c¡Te faltan Esotericas Blanca!"
  873. stop
  874. else:
  875. send "&c¡Te faltan Esotericas Bronce!"
  876. stop
  877. else:
  878. send "&c¡Te falta x1 &dPergamino Atraccion &7- &c50%%!"
  879. stop
  880. if event-slot is 21:
  881. loop all items in the inventory of player:
  882. if name of loop-item is equal to "Pergamino de Maestria":
  883. set {_pergamino} to loop-item
  884. if name of loop-item is equal to "Material":
  885. set {_material} to loop-item
  886. if amount of {_material} in player's inventory is greater than 31:
  887. if amount of {_pergamino} in player's inventory is greater than 69:
  888. remove 70 of {_pergamino} from the player
  889. remove 32 of {_material} from the player
  890. add 1 to {atrac50::%player%}
  891. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  892. send "&fWill &aalmaceno &ftu &dPergamino Atraccion &7- &c50%%&f en su Mochila!"
  893. set {_Exp} to 25 * {lvlmultipler::%player%}
  894. add {_Exp} to {xpwill::%player%}
  895. send "&a+%{_Exp}% de Forja" to player
  896. set {_details::*} to player
  897. call custom event "forjar" to details {_details::*}
  898. make player run command "/forjarv2 Kenjutsu" as op
  899. else:
  900. send "&c¡Te falta Pergaminos de Maestria!"
  901. stop
  902. else:
  903. send "&c¡Te falta Material!"
  904. stop
  905. if event-slot is 12:
  906. loop all items in the inventory of player:
  907. if name of loop-item is equal to "Pergamino de Maestria":
  908. set {_pergamino} to loop-item
  909. if name of loop-item is equal to "Material":
  910. set {_material} to loop-item
  911. if amount of {_material} in player's inventory is greater than 31:
  912. if amount of {_pergamino} in player's inventory is greater than 39:
  913. remove 40 of {_pergamino} from the player
  914. remove 32 of {_material} from the player
  915. add 1 to {tajo50::%player%}
  916. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  917. send "&fWill &aalmaceno &ftu &dPergamino Tajo Silbante &7- &c50%%&f en su Mochila!"
  918. set {_Exp} to 25 * {lvlmultipler::%player%}
  919. add {_Exp} to {xpwill::%player%}
  920. send "&a+%{_Exp}% de Forja" to player
  921. set {_details::*} to player
  922. call custom event "forjar" to details {_details::*}
  923. execute unsafe {_query} in {-sql}
  924. else:
  925. send "&c¡Te falta Pergaminos de Maestria!"
  926. stop
  927. else:
  928. send "&c¡Te falta Material!"
  929. stop
  930. if event-slot is 13:
  931. loop all items in the inventory of player:
  932. if name of loop-item is equal to "&6&lESOTERICA BRONCE":
  933. set {_pergamino} to loop-item
  934. if {tajo50::%player%} is greater than 0:
  935. if amount of {_pergamino} in player's inventory is greater than 1:
  936. remove 2 of {_pergamino} from the player
  937. subtract 1 from {tajo50::%player%}
  938. add 1 to {tajo100::%player%}
  939. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  940. send "&fWill &aalmaceno &ftu &dPergamino Tajo Silbante &7- &6100%%&f en su Mochila!"
  941. set {_Exp} to 35 * {lvlmultipler::%player%}
  942. add {_Exp} to {xpwill::%player%}
  943. send "&a+%{_Exp}% de Forja" to player
  944. set {_details::*} to player
  945. call custom event "forjar" to details {_details::*}
  946. make player run command "/forjarv2 Kenjutsu" as op
  947. else:
  948. send "&c¡Te faltan Esotericas Bronce!"
  949. stop
  950. else:
  951. send "&c¡Te falta x1 &dPergamino Tajo Silbante &7- &c50%%!"
  952. stop
  953. if event-slot is 15:
  954. loop all items in the inventory of player:
  955. if name of loop-item is equal to "&7&lKATANA ESOTERICA&b +4":
  956. set {_esoteric4} to loop-item
  957. if {tajo100::%player%} is greater than 0:
  958. if amount of {_esoteric4} in player's inventory is greater than 0:
  959. remove 1 of {_esoteric4} from the player
  960. subtract 1 from {tajo100::%player%}
  961. play sound "block.anvil.use" with volume 5 and pitch 1 at players in radius 5 of player
  962. send "&aSe aplico el Kenjutsu en tu Katana Esoterica!"
  963. make console execute command "/ie give TajoSilbante %player% 1"
  964. make console execute command "/cast teach %player% MultiDeTajoSilbante"
  965. make player run command "/forjarv2 Kenjutsu" as op
  966. set {_Exp} to 50 * {lvlmultipler::%player%}
  967. add {_Exp} to {xpwill::%player%}
  968. send "&a+%{_Exp}% de Forja" to player
  969. set {_details::*} to player
  970. call custom event "forjar" to details {_details::*}
  971. else:
  972. send "&c¡Te falta x1 Katana Esoterica +4!"
  973. stop
  974. else:
  975. send "&c¡Te falta x1 &dPergamino Tajo Silbante &7- &6100%%!"
  976. stop
  977. if name of event-inventory is "&f&lFORJAR":
  978. cancel event
  979. if event-slot is 27:
  980. close player's inventory
  981. if event-slot is 12:
  982. make player run command "/forjarv2 Kenjutsu" as op
  983. if event-slot is 14:
  984. make player run command "/Forjarv2 Elementos" as op
  985. if event-slot is 16:
  986. make player run command "/forjarv2 Herramientas" as op
  987. if event-slot is 35:
  988. make player run command "/Forjarv2 Mejorar" as op
  989. on swap hand items:
  990. if name of player's tool is "&9&lKUNAI":
  991. if offhand tool is air:
  992. cancel event
  993. if {state::%player%} is 4:
  994. set {state::%player%} to 1
  995. set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &7Normal"
  996. send "&dMunicion&f: &7Normal"
  997. stop
  998. if {state::%player%} is 3:
  999. set {state::%player%} to 4
  1000. set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &bCuerda"
  1001. send "&dMunicion&f: &bCuerda"
  1002. stop
  1003. if {state::%player%} is 2:
  1004. set {state::%player%} to 3
  1005. set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &6Explosiva"
  1006. send "&dMunicion&f: &6Explosiva"
  1007. stop
  1008. if {state::%player%} is 1:
  1009. set line 7 of lore of player's tool to "&b ➶ &dMunicion&f: &2Venenosa"
  1010. send "&dMunicion&f: &2Venenosa"
  1011. set {state::%player%} to 2
  1012. stop
  1013. on right click:
  1014. if name of player's tool is "&9&lKUNAI":
  1015. if {state::%player%} is 1:
  1016. if {muni-kunai::%player%} is greater than 0:
  1017. set {_spell} to "Kunai"
  1018. set {_p} to player
  1019. MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
  1020. set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
  1021. send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
  1022. stop
  1023. else:
  1024. make console execute command "/cast forcecast %player% Kunai"
  1025. subtract 1 from {muni-kunai::%player%}
  1026. else:
  1027. send "&cTus reservas de kunais son de %{muni-kunai::%player%}%"
  1028. if {state::%player%} is 2:
  1029. if {muni-veneno::%player%} is greater than 0:
  1030. set {_spell} to "KunaiVenenoso"
  1031. set {_p} to player
  1032. MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
  1033. set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
  1034. send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
  1035. stop
  1036. else:
  1037. make console execute command "/cast forcecast %player% KunaiVenenoso"
  1038. subtract 1 from {muni-veneno::%player%}
  1039. else:
  1040. send "&cTus reservas de Kunais Venenosos son de %{muni-veneno::%player%}%"
  1041. if {state::%player%} is 3:
  1042. if {muni-bomba::%player%} is greater than 0:
  1043. set {_spell} to "KunaiBomba"
  1044. set {_p} to player
  1045. MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
  1046. set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
  1047. send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
  1048. stop
  1049. else:
  1050. make console execute command "/cast forcecast %player% KunaiBomba"
  1051. subtract 1 from {muni-bomba::%player%}
  1052. else:
  1053. send "&cTus reservas de Kunais Bomba son de %{muni-bomba::%player%}%"
  1054. if {state::%player%} is 4:
  1055. if {muni-cuerda::%player%} is greater than 0:
  1056. set {_spell} to "KunaiCuerda"
  1057. set {_p} to player
  1058. MagicSpells.getSpellByInternalName({_spell}).onCooldown({_p}) is true:
  1059. set {_x} to MagicSpells.getSpellByInternalName({_spell}).getCooldown({_p})
  1060. send "&cHabilidad en Enfriamiento &7&o(%{_x}%&7&o)"
  1061. stop
  1062. else:
  1063. make console execute command "/cast forcecast %player% KunaiCuerda"
  1064. subtract 1 from {muni-cuerda::%player%}
  1065. else:
  1066. send "&cTus reservas de Cuerda son de %{muni-cuerda::%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement