Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.55 KB | None | 0 0
  1. function isSummon(uid)
  2. return uid ~= getCreatureMaster(uid) or false
  3. end
  4.  
  5. local combat1 = createCombatObject()
  6. setCombatParam(combat1, COMBAT_PARAM_EFFECT, 111)
  7. setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  8. setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  9.  
  10. arr1 = {
  11. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  12. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  13. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  14. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  15. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  16. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  17. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  18. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  19. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  20. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  21. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  22. }
  23.  
  24.  
  25.  
  26. local area1 = createCombatArea(arr1)
  27. setCombatArea(combat1, area1)
  28.  
  29. local combat2 = createCombatObject()
  30. setCombatParam(combat2, COMBAT_PARAM_EFFECT, 42)
  31. setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  32. setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  33.  
  34.  
  35. arr2 = {
  36. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  37. {0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},
  38. {0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},
  39. {0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0},
  40. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  41. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  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. }
  48.  
  49.  
  50.  
  51. local area2 = createCombatArea(arr2)
  52. setCombatArea(combat2, area2)
  53.  
  54. local combat3 = createCombatObject()
  55. setCombatParam(combat3, COMBAT_PARAM_EFFECT, 142)
  56. setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  57. setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  58.  
  59.  
  60. arr3 = {
  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. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  67. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  68. {0, 0, 0, 0, 0, 0, 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. }
  73.  
  74.  
  75.  
  76. local area3 = createCombatArea(arr3)
  77. setCombatArea(combat3, area3)
  78.  
  79. local combat4 = createCombatObject()
  80. setCombatParam(combat4, COMBAT_PARAM_EFFECT, 141)
  81. setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  82. setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  83. setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  84. setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  85.  
  86.  
  87. arr4 = {
  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. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  93. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  94. {0, 0, 0, 0, 0, 0, 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. }
  100.  
  101.  
  102.  
  103. local area4 = createCombatArea(arr4)
  104. setCombatArea(combat4, area4)
  105.  
  106. local combat5 = createCombatObject()
  107. setCombatParam(combat5, COMBAT_PARAM_EFFECT, 16)
  108. setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  109. setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  110.  
  111.  
  112. arr5 = {
  113. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  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. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  119. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  120. {0, 0, 0, 0, 0, 0, 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. }
  125.  
  126.  
  127.  
  128. local area5 = createCombatArea(arr5)
  129. setCombatArea(combat5, area5)
  130.  
  131. local combat6 = createCombatObject()
  132. setCombatParam(combat6, COMBAT_PARAM_EFFECT, 137)
  133. setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  134. setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  135.  
  136.  
  137. arr6 = {
  138. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  139. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  140. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  141. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  142. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  143. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  144. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  145. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  146. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  147. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  148. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  149. }
  150.  
  151.  
  152.  
  153. local area6 = createCombatArea(arr6)
  154. setCombatArea(combat6, area6)
  155.  
  156. local combat7 = createCombatObject()
  157. setCombatParam(combat7, COMBAT_PARAM_EFFECT, 59)
  158. setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 15)
  159. setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  160. setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  161.  
  162.  
  163. arr7 = {
  164. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  165. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  166. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  167. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  168. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  169. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  170. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  171. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  172. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  173. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  174. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  175. }
  176.  
  177.  
  178.  
  179. local area7 = createCombatArea(arr7)
  180. setCombatArea(combat7, area7)
  181.  
  182. local combat8 = createCombatObject()
  183. setCombatParam(combat8, COMBAT_PARAM_EFFECT, 146)
  184. setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  185. setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  186.  
  187.  
  188. arr8 = {
  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, 0, 0, 0, 0, 0, 0},
  192. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  193. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  194. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  195. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  196. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  197. {0, 0, 0, 0, 0, 0, 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.  
  203.  
  204. local area8 = createCombatArea(arr8)
  205. setCombatArea(combat8, area8)
  206.  
  207. local combat9 = createCombatObject()
  208. setCombatParam(combat9, COMBAT_PARAM_EFFECT, 112)
  209. setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  210. setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  211.  
  212.  
  213. arr9 = {
  214. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  215. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  216. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  217. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  218. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  219. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  220. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  221. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  222. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  223. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  224. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  225. }
  226.  
  227.  
  228.  
  229. local area9 = createCombatArea(arr9)
  230. setCombatArea(combat9, area9)
  231.  
  232. local combat10 = createCombatObject()
  233. setCombatParam(combat10, COMBAT_PARAM_EFFECT, 112)
  234. setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  235. setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, -10, 5, 5, 0.85, 1.95, -20, -40)
  236.  
  237.  
  238. arr10 = {
  239. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  240. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  241. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  242. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  243. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  244. {0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
  245. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  246. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  247. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  248. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  249. {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
  250. }
  251.  
  252.  
  253.  
  254. local area10 = createCombatArea(arr10)
  255. setCombatArea(combat10, area10)
  256.  
  257. local combat11 = createCombatObject()
  258. setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  259. setCombatParam(combat11, COMBAT_PARAM_EFFECT, 140)
  260. setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 18)
  261. setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
  262.  
  263. local function onCastSpell1(parameters)
  264. return doCombat(parameters.cid, parameters.combat, parameters.var) and doCreatureSay
  265.  
  266. (parameters.cid2, "" .. parameters.name .. ", " .. parameters.spell .. ".")
  267. end
  268.  
  269.  
  270. local c = {
  271. ["Bulbasaur"] = {x = {
  272. m1 = combat11,
  273. spell = "Shadow Ball",
  274. minLv = 20,
  275. distance = 5
  276. }
  277. },
  278. ["Ivysaur"] = {x = {
  279. m1 = combat1,
  280. spell = "Quick Attack",
  281. minLv = 40
  282. }
  283. },
  284. ["Ivysaur"] = {x = {
  285. m1 = combat1,
  286. spell = "Quick Attack",
  287. minLv = 40
  288. }
  289. },
  290. ["Venusaur"] = {x = {
  291. m1 = combat1,
  292. spell = "Quick Attack",
  293. minLv = 85
  294. }
  295. },
  296. ["Pidgey"] = {x = {
  297. m1 = combat1,
  298. spell = "Quick Attack",
  299. minLv = 5
  300. }
  301. },
  302. ["Pidgeotto"] = {x = {
  303. m1 = combat1,
  304. spell = "Quick Attack",
  305. minLv = 20
  306. }
  307. },
  308. ["Pidgeotto"] = {x = {
  309. m1 = combat1,
  310. spell = "Quick Attack",
  311. minLv = 20
  312. }
  313. },
  314. ["Pidgeot"] = {x = {
  315. m1 = combat1,
  316. spell = "Quick Attack",
  317. minLv = 65
  318. }
  319. },
  320. ["Rattata"] = {x = {
  321. m1 = combat1,
  322. spell = "Quick Attack",
  323. minLv = 1
  324. }
  325. },
  326. ["Raticate"] = {x = {
  327. m1 = combat1,
  328. spell = "Quick Attack",
  329. minLv = 25
  330. }
  331. },
  332. ["Spearow"] = {x = {
  333. m1 = combat1,
  334. spell = "Quick Attack",
  335. minLv = 10
  336. }
  337. },
  338. ["Fearow"] = {x = {
  339. m1 = combat1,
  340. spell = "Quick Attack",
  341. minLv = 50
  342. }
  343. },
  344. ["Pikachu"] = {x = {
  345. m1 = combat1,
  346. spell = "Quick Attack",
  347. minLv = 20
  348. }
  349. },
  350. ["Nidoran Femea"] = {x = {
  351. m1 = combat1,
  352. spell = "Quick Attack",
  353. minLv = 10
  354. }
  355. },
  356. ["Nidorina"] = {x = {
  357. m1 = combat1,
  358. spell = "Quick Attack",
  359. minLv = 30
  360. }
  361. },
  362. ["Nidoqueen"] = {x = {
  363. m1 = combat1,
  364. spell = "Quick Attack",
  365. minLv = 65
  366. }
  367. },
  368. ["Nidoran Macho"] = {x = {
  369. m1 = combat1,
  370. spell = "Quick Attack",
  371. minLv = 10
  372. }
  373. },
  374. ["Nidorino"] = {x = {
  375. m1 = combat1,
  376. spell = "Quick Attack",
  377. minLv = 30
  378. }
  379. },
  380. ["Nidoking"] = {x = {
  381. m1 = combat1,
  382. spell = "Quick Attack",
  383. minLv = 65
  384. }
  385. },
  386. ["Vulpix"] = {x = {
  387. m1 = combat1,
  388. spell = "Quick Attack",
  389. minLv = 15
  390. }
  391. },
  392. ["Ninetales"] = {x = {
  393. m1 = combat1,
  394. spell = "Quick Attack",
  395. minLv = 70
  396. }
  397. },
  398. ["Ponyta"] = {x = {
  399. m1 = combat1,
  400. spell = "Quick Attack",
  401. minLv = 20
  402. }
  403. },
  404. ["Rapidash"] = {x = {
  405. m1 = combat1,
  406. spell = "Quick Attack",
  407. minLv = 55
  408. }
  409. },
  410. ["Scyther"] = {x = {
  411. m1 = combat1,
  412. spell = "Quick Attack",
  413. minLv = 80
  414. }
  415. },
  416. ["Electabuzz"] = {x = {
  417. m1 = combat1,
  418. spell = "Quick Attack",
  419. minLv = 80
  420. }
  421. },
  422. ["Vaporeon"] = {x = {
  423. m1 = combat1,
  424. spell = "Quick Attack",
  425. minLv = 55
  426. }
  427. },
  428. ["Jolteon"] = {x = {
  429. m1 = combat1,
  430. spell = "Quick Attack",
  431. minLv = 55
  432. }
  433. },
  434. ["Flareon"] = {x = {
  435. m1 = combat1,
  436. spell = "Quick Attack",
  437. minLv = 55
  438. }
  439. },
  440. ["Shiny Venusaur"] = {x = {
  441. m1 = combat1,
  442. spell = "Quick Attack",
  443. minLv = 100
  444. }
  445. },
  446. ["Shiny Rattata"] = {x = {
  447. m1 = combat1,
  448. spell = "Quick Attack",
  449. minLv = 1
  450. }
  451. },
  452. ["Shiny Raticate"] = {x = {
  453. m1 = combat1,
  454. spell = "Quick Attack",
  455. minLv = 25
  456. }
  457. },
  458. ["Shiny Scyther"] = {x = {
  459. m1 = combat1,
  460. spell = "Quick Attack",
  461. minLv = 100
  462. }
  463. },
  464. ["Shiny Scyther"] = {x = {
  465. m1 = combat1,
  466. spell = "Quick Attack",
  467. minLv = 100
  468. }
  469. },
  470. ["Zapdos"] = {x = {
  471. m1 = combat2,
  472. spell = "Whirlwind",
  473. minLv = 100
  474. }
  475. },
  476. ["Articuno"] = {x = {
  477. m1 = combat2,
  478. spell = "Whirlwind",
  479. minLv = 150
  480. }
  481. },
  482. ["Charmander"] = {x = {
  483. m1 = combat3,
  484. spell = "Scratch",
  485. minLv = 20
  486. }
  487. },
  488. ["Charmeleon"] = {x = {
  489. m1 = combat3,
  490. spell = "Scratch",
  491. minLv = 40
  492. }
  493. },
  494. ["Paras"] = {x = {
  495. m1 = combat3,
  496. spell = "Scratch",
  497. minLv = 5
  498. }
  499. },
  500. ["Mankey"] = {x = {
  501. m1 = combat3,
  502. spell = "Scratch",
  503. minLv = 15
  504. }
  505. },
  506. ["Primeape"] = {x = {
  507. m1 = combat3,
  508. spell = "Scratch",
  509. minLv = 50
  510. }
  511. },
  512. ["Magmar"] = {x = {
  513. m1 = combat3,
  514. spell = "Scratch",
  515. minLv = 80
  516. }
  517. },
  518. ["Pinsir"] = {x = {
  519. m1 = combat3,
  520. spell = "Scratch",
  521. minLv = 45
  522. }
  523. },
  524. ["Kabuto"] = {x = {
  525. m1 = combat3,
  526. spell = "Scratch",
  527. minLv = 20
  528. }
  529. },
  530. ["Kabutops"] = {x = {
  531. m1 = combat3,
  532. spell = "Scratch",
  533. minLv = 80
  534. }
  535. },
  536. ["Snorlax"] = {x = {
  537. m1 = combat3,
  538. spell = "Scratch",
  539. minLv = 85
  540. }
  541. },
  542. ["Shiny Paras"] = {x = {
  543. m1 = combat3,
  544. spell = "Scratch",
  545. minLv = 5
  546. }
  547. },
  548. ["Charizard"] = {x = {
  549. m1 = combat4,
  550. spell = "Dragon Claw",
  551. minLv = 85
  552. }
  553. },
  554. ["Shiny Charizard"] = {x = {
  555. m1 = combat4,
  556. spell = "Dragon Claw",
  557. minLv = 100
  558. }
  559. },
  560. ["Squirtle"] = {x = {
  561. m1 = combat5,
  562. spell = "Headbutt",
  563. minLv = 20
  564. }
  565. },
  566. ["Wartortle"] = {x = {
  567. m1 = combat5,
  568. spell = "Headbutt",
  569. minLv = 40
  570. }
  571. },
  572. ["Blastoise"] = {x = {
  573. m1 = combat5,
  574. spell = "Headbutt",
  575. minLv = 85
  576. }
  577. },
  578. ["Caterpie"] = {x = {
  579. m1 = combat5,
  580. spell = "Headbutt",
  581. minLv = 1
  582. }
  583. },
  584. ["Seel"] = {x = {
  585. m1 = combat5,
  586. spell = "Headbutt",
  587. minLv = 20
  588. }
  589. },
  590. ["Drowzee"] = {x = {
  591. m1 = combat5,
  592. spell = "Headbutt",
  593. minLv = 25
  594. }
  595. },
  596. ["Hypno"] = {x = {
  597. m1 = combat5,
  598. spell = "Headbutt",
  599. minLv = 55
  600. }
  601. },
  602. ["Cubone"] = {x = {
  603. m1 = combat5,
  604. spell = "Headbutt",
  605. minLv = 20
  606. }
  607. },
  608. ["Marowak"] = {x = {
  609. m1 = combat5,
  610. spell = "Headbutt",
  611. minLv = 55
  612. }
  613. },
  614. ["Tauros"] = {x = {
  615. m1 = combat5,
  616. spell = "Headbutt",
  617. minLv = 45
  618. }
  619. },
  620. ["Dragonair"] = {x = {
  621. m1 = combat5,
  622. spell = "Headbutt",
  623. minLv = 60
  624. }
  625. },
  626. ["Dragonite"] = {x = {
  627. m1 = combat5,
  628. spell = "Headbutt",
  629. minLv = 100
  630. }
  631. },
  632. ["Shiny Blastoise"] = {x = {
  633. m1 = combat5,
  634. spell = "Headbutt",
  635. minLv = 100
  636. }
  637. },
  638. ["Shiny Dratini"] = {x = {
  639. m1 = combat5,
  640. spell = "Headbutt",
  641. minLv = 20
  642. }
  643. },
  644. ["Metapod"] = {x = {
  645. m1 = combat6,
  646. spell = "String Shot",
  647. minLv = 15,
  648. distance = 3
  649. }
  650. },
  651. ["Butterfree"] = {x = {
  652. m1 = combat6,
  653. spell = "String Shot",
  654. minLv = 30,
  655. distance = 3
  656. }
  657. },
  658. ["Kakuna"] = {x = {
  659. m1 = combat6,
  660. spell = "String Shot",
  661. minLv = 15,
  662. distance = 3
  663. }
  664. },
  665. ["Beedrill"] = {x = {
  666. m1 = combat6,
  667. spell = "String Shot",
  668. minLv = 25,
  669. distance = 3
  670. }
  671. },
  672. ["Shiny Beedrill"] = {x = {
  673. m1 = combat6,
  674. spell = "String Shot",
  675. minLv = 25,
  676. distance = 3
  677. }
  678. },
  679. ["Weedle"] = {x = {
  680. m1 = combat7,
  681. spell = "Horn Attack",
  682. minLv = 1,
  683. distance = 3
  684. }
  685. },
  686. ["Goldeen"] = {x = {
  687. m1 = combat7,
  688. spell = "Horn Attack",
  689. minLv = 10,
  690. distance = 3
  691. }
  692. },
  693. ["Seaking"] = {x = {
  694. m1 = combat7,
  695. spell = "Horn Attack",
  696. minLv = 35,
  697. distance = 3
  698. }
  699. },
  700. ["Lapras"] = {x = {
  701. m1 = combat7,
  702. spell = "Horn Attack",
  703. minLv = 80,
  704. distance = 3
  705. }
  706. },
  707. ["Ekans"] = {x = {
  708. m1 = combat8,
  709. spell = "Bite",
  710. minLv = 15,
  711. distance = 3
  712. }
  713. },
  714. ["Ekans"] = {x = {
  715. m1 = combat8,
  716. spell = "Bite",
  717. minLv = 15,
  718. distance = 3
  719. }
  720. },
  721. ["Arbok"] = {x = {
  722. m1 = combat8,
  723. spell = "Bite",
  724. minLv = 35,
  725. distance = 3
  726. }
  727. },
  728. ["Kangaskhan"] = {x = {
  729. m1 = combat8,
  730. spell = "Bite",
  731. minLv = 80,
  732. distance = 3
  733. }
  734. },
  735. ["Omanyte"] = {x = {
  736. m1 = combat8,
  737. spell = "Bite",
  738. minLv = 20,
  739. distance = 3
  740. }
  741. },
  742. ["Omastar"] = {x = {
  743. m1 = combat8,
  744. spell = "Bite",
  745. minLv = 80,
  746. distance = 3
  747. }
  748. },
  749. ["Raichu"] = {x = {
  750. m1 = combat8,
  751. spell = "Mega Kick",
  752. minLv = 50
  753. }
  754. },
  755. ["Shiny Raichu"] = {x = {
  756. m1 = combat8,
  757. spell = "Mega Kick",
  758. minLv = 80
  759. }
  760. },
  761. ["Mew"] = {x = {
  762. m1 = combat1,
  763. spell = "Test",
  764. minLv = 1,
  765. distance = 3
  766. }
  767. }
  768. }
  769.  
  770. function onCastSpell(cid, var)
  771. if #getCreatureSummons(cid) ~= 0 then
  772. for i = 1, #getCreatureSummons(cid) do
  773. if c[getCreatureName(getCreatureSummons(cid)[i])] then
  774. if getPlayerLevel(cid) >= c[getCreatureName(getCreatureSummons(cid)[i])].x.minLv then
  775. if not c[getCreatureName(getCreatureSummons(cid)[i])].distance then
  776. distance = 1
  777. else
  778. distance = c[getCreatureName(getCreatureSummons(cid)[i])].distance
  779. end
  780. if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[i]), getCreaturePosition(getCreatureTarget(getCreatureSummons(cid)[i]))) <= distance then
  781. parameters = {cid = getCreatureSummons(cid)[i], cid2 = cid, combat = c[getCreatureName(getCreatureSummons(cid)[i])].x.m1, var = var, name = getCreatureName(getCreatureSummons(cid)[i]), spell = c[getCreatureName(getCreatureSummons(cid)[i])].x.spell}
  782. return onCastSpell1(parameters)
  783. else
  784. return doPlayerSendCancel(cid, "Sorry, your poke are too far away.")
  785. end
  786. else
  787. return doPlayerSendCancel(cid, "Sorry. You must be level " .. c[getCreatureName(getCreatureSummons(cid)[i])].x.minLv .. " or higher to cast.")
  788. end
  789. end
  790. end
  791. else
  792. return doPlayerSendCancel(cid, "Sosrry. You must have an pokemon to cast.")
  793. end
  794. return true
  795. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement