PabloEduardo

Combos

Jun 24th, 2022 (edited)
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.33 KB | None | 0 0
  1. on join:
  2. wait 11 seconds
  3. set {lvlmultipler::%player%} to {Multipler-Happy}
  4. every 5 minutes:
  5. if {Multipler-Happy} is 2:
  6. create bossbar titled "&d&lHAPPY HOUR &6x2 &5&lEXP &7(&oNivel y Forja&7)" and id "happy" for all players with progress 100 with colors purple
  7. loop all players:
  8. set {lvlmultipler::%loop-player%} to {Multipler-Happy}
  9. every 1 minute:
  10. set {-time} to now formatted as "HH.mm"
  11. set {-ftime} to "%{-time}%" parsed as number
  12. if {-ftime} is 9.30 or 19.30 or 22.30 or 3.30:
  13. broadcast "&a¡El &dHappy Hour &6x2&5&lEXP &7(&oNivel y Forja&7)&a comenzara en 1 hora!"
  14. if {-ftime} is 10 or 20 or 23 or 4:
  15. broadcast "&a¡El &dHappy Hour &6x2&5&lEXP &7(&oNivel y Forja&7)&a comenzara en 30 minutos!"
  16. if {-ftime} is 10.20 or 20.20 or 23.20 or 4.20:
  17. broadcast "&a¡El &dHappy Hour &6x2&5&lEXP &7(&oNivel y Forja&7)&a comenzara en 10 minutos!"
  18. if {-ftime} is between 4.30 and 5.30:
  19. if {Multipler-Happy} is 2:
  20. stop
  21. else:
  22. happy()
  23. if {-ftime} is between 10.30 and 11.30:
  24. if {Multipler-Happy} is 2:
  25. stop
  26. else:
  27. happy()
  28. if {-ftime} is between 20.30 and 21.30:
  29. if {Multipler-Happy} is 2:
  30. stop
  31. else:
  32. happy()
  33. if {-ftime} is between 23.30 and 24.30:
  34. if {Multipler-Happy} is 2:
  35. stop
  36. else:
  37. happy()
  38.  
  39. function happy():
  40. broadcast "&a¡Se activo el Happy Hour!&f x2 de &5&lEXP&f durante 1 hora!!"
  41. set {Multipler-Happy} to 2
  42. create bossbar titled "&d&lHAPPY HOUR &6x2 &5&lEXP &7(&oNivel y Forja&7)" and id "happy" for all players with progress 100 with colors purple
  43. loop all players:
  44. set {lvlmultipler::%loop-player%} to {Multipler-Happy}
  45. wait 1 hour
  46. set {Multipler-Happy} to 1
  47. loop all players:
  48. set {lvlmultipler::%loop-player%} to {Multipler-Happy}
  49. remove bossbar "happy"
  50. command /hora:
  51. trigger:
  52. set {_hora} to now formatted as "HH.mm"
  53. set {_horaf} to "%{_hora}%" parsed as number
  54. set {_horaf} to {_horaf} + 4
  55. if {_horaf} is between 12 and 24:
  56. set {_TM} to "PM"
  57. else:
  58. set {_TM} to "AM"
  59. set {_hf} to "%{_horaf}%"
  60. replace all "." with ":" in {_hf}
  61. send "&aLa hora actual es: &9%{_hf}% &9&l%{_TM}% &7(Horario ARG)"
  62. command /happyhour [<text>] [<number>]:
  63. trigger:
  64. if arg 1 is "V":
  65. send "%{Multipler-Happy}%" to player
  66. if arg 1 isn't set:
  67. send "&6Horarios: &d08:30 AM / 14:30 PM / 00:30 AM / 03:30 AM &7(Horario ARG)"
  68. make player execute command "/hora"
  69. if arg 1 is "Activar":
  70. if player has permission "Stafflvl3":
  71. happy()
  72. if arg 1 is "Desactivar":
  73. if player has permission "Stafflvl3":
  74. broadcast "&c¡Se forzo el apagado del HappyHour!"
  75. set {Multipler-Happy} to 1
  76. loop all players:
  77. set {lvlmultipler::%loop-player%} to {Multipler-Happy}
  78. remove bossbar "happy"
  79. command /perks [<text>]:
  80. permission: Staff
  81. trigger:
  82. if arg 1 isn't set:
  83. open chest with 4 rows named "&6&lPERKS" to player
  84. set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(2/3)" with lore "" and "&6• &9Nivel: &a%{nivel::%player%}%&7 / &c100" and "&6• &5XP: &a%{xp::%player%}% &7/&c %{xpnext::%player%}%" and "&6• &2Multiplicador: %{lvlmultipler::%player%}%" and "" and "&6• &6Ataque: &f+ %{ESTADISTICAS.atkpor::%player%}%%% &6餝" and "&6• &cConcentracion: &f- %{con::%player%}%s &b餭" and "&6• &9Ninjutsu: &f+ %{ESTADISTICAS.ninpor::%player%}%%% &c餞" and "&6• &eProb Crit: &f+ %{ProbCrit::%player%}%%% &6館" and "&6• &eProb Esquivar: &f+ %{Dex::%player%}%%% &d🏹" and "&6• &4Daño Crit: &f+ %{dañocrit::%player%}%%% &4館" and "&6• &3Defensa: &f+ %{ESTADISTICAS.defpor::%player%}%%% &a餟" and "&6• &dVelocidad: &f+ %{ESTADISTICAS.velpor::%player%}%%% &f餪" and "&6• &aVida: &f%{vidabase::%player%}% &c❤" and "&6• &9Chakra: &f%{_x2}% &b⭐" and "" and "&6• &bElemento: &r%{_j}%" and "&6• &3Afinidad: &r%{_e}%" and "" and "&6• &5&lPM&f: &e%{puntosm::%player%}% &d⏏ &8&o(Puntos de Mejora)" and "&6• &lPA&f: &f%{puntosa::%player%}% &d⏏ &8&o(Puntos de Ascenso)" and "&6• &9&lPH&f: &e%{puntosh::%player%}% &d⏏ &8&o(Puntos de Habilidad)" and "&6• &d&lPR&f: &e%{puntosr::%player%}% &d⏏ &8&o(Puntos de Rasgo)" and "" and "&2» Click para ver tus Rasgos «"
  85. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  86. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresa al Menu Anterior!"
  87.  
  88. set slot 12 of player's current inventory to magma cream named "&7Perk - &8(Vacio)" with lore "" and "&aDisponible"
  89. set slot 14 of player's current inventory to magma cream named "&7Perk - &8(Vacio)" with lore "" and "&cBloqueado"
  90. set slot 16 of player's current inventory to magma cream named "&7Perk - &8(Vacio)" with lore "" and "&cBloqueado"
  91. if arg 1 is "Pasiva":
  92. open chest with 4 rows named "&6&lPERKS PASIVAS &7(1/3)" to player
  93. set slot 0 of player's current inventory to skull of {_p} named "&d» &f%{_nombre}% &d« &8(2/3)" with lore "" and "&6• &9Nivel: &a%{nivel::%player%}%&7 / &c100" and "&6• &5XP: &a%{xp::%player%}% &7/&c %{xpnext::%player%}%" and "&6• &2Multiplicador: %{lvlmultipler::%player%}%" and "" and "&6• &6Ataque: &f+ %{ESTADISTICAS.atkpor::%player%}%%% &6餝" and "&6• &cConcentracion: &f- %{con::%player%}%s &b餭" and "&6• &9Ninjutsu: &f+ %{ESTADISTICAS.ninpor::%player%}%%% &c餞" and "&6• &eProb Crit: &f+ %{ProbCrit::%player%}%%% &6館" and "&6• &eProb Esquivar: &f+ %{Dex::%player%}%%% &d🏹" and "&6• &4Daño Crit: &f+ %{dañocrit::%player%}%%% &4館" and "&6• &3Defensa: &f+ %{ESTADISTICAS.defpor::%player%}%%% &a餟" and "&6• &dVelocidad: &f+ %{ESTADISTICAS.velpor::%player%}%%% &f餪" and "&6• &aVida: &f%{vidabase::%player%}% &c❤" and "&6• &9Chakra: &f%{_x2}% &b⭐" and "" and "&6• &bElemento: &r%{_j}%" and "&6• &3Afinidad: &r%{_e}%" and "" and "&6• &5&lPM&f: &e%{puntosm::%player%}% &d⏏ &8&o(Puntos de Mejora)" and "&6• &lPA&f: &f%{puntosa::%player%}% &d⏏ &8&o(Puntos de Ascenso)" and "&6• &9&lPH&f: &e%{puntosh::%player%}% &d⏏ &8&o(Puntos de Habilidad)" and "&6• &d&lPR&f: &e%{puntosr::%player%}% &d⏏ &8&o(Puntos de Rasgo)" and "" and "&2» Click para ver tus Rasgos «"
  94. set slot 1,10,19,28 of player's current inventory to gray stained glass pane named "&6"
  95. set slot 27 of player's current inventory to magma cream named "&c« Regresar" with lore "" and "&6• &fRegresa al Menu Anterior!"
  96.  
  97. set slot 12 of player's current inventory to magma cream named "&dJugador Compulsivo" #Cada 1 hora da 20xp de nivel y 10xp de forja
  98. set slot 13 of player's current inventory to magma cream named "&2Caida con Estilo" #Dañó por caida reducido
  99. set slot 14 of player's current inventory to magma cream named "&bGloton" #Cuando comes obtienes un par de corazones amarillos
  100. set slot 15 of player's current inventory to magma cream named "&7Sigiloso" #Caminas mas rapido cuando shifteas
  101. set slot 16 of player's current inventory to magma cream named "&9Reservas Plus" #Consumir chakra
  102. if arg 1 is "Activa":
  103. open chest with 4 rows named "&6&lPERKS ACTIVAS &7(1/3)" to player
  104. on store:
  105. if name of event-inventory is "&6&lPERKS" or "&6&lPERKS PASIVAS &7(1/3)" or "&2&lTIPO DE PERK":
  106. cancel event
  107. on inventory click:
  108. if name of event-inventory is "&6&lPERKS":
  109. cancel event
  110. if event-slot is 27:
  111. make player execute command "/pj"
  112. if event-slot is 12:
  113. perksel(player, 1)
  114. if name of event-inventory is "&6&lPERKS PASIVAS &7(1/3)":
  115. cancel event
  116. if event-slot is 27:
  117. make player execute command "/pj perks"
  118. if event-slot is 12:
  119. set {Perk%{P_State::%player%}%::%player%} to "Compulsivo"
  120. send "&6[*]&f Tu Perk &a%{P_State::%player%}%&f ahora es &dJugador Compulsivo"
  121. if event-slot is 13:
  122. set {Perk%{P_State::%player%}%::%player%} to "Caida"
  123. send "&6[*]&f Tu Perk &a%{P_State::%player%}%&f ahora es &dCaida con Estilo"
  124. if event-slot is 14:
  125. set {Perk%{P_State::%player%}%::%player%} to "Gloton"
  126. send "&6[*]&f Tu Perk &a%{P_State::%player%}%&f ahora es &dGloton"
  127. if event-slot is 15:
  128. set {Perk%{P_State::%player%}%::%player%} to "Sigiloso"
  129. send "&6[*]&f Tu Perk &a%{P_State::%player%}%&f ahora es &dSigiloso"
  130. if event-slot is 16:
  131. set {Perk%{P_State::%player%}%::%player%} to "ChakraPlus"
  132. send "&6[*]&f Tu Perk &a%{P_State::%player%}%&f ahora es &dReservas Plus"
  133.  
  134. on join:
  135. if {timerhacha.%player%} is set:
  136. if {timerhacha.%player%} is greater than 0:
  137. delete {timerhacha.%player%}
  138. on right click:
  139. if name of player's tool is "&b&lHACHA DE THOR":
  140. if {nivel::%player%} is greater than 59:
  141. if {timerhacha.%player%} is greater than 1:
  142. send "&c¡En enfriamiento! &7&o(%{timerhacha.%player%}%)"
  143. else:
  144. set {timerhacha.%player%} to 70
  145. make player run command "/smite" as op
  146. wait 5 ticks
  147. make player run command "/smite" as op
  148. wait 5 ticks
  149. make player run command "/smite" as op
  150. wait 5 ticks
  151. make player run command "/smite" as op
  152. wait 5 ticks
  153. make player run command "/smite" as op
  154. wait 5 ticks
  155. make player run command "/smite" as op
  156. wait 5 ticks
  157. make player run command "/smite" as op
  158. wait 5 ticks
  159. make player run command "/smite" as op
  160. while {timerhacha.%player%} is greater than 1:
  161. wait 1 second
  162. subtract 1 from {timerhacha.%player%}
  163. else:
  164. send "&c¡Necesitas nivel 60 para usar esto!"
  165. on join:
  166. delete {YaClickeo.%player%}
  167. delete {21state.%player%}
  168. command /blackjack [<text>] [<number>]:
  169. permission: Ed
  170. trigger:
  171. if arg 1 is "Fix":
  172. delete {YaClickeo.%player%} and {21State.%player%}
  173. if arg 1 is "Jugar":
  174. if player's balance is greater or equal to arg-2:
  175. if {21State.%player%} is true:
  176. send "&6[*] &fYa estas Jugando una Partida."
  177. else:
  178. set {Apuesta.%player%} to arg-2
  179. set {Yaclickeo.%player%} to false
  180. subtract {Apuesta.%player%} from player's balance
  181. send "&6[*]&f Apostaste &a%{Apuesta.%player%}%&e Ryos"
  182. set {21State.%player%} to true
  183. set {carta1.%player%} to random integer between 1 and 12
  184. set {carta2.%player%} to random integer between 1 and 12
  185. set {cartaf.%player%} to {carta1.%player%} + {carta2.%player%}
  186. set {cartaf.%player%} to {cartaf.%player%} parsed as integer
  187. set {carta-mesa.%player%} to random integer between 1 and 12
  188. set {carta-mesa-2.%player%} to "&7&o----"
  189. set {carta-mesa-3.%player%} to "&7&o----"
  190. #set {mesa-f.%player%} to {carta-mesa.%player%} + {carta-mesa-2.%player%} + {carta-mesa-3.%player%}
  191. send "&b&l&m----------------------------"
  192. send ""
  193. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}%"
  194. send ""
  195. send ""
  196. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  197. send ""
  198. if {carta1.%player%} + {carta2.%player%} is 21:
  199. send "&6[*] &221 &aGanaste!"
  200. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  201. add {ApuestaF.%player%} to player's balance
  202. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  203. set {YaClickeo.%player%} to false
  204. delete {21State.%player%}
  205. delete {carta-mesa.%player%} and {carta-mesa-2.%player%} and {carta-mesa-3.%player%} and {carta2.%player%} and {carta1.%player%} and {cartaf.%player%} and {mesa-f.%player%}
  206. stop
  207. else if {carta1.%player%} + {carta2.%player%} is greater than 21:
  208. send "&6[*] &cPerdiste. &7&o(Tienes mas de 21)"
  209. delete {21State.%player%}
  210. delete {carta-mesa.%player%} and {carta-mesa-2.%player%} and {carta-mesa-3.%player%} and {carta2.%player%} and {carta1.%player%} and {cartaf.%player%} and {mesa-f.%player%}
  211. else:
  212. json("%player%", "&a&lPLANTARSE||cmd:/blackjack Plantarse||ttp:&fTe plantas con la mano actual.||")
  213. json("%player%", "&c&lOTRA CARTA||cmd:/blackjack Otra||ttp:&fObtienes otra carta.||")
  214. send "&b&l&m----------------------------"
  215. else:
  216. send "&6[*] &fNo tienes los &eRyos&f suficentes para hacer esa apuesta!"
  217. if arg 1 is "Plantarse":
  218. if {21State.%player%} is true:
  219. if {YaClickeo.%player%} is true:
  220. send "&6[*]&f Ya Hiciste esta Accion!"
  221. else:
  222. set {YaClickeo.%player%} to true
  223. set {carta-mesa-2.%player%} to random integer between 1 and 12
  224. set {mesa-f.%player%} to {carta-mesa.%player%} + {carta-mesa-2.%player%}
  225. set {mesa-f.%player%} to {mesa-f.%player%} parsed as integer
  226. if {mesa-f.%player%} is equal to {cartaf.%player%}:
  227. send "&b&l&m----------------------------"
  228. send ""
  229. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  230. send ""
  231. send ""
  232. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  233. send ""
  234. send "&e&l¡EMPATE!"
  235. send ""
  236. send "&b&l&m----------------------------"
  237. add {Apuesta.%player%} to player's balance
  238. send "&6[*]&f Recuperaste tu Apuesta - &a%{Apuesta.%player%}%&e Ryos"
  239. delete {21State.%player%}
  240. set {YaClickeo.%player%} to false
  241. stop
  242. if {carta-mesa-1.%player%} + {carta-mesa-2.%player%} is greater than 21:
  243. send "&b&l&m----------------------------"
  244. send ""
  245. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  246. send ""
  247. send ""
  248. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  249. send ""
  250. send "&6&l¡GANASTE!"
  251. send ""
  252. send "&b&l&m----------------------------"
  253. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  254. add {ApuestaF.%player%} to player's balance
  255. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  256. delete {21State.%player%}
  257. set {YaClickeo.%player%} to false
  258. stop
  259. else:
  260. if {mesa-f.%player%} is greater than {cartaf.%player%}:
  261. send "&b&l&m----------------------------"
  262. send ""
  263. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  264. send ""
  265. send ""
  266. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  267. send ""
  268. send "&c&l¡PERDISTE!"
  269. send ""
  270. send "&b&l&m----------------------------"
  271. delete {21State.%player%}
  272. set {YaClickeo.%player%} to false
  273. stop
  274. else:
  275. send "&b&l&m----------------------------"
  276. send ""
  277. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% - %{carta-mesa-3.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  278. send ""
  279. send ""
  280. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  281. send ""
  282. send "&b&l&m----------------------------"
  283. wait 10 ticks
  284. send "&6[*]&f La Casa saca otra carta!"
  285. wait 10 ticks
  286. set {carta-mesa-3.%player%} to random integer between 1 and 12
  287. set {mesa-f.%player%} to {carta-mesa.%player%} + {carta-mesa-2.%player%} + {carta-mesa-3.%player%}
  288. set {mesa-f.%player%} to {mesa-f.%player%} parsed as integer
  289. send "&b&l&m----------------------------"
  290. send ""
  291. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% - %{carta-mesa-3.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  292. send ""
  293. send ""
  294. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  295. send ""
  296. if {mesa-f.%player%} is equal to {cartaf.%player%}:
  297. send "&e&l¡EMPATE!"
  298. send ""
  299. send "&b&l&m----------------------------"
  300. add {Apuesta.%player%} to player's balance
  301. send "&6[*]&f Recuperaste tu Apuesta - &a%{Apuesta.%player%}%&e Ryos"
  302. delete {21State.%player%}
  303. set {YaClickeo.%player%} to false
  304. stop
  305. if {mesa-f.%player%} is greater than 21:
  306. send "&6&l¡GANASTE!"
  307. send ""
  308. send "&b&l&m----------------------------"
  309. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  310. add {ApuestaF.%player%} to player's balance
  311. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  312. delete {21State.%player%}
  313. set {YaClickeo.%player%} to false
  314. stop
  315. if {mesa-f.%player%} is less than {cartaf.%player%}:
  316. send "&6&l¡GANASTE!"
  317. send ""
  318. send "&b&l&m----------------------------"
  319. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  320. add {ApuestaF.%player%} to player's balance
  321. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  322. delete {21State.%player%}
  323. set {YaClickeo.%player%} to false
  324. stop
  325. if {mesa-f.%player%} is 21:
  326. send "&c&l¡PERDISTE!"
  327. send ""
  328. send "&b&l&m----------------------------"
  329. delete {21State.%player%}
  330. set {YaClickeo.%player%} to false
  331. stop
  332. else:
  333. send "&6[*]&f No estas jugando una Partida!"
  334. if arg 1 is "Otra":
  335. if {21State.%player%} is true:
  336. if {YaClickeo.%player%} is true:
  337. send "&6[*]&f Ya hiciste esta Accion!"
  338. else:
  339. set {YaClickeo.%player%} to true
  340. set {carta3.%player%} to random integer between 1 and 12
  341. set {cartaf.%player%} to {carta1.%player%} + {carta2.%player%} + {carta3.%player%}
  342. set {cartaf.%player%} to {cartaf.%player%} parsed as integer
  343. set {carta-mesa-2.%player%} to random integer between 1 and 12
  344. set {mesa-f.%player%} to {carta-mesa.%player%} + {carta-mesa-2.%player%}
  345. set {mesa-f.%player%} to {mesa-f.%player%} parsed as integer
  346. send "&b&l&m----------------------------"
  347. send ""
  348. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  349. send ""
  350. send ""
  351. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% - %{carta3.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  352. send ""
  353. if {cartaf.%player%} is greater than 21:
  354. #Perdio
  355. delete {21State.%player%}
  356. set {YaClickeo.%player%} to false
  357. send "&c&l¡PERDISTE!"
  358. send ""
  359. send "&b&l&m----------------------------"
  360. stop
  361. else if {cartaf.%player%} is smaller than {mesa-f.%player%}:
  362. delete {21State.%player%}
  363. set {YaClickeo.%player%} to false
  364. send "&c&l¡PERDISTE!"
  365. send ""
  366. send "&b&l&m----------------------------"
  367. stop
  368. if {cartaf.%player%} is 21:
  369. delete {21State.%player%}
  370. set {YaClickeo.%player%} to false
  371. send "&6&l¡GANASTE!"
  372. send ""
  373. send "&b&l&m----------------------------"
  374. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  375. add {ApuestaF.%player%} to player's balance
  376. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  377. stop
  378. else if {cartaf.%player%} is greater than {mesa-f.%player%}: #Tira otra Carta!
  379. send ""
  380. send "&b&l&m----------------------------"
  381. wait 10 ticks
  382. send "&6[*]&f La Casa saca otra carta!"
  383. wait 10 ticks
  384. set {carta-mesa-3.%player%} to random integer between 1 and 12
  385. set {mesa-f.%player%} to {carta-mesa.%player%} + {carta-mesa-2.%player%} + {carta-mesa-3.%player%}
  386. set {mesa-f.%player%} to {mesa-f.%player%} parsed as integer
  387. send "&b&l&m----------------------------"
  388. send ""
  389. send "&6Cartas de la Casa:&f %{carta-mesa.%player%}% - %{carta-mesa-2.%player%}% - %{carta-mesa-3.%player%}% &7&o(%{mesa-f.%player%}%&7&o)"
  390. send ""
  391. send ""
  392. send "&aTus Cartas:&f %{carta1.%player%}% - %{carta2.%player%}% - %{carta3.%player%}% &7&o(%{cartaf.%player%}%&7&o)"
  393. send ""
  394. if {mesa-f.%player%} is equal to {cartaf.%player%}:
  395. send "&e&l¡EMPATE!"
  396. send ""
  397. send "&b&l&m----------------------------"
  398. add {Apuesta.%player%} to player's balance
  399. send "&6[*]&f Recuperaste tu Apuesta - &a%{Apuesta.%player%}%&e Ryos"
  400. delete {21State.%player%}
  401. set {YaClickeo.%player%} to false
  402. stop
  403. if {mesa-f.%player%} is greater than 21:
  404. send "&6&l¡GANASTE!"
  405. send ""
  406. send "&b&l&m----------------------------"
  407. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  408. add {ApuestaF.%player%} to player's balance
  409. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  410. delete {21State.%player%}
  411. set {YaClickeo.%player%} to false
  412. stop
  413. if {mesa-f.%player%} is less than {cartaf.%player%}:
  414. send "&6&l¡GANASTE!"
  415. send ""
  416. send "&b&l&m----------------------------"
  417. set {ApuestaF.%player%} to {Apuesta.%player%} * 2
  418. add {ApuestaF.%player%} to player's balance
  419. send "&6[*]&f Ganaste &a%{ApuestaF.%player%}%&e Ryos"
  420. delete {21State.%player%}
  421. set {YaClickeo.%player%} to false
  422. stop
  423. if {mesa-f.%player%} is 21:
  424. send "&c&l¡PERDISTE!"
  425. send ""
  426. send "&b&l&m----------------------------"
  427. delete {21State.%player%}
  428. set {YaClickeo.%player%} to false
  429. stop
  430. else:
  431. send "&6[*]&f No estas jugando una Partida!"
  432.  
  433. on Citizen right click:
  434. if Citizen is named is "&5Anomalia": #Entrar en el chat
  435. make console execute command "/warp Mhistoria %player%"
  436. send "&6[*] &fEntrando en la &5Anomalia"
  437. if Citizen is named is "&6Anomalia": #Entrar en el chat
  438. make console execute command "/Spawn %player%"
  439. send "&6[*] &fSaliendo de la &5Anomalia"
  440. if Citizen is named is "&6Ed":
  441. send "&6Ed&f: Bienvenido al Casino"
  442. on join:
  443. delete {B1.%player%} and {B2.%player%} and {B3.%player%}
  444. command /lista Combos:
  445. trigger:
  446. send "&6&lLISTA DE COMBOS"
  447. send ""
  448. send "&b&lPATADA"
  449. send ""
  450. send "&6• &aActivacion&f: Click Derecho | &aClick Derecho | Click Izquierdo%nl%&6• &cDaño&f: 5 &4❤%nl%&6• &bEnfriamiento&f: 6s"
  451. send ""
  452. send "&b&lMULTIPLES GOLPES"
  453. send ""
  454. send "&6• &aActivacion&f: &aClick Izquierdo | Click Izquierdo | Click Izquierdo%nl%&6• &cDaño&f: 6 &4❤%nl%&6• &bEnfriamiento&f: 5s"
  455. send ""
  456. send "&b&lGUARDIA"
  457. send ""
  458. send "&6• &aActivacion&f:&a Click Izquierdo | Click Derecho | Click Derecho%nl%&6• &eDuración&f: 4s%nl%&6• &2Resistencia&f: 32%%%nl%&6• &bEnfriamiento&f: 10s"
  459. send ""
  460. send "&b&lCONTRA ATAQUE"
  461. send ""
  462. send "&6• &aActivacion&f: &aClick Derecho | Click Izquierdo | Click Derecho%nl%&6• &eDuración&f: 2.5s%nl%&6• &2Resistencia&f: 22%%%nl%&6• &cDaño&f: 5 &4❤%nl%&6• &bEnfriamiento&f: 14s%nl%&6• &dRango&f: 5 Bloques"
  463. on damage:
  464. if distance between attacker and victim is smaller than 4:
  465. if attacker's tool is air:
  466. if {B1.%attacker%} isn't set:
  467. set {B1.%attacker%} to "I"
  468. wait 1.7 seconds
  469. delete {B1.%attacker%}
  470. else:
  471. if {B2.%attacker%} isn't set:
  472. set {B2.%attacker%} to "I"
  473. send action bar "&5&l• &a%{B1.%attacker%}% &5&l• &a%{B2.%attacker%}% &5&l• &c??? &5&l•" to attacker
  474. wait 1.7 seconds
  475. delete {B2.%attacker%}
  476. else:
  477. if {B3.%attacker%} isn't set:
  478. set {B3.%attacker%} to "I"
  479. send action bar "&5&l• &a%{B2.%attacker%}% &5&l• &a%{B2.%attacker%}% &5&l• &a%{B3.%attacker%}% &5&l•" to attacker
  480. comboF(attacker, "I", "I", "I", "MultiplesGolpes", "Multiples Golpes") #Combo Final IZQ 1
  481. comboF(attacker, "D", "D", "I", "Patada", "Patada") #Combo Final IZQ 2
  482. wait 0.5 seconds
  483. delete {B3.%attacker%}
  484. function comboF(p: player, C1: text, C2: text, C3: text, Cast: text, H: text):
  485. if {B1.%{_p}%} is equal to {_C1}:
  486. if {B2.%{_p}%} is equal to {_C2}:
  487. {B3.%{_p}%} is equal to {_C3}:
  488. make {_p} run command "/%{_cast}%" as op
  489. delete {B1.%{_p}%}
  490. delete {B2.%{_p}%}
  491. delete {B3.%{_p}%}
  492. command /MultiplesGolpes:
  493. permission: Golpes
  494. cooldown: 5 seconds
  495. cooldown message: &fEstas un poco cansado para hacer esto!
  496. trigger:
  497. make player run command "/particle sweepAttack ~ ~1.5 ~ 1 0 0 0.15 15 normal" as op
  498. send action bar "&b&l» &fMultiple Golpes! &b&l«" to player
  499. send "%colored player's prefix% &6%{NombreRol::%player%}%&f: &dMultiple Golpes!" to all players in radius 30 of player
  500. make player damage target by 6
  501. push player upwards at speed 0.2
  502. push player (direction from player to target) at speed 0.7
  503. command /Patada:
  504. permission: Patada
  505. cooldown: 6 seconds
  506. cooldown message: &fEstas un poco cansado para hacer esto!
  507. trigger:
  508. send action bar "&b&l» &fPatada! &b&l«" to player
  509. send "%colored player's prefix% &6%{NombreRol::%player%}%&f: Patada!" to all players in radius 30 of player
  510. make player run command "/particle damageIndicator ~ ~1 ~ 1 0 1 0.1 15 normal" as op
  511. make player damage target by 5
  512. push target upwards at speed 0.3
  513. push target (direction from target to player) at speed -1.2
  514. command /Guardia:
  515. permission: Guardia
  516. cooldown: 10 seconds
  517. cooldown message: &fEstas un poco cansado para hacer esto!
  518. trigger:
  519. set {Enguardia.%player%} to true
  520. send "&6*%{NombreRol::%player%}%&f Levanto su Guardia" to all players in radius 30 of player
  521. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  522. wait 0.5 seconds
  523. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  524. wait 0.5 seconds
  525. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  526. wait 0.5 seconds
  527. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  528. wait 0.5 seconds
  529. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  530. wait 0.5 seconds
  531. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  532. wait 0.5 seconds
  533. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  534. wait 0.5 seconds
  535. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  536. wait 0.5 seconds
  537. make player run command "/particle magicCrit ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  538. if {NombreRol::%player%} is set:
  539. send "&6*%{NombreRol::%player%}%&f Bajo su Guardia" to all players in radius 30 of player
  540. else:
  541. send "&6*%player%&f Bajo su Guardia" to all players in radius 30 of player
  542. delete {Enguardia.%player%}
  543.  
  544. command /ContraAtaque:
  545. permission: ContraAtaque
  546. cooldown: 14 seconds
  547. cooldown message: &fEstas un poco cansado para hacer esto!
  548. trigger:
  549. set {EnguardiB2.%player%} to true
  550. make player run command "/particle fireworksSpark ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  551. wait 0.5 seconds
  552. make player run command "/particle fireworksSpark ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  553. wait 0.5 seconds
  554. make player run command "/particle fireworksSpark ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  555. wait 0.5 seconds
  556. make player run command "/particle fireworksSpark ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  557. wait 0.5 seconds
  558. make player run command "/particle fireworksSpark ~ ~1.5 ~ 1 1 1 0.00001 30 normal" as op
  559. wait 0.5 seconds
  560. delete {EnguardiB2.%player%}
  561. on damage:
  562. if {Enguardia.%victim%} is true:
  563. set {_c} to damage * 0.32
  564. set damage to damage - {_c}
  565. if {EnguardiB2.%victim%} is true:
  566. if {EnguardiB2.%attacker%} is true:
  567. delete {EnguardiB2.%victim%} and {EnguardiB2.%attacker%}
  568. send "&cSe cancelo el contra ataque!" to attacker and victim
  569. stop
  570. if distance between attacker and victim is smaller than 6:
  571. delete {EnguardiB2.%victim%}
  572. make victim damage attacker by 5
  573. set {_c} to damage * 0.22
  574. set damage to damage - {_c}
  575. push attacker upwards at speed 0.4
  576. push attacker (direction from attacker to victim) at speed -1.5
  577. send "&6*%{NombreRol::%victim%}%&f Realizo un Contra Ataque" to all players in radius 30 of victim
  578. stop
  579. on right click on entity:
  580. if player's tool is air:
  581. if {B1.%player%} isn't set:
  582. set {B1.%player%} to "D"
  583. send action bar "&5&l• &a%{B1.%player%}% &5&l• &c??? &5&l• &c??? &5&l•" to player
  584. wait 1.7 seconds
  585. delete {B1.%player%}
  586. else:
  587. if {B2.%player%} isn't set:
  588. set {B2.%player%} to "D"
  589. send action bar "&5&l• &a%{B1.%player%}% &5&l• &a%{B2.%player%}% &5&l• &c??? &5&l•" to player
  590. wait 1.7 seconds
  591. delete {B2.%player%}
  592. else:
  593. if {B3.%player%} isn't set:
  594. set {B3.%player%} to "D"
  595. send action bar "&5&l• &a%{B1.%player%}% &5&l• &a%{B2.%player%}% &5&l• &a%{B3.%player%}% &5&l•" to player
  596. comboF(player, "I", "D", "D", "Guardia", "Guardia") #Combo Final IZQ 1
  597. comboF(player, "D", "I", "D", "ContraAtaque", "Contra Ataque") #Combo Final IZQ 1
  598. wait 0.5 seconds
  599. delete {B3.%player%}
Add Comment
Please, Sign In to add comment