Advertisement
Guest User

Hunter Script Before

a guest
Oct 4th, 2014
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.43 KB | None | 0 0
  1.             <Script isActive="yes" isFolder="no">
  2.                 <name>hunter</name>
  3.                 <packageName></packageName>
  4.                 <script>-------------------------------------------------
  5. --         Put your Lua functions here.        --
  6. --                                             --
  7. -- Note that you can also use external Scripts --
  8. -------------------------------------------------
  9.  
  10. keepAssessing = keepAssessing or false
  11. doCombo = false
  12. triggerAff = &quot;sunallergy&quot;
  13. noTriggers = false
  14.  
  15. --toxins = toxins or {mercury=&quot;asthma&quot;, hemotoxin=&quot;hemotoxin&quot;, arsenic=&quot;weariness&quot;,
  16. --butisol=&quot;butisol&quot;, ether=&quot;clumsiness&quot;, atropine=&quot;recklessness&quot;, avidya=&quot;ignorance&quot;,
  17. --digitalis=&quot;shyness&quot;, lindane=&quot;dizziness&quot;, ciguatoxin=&quot;paralysis&quot;, metrazol=&quot;metrazol&quot;,
  18. --strychnine=&quot;sensitivity&quot;, xeroderma=&quot;sunallergy&quot;, botulinum=&quot;nausea&quot;, aconite=&quot;stupidity&quot;,
  19. --oxalis=&quot;sight/hearing&quot;, bromine=&quot;anorexia&quot;, mazanor=&quot;slow herbs&quot;, calotropis=&quot;calotropis&quot;,
  20. --luminal=&quot;slow elixirs&quot;, ketamine=&quot;withered throat&quot;, benzene=&quot;broken arm&quot;,
  21. --benzedrine=&quot;broken leg&quot;, actinium=&quot;actinium&quot;, iodine=&quot;slickness&quot;, noctec=&quot;slow balance&quot;,
  22. --vitriol=&quot;disloyalty&quot;, mebaral=&quot;slow equilibrium&quot;, chloroform=&quot;epilepsy&quot;}
  23.  
  24. toxinStack2 = {&quot;hemotoxin&quot;, &quot;sunallergy&quot;, &quot;nausea&quot;, &quot;numbness&quot;, &quot;asthma&quot;, &quot;stupidity&quot;,
  25.  &quot;clumsiness&quot;, &quot;recklessness&quot;, &quot;metrazol&quot;, &quot;slickness&quot;, &quot;sensitivity&quot;, &quot;nausea&quot;,
  26.  &quot;butisol&quot;, &quot;anorexia&quot;, &quot;calotropis&quot;,
  27.  &quot;slow balance&quot;, &quot;slow equilibrium&quot;, &quot;disloyalty&quot;, &quot;dizziness&quot;}
  28.  
  29. toxinStack1 = {&quot;sunallergy&quot;, &quot;clumsiness&quot;, &quot;hemotoxin&quot;, &quot;numbness&quot;, &quot;stupidity&quot;, &quot;metrazol&quot;,
  30.  &quot;nausea&quot;, &quot;butisol&quot;, &quot;anorexia&quot;, &quot;calotropis&quot;}
  31.  
  32. toxinStack3 = {&quot;hemotoxin&quot;, &quot;clumsiness&quot;, &quot;sunallergy&quot;, &quot;numbness&quot;, &quot;stupidity&quot;, &quot;metrazol&quot;,
  33.  &quot;nausea&quot;, &quot;butisol&quot;, &quot;anorexia&quot;, &quot;calotropis&quot;}
  34.  
  35. mentalStack2 = {&quot;impatience&quot;, &quot;stupidity&quot;, &quot;hallucinations&quot;, &quot;numbness&quot;, &quot;masochism&quot;,
  36.  &quot;hypersomnia&quot;, &quot;paranoia&quot;, &quot;dementia&quot;, &quot;vertigo&quot;, &quot;loneliness&quot;, &quot;claustrophobia&quot;}
  37.  
  38. --mentalStack1 = {&quot;trigger&quot;, &quot;anorexia&quot;, &quot;impatience&quot;, &quot;instability&quot;, &quot;stupidity&quot;,
  39. -- &quot;hallucinations&quot;, &quot;numbness&quot;, &quot;insanity&quot;, &quot;sensitivity&quot;, &quot;masochism&quot;, &quot;peace&quot;,
  40. -- &quot;hypersomnia&quot;, &quot;paranoia&quot;, &quot;dementia&quot;, &quot;vertigo&quot;, &quot;loneliness&quot;, &quot;claustrophobia&quot;,
  41. -- &quot;probe&quot;}
  42.  
  43. mentalStack1 = {&quot;impatience&quot;, &quot;stupidity&quot;, &quot;hallucinations&quot;, &quot;numbness&quot;,
  44.  &quot;masochism&quot;, &quot;peace&quot;, &quot;hypersomnia&quot;, &quot;paranoia&quot;, &quot;dementia&quot;,
  45.  &quot;vertigo&quot;, &quot;loneliness&quot;, &quot;claustrophobia&quot;}
  46.  
  47. --mentalStack1 = {&quot;impatience&quot;, &quot;stupidity&quot;, &quot;hallucinations&quot;, &quot;numbness&quot;,
  48. -- &quot;sensitivity&quot;, &quot;masochism&quot;, &quot;peace&quot;, &quot;hypersomnia&quot;, &quot;paranoia&quot;, &quot;dementia&quot;,
  49. -- &quot;vertigo&quot;, &quot;loneliness&quot;, &quot;claustrophobia&quot;}
  50.  
  51. --(Ring): Cassius says, &quot;Toxins {&quot;hemotoxin&quot;, &quot;sunallergy&quot;, &quot;nausea&quot;, &quot;numbness&quot;, &quot;asthma&quot;,
  52. --&quot;stupidity&quot;, &quot;clumsiness&quot;, &quot;recklessness&quot;, &quot;metrazol&quot;, &quot;slickness&quot;, &quot;sensitivity&quot;, &quot;nausea&quot;,
  53. --&quot;butisol&quot;, &quot;anorexia&quot;, &quot;crippled right arm&quot;, &quot;crippled left leg&quot;, &quot;calotropis&quot;, &quot;slow balance&quot;,
  54. --&quot;slow equilibrium&quot;, &quot;disloyalty&quot;, &quot;dizziness&quot;,}.&quot;
  55. --&lt;390/390h 421/445m 0b &lt;eb db&gt; &lt;44 0&gt;&gt; 78.76 0 [Septus RAID(clt)]
  56. --(Ring): Cassius says, &quot;Basilisk {[1] = &quot;trigger&quot;, [2] = &quot;anorexia&quot;, [3] = &quot;impatience&quot;, [4] =
  57. --&quot;instability&quot;, [6] = &quot;stupidity&quot;, [7] = &quot;hallucinations&quot;, [5] = &quot;numbness&quot;, [8] = &quot;insanity&quot;, [9] =
  58. --&quot;sensitivity&quot;, [10] = &quot;masochism&quot;, [11] = &quot;peace&quot;, [12] = &quot;hypersomnia&quot;, [13] = &quot;paranoia&quot;, [14] =
  59. --&quot;dementia&quot;, [15] = &quot;vertigo&quot;, [16] = &quot;loneliness&quot;, [17] = &quot;claustrophobia&quot;, [18] = &quot;probe&quot;}.&quot;
  60.  
  61. function nextCombo()
  62. --  doCombo = true
  63.   toxin = nil
  64.   mental1 = nil
  65.   mental2 = nil
  66.   local wyvernString = nil
  67.   local basiliskString = nil
  68.   for i, v in ipairs(toxinStack1) do
  69.     if not t.afflictedWith(v) then toxin = affToTox(v) break end
  70.   end
  71.   wyvernString = &quot;wyvern claw &quot; .. target .. &quot; &quot; .. toxin .. &quot;\\&quot;    
  72. --  cecho(&quot;(&quot; .. wyvernString .. &quot;)&quot;)
  73.   --if not trigger1 then form trigger1 (if trigger2, avoid trigger2 affs)
  74.   --elseif not trigger2 then form trigger2 (if trigger1 avoid trigger1 affs)
  75.   --else then mental afflict (avoid trigger1 and 2 affs
  76.   --
  77.   --
  78.   --
  79.   if not t.trigger1 and not noTriggers then
  80. debug(&quot;t1&quot;)
  81.     local trig2Aff1, trig2Aff2 = &quot;nomatch&quot;, &quot;nomatch&quot;
  82.     if t.trigger2 then
  83. --debug(&quot;(t2 exists)&quot;)
  84.       trig2Aff1 = t.trigger2.affliction1
  85.       trig2Aff2 = t.trigger2.affliction2
  86.     end
  87. --debug(&quot;start loop&quot;)
  88.     for i, v in ipairs(mentalStack1) do
  89. --cecho(&quot;(&quot; .. v .. &quot;)\n&quot;)
  90.       if not t.afflictedWith(v) and not v:match(trig2Aff1) and not v:match(trig2Aff2) then
  91. --        cecho(&quot;!&quot;)
  92.         if not mental1 then
  93. --          debug(&quot;found mental1&quot;)
  94.           mental1 = v
  95.         elseif not mental2 then
  96. --          debug(&quot;found mental2&quot;)
  97.           mental2 = v
  98.         end
  99.       end
  100.     end
  101. --debug(&quot;finished loop&quot;)
  102. --display(mental1)
  103. --display(mental2)
  104.     basiliskString = &quot;basilisk trigger &quot; .. target .. &quot; &quot; .. mental1 .. &quot; &quot; .. mental2 ..
  105.      &quot; affliction &quot; .. triggerAff .. &quot;\\&quot;
  106.     pendingTrigger = {}
  107.     pendingTrigger[&quot;trigger&quot;] = triggerAff
  108.     pendingTrigger[&quot;affliction1&quot;] = mental1
  109.     pendingTrigger[&quot;affliction2&quot;] = mental2
  110. --debug(&quot;bstring generated&quot;)
  111.     --cecho(&quot;(&quot; .. basiliskString .. &quot;)&quot;)
  112.   elseif not t.trigger2 and not noTriggers then
  113.     debug(&quot;2&quot;)
  114.     local trig1Aff1, trig1Aff2 = &quot;&quot;, &quot;&quot;
  115.     if t.trigger1 then
  116.       trig1Aff1 = t.trigger1.affliction1
  117.       trig1Aff2 = t.trigger1.affliction2
  118.     end
  119.     for i, v in ipairs(mentalStack1) do
  120.       if not t.afflictedWith(v) and not v:match(trig1Aff1) and not v:match(trig1Aff2) then
  121.         if not mental1 then mental1 = v
  122.         elseif not mental2 then mental2 = v
  123.         end
  124.       end
  125.     end
  126.     basiliskString = &quot;basilisk trigger &quot; .. target .. &quot; &quot; .. mental1 .. &quot; &quot; .. mental2 ..
  127.      &quot; affliction &quot; .. triggerAff .. &quot;\\&quot;
  128.     --cecho(&quot;(&quot; .. basiliskString .. &quot;)&quot;)
  129.     pendingTrigger = {}
  130.     pendingTrigger[&quot;trigger&quot;] = triggerAff
  131.     pendingTrigger[&quot;affliction1&quot;] = mental1
  132.     pendingTrigger[&quot;affliction2&quot;] = mental2
  133.   else
  134.     local trig1Aff1, trig1Aff2, trig2Aff1, trig2Aff2 = &quot;nomatch&quot;, &quot;nomatch&quot;, &quot;nomatch&quot;, &quot;nomatch&quot;
  135.     debug(&quot;1&quot;)
  136.     if t.trigger1 then
  137.       trig1Aff1 = t.trigger1.affliction1
  138.       trig1Aff2 = t.trigger1.affliction2
  139.     end
  140.     if t.trigger2 then
  141.       trig2Aff1 = t.trigger2.affliction1
  142.       trig2Aff2 = t.trigger2.affliction2
  143.     end
  144.     for i, v in ipairs(mentalStack1) do
  145.       if not t.afflictedWith(v) and not v:match(trig1Aff1) and not v:match(trig1Aff2)
  146.        and not v:match(trig2Aff1) and not v:match(trig2Aff2) then
  147.         if not mental1 then mental1 = v
  148.         end
  149.       end
  150.     end
  151.     basiliskString = &quot;basilisk &quot; .. mental1 .. &quot; &quot; .. target .. &quot;\\&quot;
  152.     --cecho(&quot;(&quot; .. basiliskString .. &quot;)&quot;)
  153.   end
  154.    
  155.   local assessString = &quot;&quot;
  156.  
  157.   if keepAssessing then
  158.     assessString = &quot;\\trueassess &quot; .. target .. &quot;\\&quot;
  159.   else
  160.     assessString = &quot;&quot;
  161.   end
  162.  
  163.   --if me.afflictedWith(&quot;peace&quot;) then
  164.   --  rageString = &quot;\\rage&quot;
  165.   --else
  166.   --  rageString = &quot;&quot;
  167.   --end
  168.  
  169.   if t.shield then
  170.     wyvernString = &quot;wyvern iceblast &quot; .. target .. &quot;\\&quot;
  171.   end
  172.  
  173.   send(&quot;queue eqbal touch amnesia\\stand\\mount 99192\\&quot; .. wyvernString .. &quot;\\&quot; .. basiliskString .. assessString, false)
  174.  
  175. end
  176.  
  177. function queueToxin(tox)
  178.   if not toxin then toxin = tox end
  179. end
  180.  
  181. function queueMental(aff)
  182.   if not mental then mental = aff end
  183. end</script>
  184.                 <eventHandlerList/>
  185.             </Script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement