Advertisement
Guest User

move8.lua

a guest
Jun 21st, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 117.56 KB | None | 0 0
  1. local thunderwavecondition = createConditionObject(CONDITION_PARALYZE)
  2. setConditionParam(thunderwavecondition, CONDITION_PARAM_TICKS, 9000)
  3. setConditionFormula(thunderwavecondition, -0.75, -0.75, -0.75, -0.75)
  4.  
  5. local waba = createCombatArea{
  6.     {0, 1, 1, 1, 0},
  7.     {1, 1, 1, 1, 1},
  8.     {1, 1, 3, 1, 1},
  9.     {1, 1, 1, 1, 1},
  10.     {0, 1, 1, 1, 0},
  11. }
  12.  
  13.  
  14. local snorlax = {lookType = 258}
  15. dewgong = {lookType = 545}
  16. bigsnorlax = {lookType = 544}
  17.  
  18.  
  19. local skullb = createCombatArea{
  20. {0, 1, 1, 1, 0},
  21. {1, 1, 1, 1, 1},
  22. {1, 1, 2, 1, 1},
  23. {1, 1, 1, 1, 1},
  24. {0, 1, 1, 1, 0}
  25. }
  26.  
  27. local ap1 = createCombatArea{
  28. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  29. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  30. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  31. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  32. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  33. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  34. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  35. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  36. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  37. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  38. {0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0}
  39. }
  40.  
  41. local ap2 = createCombatArea{
  42. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  43. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  44. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  45. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  46. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  47. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  48. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  49. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  50. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  51. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  52. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}
  53. }
  54. local ap3 = createCombatArea{
  55. {0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0},
  56. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  57. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  58. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  59. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  60. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  61. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  62. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  63. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  64. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  65. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  66. }
  67. local ap4 = createCombatArea{
  68. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  69. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  70. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  71. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  72. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  73. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  74. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  75. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  76. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  77. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  78. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  79. }
  80. local ap5 = createCombatArea{
  81. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  82. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  83. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  84. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  85. {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  86. {2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  87. {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  88. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  89. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  90. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  91. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  92. }
  93. local ap6 = createCombatArea{
  94. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  95. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  96. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  97. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  98. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  99. {3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  100. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  101. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  102. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  103. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  104. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  105. }
  106. local ap7 = createCombatArea{
  107. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  108. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  109. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  110. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  111. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
  112. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2},
  113. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
  114. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  115. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  116. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  117. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  118. }
  119. local ap8 = createCombatArea{
  120. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  121. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  122. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  123. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  124. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  125. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3},
  126. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  127. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  128. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  129. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  130. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  131. }
  132.  
  133. local twn = createCombatArea{
  134.         {0, 0, 0, 2, 0, 0, 0},
  135.     {0, 0, 0, 1, 0, 0, 0},
  136.     {0, 0, 0, 0, 0, 0, 0},
  137.     {0, 0, 0, 1, 0, 0, 0},
  138.     {0, 0, 1, 0, 1, 0, 0},
  139.     {0, 0, 0, 1, 0, 0, 0},
  140.         {0, 0, 0, 0, 0, 0, 0},
  141. }
  142. local tws = createCombatArea{
  143.         {0, 0, 0, 0, 0, 0, 0},
  144.     {0, 0, 0, 1, 0, 0, 0},
  145.     {0, 0, 1, 0, 1, 0, 0},
  146.     {0, 0, 0, 1, 0, 0, 0},
  147.     {0, 0, 0, 0, 0, 0, 0},
  148.     {0, 0, 0, 1, 0, 0, 0},
  149.         {0, 0, 0, 2, 0, 0, 0},
  150. }
  151. local tww = createCombatArea{
  152.     {0, 0, 0, 0, 0, 0, 0},
  153.     {0, 0, 0, 0, 0, 0, 0},
  154.     {0, 0, 0, 0, 1, 0, 0},
  155.     {2, 1, 0, 1, 0, 1, 0},
  156.     {0, 0, 0, 0, 1, 0, 0},
  157.         {0, 0, 0, 0, 0, 0, 0},
  158.         {0, 0, 0, 0, 0, 0, 0},
  159. }
  160. local twe = createCombatArea{
  161.     {0, 0, 0, 0, 0, 0, 0},
  162.     {0, 0, 0, 0, 0, 0, 0},
  163.     {0, 0, 1, 0, 0, 0, 0},
  164.     {0, 1, 0, 1, 0, 1, 2},
  165.     {0, 0, 1, 0, 0, 0, 0},
  166.         {0, 0, 0, 0, 0, 0, 0},
  167.         {0, 0, 0, 0, 0, 0, 0},
  168. }
  169.  
  170. local thunder = createCombatArea{
  171. {1, 0, 0, 1, 0, 0, 1},
  172. {0, 1, 0, 1, 0, 1, 0},
  173. {0, 0, 1, 1, 1, 0, 0},
  174. {1, 1, 1, 2, 1, 1, 1},
  175. {0, 0, 1, 1, 1, 0, 0},
  176. {0, 1, 0, 1, 0, 1, 0},
  177. {1, 0, 0, 1, 0, 0, 1},
  178. }
  179.  
  180. local destruct1 = createCombatArea{
  181.     {0, 0, 1, 0, 0},
  182.     {0, 1, 1, 1, 0},
  183.     {1, 1, 3, 1, 1},
  184.     {0, 1, 1, 1, 0},
  185.     {0, 0, 1, 0, 0}
  186. }
  187.  
  188. local destruct2 = createCombatArea{
  189.     {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  190.     {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  191.     {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  192.     {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
  193.     {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  194.     {0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0},
  195.     {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  196.     {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
  197.     {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  198.     {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  199.     {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  200. }
  201.  
  202. local destruct3 = createCombatArea{
  203.     {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  204.     {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
  205.     {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
  206.     {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
  207.     {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0},
  208.     {1, 1, 0, 0, 0, 3, 0, 0, 0, 1, 1},
  209.     {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0},
  210.     {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
  211.     {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
  212.     {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
  213.     {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
  214. }
  215.  
  216.  
  217. local confusion = createCombatArea{
  218. {0, 1, 1, 1, 0},
  219. {1, 1, 1, 1, 1},
  220. {1, 1, 2, 1, 1},
  221. {1, 1, 1, 1, 1},
  222. {0, 1, 1, 1, 0},
  223. }
  224.  
  225. local stomp = createCombatArea{
  226.         {1, 0, 1, 0, 1},
  227.     {0, 1, 1, 1, 0},
  228.     {1, 1, 2, 1, 1},
  229.     {0, 1, 1, 1, 0},
  230.     {1, 0, 1, 0, 1}
  231. }
  232.  
  233. -- WATER GUN
  234. local bomb = createCombatArea{
  235. {0, 1, 0},
  236. {1, 3, 1},
  237. {0, 1, 0},
  238. }
  239.  
  240. local wg1n = createCombatArea{
  241. {0, 0, 0},
  242. {0, 2, 0},
  243. {0, 1, 0},
  244. }
  245. local wg2n = createCombatArea{
  246. {0, 2, 0},
  247. {0, 0, 0},
  248. {0, 1, 0},
  249. {0, 1, 0},
  250. {0, 1, 0},
  251. }
  252. local wg3n = createCombatArea{
  253. {0, 2, 0},
  254. {0, 0, 0},
  255. {0, 0, 0},
  256. {0, 0, 0},
  257. {0, 0, 0},
  258. {0, 1, 0},
  259. }
  260.  
  261. local wg1s = createCombatArea{
  262. {0, 1, 0},
  263. {0, 2, 0},
  264. {0, 0, 0},
  265. }
  266. local wg2s = createCombatArea{
  267. {0, 1, 0},
  268. {0, 1, 0},
  269. {0, 1, 0},
  270. {0, 0, 0},
  271. {0, 2, 0},
  272. }
  273. local wg3s = createCombatArea{
  274. {0, 1, 0},
  275. {0, 0, 0},
  276. {0, 0, 0},
  277. {0, 0, 0},
  278. {0, 0, 0},
  279. {0, 2, 0},
  280. }
  281.  
  282. local wg1e = createCombatArea{
  283. {0, 0, 0},
  284. {1, 2, 0},
  285. {0, 0, 0},
  286. }
  287. local wg2e = createCombatArea{
  288. {1, 1, 1, 0, 2},
  289. }
  290. local wg3e = createCombatArea{
  291. {1, 0, 0, 0, 0, 2},
  292. }
  293.  
  294. local wg1w = createCombatArea{
  295. {0, 0, 0},
  296. {0, 2, 1},
  297. {0, 0, 0},
  298. }
  299. local wg2w = createCombatArea{
  300. {2, 0, 1, 1, 1},
  301. }
  302. local wg3w = createCombatArea{
  303. {2, 0, 0, 0, 0, 1},
  304. }
  305. -- WATER GUN END
  306.  
  307. local pump1 = createCombatArea{
  308. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  309. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  310. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  311. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  312. {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
  313. {0, 0, 1, 0, 1, 3, 1, 0, 1, 0, 0},
  314. {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
  315. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  316. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  317. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  318. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  319. }
  320. local pump2 = createCombatArea{
  321. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  322. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  323. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  324. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  325. {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
  326. {0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0},
  327. {0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0},
  328. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  329. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  330. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  331. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  332. }
  333.  
  334. local tor1 = createCombatArea{
  335. {0, 1, 0},
  336. {1, 2, 1},
  337. {0, 1, 0},
  338. }
  339. local tor2 = createCombatArea{
  340. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  341. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  342. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  343. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  344. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  345. {0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0},
  346. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  347. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  348. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  349. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  350. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  351. }
  352. local tor3 = createCombatArea{
  353. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  354. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  355. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  356. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  357. {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  358. {0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0},
  359. {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  360. {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  361. {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
  362. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  363. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  364. }
  365.  
  366. local earthquake = createCombatArea{
  367. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  368. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  369. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  370. {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
  371. {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
  372. {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
  373. {0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 0},
  374. {0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
  375. {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
  376. {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
  377. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  378. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  379. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
  380. }
  381.  
  382. local sand1 = createCombatArea{
  383. {0, 0, 0},
  384. {0, 3, 0},
  385. {0, 0, 0},
  386. }
  387.  
  388. local whirl3 = createCombatArea{
  389. {0, 0, 0},
  390. {1, 3, 1},
  391. {0, 0, 0},
  392. }
  393.  
  394. local whirl5 = createCombatArea{
  395. {0, 0, 0, 0, 0},
  396. {1, 1, 3, 1, 1},
  397. {0, 0, 0, 0, 0},
  398. }
  399.  
  400. local whirl32 = createCombatArea{
  401. {0, 0, 0},
  402. {1, 3, 1},
  403. {0, 0, 0},
  404. }
  405.  
  406. local whirl52 = createCombatArea{
  407. {0, 0, 0, 0, 0},
  408. {1, 1, 3, 1, 1},
  409. {0, 0, 0, 0, 0},
  410. }
  411.  
  412. --WING ATTACK
  413. local wingn = createCombatArea{
  414. {0, 0, 0},
  415. {1, 2, 0},
  416. {0, 0, 0},
  417. }
  418. local wings = createCombatArea{
  419. {1, 0, 0},
  420. {0, 2, 0},
  421. {0, 0, 0},
  422. }
  423. local winge = createCombatArea{
  424. {1, 0, 0},
  425. {0, 2, 0},
  426. {0, 0, 0},
  427. }
  428. local wingw = createCombatArea{
  429. {0, 2, 3},
  430. {0, 2, 2},
  431. {0, 0, 0},
  432. }
  433. local wingds = createCombatArea{
  434. {1, 1, 1},
  435. {0, 2, 0},
  436. {0, 0, 0},
  437. }
  438. local wingdn = createCombatArea{
  439. {0, 0, 0},
  440. {0, 2, 0},
  441. {1, 1, 1},
  442. }
  443. local wingde = createCombatArea{
  444. {1, 0, 0},
  445. {1, 2, 0},
  446. {1, 0, 0},
  447. }
  448. local wingdw = createCombatArea{
  449. {0, 0, 1},
  450. {0, 2, 1},
  451. {0, 0, 1},
  452. }
  453.  
  454.  
  455. local tsn = createCombatArea{
  456. {0, 0, 0, 2, 0, 0, 0},
  457. {0, 0, 0, 1, 0, 0, 0},
  458. {0, 0, 1, 1, 1, 0, 0},
  459. {0, 0, 1, 1, 1, 0, 0},  
  460. {0, 1, 1, 1, 1, 1, 0},
  461. }
  462. local tss = createCombatArea{
  463. {0, 1, 1, 1, 1, 1, 0},
  464. {0, 0, 1, 1, 1, 0, 0},
  465. {0, 0, 1, 1, 1, 0, 0},
  466. {0, 0, 0, 1, 0, 0, 0},
  467. {0, 0, 0, 2, 0, 0, 0},  
  468. }
  469. local tse = createCombatArea{
  470. {0, 0, 1, 0, 0, 0, 0},
  471. {0, 0, 1, 1, 1, 0, 0},
  472. {0, 0, 1, 1, 1, 1, 2},
  473. {0, 0, 1, 1, 1, 0, 0},
  474. {0, 0, 1, 0, 0, 0, 0},  
  475. }
  476. local tsw = createCombatArea{
  477. {0, 0, 0, 0, 0, 0, 1},
  478. {0, 0, 0, 0, 1, 1, 1},
  479. {0, 0, 2, 1, 1, 1, 1},
  480. {0, 0, 0, 0, 1, 1, 1},
  481. {0, 0, 0, 0, 0, 0, 1},  
  482. }
  483.  
  484.  
  485. local pokeis = {'Bulbasaur', 'Ivysaur', 'Venusaur', 'Charmeleon', 'Charizard', 'Wartortle', 'Blastoise',
  486.  'Butterfree', 'Fearow', 'Arbok', 'Raichu', 'Nidoqueen', 'Nidoking', 'Clefable', 'Ninetales', 'Wigglytuff',
  487.  'Vileplume', 'Parasect', 'Venonat', 'Venomoth', 'Dugtrio', 'Golduck', 'Primeape', 'Arcanine', 'Poliwrath',
  488.  'Kadabra', 'Alakazam', 'Machamp', 'Victreebel', 'Tentacruel', 'Slowbro', 'Dewgong', 'Cloyster', 'Gengar', 'Onix', 'Hypno', 'Exeggutor', 'Marowak', 'Hitmonchan', 'Lickitung', 'Weezing', 'Rhydon',
  489.  'Kangaskhan', 'Seadra', 'Golem', 'Sandslash', 'Starmie', 'Jinx', 'Pinsir', 'Gyarados', 'Lapras', 'Ditto',
  490.  'Vaporeon', 'Jolteon', 'Flareon', 'Porygon', 'Omastar', 'Aerodactyl', 'Snorlax', 'Zapdos', 'Dragonite',
  491.  'Elder Charizard', 'Crystal Onix', 'Jynx', 'Electrode', 'Shiny Venonat', 'Shiny Butterfree', 'Shiny Seadra', 'Shiny Parasect', 'Shiny Raichu', 'Shiny Venomoth', 'Shiny Arcanine', 'Shiny Tentacruel', 'Shiny Jynx',
  492.  'Shiny Venusaur', 'Shiny Blastoise', 'Red Gyarados', 'Shiny Gengar', 'Shiny Alakazam', 'Shiny Dragonite', 'Shiny Ninetales', 'Big Snorlax'}
  493. local c = {
  494. [25] = {x = {
  495.             pok = bulbasaur,
  496.             spell = "Stun Spore",
  497.             minLv = 28,
  498.             ex = 1000008,
  499.             base1 = 0,
  500.             base2 = 0,
  501.             dista = 5,
  502.             target = "no",
  503.             bonus = 0,
  504.             type = "grass",
  505.             cd = 25
  506.              }
  507.          },
  508. [24] = {x = {
  509.             pok = ivysaur,
  510.             spell = "Sleep Powder",
  511.             minLv = 44,
  512.             ex = 2000008,
  513.             base1 = 0,
  514.             base2 = 0,
  515.             dista = 5,
  516.             target = "no",
  517.             bonus = 0,
  518.             type = "grass",
  519.             cd = 30
  520.              }
  521.          },
  522. [22] = {x = {
  523.             pok = venusaur,
  524.             spell = "Sleep Powder",
  525.             minLv = 85,
  526.             ex = 3000008,
  527.             base1 = 0,
  528.             base2 = 0,
  529.             dista = 5,
  530.             target = "no",
  531.             bonus = 0,
  532.             type = "grass",
  533.             cd = 30
  534.              }
  535.          },
  536. [496] = {x = {
  537.             pok = shinyvenusaur,
  538.             spell = "Sleep Powder",
  539.             minLv = 85,
  540.             ex = 3000008,
  541.             base1 = 0,
  542.             base2 = 0,
  543.             dista = 5,
  544.             target = "no",
  545.             bonus = 0,
  546.             type = "grass",
  547.             cd = 30
  548.              }
  549.          },
  550. [23] = {x = {
  551.             pok = charmeleon,
  552.             spell = "Rage",
  553.             minLv = 40,
  554.             ex = 5000008,
  555.             base1 = 100,
  556.             base2 = 110,
  557.             dista = 3,
  558.             target = "yes",
  559.             bonus = 4,
  560.             type = "dragon",
  561.             cd = 22
  562.              }
  563.          },
  564. [67] = {x = {
  565.             pok = charizard,
  566.             spell = "Wing Attack",
  567.             minLv = 90,
  568.             ex = 5000008,
  569.             base1 = 150,
  570.             base2 = 200,
  571.             dista = 1,
  572.             bonus = 6,
  573.                         target = "no",
  574.             type = "flying",
  575.             cd = 20
  576.              }
  577.          },
  578.  
  579. [6] = {x = {
  580.             pok = wartortle,
  581.             spell = "Harden",
  582.             minLv = 40,
  583.             ex = 1100008,
  584.                         lpl = 93,
  585.             life = 2800,
  586.             base1 = 0,
  587.             base2 = 0,
  588.             dista = 1,
  589.             target = "no",
  590.             bonus = 0,
  591.             type = "normal",
  592.             cd = 14
  593.              }
  594.          },
  595. [55] = {x = {
  596.             pok = blastoise,
  597.             spell = "Skull Bash",
  598.             minLv = 90,
  599.             ex = 1100008,
  600.             base1 = 190,
  601.             base2 = 225,
  602.             dista = 5,
  603.             target = "no",
  604.             bonus = 10,
  605.             type = "normal",
  606.             cd = 18
  607.              }
  608.          },
  609. [495] = {x = {
  610.             pok = shinyblastoise,
  611.             spell = "Skull Bash",
  612.             minLv = 90,
  613.             ex = 1100008,
  614.             base1 = 190,
  615.             base2 = 225,
  616.             dista = 5,
  617.             target = "no",
  618.             bonus = 10,
  619.             type = "normal",
  620.             cd = 18
  621.              }
  622.          },
  623. [40] = {x = {
  624.             pok = butterfree,
  625.             spell = "Stun Spore",
  626.             minLv = 30,
  627.             ex = 1300008,
  628.             base1 = 0,
  629.             base2 = 0,
  630.             dista = 5,
  631.             target = "no",
  632.             bonus = 0,
  633.             type = "grass",
  634.             cd = 25
  635.              }
  636.          },
  637. [485] = {x = {
  638.             pok = shinybutterfree,
  639.             spell = "Stun Spore",
  640.             minLv = 30,
  641.             ex = 1300008,
  642.             base1 = 0,
  643.             base2 = 0,
  644.             dista = 5,
  645.             target = "no",
  646.             bonus = 0,
  647.             type = "grass",
  648.             cd = 25
  649.              }
  650.          },
  651. [17] = {x = {
  652.             pok = fearow,
  653.             spell = "Rage",
  654.             minLv = 55,
  655.             ex = 2600005,
  656.             base1 = 120,
  657.             base2 = 130,
  658.             dista = 4,
  659.             target = "yes",
  660.             bonus = 3.5,
  661.             type = "dragon",
  662.             cd = 20
  663.              }
  664.          },
  665.  
  666. [39] = {x = {
  667.             pok = arbok,
  668.             spell = "Rage",
  669.             minLv = 40,
  670.             ex = 2700008,
  671.             base1 = 140,
  672.             base2 = 176,
  673.             dista = 5,
  674.             target = "yes",
  675.             bonus = 4,
  676.             type = "dragon",
  677.             cd = 15
  678.              }
  679.          },
  680.  
  681. [50] = {x = {
  682.             pok = raichu,
  683.             spell = "Electric Storm",
  684.             minLv = 65,
  685.             ex = 2900008,
  686.             base1 = 100,
  687.             base2 = 200,
  688.             dista = 5,
  689.             target = "no",
  690.             bonus = 5,
  691.             type = "electric",
  692.             cd = 19
  693.              }
  694.          },
  695. [511] = {x = {
  696.             pok = shinyraichu,
  697.             spell = "Electric Storm",
  698.             minLv = 65,
  699.             ex = 2900008,
  700.             base1 = 100,
  701.             base2 = 200,
  702.             dista = 5,
  703.             target = "no",
  704.             bonus = 5,
  705.             type = "electric",
  706.             cd = 19
  707.              }
  708.          },
  709. [79] = {x = {
  710.             pok = nidoqueen,
  711.             spell = "Stomp",
  712.             minLv = 69,
  713.             ex = 3100008,
  714.             base1 = 110,
  715.             base2 = 170,
  716.             dista = 1,
  717.             bonus = 4.5,
  718.                         target = "no",
  719.             type = "ground",
  720.             cd = 10
  721.              }
  722.          },
  723. [35] = {x = {
  724.             pok = nidoking,
  725.             spell = "Stomp",
  726.             minLv = 69,
  727.             ex = 3400008,
  728.             base1 = 170,
  729.             base2 = 200,
  730.             dista = 1,
  731.             bonus = 5,
  732.                         target = "no",
  733.             type = "ground",
  734.             cd = 9
  735.              }
  736.          },
  737.  
  738. [68] = {x = {
  739.             pok = clefable,
  740.             spell = "Focus",
  741.             minLv = 52,
  742.             ex = 3600008,
  743.             base1 = 0,
  744.             base2 = 0,
  745.             dista = 5,
  746.             Target = "no",
  747.             bonus = 3,
  748.             type = "normal",
  749.             cd = 50
  750.              }
  751.          },
  752.  
  753. [114] = {x = {
  754.             pok = Ninetales,
  755.             spell = "Magma Storm",
  756.             minLv = 85,
  757.             ex = 3800008,
  758.             base1 = 240,
  759.             base2 = 390,
  760.             dista = 5,
  761.             target = "no",
  762.             bonus = 4,
  763.             type = "fire",
  764.             cd = 18
  765.              }
  766.          },
  767. [541] = {x = {
  768.             pok = shinyninetales,
  769.             spell = "Magma Storm",
  770.             minLv = 85,
  771.             ex = 3800008,
  772.             base1 = 240,
  773.             base2 = 390,
  774.             dista = 5,
  775.             target = "no",
  776.             bonus = 4,
  777.             type = "fire",
  778.             cd = 18
  779.              }
  780.          },
  781. [64] = {x = {
  782.             pok = Wigglytuff,
  783.             spell = "Melody",
  784.             minLv = 50,
  785.             ex = 4000008,
  786.             base1 = 200,
  787.             base2 = 300,
  788.             dista = 5,
  789.             target = "no",
  790.             bonus = 8.5,
  791.             type = "Normal",
  792.             cd = 60
  793.              }
  794.          },
  795. [86] = {x = {
  796.             pok = vileplume,
  797.             spell = "Sleep Powder",
  798.             minLv = 50,
  799.             ex = 4500008,
  800.             base1 = 0,
  801.             base2 = 0,
  802.             dista = 4,
  803.             target = "no",
  804.             bonus = 0,
  805.             type = "grass",
  806.             cd = 46
  807.              }
  808.          },
  809. [95] = {x = {
  810.             pok = parasect,
  811.             spell = "Sleep Powder",
  812.             minLv = 50,
  813.             ex = 4700008,
  814.             base1 = 20,
  815.             base2 = 40,
  816.             dista = 4,
  817.             target = "no",
  818.             bonus = 3,
  819.                         target = "no",
  820.             type = "grass",
  821.             cd = 17
  822.              }
  823.          },
  824. [501] = {x = {
  825.             pok = shinyparasect,
  826.             spell = "Sleep Powder",
  827.             minLv = 50,
  828.             ex = 4700008,
  829.             base1 = 20,
  830.             base2 = 40,
  831.             dista = 4,
  832.             target = "no",
  833.             bonus = 3,
  834.                         target = "no",
  835.             type = "grass",
  836.             cd = 17
  837.              }
  838.          },
  839. [52] = {x = {
  840.             pok = venonat,
  841.             spell = "Stun Spore",
  842.             minLv = 20,
  843.             ex = 4800008,
  844.             base1 = 0,
  845.             base2 = 0,
  846.             dista = 1,
  847.             bonus = 0,
  848.                         target = "no",
  849.             type = "grass",
  850.             cd = 20
  851.              }
  852.          },
  853. [517] = {x = {
  854.             pok = shinyvenonat,
  855.             spell = "Stun Spore",
  856.             minLv = 20,
  857.             ex = 4800008,
  858.             base1 = 0,
  859.             base2 = 0,
  860.             dista = 1,
  861.             bonus = 0,
  862.                         target = "no",
  863.             type = "grass",
  864.             cd = 20
  865.              }
  866.          },
  867. [49] = {x = {
  868.             pok = venomoth,
  869.             spell = "Poison Powder",
  870.             minLv = 50,
  871.             ex = 4900008,
  872.             base1 = 50,
  873.             base2 = 80,
  874.             dista = 5,
  875.             target = "no",
  876.             bonus = 4,
  877.             type = "poison",
  878.             cd = 43
  879.              }
  880.          },
  881. [484] = {x = {
  882.             pok = shinyvenomoth,
  883.             spell = "Poison Powder",
  884.             minLv = 50,
  885.             ex = 4900008,
  886.             base1 = 50,
  887.             base2 = 80,
  888.             dista = 5,
  889.             target = "no",
  890.             bonus = 4,
  891.             type = "poison",
  892.             cd = 43
  893.              }
  894.          },
  895. [83] = {x = {
  896.             pok = dugtrio,
  897.             spell = "Rage",
  898.             minLv = 45,
  899.             ex = 5100008,
  900.             base1 = 110,
  901.             base2 = 132,
  902.             dista = 3,
  903.             bonus = 4.9,
  904.             type = "dragon",
  905.             cd = 43
  906.              }
  907.          },
  908. [99] = {x = {
  909.             pok = golduck,
  910.             spell = "Mega Kick",
  911.             minLv = 55,
  912.             ex = 5500008,
  913.             base1 = 110,
  914.             base2 = 140,
  915.             dista = 1,
  916.             bonus = 4,
  917.             type = "fighting",
  918.             cd = 35
  919.              }
  920.          },
  921. [103] = {x = {
  922.             pok = primeape,
  923.             spell = "Fear",
  924.             minLv = 60,
  925.             ex = 5700008,
  926.             base1 = 110,
  927.             base2 = 160,
  928.             dista = 3,
  929.             target = "no",
  930.             bonus = 4,
  931.             type = "ghost",
  932.             cd = 12
  933.              }
  934.          },
  935. [88] = {x = {
  936.             pok = arcanine,
  937.             spell = "Fire Blast",
  938.             minLv = 82,
  939.             ex = 5900008,
  940.             base1 = 120,
  941.             base2 = 210,
  942.             dista = 5,
  943.             target = "no",
  944.             bonus = 8,
  945.             type = "fire",
  946.             cd = 19
  947.              }
  948.          },
  949. [493] = {x = {
  950.             pok = shinyarcanine,
  951.             spell = "Fire Blast",
  952.             minLv = 82,
  953.             ex = 5900008,
  954.             base1 = 120,
  955.             base2 = 210,
  956.             dista = 5,
  957.             target = "no",
  958.             bonus = 8,
  959.             type = "fire",
  960.             cd = 19
  961.              }
  962.          },
  963. [104] = {x = {
  964.             pok = poliwrath,
  965.             spell = "Ice Beam",
  966.             minLv = 73,
  967.             ex = 6200008,
  968.             base1 = 100,
  969.             base2 = 187,
  970.             dista = 5,
  971.             target = "no",
  972.             bonus = 10,
  973.             type = "ice",
  974.             cd = 17
  975.              }
  976.          },
  977.  
  978. [219] = {x = {
  979.             pok = kadabra,
  980.             spell = "Reflect",
  981.             minLv = 60,
  982.             ex = 6400008,
  983.             base1 = 190,
  984.             base2 = 225,
  985.             dista = 5,
  986.             target = "no",
  987.             bonus = 4,
  988.             type = "psychic",
  989.             cd = 30
  990.              }
  991.          },
  992. [218] = {x = {
  993.             pok = alakazam,
  994.             spell = "Hypnosis",
  995.             minLv = 80,
  996.             ex = 6500008,
  997.             base1 = 0,
  998.             base2 = 0,
  999.             dista = 3,
  1000.             bonus = 5,
  1001.             type = "psychic",
  1002.             cd = 30
  1003.              }
  1004.          },
  1005. [535] = {x = {
  1006.             pok = shinyalakazam,
  1007.             spell = "Hypnosis",
  1008.             minLv = 80,
  1009.             ex = 6500008,
  1010.             base1 = 0,
  1011.             base2 = 0,
  1012.             dista = 3,
  1013.             bonus = 5,
  1014.             type = "psychic",
  1015.             cd = 30
  1016.              }
  1017.          },
  1018. [121] = {x = {
  1019.             pok = machamp,
  1020.             spell = "Strafe",
  1021.             minLv = 70,
  1022.             ex = 6800008,
  1023.             base1 = 120,
  1024.             base2 = 180,
  1025.             dista = 4,
  1026.             target = "no",
  1027.             bonus = 5,
  1028.             type = "normal",
  1029.             cd = 27
  1030.              }
  1031.          },
  1032.  
  1033. [240] = {x = {
  1034.             pok = victreebel,
  1035.             spell = "Sleep Powder",
  1036.             minLv = 55,
  1037.             ex = 7100008,
  1038.             base1 = 0,
  1039.             base2 = 0,
  1040.             dista = 1,
  1041.             bonus = 0,
  1042.             type = "grass",
  1043.             cd = 20
  1044.              }
  1045.          },
  1046. [108] = {x = {
  1047.             pok = tentacruel,
  1048.             spell = "Psywave",
  1049.             minLv = 80,
  1050.             ex = 7300008,
  1051.             base1 = 125,
  1052.             base2 = 150,
  1053.             dista = 5,
  1054.             target = "no",
  1055.             bonus = 3.5,
  1056.             type = "psychic",
  1057.             cd = 15
  1058.              }
  1059.          },
  1060. [489] = {x = {
  1061.             pok = shinytentacruel,
  1062.             spell = "Psywave",
  1063.             minLv = 80,
  1064.             ex = 7300008,
  1065.             base1 = 125,
  1066.             base2 = 150,
  1067.             dista = 5,
  1068.             target = "no",
  1069.             bonus = 3.5,
  1070.             type = "psychic",
  1071.             cd = 15
  1072.              }
  1073.          },
  1074. [41] = {x = {
  1075.             pok = slowbro,
  1076.             spell = "Psychic",
  1077.             minLv = 55,
  1078.             ex = 8000008,
  1079.             base1 = 70,
  1080.             base2 = 120,
  1081.             dista = 5,
  1082.             target = "no",
  1083.             bonus = 4,
  1084.             type = "psychic",
  1085.             cd = 7
  1086.              }
  1087.          },
  1088. [110] = {x = {
  1089.             pok = dewgong,
  1090.             spell = "Rest",
  1091.             minLv = 71,
  1092.             ex = 8700008,
  1093.             base1 = 560,
  1094.             base2 = 1180,
  1095.             dista = 5,
  1096.             target = "no",
  1097.             bonus = 4.1,
  1098.             type = "normal",
  1099.             cd = 122
  1100.              }
  1101.          },
  1102. [545] = {x = {
  1103.             pok = dewgongrest,
  1104.             spell = "Rest",
  1105.             minLv = 71,
  1106.             ex = 8700008,
  1107.             base1 = 560,
  1108.             base2 = 1180,
  1109.             dista = 5,
  1110.             target = "no",
  1111.             bonus = 4.1,
  1112.             type = "normal",
  1113.             cd = 122
  1114.              }
  1115.          },
  1116. [72] = {x = {
  1117.             pok = cloyster,
  1118.             spell = "Harden",
  1119.             minLv = 62,
  1120.             ex = 9100008,
  1121.                         lpl = 155,
  1122.             life = 5000,
  1123.             base1 = 0,
  1124.             base2 = 0,
  1125.             dista = 5,
  1126.             bonus = 0,
  1127.                         target = "no",
  1128.             type = "normal",
  1129.             cd = 8
  1130.              }
  1131.          },
  1132. [244] = {x = {
  1133.             pok = gengar,
  1134.             spell = "Hypnosis",
  1135.             minLv = 80,
  1136.             ex = 9400008,
  1137.             base1 = 0,
  1138.             base2 = 0,
  1139.             dista = 3,
  1140.             bonus = 4.5,
  1141.             type = "ghost",
  1142.             cd = 40
  1143.              }
  1144.          },
  1145. [534] = {x = {
  1146.             pok = shinygengar,
  1147.             spell = "Hypnosis",
  1148.             minLv = 80,
  1149.             ex = 9400008,
  1150.             base1 = 0,
  1151.             base2 = 0,
  1152.             dista = 3,
  1153.             bonus = 4.5,
  1154.             type = "ghost",
  1155.             cd = 40
  1156.              }
  1157.          },
  1158. [248] = {x = {
  1159.             pok = onix,
  1160.             spell = "Harden",
  1161.             minLv = 50,
  1162.             ex = 9500008,
  1163.                         lpl = 150,
  1164.             life = 5300,
  1165.             base1 = 0,
  1166.             base2 = 0,
  1167.             dista = 4,
  1168.             target = "no",
  1169.             bonus = 0,
  1170.             type = "normal",
  1171.             cd = 25
  1172.              }
  1173.          },
  1174.  
  1175.  
  1176. [119] = {x = {
  1177.             pok = hypno,
  1178.             spell = "Focus",
  1179.             minLv = 70,
  1180.             ex = 9700008,
  1181.             base1 = 0,
  1182.             base2 = 0,
  1183.             Target = "no",
  1184.             dista = 5,
  1185.             bonus = 4.8,
  1186.             type = "normal",
  1187.             cd = 20
  1188.              }
  1189.          },
  1190.  
  1191.  
  1192.  
  1193. [46] = {x = {
  1194.             pok = exeggutor,
  1195.             spell = "Poison Powder",
  1196.             minLv = 55,
  1197.             ex = 1030008,
  1198.             base1 = 30,
  1199.             base2 = 50,
  1200.             dista = 5,
  1201.             target = "no",
  1202.             bonus = 4,
  1203.             type = "poison",
  1204.             cd = 32
  1205.              }
  1206.          },
  1207.  
  1208. [197] = {x = {
  1209.             pok = marowak,
  1210.             spell = "Rage",
  1211.             minLv = 65,
  1212.             ex = 1050008,
  1213.             base1 = 100,
  1214.             base2 = 130,
  1215.             dista = 3,
  1216.             bonus = 4.5,
  1217.             type = "dragon",
  1218.             cd = 12
  1219.              }
  1220.          },
  1221.  
  1222. [38] = {x = {
  1223.             pok = hitmonchan,
  1224.             spell = "Fist Machine",
  1225.             minLv = 60,
  1226.             ex = 1070008,
  1227.             base1 = 196,
  1228.             base2 = 219,
  1229.             target = "no",
  1230.             bonus = 7,
  1231.             type = "fighting",
  1232.             cd = 35
  1233.              }
  1234.          },
  1235. [11] = {x = {
  1236.             pok = lickitung,
  1237.             spell = "Strafe",
  1238.             minLv = 55,
  1239.             ex = 1080008,
  1240.             base1 = 100,
  1241.             base2 = 140,
  1242.             dista = 1,
  1243.             bonus = 3.5,
  1244.             type = "normal",
  1245.             cd = 25
  1246.              }
  1247.          },
  1248. [231] = {x = {
  1249.             pok = weezing,
  1250.             spell = "Selfdestruct",
  1251.             minLv = 50,
  1252.             ex = 1100008,
  1253.             base1 = 350,
  1254.             base2 = 580,
  1255.             dista = 5,
  1256.             target = "no",
  1257.             bonus = 3.5,
  1258.             type = "normal",
  1259.             cd = 13
  1260.              }
  1261.          },
  1262. [200] = {x = {
  1263.             pok = rhydon,
  1264.             spell = "Mega Horn",
  1265.             minLv = 82,
  1266.             ex = 1120008,
  1267.             base1 = 110,
  1268.             base2 = 300,
  1269.             dista = 3,
  1270.             bonus = 9,
  1271.             type = "rock",
  1272.             cd = 15
  1273.              }
  1274.          },
  1275. [198] = {x = {
  1276.             pok = kangaskhan,
  1277.             spell = "Rage",
  1278.             minLv = 80,
  1279.             ex = 1150008,
  1280.             base1 = 136,
  1281.             base2 = 149,
  1282.             dista = 1,
  1283.             target = "yes",
  1284.             bonus = 4,
  1285.             type = "dragon",
  1286.             cd = 25
  1287.              }
  1288.          },
  1289.  
  1290. [276] = {x = {
  1291.             pok = seadra,
  1292.             spell = "Hydro Cannon",
  1293.             minLv = 55,
  1294.             ex = 1170008,
  1295.             base1 = 190,
  1296.             base2 = 245,
  1297.             dista = 1,
  1298.             bonus = 13,
  1299.                         target = "no",
  1300.             type = "water",
  1301.             cd = 30
  1302.              }
  1303.          },
  1304. [515] = {x = {
  1305.             pok = shinyseadra,
  1306.             spell = "Hydro Cannon",
  1307.             minLv = 55,
  1308.             ex = 1170008,
  1309.             base1 = 190,
  1310.             base2 = 245,
  1311.             dista = 1,
  1312.             bonus = 13,
  1313.                         target = "no",
  1314.             type = "water",
  1315.             cd = 30
  1316.              }
  1317.          },
  1318. [116] = {x = {
  1319.             pok = golem,
  1320.             spell = "Selfdestruct",
  1321.             minLv = 75,
  1322.             ex = 7600008,
  1323.             base1 = 480,
  1324.             base2 = 790,
  1325.             dista = 5,
  1326.             target = "no",
  1327.             bonus = 6,
  1328.             type = "normal",
  1329.             cd = 100
  1330.              }
  1331.          },
  1332. [288] = {x = {
  1333.             pok = golemroll,
  1334.             spell = "Selfdestruct",
  1335.             minLv = 75,
  1336.             ex = 7600008,
  1337.             base1 = 480,
  1338.             base2 = 790,
  1339.             dista = 5,
  1340.             target = "no",
  1341.             bonus = 6,
  1342.             type = "normal",
  1343.             cd = 100
  1344.              }
  1345.          },
  1346. [115] = {x = {
  1347.             pok = sandslash,
  1348.             spell = "Earthquake",
  1349.             minLv = 70,
  1350.             ex = 2800008,
  1351.             base1 = 70,
  1352.             base2 = 100,
  1353.             dista = 3,
  1354.             target = "no",
  1355.             bonus = 1.6,
  1356.             type = "ground",
  1357.             cd = 45
  1358.              }
  1359.          },
  1360. [285] = {x = {
  1361.             pok = sandslashroll,
  1362.             spell = "Earthquake",
  1363.             minLv = 70,
  1364.             ex = 2800008,
  1365.             base1 = 70,
  1366.             base2 = 100,
  1367.             dista = 3,
  1368.             target = "no",
  1369.             bonus = 1.6,
  1370.             type = "rock",
  1371.             cd = 28
  1372.              }
  1373.          },
  1374.  
  1375. [249] = {x = {
  1376.             pok = starmie,
  1377.             spell = "Restore",
  1378.             minLv = 35,
  1379.             ex = 1210008,
  1380.             base1 = 180,
  1381.             base2 = 240,
  1382.             dista = 5,
  1383.             target = "no",
  1384.             bonus = 2.9,
  1385.             type = "psychic",
  1386.             cd = 10
  1387.              }
  1388.          },
  1389. [282] = {x = {
  1390.             pok = jynx,
  1391.             spell = "Blizzard",
  1392.             minLv = 81,
  1393.             ex = 1240008,
  1394.             base1 = 115,
  1395.             base2 = 150,
  1396.             dista = 5,
  1397.             target = "no",
  1398.             bonus = 10,
  1399.             type = "ice",
  1400.             cd = 30
  1401.              }
  1402.          },
  1403. [499] = {x = {
  1404.             pok = shinyjynx,
  1405.             spell = "Blizzard",
  1406.             minLv = 81,
  1407.             ex = 1240008,
  1408.             base1 = 115,
  1409.             base2 = 150,
  1410.             dista = 5,
  1411.             target = "no",
  1412.             bonus = 10,
  1413.             type = "ice",
  1414.             cd = 30
  1415.              }
  1416.          },
  1417. [53] = {x = {
  1418.             pok = pinsir,
  1419.             spell = "Rage",
  1420.             minLv = 60,
  1421.             ex = 1270008,
  1422.             base1 = 110,
  1423.             base2 = 130,
  1424.             dista = 1,
  1425.             bonus = 3.5,
  1426.             type = "dragon",
  1427.             cd = 17
  1428.              }
  1429.          },
  1430. [117] = {x = {
  1431.             pok = gyarados,
  1432.             spell = "Hydropump",
  1433.             minLv = 93,
  1434.             ex = 1300005,
  1435.             base1 = 160,
  1436.             base2 = 320,
  1437.             dista = 5,
  1438.             target = "no",
  1439.             bonus = 3.5,
  1440.             type = "water",
  1441.             cd = 23
  1442.              }
  1443.          },
  1444. [528] = {x = {
  1445.             pok = redgyarados,
  1446.             spell = "Hydropump",
  1447.             minLv = 93,
  1448.             ex = 1300005,
  1449.             base1 = 160,
  1450.             base2 = 320,
  1451.             dista = 5,
  1452.             target = "no",
  1453.             bonus = 3.5,
  1454.             type = "water",
  1455.             cd = 23
  1456.              }
  1457.          },
  1458. [193] = {x = {
  1459.             pok = lapras,
  1460.             spell = "Hydropump",
  1461.             minLv = 90,
  1462.             ex = 1310008,
  1463.             base1 = 123,
  1464.             base2 = 287,
  1465.             dista = 5,
  1466.             target = "no",
  1467.             bonus = 4,
  1468.             type = "water",
  1469.             cd = 12
  1470.              }
  1471.              },
  1472. [28] = {x = {
  1473.             pok = ditto,
  1474.             spell = "",
  1475.             minLv = 40,
  1476.             ex = 1320008,
  1477.             base1 = 125,
  1478.             base2 = 130,
  1479.             dista = 5,
  1480.             bonus = 3,
  1481.                         target = "no",
  1482.             type = "normal",
  1483.             cd = 20
  1484.              }
  1485.          },
  1486. [215] = {x = {
  1487.             pok = vaporeon,
  1488.             spell = "Hydro Cannon",
  1489.             minLv = 65,
  1490.             ex = 1340008,
  1491.             base1 = 109,
  1492.             base2 = 189,
  1493.             dista = 1,
  1494.             bonus = 3,
  1495.                         target = "no",
  1496.             type = "water",
  1497.             cd = 20
  1498.              }
  1499.          },
  1500. [195] = {x = {
  1501.             pok = jolteon,
  1502.             spell = "Thunder",
  1503.             minLv = 65,
  1504.             ex = 1350008,
  1505.             base1 = 110,
  1506.             base2 = 189,
  1507.             dista = 5,
  1508.             target = "no",
  1509.             bonus = 3,
  1510.             type = "electric",
  1511.             cd = 13
  1512.              }
  1513.          },
  1514. [14] = {x = {
  1515.             pok = flareon,
  1516.             spell = "Fire Blast",
  1517.             minLv = 65,
  1518.             ex = 1360008,
  1519.             base1 = 110,
  1520.             base2 = 189,
  1521.             dista = 1,
  1522.             target = "no",
  1523.             bonus = 3,
  1524.             type = "fire",
  1525.             cd = 20
  1526.              }
  1527.          },
  1528. [97] = {x = {
  1529.             pok = porygon,
  1530.             spell = "Restore",
  1531.             minLv = 40,
  1532.             ex = 1370008,
  1533.             base1 = 165,
  1534.             base2 = 215,
  1535.             dista = 5,
  1536.             bonus = 3.5,
  1537.                         target = "no",
  1538.             type = "psychic",
  1539.             cd = 30
  1540.              }
  1541.          },
  1542.  
  1543. [192] = {x = {
  1544.             pok = omastar,
  1545.             spell = "Ancient Power",
  1546.             minLv = 95,
  1547.             ex = 1390008,
  1548.             base1 = 240,
  1549.             base2 = 380,
  1550.             dista = 5,
  1551.             target = "no",
  1552.             bonus = 5,
  1553.             type = "rock",
  1554.             cd = 34
  1555.              }
  1556.          },
  1557. [10] = {x = {
  1558.             pok = aerodactyl,
  1559.             spell = "Wing Attack",
  1560.             minLv = 100,
  1561.             ex = 1420008,
  1562.             base1 = 150,
  1563.             base2 = 345,
  1564.             dista = 1,
  1565.             bonus = 6.5,
  1566.                         target = "no",
  1567.             type = "flying",
  1568.             cd = 12
  1569.              }
  1570.             },
  1571. [51] = {x = {
  1572.             pok = snorlax,
  1573.             spell = "Rest",
  1574.             minLv = 85,
  1575.             ex = 1430008,
  1576.             base1 = 100,
  1577.             base2 = 150,
  1578.             dista = 5,
  1579.             target = "no",
  1580.             bonus = 0,
  1581.             type = "normal",
  1582.             cd = 64
  1583.              }
  1584.          },
  1585. [258] = {x = {
  1586.             pok = snorlaxrest,
  1587.             spell = "Rest",
  1588.             minLv = 85,
  1589.             ex = 1430008,
  1590.             base1 = 100,
  1591.             base2 = 150,
  1592.             dista = 5,
  1593.             bonus = 0,
  1594.             type = "normal",
  1595.             cd = 64
  1596.              }
  1597.          },
  1598. [543] = {x = {
  1599.             pok = bigsnorlax,
  1600.             spell = "Rest",
  1601.             minLv = 85,
  1602.             ex = 1430008,
  1603.             base1 = 100,
  1604.             base2 = 150,
  1605.             dista = 5,
  1606.             target = "no",
  1607.             bonus = 0,
  1608.             type = "normal",
  1609.             cd = 64
  1610.              }
  1611.          },
  1612. [544] = {x = {
  1613.             pok = bigsnorlaxrest,
  1614.             spell = "Rest",
  1615.             minLv = 85,
  1616.             ex = 1430008,
  1617.             base1 = 100,
  1618.             base2 = 150,
  1619.             dista = 5,
  1620.             bonus = 0,
  1621.             type = "normal",
  1622.             cd = 64
  1623.              }
  1624.          },
  1625. [199] = {x = {
  1626.             pok = Zapdos,
  1627.             spell = "Tornado",
  1628.             minLv = 100,
  1629.             ex = 1450008,
  1630.             base1 = 390,
  1631.             base2 = 678,
  1632.             dista = 5,
  1633.             target = "no",
  1634.             bonus = 9,
  1635.             type = "flying",
  1636.             cd = 11
  1637.              }
  1638.          },
  1639. [210] = {x = {
  1640.             pok = dragonite,
  1641.             spell = "Twister",
  1642.             minLv = 104,
  1643.             ex = 1490008,
  1644.             base1 = 278,
  1645.             base2 = 300,
  1646.             dista = 1,
  1647.             bonus = 6.5,
  1648.                         target = "no",
  1649.             type = "dragon",
  1650.             cd = 20
  1651.              }
  1652.          },
  1653. [537] = {x = {
  1654.             pok = shinydragonite,
  1655.             spell = "Twister",
  1656.             minLv = 104,
  1657.             ex = 1490008,
  1658.             base1 = 278,
  1659.             base2 = 300,
  1660.             dista = 1,
  1661.             bonus = 6.5,
  1662.                         target = "no",
  1663.             type = "dragon",
  1664.             cd = 20
  1665.              }
  1666.          },
  1667. [294] = {x = {
  1668.             pok = eldercharizard,
  1669.             spell = "Wing Attack",
  1670.             minLv = 100,
  1671.             ex = 1500008,
  1672.             base1 = 390,
  1673.             base2 = 410,
  1674.             dista = 1,
  1675.             bonus = 6.8,
  1676.                         target = "no",
  1677.             type = "flying",
  1678.             cd = 17
  1679.              }
  1680.          },
  1681. [292] = {x = {
  1682.             pok = crystalOnix,
  1683.             spell = "Harden",
  1684.             minLv = 100,
  1685.             ex = 1510008,
  1686.                         lpl = 155,
  1687.             life = 5000,
  1688.             base1 = 0,
  1689.             base2 = 0,
  1690.             dista = 1,
  1691.             bonus = 0,
  1692.             type = "normal",
  1693.             cd = 25
  1694.              }
  1695.          },
  1696. [125] = {x = {
  1697.             pok = electrode,
  1698.             spell = "Charge Beam",
  1699.             minLv = 40,
  1700.             ex = 1010008,
  1701.             base1 = 100,
  1702.             base2 = 187,
  1703.             dista = 5,
  1704.             target = "no",
  1705.             bonus = 10,
  1706.             type = "electric",
  1707.             cd = 19
  1708.              }
  1709.          },
  1710. [286] = {x = {
  1711.             pok = electroderoll,
  1712.             spell = "Charge Beam",
  1713.             minLv = 40,
  1714.             ex = 1010008,
  1715.             base1 = 100,
  1716.             base2 = 187,
  1717.             dista = 5,
  1718.             target = "no",
  1719.             bonus = 10,
  1720.             type = "electric",
  1721.             cd = 19
  1722.              }
  1723.          },
  1724. }
  1725.  
  1726. function onSay(cid)
  1727.     if #getCreatureSummons(cid) == 0 then
  1728.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to use moves.")
  1729.     return 0
  1730.     end
  1731. if getTilePzInfo(getPlayerPosition(cid)) then
  1732.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Can't use Moves on protect zone.")
  1733.     return true
  1734.     end
  1735.     if not isInArray(pokeis, getCreatureName(getCreatureSummons(cid)[1])) then
  1736.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your pokemon doesn\'t recognize this move.")
  1737.     return 0
  1738.     end
  1739.     pokemon = c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType]
  1740.     if getPlayerLevel(cid) < c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.minLv then
  1741.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have enough level to use this move.")
  1742.     return 0
  1743.     end
  1744.     if exhaustion.get(cid, pokemon.x.ex) then
  1745.         seconds = math.floor(((exhaustion.get(cid, pokemon.x.ex)) + 1))
  1746.         doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..seconds.." seconds to use this move again.")
  1747.         return 0
  1748.         end
  1749.     if getPlayerStorageValue(getCreatureSummons(cid)[1], 3) >= 1 then
  1750.     doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "MISS", 215)
  1751.     setPlayerStorageValue(getCreatureSummons(cid)[1], 3, -1)
  1752.     doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1753.     exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1754.     return true
  1755.     end
  1756.     if getPlayerStorageValue(getCreatureSummons(cid)[1], 5) >= 1 then
  1757.         if math.random(1,100) <= 33 then
  1758.         doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "SELF HIT", 180)
  1759.         local levels = getPlayerLevel(cid)
  1760.         doTargetCombatHealth(cid, getCreatureSummons(cid)[1], COMBAT_PHYSICALDAMAGE, -(math.random((levels*3),(levels*5))), -((math.random((levels*3),(levels*5))+10)), 3)
  1761.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1762.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1763.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1764.         return true
  1765.         end
  1766.     end
  1767. if pokemon.x.target ~= "no" then
  1768.     if not isCreature(getCreatureTarget(cid)) then
  1769.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.")
  1770.     return 0
  1771.     end
  1772.    
  1773.         if getCreatureCondition(getCreatureTarget(cid), CONDITION_INVISIBLE) then
  1774.     return 0
  1775.     end
  1776.  
  1777.     if getCreatureHealth(getCreatureTarget(cid)) <= 0 then
  1778.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your have already defeated your target.")
  1779.     return 0
  1780.     end
  1781.  
  1782.     if not isCreature(getCreatureSummons(cid)[1]) then
  1783.     return true
  1784.     end
  1785.  
  1786.     if getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > pokemon.x.dista then
  1787.     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to use this move.")
  1788.     return 0
  1789.     end
  1790.         if not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) then
  1791.         return 0
  1792.         end
  1793. end
  1794.     if pokemon.x.type == "flying" then
  1795.         elementa = FLYDAMAGE
  1796.     elseif pokemon.x.type == "ground" then
  1797.         elementa = GROUNDDAMAGE
  1798.     elseif pokemon.x.type == "electric" then
  1799.         elementa = ELECTRICDAMAGE
  1800.     elseif pokemon.x.type == "ghost" then
  1801.         elementa = GHOSTDAMAGE
  1802.     elseif pokemon.x.type == "normal" then
  1803.         elementa = NORMALDAMAGE
  1804.     elseif pokemon.x.type == "fighting" then
  1805.         elementa = FIGHTINGDAMAGE
  1806.     elseif pokemon.x.type == "poison" then
  1807.         elementa = POISONDAMAGE
  1808.     elseif pokemon.x.type == "rock" then
  1809.         elementa = ROCKDAMAGE
  1810.     elseif pokemon.x.type == "bug" then
  1811.         elementa = BUGDAMAGE
  1812.     elseif pokemon.x.type == "fire" then
  1813.         elementa = FIREDAMAGE
  1814.     elseif pokemon.x.type == "water" then
  1815.         elementa = WATERDAMAGE
  1816.     elseif pokemon.x.type == "grass" then
  1817.         elementa = GRASSDAMAGE
  1818.     elseif pokemon.x.type == "psychic" then
  1819.         elementa = PSYCHICDAMAGE
  1820.     elseif pokemon.x.type == "ice" then
  1821.         elementa = ICEDAMAGE
  1822.     elseif pokemon.x.type == "dragon" then
  1823.         elementa = DRAGONDAMAGE
  1824.     end
  1825.  
  1826.     local element = elementa
  1827.     local num1 = (pokemon.x.base1)
  1828.     local num2 = (pokemon.x.base2)
  1829.     local num3 = (pokemon.x.bonus)
  1830.     setPlayerStorageValue(getCreatureSummons(cid)[1], 1000, ((num1)+(getPlayerLevel(cid)*(num3))))
  1831.     if pokemon.x.spell == "Water Gun" then
  1832.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  1833.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 74)
  1834.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
  1835.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 76)
  1836.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  1837.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 77)
  1838.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
  1839.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 78)
  1840.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  1841.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 69)
  1842.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
  1843.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 71)
  1844.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  1845.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 72)
  1846.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
  1847.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 73)
  1848.         end
  1849.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1850.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1851.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1852.         return 0
  1853.             elseif pokemon.x.spell == "Gust" then
  1854.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1855.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1856.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1857.         posit = getThingPos(getCreatureSummons(cid)[1])
  1858.         local function gust(params)
  1859.         if #getCreatureSummons(params.cid) >= 1 then
  1860.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  1861.         else
  1862.         end
  1863.         end
  1864.         local posicao = getThingPos(getCreatureSummons(cid)[1])
  1865.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  1866.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
  1867.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
  1868.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
  1869.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
  1870.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  1871.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
  1872.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
  1873.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
  1874.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
  1875.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  1876.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
  1877.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
  1878.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
  1879.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
  1880.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  1881.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
  1882.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
  1883.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
  1884.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
  1885.         end
  1886.         return 0
  1887. ---------------------ADICIONADAS---------------------------------------------------------------------------
  1888. ------------------------------------------------------------------------------------------------------------
  1889.     elseif pokemon.x.spell == "Hypnosis" then
  1890.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1891.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1892.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1893.         setPlayerStorageValue(getCreatureTarget(cid), 3, 1)
  1894.         local alvo = getCreatureTarget(cid)
  1895.         doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 24)
  1896.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 136)
  1897.         local function string(params)
  1898.         if isCreature(params.alvo) then
  1899.         if getPlayerStorageValue(params.alvo, 3) >= 1 then
  1900.         doSendMagicEffect(getThingPos(params.alvo), 136)
  1901.         end
  1902.         end
  1903.         end
  1904.         local function normalstr(params)
  1905.         if isCreature(params.alvo) then
  1906.         if getPlayerStorageValue(params.alvo, 3) >= 1 then
  1907.         setPlayerStorageValue(params.alvo, 3, -1)
  1908.         end
  1909.         end
  1910.         end
  1911.         addEvent(string, 250, {alvo = alvo})
  1912.         addEvent(string, 500, {alvo = alvo})
  1913.         addEvent(string, 750, {alvo = alvo})
  1914.         addEvent(string, 1000, {alvo = alvo})
  1915.         addEvent(string, 1250, {alvo = alvo})
  1916.         addEvent(string, 1500, {alvo = alvo})
  1917.         addEvent(string, 1750, {alvo = alvo})
  1918.         addEvent(string, 2000, {alvo = alvo})
  1919.         addEvent(string, 2250, {alvo = alvo})
  1920.         addEvent(string, 2500, {alvo = alvo})
  1921.         addEvent(string, 2750, {alvo = alvo})
  1922.         addEvent(string, 3000, {alvo = alvo})
  1923.         addEvent(normalstr, 3050, {alvo = alvo})
  1924.         return 0
  1925. ---------------------ADICIONADAS---------------------------------------------------------------------------
  1926. ---------------------------------------------------------------------------------------------------------------
  1927.             elseif pokemon.x.spell == "Rage" then
  1928.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1929.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1930.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1931.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 110)
  1932.         local hitalvo = getCreatureTarget(cid)
  1933.         local function hit(params)
  1934.         if isCreature(getCreatureSummons(params.cid)[1]) then
  1935.         if isCreature(getCreatureTarget(params.cid)) then
  1936.         if getCreatureTarget(params.cid) == params.hitalvo then
  1937.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], FLYDAMAGE, getThingPos(getCreatureTarget(params.cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 110)
  1938.         doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), CONST_ME_MAGIC_RED)
  1939.         end
  1940.         end
  1941.         end
  1942.         end
  1943.         addEvent(hit, 1000, {cid = cid, hitalvo = hitalvo})
  1944.         addEvent(hit, 2000, {cid = cid, hitalvo = hitalvo})
  1945.         addEvent(hit, 3000, {cid = cid, hitalvo = hitalvo})
  1946.         addEvent(hit, 4000, {cid = cid, hitalvo = hitalvo})
  1947.         addEvent(hit, 5000, {cid = cid, hitalvo = hitalvo})
  1948.         addEvent(hit, 6000, {cid = cid, hitalvo = hitalvo})
  1949.         return 0
  1950.        
  1951.        elseif pokemon.x.spell == "Charge Beam" then
  1952.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  1953.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 94)
  1954.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 93)
  1955.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 95)
  1956.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  1957.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 91)
  1958.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 93)
  1959.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 92)
  1960.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  1961.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 86)
  1962.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 88)
  1963.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 87)
  1964.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  1965.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 89)
  1966.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 88)
  1967.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 90)
  1968.         end
  1969.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1970.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1971.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1972.         return 0
  1973.        elseif pokemon.x.spell == "Melody" then
  1974.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1975.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1976.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1977.         posit = getThingPos(getCreatureSummons(cid)[1])
  1978.         local function storm(params)
  1979.         if #getCreatureSummons(params.cid) >= 1 then
  1980.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
  1981.         doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), earthquake, thunderwavecondition, 255)
  1982.         else
  1983.         end
  1984.         end
  1985.         addEvent(storm, 0, {cid = cid, el = element, ar = earthquake, ef = 19})
  1986.         addEvent(storm, 1000, {cid = cid, el = element, ar = earthquake, ef = 19})
  1987.                 addEvent(storm, 2000, {cid = cid, el = element, ar = earthquake, ef = 19})
  1988.                 addEvent(storm, 3000, {cid = cid, el = element, ar = earthquake, ef = 19})
  1989.                 addEvent(storm, 4000, {cid = cid, el = element, ar = earthquake, ef = 19})
  1990.                 addEvent(storm, 5000, {cid = cid, el = element, ar = earthquake, ef = 19})
  1991.             return 0
  1992.            
  1993.         elseif pokemon.x.spell == "Fist Machine" then
  1994.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  1995.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  1996.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  1997.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  1998.         local flamepos = getThingPos(getCreatureSummons(cid)[1])
  1999.         flamepos.x = flamepos.x+0
  2000.         flamepos.y = flamepos.y-1
  2001.         doSendMagicEffect(flamepos, 217)
  2002.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
  2003.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2004.         local flamepos = getThingPos(getCreatureSummons(cid)[1])
  2005.         flamepos.x = flamepos.x+2
  2006.         flamepos.y = flamepos.y+0
  2007.         doSendMagicEffect(flamepos, 215)
  2008.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingde, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
  2009.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2010.         local flamepos = getThingPos(getCreatureSummons(cid)[1])
  2011.         flamepos.x = flamepos.x-0
  2012.         flamepos.y = flamepos.y+2
  2013.         doSendMagicEffect(flamepos, 218)
  2014.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingds, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
  2015.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2016.         local flamepos = getThingPos(getCreatureSummons(cid)[1])
  2017.         flamepos.x = flamepos.x-1
  2018.         flamepos.y = flamepos.y+0
  2019.         doSendMagicEffect(flamepos, 216)
  2020.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)      
  2021.                 end
  2022.         return 0
  2023.     elseif pokemon.x.spell == "Mega Horn" then
  2024.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2025.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2026.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2027.             local function throw(params)
  2028.             if isCreature(getCreatureTarget(params.cid)) then
  2029.             doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 25)
  2030.             else
  2031.             end
  2032.             end
  2033.                         local function damage(params)
  2034.             if isCreature(getCreatureTarget(params.cid)) then
  2035.             doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 15)
  2036.             else
  2037.             end
  2038.             end
  2039.         addEvent(damage, 0, {cid = cid})
  2040.         addEvent(throw, 0, {cid = cid})
  2041.         return 0
  2042.     elseif pokemon.x.spell == "Skull Bash" then
  2043.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2044.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2045.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2046.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), skullb, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 208)
  2047.                 return 0
  2048.         elseif pokemon.x.spell == "Whirlwind" then
  2049.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2050.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2051.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2052.         posit = getThingPos(getCreatureSummons(cid)[1])
  2053.         local function gust(params)
  2054.         if #getCreatureSummons(params.cid) >= 1 then
  2055.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, params.br, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  2056.         else
  2057.         end
  2058.         end
  2059.         local posicao = getThingPos(getCreatureSummons(cid)[1])
  2060.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2061.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, br = sand1})
  2062.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, br = whirl3})
  2063.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, br = whirl5})
  2064.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, br = whirl5})
  2065.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2066.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, br = sand1})
  2067.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, br = whirl3})
  2068.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, br = whirl5})
  2069.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, br = whirl5})
  2070.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2071.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, br = sand1})
  2072.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, br = whirl32})
  2073.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, br = whirl52})
  2074.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, br = whirl52})
  2075.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2076.         addEvent(gust, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, br = sand1})
  2077.         addEvent(gust, 500, {cid = cid, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, br = whirl32})
  2078.         addEvent(gust, 1000, {cid = cid, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, br = whirl52})
  2079.         addEvent(gust, 1500, {cid = cid, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, br = whirl52})
  2080.         end
  2081.             return 0
  2082.                 elseif pokemon.x.spell == "Sleep Powder" then
  2083.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2084.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2085.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2086.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 27)
  2087.                 doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
  2088.                 return 0
  2089.                 elseif pokemon.x.spell == "Twister" then
  2090.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2091.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2092.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2093.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2094.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), twn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  2095.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2096.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), twe, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  2097.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2098.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tws, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  2099.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2100.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tww, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 42)
  2101.         end
  2102.         return 0
  2103.                 elseif pokemon.x.spell == "Stun Spore" then
  2104.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2105.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2106.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2107.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2108.         doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
  2109.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
  2110.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2111.         doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
  2112.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
  2113.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2114.         doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
  2115.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
  2116.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2117.         doAreaCombatCondition(getCreatureSummons(cid)[1], getThingPos(getCreatureSummons(cid)[1]), confusion, thunderwavecondition, 255)
  2118.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 85)
  2119.         end
  2120.         return 0
  2121.             elseif pokemon.x.spell == "Hyper Fang" then
  2122.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2123.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2124.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2125.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), 159)
  2126.         return 0
  2127.                 elseif pokemon.x.spell == "Tornado" then
  2128.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2129.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2130.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2131.         posit = getThingPos(getCreatureSummons(cid)[1])
  2132.         local function tornado(params)
  2133.         if #getCreatureSummons(params.cid) >= 1 then
  2134.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
  2135.         else
  2136.         end
  2137.         end
  2138.         addEvent(tornado, 0, {cid = cid, ef = 42, ar = tor1, el = element})
  2139.         addEvent(tornado, 500, {cid = cid, ef = 42, ar = tor2, el = element})
  2140.         addEvent(tornado, 1000, {cid = cid, ef = 42, ar = tor3, el = element})
  2141.         addEvent(tornado, 500, {cid = cid, ef = CONST_ME_POFF, ar = tor1, el = null})
  2142.         addEvent(tornado, 1200, {cid = cid, ef = CONST_ME_POFF, ar = tor2, el = null})
  2143.         addEvent(tornado, 1900, {cid = cid, ef = CONST_ME_POFF, ar = tor2, el = null})
  2144.         addEvent(tornado, 1900, {cid = cid, ef = CONST_ME_POFF, ar = tor3, el = null})
  2145.             return 0
  2146.                 elseif pokemon.x.spell == "Hydropump" then
  2147.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2148.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2149.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2150.         posit = getThingPos(getCreatureSummons(cid)[1])
  2151.         local function tornado(params)
  2152.         if #getCreatureSummons(params.cid) >= 1 then
  2153.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
  2154.         else
  2155.         end
  2156.         end
  2157.         addEvent(tornado, 0, {cid = cid, ef = 53, ar = pump1, el = element})
  2158.         addEvent(tornado, 500, {cid = cid, ef = 53, ar = pump2, el = element})
  2159.             return 0
  2160.                 elseif pokemon.x.spell == "Rest" then
  2161.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2162.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2163.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2164.         if getCreatureName(getCreatureSummons(cid)[1]) == "Snorlax" then
  2165.         doSetCreatureOutfit(getCreatureSummons(cid)[1], snorlax, 5000)
  2166.         doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
  2167.         elseif getCreatureName(getCreatureSummons(cid)[1]) == "Dewgong" then
  2168.         doSetCreatureOutfit(getCreatureSummons(cid)[1], dewgong, 5000)
  2169.         doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
  2170.         elseif getCreatureName(getCreatureSummons(cid)[1]) == "Big Snorlax" then
  2171.         doSetCreatureOutfit(getCreatureSummons(cid)[1], bigsnorlax, 5000)
  2172.         doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
  2173.         end
  2174.         setPlayerStorageValue(getCreatureSummons(cid)[1], 4, 1)
  2175.             local function rest(params)
  2176.             if isCreature(params.cid) then
  2177.             if isCreature(getCreatureSummons(params.cid)[1]) then
  2178.             if getCreatureCondition(getCreatureSummons(params.cid)[1], CONDITION_OUTFIT) == true then
  2179.                 doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
  2180.                 doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 32)
  2181.                 doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1]))
  2182.             end
  2183.             end
  2184.             end
  2185.             end
  2186.                 for r = 1, 4 do
  2187.                 addEvent(rest, 1000*r, {cid = cid})
  2188.                 end
  2189.             local function stoprest(params)
  2190.             if isCreature(params.cid) then
  2191.             if isCreature(getCreatureSummons(params.cid)[1]) then
  2192.             doChangeSpeed(getCreatureSummons(params.cid)[1], getCreatureBaseSpeed(getCreatureSummons(cid)[1]))
  2193.             if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
  2194.             setPlayerStorageValue(getCreatureSummons(params.cid)[1], 4, 0)
  2195.             end
  2196.             end
  2197.             end
  2198.             end
  2199.                 addEvent(stoprest, 4300, {cid = cid})
  2200.         return 0
  2201.                 elseif pokemon.x.spell == "Poison Powder" then
  2202.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2203.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2204.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2205.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 84)
  2206.                 return 0
  2207.                 elseif pokemon.x.spell == "Psychic" then
  2208.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2209.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2210.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2211.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), confusion, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2212.                 return 0
  2213.             elseif pokemon.x.spell == "Water Gun" then
  2214.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2215.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 74)
  2216.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
  2217.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 76)
  2218.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2219.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 77)
  2220.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 75)
  2221.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 78)
  2222.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2223.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 69)
  2224.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
  2225.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 71)
  2226.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2227.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 72)
  2228.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 70)
  2229.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 73)
  2230.         end
  2231.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2232.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2233.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2234.         return 0
  2235.                 elseif pokemon.x.spell == "Reflect" then
  2236.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2237.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2238.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2239.         doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 135)
  2240.         setPlayerStorageValue(getCreatureSummons(cid)[1], 34, 1)
  2241.             return 0
  2242.                 elseif pokemon.x.spell == "Fire Blast" then
  2243.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2244.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2245.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2246.         posit = getThingPos(getCreatureSummons(cid)[1])
  2247.         local function gust(params)
  2248.         if #getCreatureSummons(params.cid) >= 1 then
  2249.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.eee)
  2250.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 35)
  2251.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.arr, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 35)
  2252.         else
  2253.         end
  2254.         end
  2255.         local posicao = getThingPos(getCreatureSummons(cid)[1])
  2256.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2257.         addEvent(gust, 0, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, arr = posicao})
  2258.         addEvent(gust, 300, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
  2259.         addEvent(gust, 600, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
  2260.         addEvent(gust, 900, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
  2261.         addEvent(gust, 1200, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
  2262.         addEvent(gust, 1500, {cid = cid, eee = 60, ar = {x=posicao.x, y=posicao.y-6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-5, z=posicao.z}})
  2263.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2264.         addEvent(gust, 0, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, arr = posicao})
  2265.         addEvent(gust, 300, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
  2266.         addEvent(gust, 600, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
  2267.         addEvent(gust, 900, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
  2268.         addEvent(gust, 1200, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
  2269.         addEvent(gust, 1500, {cid = cid, eee = 62, ar = {x=posicao.x, y=posicao.y+6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+5, z=posicao.z}})
  2270.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2271.         addEvent(gust, 0, {cid = cid, eee = 61, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, arr = posicao})
  2272.         addEvent(gust, 300, {cid = cid, eee = 61, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
  2273.         addEvent(gust, 600, {cid = cid, eee = 61, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
  2274.         addEvent(gust, 900, {cid = cid, eee = 61, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
  2275.         addEvent(gust, 1200, {cid = cid, eee = 61, ar = {x=posicao.x+5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
  2276.         addEvent(gust, 1500, {cid = cid, eee = 61, ar = {x=posicao.x+6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+5, y=posicao.y, z=posicao.z}})
  2277.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2278.         addEvent(gust, 0, {cid = cid, eee = 63, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, arr = posicao})
  2279.         addEvent(gust, 300, {cid = cid, eee = 63, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
  2280.         addEvent(gust, 600, {cid = cid, eee = 63, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
  2281.         addEvent(gust, 900, {cid = cid, eee = 63, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
  2282.         addEvent(gust, 1200, {cid = cid, eee = 63, ar = {x=posicao.x-5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
  2283.         addEvent(gust, 1500, {cid = cid, eee = 63, ar = {x=posicao.x-6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-5, y=posicao.y, z=posicao.z}})
  2284.         end
  2285.         return 0
  2286.                 elseif pokemon.x.spell == "Ice Beam" then
  2287.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2288.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 99)
  2289.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 105)
  2290.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3n, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 103)
  2291.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2292.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 98)
  2293.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 105)
  2294.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3s, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 102)
  2295.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2296.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 96)
  2297.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 104)
  2298.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3e, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 100)
  2299.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2300.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg1w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 97)
  2301.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg2w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 104)
  2302.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wg3w, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 101)
  2303.         end
  2304.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2305.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2306.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2307.         return 0
  2308.                 elseif pokemon.x.spell == "Selfdestruct" then
  2309.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2310.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2311.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2312.         addEvent(doCreatureAddHealth, 250, getCreatureSummons(cid)[1], -getCreatureHealth(getCreatureSummons(cid)[1]))
  2313.         doAreaCombatHealth(getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 5)
  2314.         addEvent(doAreaCombatHealth, 150, getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct2, -(((num1)+(getPlayerLevel(cid)*(num3)))*0.7), -(((num2)+(getPlayerLevel(cid)*(num3)))*0.8), 5)
  2315.         addEvent(doAreaCombatHealth, 250, getCreatureSummons(cid)[1], NORMALDAMAGE, getThingPos(getCreatureSummons(cid)[1]), destruct3, -(((num1)+(getPlayerLevel(cid)*(num3)))*0.4), -(((num2)+(getPlayerLevel(cid)*(num3)))*0.5), 5)
  2316.         setPlayerStorageValue(getCreatureSummons(cid)[1], 33, 1)
  2317.             return 0
  2318.             elseif pokemon.x.spell == "Psycho Shift" then
  2319.         targetpos = getThingPos(getCreatureTarget(cid))
  2320.         targetposss = getThingPos(getCreatureTarget(cid))
  2321.         if math.random(1,100) >= 51 then
  2322.         targetpos.x = targetpos.x+2
  2323.         else
  2324.         targetpos.x = targetpos.x-2
  2325.         end
  2326.         if math.random(1,100) >= 51 then
  2327.         targetpos.y = targetpos.y-2
  2328.         else
  2329.         targetpos.y = targetpos.y+2
  2330.         end
  2331.         tile = getTileItemByType(targetpos, ground).itemid
  2332.         if getThingPos(cid).z > 7 then
  2333.             if isWalkable(targetpos, cid, 0, 0) then
  2334.             doTeleportThing(getCreatureTarget(cid), targetpos)
  2335.             doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetpos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
  2336.             doSendMagicEffect(targetpos, 12)
  2337.             else
  2338.             doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetposss, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
  2339.             doSendMagicEffect(targetposss, 12)
  2340.             end
  2341.         else
  2342.         if not isInArray(imp, tile) then
  2343.             if not isInArray(imp, getTileThingByPos(targetpos).itemid) then
  2344.             doTeleportThing(getCreatureTarget(cid), targetpos)
  2345.             doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetpos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
  2346.             doSendMagicEffect(targetpos, 12)
  2347.             else
  2348.             doAreaCombatHealth(getCreatureSummons(cid)[1], element, targetposss, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
  2349.             doSendMagicEffect(targetposss, 12)
  2350.             end
  2351.         else
  2352.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 134)
  2353.         doSendMagicEffect(targetposss, 12)
  2354.         end
  2355.         end
  2356.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2357.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2358.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2359.         return 0
  2360.                 elseif pokemon.x.spell == "Restore" then
  2361.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2362.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2363.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2364.         doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 14)
  2365.         doCreatureAddHealth(getCreatureSummons(cid)[1], ((num2)+((getPlayerLevel(cid))*(num3))))
  2366.         doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "+"..((num2)+((getPlayerLevel(cid))*(num3))).."", 35)
  2367.         return 0
  2368.                 elseif pokemon.x.spell == "Psywave" then
  2369.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2370.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2371.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2372.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2373.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2374.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2375.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tse, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2376.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2377.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tss, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2378.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2379.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2380.         end
  2381.         return 0
  2382.             elseif pokemon.x.spell == "Poison Bomb" then
  2383.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2384.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2385.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2386.         addEvent(doAreaCombatHealth, 100, getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), bomb, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 114)
  2387.         doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 14)
  2388.             return 0
  2389.              elseif pokemon.x.spell == "Psywave" then
  2390.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2391.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2392.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2393.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2394.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2395.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2396.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tse, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2397.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2398.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tss, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2399.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2400.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), tsw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 133)
  2401.         end
  2402.         return 0
  2403.                 elseif pokemon.x.spell == "Blizzard" then
  2404.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2405.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2406.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2407.         local function fall(params)
  2408.         if isCreature(params.cid) then
  2409.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2410.         local pos = getThingPos(getCreatureSummons(cid)[1])
  2411.         pos.x = pos.x + math.random(-4,4)
  2412.         pos.y = pos.y + math.random(-4,4)
  2413.         local frompos = getThingPos(getCreatureSummons(cid)[1])
  2414.         frompos.x = pos.x - 7
  2415.         frompos.y = pos.y - 6
  2416.         doSendDistanceShoot(frompos, pos, 35)
  2417.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 52)
  2418.         end
  2419.         end
  2420.         end
  2421.  
  2422.                 for rocks = 1, 72 do
  2423.                 addEvent(fall, rocks*35, {cid = cid})
  2424.                 end
  2425.  
  2426.             return 0
  2427.            
  2428.                 elseif pokemon.x.spell == "Ancient Power" then
  2429.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2430.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2431.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2432.         posit = getThingPos(getCreatureSummons(cid)[1])
  2433.         local function sandattack(params)
  2434.         if #getCreatureSummons(params.cid) >= 1 then
  2435.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
  2436.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, params.wave, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 255)
  2437.         else
  2438.         end
  2439.         end
  2440.         local posicao = getThingPos(getCreatureSummons(cid)[1])
  2441.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2442.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap1})
  2443.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-2, z=posicao.z}, ef = 137, wave = ap1})
  2444.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-3, z=posicao.z}, ef = 137, wave = ap1})
  2445.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-4, z=posicao.z}, ef = 137, wave = ap1})
  2446.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+1, y=posicao.y-5, z=posicao.z}, ef = 137, wave = ap1})
  2447.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap1})
  2448.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-2, z=posicao.z}, ef = 137, wave = ap1})
  2449.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-3, z=posicao.z}, ef = 137, wave = ap1})
  2450.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-4, z=posicao.z}, ef = 137, wave = ap1})
  2451.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-5, z=posicao.z}, ef = 137, wave = ap1})
  2452.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-1, z=posicao.z}, ef = 18, wave = ap2})
  2453.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-2, z=posicao.z}, ef = 18, wave = ap2})
  2454.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-3, z=posicao.z}, ef = 18, wave = ap2})
  2455.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-4, z=posicao.z}, ef = 18, wave = ap2})
  2456.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+0, y=posicao.y-5, z=posicao.z}, ef = 18, wave = ap2})
  2457.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2458.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap3})
  2459.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+2, z=posicao.z}, ef = 137, wave = ap3})
  2460.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+3, z=posicao.z}, ef = 137, wave = ap3})
  2461.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+4, z=posicao.z}, ef = 137, wave = ap3})
  2462.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+1, y=posicao.y+5, z=posicao.z}, ef = 137, wave = ap3})
  2463.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap3})
  2464.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+2, z=posicao.z}, ef = 137, wave = ap3})
  2465.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+3, z=posicao.z}, ef = 137, wave = ap3})
  2466.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+4, z=posicao.z}, ef = 137, wave = ap3})
  2467.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+5, z=posicao.z}, ef = 137, wave = ap3})
  2468.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+1, z=posicao.z}, ef = 18, wave = ap4})
  2469.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+2, z=posicao.z}, ef = 18, wave = ap4})
  2470.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+3, z=posicao.z}, ef = 18, wave = ap4})
  2471.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+4, z=posicao.z}, ef = 18, wave = ap4})
  2472.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+0, y=posicao.y+5, z=posicao.z}, ef = 18, wave = ap4})
  2473.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2474.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
  2475.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
  2476.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
  2477.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
  2478.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap5})
  2479.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
  2480.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
  2481.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
  2482.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
  2483.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap5})
  2484.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x+2, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
  2485.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x+3, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
  2486.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x+4, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
  2487.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x+5, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
  2488.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x+6, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap6})
  2489.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2490.         addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
  2491.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
  2492.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
  2493.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
  2494.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y+1, z=posicao.z}, ef = 137, wave = ap7})
  2495.             addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
  2496.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
  2497.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
  2498.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
  2499.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y-1, z=posicao.z}, ef = 137, wave = ap7})
  2500.             addEvent(sandattack, 0, {cid = cid, ar = {x=posicao.x-1, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
  2501.         addEvent(sandattack, 400, {cid = cid, ar = {x=posicao.x-2, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
  2502.         addEvent(sandattack, 800, {cid = cid, ar = {x=posicao.x-3, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
  2503.         addEvent(sandattack, 1200, {cid = cid, ar = {x=posicao.x-4, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
  2504.         addEvent(sandattack, 1600, {cid = cid, ar = {x=posicao.x-5, y=posicao.y-0, z=posicao.z}, ef = 18, wave = ap8})
  2505.                 end
  2506.             return 0
  2507.                 elseif pokemon.x.spell == "Magma Storm" then
  2508.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2509.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2510.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2511.         local function fall(params)
  2512.         if isCreature(params.cid) then
  2513.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2514.         local pos = getThingPos(getCreatureSummons(cid)[1])
  2515.         pos.x = pos.x + math.random(-4,4)
  2516.         pos.y = pos.y + math.random(-4,4)
  2517.         local frompos = getThingPos(getCreatureSummons(cid)[1])
  2518.         frompos.x = pos.x - 7
  2519.         frompos.y = pos.y - 6
  2520.         doSendDistanceShoot(frompos, pos, 6)
  2521.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 15)
  2522.         end
  2523.         end
  2524.         end
  2525.  
  2526.                 for rocks = 1, 72 do
  2527.                 addEvent(fall, rocks*35, {cid = cid})
  2528.                 end
  2529.  
  2530.             return 0
  2531.                 elseif pokemon.x.spell == "Hydro Cannon" then
  2532.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2533.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2534.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2535.         posit = getThingPos(getCreatureSummons(cid)[1])
  2536.         local function gust(params)
  2537.         if #getCreatureSummons(params.cid) >= 1 then
  2538.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.ar, sand1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.eee)
  2539.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, params.ar, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
  2540.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], null, params.arr, whirl3, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
  2541.         else
  2542.         end
  2543.         end
  2544.         local posicao = getThingPos(getCreatureSummons(cid)[1])
  2545.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2546.         addEvent(gust, 0, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-1, z=posicao.z}, arr = posicao})
  2547.         addEvent(gust, 300, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-1, z=posicao.z}})
  2548.         addEvent(gust, 600, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-2, z=posicao.z}})
  2549.         addEvent(gust, 900, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-3, z=posicao.z}})
  2550.         addEvent(gust, 1200, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-4, z=posicao.z}})
  2551.         addEvent(gust, 1500, {cid = cid, eee = 66, ar = {x=posicao.x, y=posicao.y-6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y-5, z=posicao.z}})
  2552.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2553.         addEvent(gust, 0, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+1, z=posicao.z}, arr = posicao})
  2554.         addEvent(gust, 300, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+2, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+1, z=posicao.z}})
  2555.         addEvent(gust, 600, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+3, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+2, z=posicao.z}})
  2556.         addEvent(gust, 900, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+4, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+3, z=posicao.z}})
  2557.         addEvent(gust, 1200, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+5, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+4, z=posicao.z}})
  2558.         addEvent(gust, 1500, {cid = cid, eee = 64, ar = {x=posicao.x, y=posicao.y+6, z=posicao.z}, arr = {x=posicao.x, y=posicao.y+5, z=posicao.z}})
  2559.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2560.         addEvent(gust, 0, {cid = cid, eee = 67, ar = {x=posicao.x+1, y=posicao.y, z=posicao.z}, arr = posicao})
  2561.         addEvent(gust, 300, {cid = cid, eee = 67, ar = {x=posicao.x+2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+1, y=posicao.y, z=posicao.z}})
  2562.         addEvent(gust, 600, {cid = cid, eee = 67, ar = {x=posicao.x+3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+2, y=posicao.y, z=posicao.z}})
  2563.         addEvent(gust, 900, {cid = cid, eee = 67, ar = {x=posicao.x+4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+3, y=posicao.y, z=posicao.z}})
  2564.         addEvent(gust, 1200, {cid = cid, eee = 67, ar = {x=posicao.x+5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+4, y=posicao.y, z=posicao.z}})
  2565.         addEvent(gust, 1500, {cid = cid, eee = 67, ar = {x=posicao.x+6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x+5, y=posicao.y, z=posicao.z}})
  2566.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2567.         addEvent(gust, 0, {cid = cid, eee = 65, ar = {x=posicao.x-1, y=posicao.y, z=posicao.z}, arr = posicao})
  2568.         addEvent(gust, 300, {cid = cid, eee = 65, ar = {x=posicao.x-2, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-1, y=posicao.y, z=posicao.z}})
  2569.         addEvent(gust, 600, {cid = cid, eee = 65, ar = {x=posicao.x-3, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-2, y=posicao.y, z=posicao.z}})
  2570.         addEvent(gust, 900, {cid = cid, eee = 65, ar = {x=posicao.x-4, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-3, y=posicao.y, z=posicao.z}})
  2571.         addEvent(gust, 1200, {cid = cid, eee = 65, ar = {x=posicao.x-5, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-4, y=posicao.y, z=posicao.z}})
  2572.         addEvent(gust, 1500, {cid = cid, eee = 65, ar = {x=posicao.x-6, y=posicao.y, z=posicao.z}, arr = {x=posicao.x-5, y=posicao.y, z=posicao.z}})
  2573.         end
  2574.         return 0
  2575.                 elseif pokemon.x.spell == "Waterball" then
  2576.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2577.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2578.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2579.             local function throw(params)
  2580.             if isCreature(getCreatureTarget(params.cid)) then
  2581.             doSendDistanceShoot(getThingPos(getCreatureSummons(params.cid)[1]), getThingPos(getCreatureTarget(params.cid)), 2)
  2582.             else
  2583.             end
  2584.             end
  2585.             local function damage(params)
  2586.             if isCreature(getCreatureTarget(params.cid)) then
  2587.             doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), waba, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 68)
  2588.             else
  2589.             end
  2590.             end
  2591.         addEvent(damage, 100, {cid = cid})
  2592.         addEvent(throw, 0, {cid = cid})
  2593.         return 0
  2594.                 elseif pokemon.x.spell == "Earthquake" then
  2595.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2596.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2597.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2598.         posit = getThingPos(getCreatureSummons(cid)[1])
  2599.         local function storm(params)
  2600.         if #getCreatureSummons(params.cid) >= 1 then
  2601.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], params.el, posit, params.ar, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), params.ef)
  2602.         else
  2603.         end
  2604.         end
  2605.         addEvent(storm, 0, {cid = cid, el = element, ar = earthquake, ef = 118})
  2606.         addEvent(storm, 500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2607.         addEvent(storm, 1000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2608.         addEvent(storm, 1500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2609.                 addEvent(storm, 2000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2610.                 addEvent(storm, 2500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2611.                 addEvent(storm, 3000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2612.                 addEvent(storm, 3500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2613.                 addEvent(storm, 4000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2614.                 addEvent(storm, 4500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2615.                 addEvent(storm, 5000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2616.                 addEvent(storm, 5500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2617.                 addEvent(storm, 6000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2618.                 addEvent(storm, 6500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2619.                 addEvent(storm, 7000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2620.                 addEvent(storm, 7500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2621.                 addEvent(storm, 8000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2622.                 addEvent(storm, 8500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2623.                 addEvent(storm, 9000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2624.                 addEvent(storm, 9500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2625.                 addEvent(storm, 10000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2626.                 addEvent(storm, 10500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2627.                 addEvent(storm, 11000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2628.                 addEvent(storm, 11500, {cid = cid, el = element, ar = earthquake, ef = 118})
  2629.                 addEvent(storm, 12000, {cid = cid, el = element, ar = earthquake, ef = 118})
  2630.             return 0
  2631.                 elseif pokemon.x.spell == "Wing Attack" then
  2632.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2633.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2634.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2635.         if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then
  2636.         doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wingn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 128)
  2637.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdn, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
  2638.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then
  2639.         doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), winge, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 129)
  2640.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingde, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
  2641.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then
  2642.         doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wings, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 131)
  2643.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingds, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
  2644.         elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then
  2645.         doAreaCombatHealth(getCreatureSummons(cid)[1], COMBAT_PDAMAGE, getThingPos(getCreatureSummons(cid)[1]), wingw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 130)
  2646.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), wingdw, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), CONST_ME_NONE)
  2647.         end
  2648.         return 0
  2649.                 elseif pokemon.x.spell == "Mega Kick" then
  2650.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2651.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2652.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2653.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 113)
  2654.         return 0
  2655.             elseif pokemon.x.spell == "Harden" then
  2656.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2657.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2658.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2659.         local hardname = getCreatureName(getCreatureSummons(cid)[1])
  2660.         setPlayerStorageValue(getCreatureSummons(cid)[1], 4, 1)
  2661.         local oldpos = getThingPos(getCreatureSummons(cid)[1])
  2662.             local function efect(params)
  2663.             if isCreature(getCreatureSummons(params.cid)[1]) then
  2664.             if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
  2665.             doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 144)
  2666.             end
  2667.             end
  2668.             end
  2669.         local function chard(params)
  2670.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2671.         if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 4) >= 1 then
  2672.         setPlayerStorageValue(getCreatureSummons(params.cid)[1], 4, -1)
  2673.         end
  2674.         end
  2675.         end
  2676.         addEvent(efect, 100, {cid = cid, hardname = hardname})
  2677.         addEvent(efect, 1600, {cid = cid, hardname = hardname})
  2678.         addEvent(efect, 3100, {cid = cid, hardname = hardname})
  2679.         addEvent(efect, 4600, {cid = cid, hardname = hardname})
  2680.         addEvent(efect, 6100, {cid = cid, hardname = hardname})
  2681.         addEvent(efect, 7600, {cid = cid, hardname = hardname})
  2682.         addEvent(efect, 9100, {cid = cid, hardname = hardname})
  2683.         addEvent(efect, 10600, {cid = cid, hardname = hardname})
  2684.         addEvent(chard, 11000, {cid = cid})    
  2685.             return 0
  2686.                 elseif pokemon.x.spell == "Electric Storm" then
  2687.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2688.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2689.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2690.         local function fall(params)
  2691.         if isCreature(params.cid) then
  2692.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2693.         local pos = getThingPos(getCreatureSummons(cid)[1])
  2694.         pos.x = pos.x + math.random(-4,4)
  2695.         pos.y = pos.y + math.random(-4,4)
  2696.         local frompos = getThingPos(getCreatureSummons(cid)[1])
  2697.         frompos.x = pos.x - 7
  2698.         frompos.y = pos.y - 6
  2699.         doSendDistanceShoot(frompos, pos, 41)
  2700.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, pos, 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
  2701.         end
  2702.         end
  2703.         end
  2704.                 for rocks = 1, 72 do
  2705.                 addEvent(fall, rocks*35, {cid = cid})
  2706.                 end
  2707.             return 0
  2708.                 elseif pokemon.x.spell == "Stomp" then
  2709.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2710.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2711.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2712.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), stomp, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 118)
  2713.                 return 0
  2714.                 elseif pokemon.x.spell == "Mind Blast" then
  2715.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2716.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2717.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2718.         if math.random(1,3) == 1 then
  2719.         random = 133
  2720.         else
  2721.         if math.random(1,2) == 2 then
  2722.         random = 134
  2723.         else
  2724.         random = 136
  2725.         end
  2726.         end
  2727.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
  2728.         if math.random(1,3) == 1 then
  2729.         random = 133
  2730.         else
  2731.         if math.random(1,2) == 2 then
  2732.         random = 134
  2733.         else
  2734.         random = 136
  2735.         end
  2736.         end
  2737.         local function go(params)
  2738.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2739.         if isCreature(getCreatureTarget(cid)) then
  2740.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), psy2, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
  2741.         end
  2742.         end
  2743.         end
  2744.         addEvent(go, 150, {cid = cid})
  2745.         if math.random(1,3) == 1 then
  2746.         random = 133
  2747.         else
  2748.         if math.random(1,2) == 2 then
  2749.         random = 134
  2750.         else
  2751.         random = 136
  2752.         end
  2753.         end
  2754.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), psy1, -((num1)+(getPlayerLevel(cid)*(num3))), -((num1)+(getPlayerLevel(cid)*(num3))), random)
  2755.         return 0
  2756.          elseif pokemon.x.spell == "Focus" then
  2757.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2758.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..",  "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2759.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2760.         doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), CONST_ME_MAGIC_RED)
  2761.         setPlayerStorageValue(getCreatureSummons(cid)[1], 254, 1)
  2762.         local function quiet(params)
  2763.         if isCreature(params.cid) then
  2764.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2765.         if getPlayerStorageValue(getCreatureSummons(cid)[1], 254) >= 1 then
  2766.         doSendMagicEffect(getThingPos(getCreatureSummons(params.cid)[1]), 132)
  2767.         end
  2768.         end
  2769.         end
  2770.         end
  2771.         local function desc(params)
  2772.         if isCreature(params.cid) then
  2773.         if isCreature(getCreatureSummons(params.cid)[1]) then
  2774.         if getPlayerStorageValue(getCreatureSummons(cid)[1], 254) >= 1 then
  2775.         setPlayerStorageValue(getCreatureSummons(cid)[1], 254, 0)
  2776.         end
  2777.         end
  2778.         end
  2779.         end
  2780.         for calm = 1, 12 do
  2781.         addEvent(quiet, calm*500, {cid = cid})
  2782.         end
  2783.         addEvent(desc, 12*500, {cid = cid})
  2784.             return 0
  2785.     elseif pokemon.x.spell == "Toxic Needle" then
  2786.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2787.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2788.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2789.         doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 15)
  2790.         doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 8)
  2791.     return 0
  2792.     elseif pokemon.x.spell == "Thunderbolt" then
  2793.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2794.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2795.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2796.         local posalvo = getThingPos(getCreatureTarget(cid))
  2797.         local boltalvo = getCreatureTarget(cid)
  2798.         posalvo.x = posalvo.x-2
  2799.         posalvo.y = posalvo.y-6
  2800.         doSendDistanceShoot(posalvo, getThingPos(getCreatureTarget(cid)), 41)
  2801.         local function bolt(params)
  2802.         if isCreature(params.cid) then
  2803.         if isCreature(getCreatureTarget(cid)) then
  2804.         if getCreatureTarget(params.cid) == params.boltalvo then
  2805.         doAreaCombatHealth(getCreatureSummons(params.cid)[1], element, getThingPos(getCreatureTarget(cid)), 0, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
  2806.         end
  2807.         end
  2808.         end
  2809.         end
  2810.         addEvent(bolt, 200, {cid = cid, boltalvo = boltalvo})
  2811.             return 0
  2812.                 elseif pokemon.x.spell == "Thunder" then
  2813.                 doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2814.                 doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2815.                 exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2816.                 doAreaCombatHealth(getCreatureSummons(cid)[1], element, getThingPos(getCreatureSummons(cid)[1]), thunder, -((num1)+(getPlayerLevel(cid)*(num3))), -((num2)+(getPlayerLevel(cid)*(num3))), 48)
  2817.                 return 0
  2818.                 elseif pokemon.x.spell == "Super Sonic" then
  2819.         doCreatureSay(getCreatureSummons(cid)[1], ""..string.upper(c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell).."!", TALKTYPE_MONSTER)
  2820.         doCreatureSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", use "..c[getCreatureOutfit(getCreatureSummons(cid)[1]).lookType].x.spell.."!", TALKTYPE_SAY)
  2821.         exhaustion.set(cid, pokemon.x.ex, pokemon.x.cd)
  2822.         local t = getCreatureTarget(cid)
  2823.         setPlayerStorageValue(t, 5, 1)
  2824.         local function confused(params)
  2825.         if isCreature(params.t) then
  2826.         local spdc = getCreatureSpeed(params.t)
  2827.         if getCreatureLookDir(params.t) == 0 then
  2828.         confs = math.random(1,3)
  2829.         elseif getCreatureLookDir(params.t) == 1 then
  2830.             confurandom = math.random(1,99)
  2831.             if confurandom <= 33 then
  2832.             confs = 0
  2833.             elseif confurandom >= 67 then
  2834.             confs = 2
  2835.             else
  2836.             confs = 3
  2837.             end
  2838.         elseif getCreatureLookDir(params.t) == 2 then
  2839.             confurandom = math.random(1,99)
  2840.             if confurandom <= 33 then
  2841.             confs = 3
  2842.             elseif confurandom >= 67 then
  2843.             confs = 0
  2844.             else
  2845.             confs = 1
  2846.             end
  2847.         elseif getCreatureLookDir(params.t) == 3 then
  2848.         confs = math.random(0,2)
  2849.         end
  2850.         doPushCreature(params.t, confs, 1, 0)
  2851.         doSendMagicEffect(getThingPos(params.t), 31)
  2852.         end
  2853.         end
  2854.         local function nonc(params)
  2855.         if isCreature(params.t) then
  2856.         doChangeSpeed(params.t, -getCreatureSpeed(params.t))
  2857.         doChangeSpeed(params.t, getCreatureBaseSpeed(params.t))
  2858.         setPlayerStorageValue(params.t, 5, -1)
  2859.         end
  2860.         end
  2861.         doSendDistanceShoot(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), 32)
  2862.  
  2863.         doChangeSpeed(t, -( getCreatureSpeed(t)/3))
  2864.         doSendMagicEffect(getThingPos(t), 31)
  2865.         for i = 1, math.random(6,7) do
  2866.         addEvent(confused, 1000*i, {cid = cid, t = t})
  2867.         end
  2868.         addEvent(nonc, 7100, {cid - cid, t = t})
  2869.         return 0
  2870.     end
  2871. return 0
  2872. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement