Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.56 KB | None | 0 0
  1. ==============
  2. 180 DISTANCIA ---------------------------------------------------180
  3. ==============
  4.  
  5.  
  6. if(table.valid(context.attack_target)) then
  7.     local target = context.attack_target
  8.     local skilllist = {
  9. 993,
  10. 1113,
  11. 1131,
  12. 5687,
  13. 6126,
  14. 9104,
  15. 9195,
  16. 12434,
  17. 12552,
  18. 12744,
  19. 12749,
  20. 12499,
  21. 14443,
  22. 14550,
  23. 14551,
  24. 14464,
  25. 21661,
  26. 26557,
  27. 29941,
  28. 30273,
  29. 33823,
  30. 46295
  31.  
  32.    }
  33.     local target_skillid = target.castinfo.skillid
  34.     local dist =  target.distance
  35.     local target_buffs = target.buffs
  36.     for _,skillid in pairs(skilllist) do
  37.     if(target_skillid == skillid  and dist <= 180 and not  (target_buffs[720]  or target_buffs[833] )) then
  38.     return true
  39.          end
  40.       end
  41.     end
  42. return false
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. ==============
  51. 240 DISTANCIA---------------------------------------------------240
  52. ==============
  53.  
  54.  
  55.  
  56. if(table.valid(context.attack_target)) then
  57.     local target = context.attack_target
  58.     local skilllist = {
  59.  
  60. 5534,
  61. 5602,
  62. 5690,
  63. 5889,
  64. 5939,
  65. 5995,
  66. 9096,
  67. 10331,
  68. 12367,
  69. 12476,
  70. 12492,
  71. 12496,
  72. 13028,
  73. 13093,
  74. 17811,
  75. 25492,
  76. 27356,
  77. 29114,
  78. 29618,
  79. 29786,
  80. 30557,
  81. 31264,
  82. 32151,
  83. 41843,
  84. 44321,
  85. 46335
  86.  
  87.    }
  88.     local target_skillid = target.castinfo.skillid
  89.     local dist =  target.distance
  90.     local target_buffs = target.buffs
  91.     for _,skillid in pairs(skilllist) do
  92.     if(target_skillid == skillid  and dist <= 240 and not  (target_buffs[720]  or target_buffs[833] )) then
  93.     return true
  94.          end
  95.       end
  96.     end
  97. return false
  98.  
  99.  
  100.  
  101. ==============
  102. 300 DISTANCIA ---------------------------------------------------300
  103. ==============
  104.  
  105.  
  106.  
  107. if(table.valid(context.attack_target)) then
  108.     local target = context.attack_target
  109.     local skilllist = {
  110. 5813,
  111. 5930,
  112. 12522,
  113. 12738,
  114. 14488,
  115. 14502,
  116. 29558,
  117. 30448,
  118. 31267
  119.  
  120.    }
  121.     local target_skillid = target.castinfo.skillid
  122.     local dist =  target.distance
  123.     local target_buffs = target.buffs
  124.     for _,skillid in pairs(skilllist) do
  125.     if(target_skillid == skillid  and dist <= 300 and not  (target_buffs[720]  or target_buffs[833] )) then
  126.     return true
  127.          end
  128.       end
  129.     end
  130. return false
  131.  
  132.  
  133.  
  134. ================
  135. 360 DISTANCIA -------------------------------------360
  136. ================
  137.  
  138. --360
  139.  
  140. if(table.valid(context.attack_target)) then
  141.     local target = context.attack_target
  142.     local skilllist = {
  143.  
  144. 12662,
  145. 30864,
  146. 31503,
  147. 43123,
  148. 44637,
  149. 45333
  150.  
  151.    }
  152.     local target_skillid = target.castinfo.skillid
  153.     local dist =  target.distance
  154.     local target_buffs = target.buffs
  155.     for _,skillid in pairs(skilllist) do
  156.     if(target_skillid == skillid  and dist <= 360 and not  (target_buffs[720]  or target_buffs[833] )) then
  157.     return true
  158.          end
  159.       end
  160.     end
  161. return false
  162.  
  163.  
  164.  
  165.  
  166. ==============
  167. 400 DISTANCIA ----------------------------------------------------400
  168. ==============
  169.  
  170. --400
  171.  
  172. if(table.valid(context.attack_target)) then
  173.     local target = context.attack_target
  174.     local skilllist = {
  175.  
  176.      30343
  177.  
  178.    }
  179.     local target_skillid = target.castinfo.skillid
  180.     local dist =  target.distance
  181.     local target_buffs = target.buffs
  182.     for _,skillid in pairs(skilllist) do
  183.     if(target_skillid == skillid  and dist <= 400
  184.     and not (target_buffs[720]  or target_buffs[833])) then
  185.     return true
  186.          end
  187.       end
  188.     end
  189. return false
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. ==============
  197. 450 DISTANCIA ----------------------------------------------------450
  198. ==============
  199.  
  200. --450
  201.  
  202. if(table.valid(context.attack_target)) then
  203.     local target = context.attack_target
  204.     local skilllist = {
  205.  
  206.            14361
  207.    }
  208.  
  209.     local target_skillid = target.castinfo.skillid
  210.     local dist =  target.distance
  211.     local target_buffs = target.buffs
  212.     for _,skillid in pairs(skilllist) do
  213.     if(target_skillid == skillid  and dist <= 450
  214.  
  215.     and not  (target_buffs[720]  or target_buffs[833])) then
  216.     return true
  217.          end
  218.       end
  219.     end
  220. return false
  221.  
  222.  
  223.  
  224.  
  225. ==============
  226. 480 DISTANCIA ----------------------------------------------------480
  227. ==============
  228.  
  229.  
  230. if(table.valid(context.attack_target)) then
  231.     local target = context.attack_target
  232.     local skilllist = {
  233. 5746,
  234. 10220,
  235. 12638,
  236. 14388,
  237. 15718,
  238. 28075,
  239. 28472,
  240. 29233,
  241. 30520,
  242. 33963,
  243. 44008,
  244. 44321,
  245. 45252,
  246. 46018
  247.  
  248. }
  249.  
  250.    }
  251.     local target_skillid = target.castinfo.skillid
  252.     local dist =  target.distance
  253.     local target_buffs = target.buffs
  254.     for _,skillid in pairs(skilllist) do
  255.     if(target_skillid == skillid  and dist <= 480 and not  (target_buffs[720]  or target_buffs[833] )) then
  256.     return true
  257.          end
  258.       end
  259.     end
  260. return false
  261.  
  262.  
  263.  
  264.  
  265.  
  266. ==============
  267. 600 DISTANCIA ----------------------------------------------------600
  268. ==============
  269.  
  270. if(table.valid(context.attack_target)) then
  271.     local target = context.attack_target
  272.     local skilllist = {
  273.  
  274. 2521,
  275. 5532,
  276. 5747,
  277. 5837,
  278. 5931,
  279. 5963,
  280. 6154,
  281. 6179,
  282. 9081,
  283. 9147,
  284. 9226,
  285. 10337,
  286. 10363,
  287. 10529,
  288. 10616,
  289. 10632,
  290. 10635,
  291. 10695,
  292. 12389,
  293. 12406,
  294. 12580,
  295. 12715,
  296. 13010,
  297. 14387,
  298. 14393,
  299. 14394,
  300. 14409,
  301. 14512,
  302. 14513,
  303. 14514,
  304. 15716,
  305. 19504,
  306. 28406,
  307. 28978,
  308. 29288,
  309. 29666,
  310. 30105,
  311. 30432,
  312. 30643,
  313. 31294,
  314. 31639,
  315. 39959,
  316. 40170,
  317. 42163,
  318. 42867,
  319. 43532,
  320. 45402,
  321. 45783
  322.  
  323.    }
  324.     local target_skillid = target.castinfo.skillid
  325.     local dist =  target.distance
  326.     local target_buffs = target.buffs
  327.     for _,skillid in pairs(skilllist) do
  328.     if(target_skillid == skillid  and dist <= 600 and not  (target_buffs[720]  or target_buffs[833] )) then
  329.     return true
  330.          end
  331.       end
  332.     end
  333. return false
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341. ==============
  342. 750 DISTANCIA ----------------------------------------------------750
  343. ==============
  344.  
  345.  
  346. if(table.valid(context.attack_target)) then
  347.     local target = context.attack_target
  348.     local skilllist = {
  349.  
  350. 9134, 12621, 29740, 30008, 30446
  351.  
  352.    }
  353.     local target_skillid = target.castinfo.skillid
  354.     local dist =  target.distance
  355.     local target_buffs = target.buffs
  356.     for _,skillid in pairs(skilllist) do
  357.     if(target_skillid == skillid  and dist <= 750 and not  (target_buffs[720]  or target_buffs[833] )) then
  358.     return true
  359.          end
  360.       end
  361.     end
  362. return false
  363.  
  364.  
  365.  
  366.  
  367. ==============
  368. 900 DISTANCIA ----------------------------------------------------900
  369. ==============
  370.  
  371.  
  372. if(table.valid(context.attack_target)) then
  373.     local target = context.attack_target
  374.     local skilllist = {
  375.  
  376. 1132,
  377. 1133,
  378. 5491,
  379. 5497,
  380. 5510,
  381. 5541,
  382. 5549,
  383. 5500,
  384. 5559,
  385. 5562,
  386. 5568,
  387. 5593,
  388. 5595,
  389. 5675,
  390. 5693,
  391. 5696,
  392. 5720,
  393. 5721,
  394. 5752,
  395. 5753,
  396. 5754,
  397. 5806,
  398. 5808,
  399. 5809,
  400. 5810,
  401. 5827,
  402. 5828,
  403. 5829,
  404. 5830,
  405. 5882,
  406. 5934,
  407. 5962,
  408. 5982,
  409. 6057,
  410. 6161,
  411. 6181,
  412. 7520,
  413. 9099,
  414. 10267,
  415. 10289,
  416. 10290,
  417. 10291,
  418. 10358,
  419. 10533,
  420. 10543,
  421. 10596,
  422. 10608,
  423. 10689,
  424. 10705,
  425. 12725,
  426. 12453,
  427. 12466,
  428. 12468,
  429. 12470,
  430. 12490,
  431. 12501,
  432. 12507,
  433. 12508,
  434. 12517,
  435. 12624,
  436. 12654,
  437. 13008,
  438. 13011,
  439. 13015,
  440. 13019,
  441. 13022,
  442. 13024,
  443. 13025,
  444. 13041,
  445. 13040,
  446. 13083,
  447. 13084,
  448. 13085,
  449. 13113,
  450. 13115,
  451. 13129,
  452. 14354,
  453. 14398,
  454. 14498,
  455. 14515,
  456. 14556,
  457. 17008,
  458. 27505,
  459. 28029,
  460. 28409,
  461. 29740,
  462. 29996,
  463. 30337,
  464. 30359,
  465. 30369,
  466. 30446,
  467. 30682,
  468. 30725,
  469. 31889,
  470. 35224,
  471. 40175,
  472. 40229,
  473. 40497,
  474. 40533,
  475. 40794,
  476. 41615,
  477. 41820,
  478. 41829,
  479. 42449,
  480. 42836,
  481. 44296,
  482. 45742,
  483.  
  484.    }
  485.     local target_skillid = target.castinfo.skillid
  486.     local dist =  target.distance
  487.     local target_buffs = target.buffs
  488.     for _,skillid in pairs(skilllist) do
  489.     if(target_skillid == skillid  and dist <= 900 and not  (target_buffs[720]  or target_buffs[833] )) then
  490.     return true
  491.          end
  492.       end
  493.     end
  494. return false
  495.  
  496.  
  497.  
  498.  
  499. ==============
  500. 1200 DISTANCIA ----------------------------------------------------1200
  501. ==============
  502.  
  503. if(table.valid(context.attack_target)) then
  504.     local target = context.attack_target
  505.     local skilllist = {
  506. 5515,
  507. 5518,
  508. 5519,
  509. 5505,
  510. 5516,
  511. 5553,
  512. 5571,
  513. 5648,
  514. 5671,
  515. 5683,
  516. 5686,
  517. 5818,
  518. 5868,
  519. 5912,
  520. 5913,
  521. 5975,
  522. 5996,
  523. 6003,
  524. 6004,
  525. 6145,
  526. 6178,
  527. 6182,
  528. 9089,
  529. 9093,
  530. 9140,
  531. 9144,
  532. 9151,
  533. 9175,
  534. 9260,
  535. 10175,
  536. 10185,
  537. 10189,
  538. 10216,
  539. 10221,
  540. 10229,
  541. 10232,
  542. 10273,
  543. 10333,
  544. 10554,
  545. 10602,
  546. 10604,
  547. 10606,
  548. 10620,
  549. 10634,
  550. 10647,
  551. 10707,
  552. 12348,
  553. 12371,
  554. 12390,
  555. 12477,
  556. 12511,
  557. 12635,
  558. 12638,
  559. 13020,
  560. 14381,
  561. 14395,
  562. 14404,
  563. 14415,
  564. 14431,
  565. 14467,
  566. 14472,
  567. 14505,
  568. 14506,
  569. 14519,
  570. 14520,
  571. 14521,
  572. 14522,
  573. 14465,
  574. 14504,
  575. 14575,
  576. 26937,
  577. 28110,
  578. 28231,
  579. 28549,
  580. 29519,
  581. 29630,
  582. 29789,
  583. 29887,
  584. 29923,
  585. 30229,
  586. 30471,
  587. 30713,
  588. 30989,
  589. 31248,
  590. 31700,
  591. 32009,
  592. 33336,
  593. 33134,
  594. 40332,
  595. 40710,
  596. 41125,
  597. 41156,
  598. 41158,
  599. 41205,
  600. 41422,
  601. 41494,
  602. 42009,
  603. 42181,
  604. 42321,
  605. 42304,
  606. 43762,
  607. 43916,
  608. 45732,
  609. 46360
  610.  
  611.    }
  612.     local target_skillid = target.castinfo.skillid
  613.     local dist =  target.distance
  614.     local target_buffs = target.buffs
  615.     for _,skillid in pairs(skilllist) do
  616.     if(target_skillid == skillid  and dist <= 1200 and not  (target_buffs[720]  or target_buffs[833] )) then
  617.     return true
  618.          end
  619.       end
  620.     end
  621. return false
  622.  
  623.  
  624.  
  625.  
  626. ==============
  627. 1500 DISTANCIA ----------------------------------------------------1500
  628. ==============
  629.  
  630.  
  631. if(table.valid(context.attack_target)) then
  632.     local target = context.attack_target
  633.     local skilllist = {
  634.  
  635. 5539,
  636. 6177,
  637. 12509,
  638. 12510,
  639. 12511,
  640. 14396,
  641. 14416,
  642. 14432,
  643. 14473,
  644. 14474,
  645. 14475,
  646. 28395,
  647. 29644,
  648. 30121,
  649. 30307,
  650. 30371,
  651. 30599,
  652. 30885,
  653. 44087,
  654. 44591,
  655. 44695
  656.  
  657.    }
  658.     local target_skillid = target.castinfo.skillid
  659.     local dist =  target.distance
  660.     local target_buffs = target.buffs
  661.     for _,skillid in pairs(skilllist) do
  662.     if(target_skillid == skillid  and dist <= 1500 and not  (target_buffs[720]  or target_buffs[833] )) then
  663.     return true
  664.          end
  665.       end
  666.     end
  667. return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement