Advertisement
TC24k

Spellcast_Farmbot

Oct 27th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.55 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2.  
  3. <spellcast xmlns:xi="http://www.w3.org/2001/XInclude">
  4.     <config
  5.        RequireVersion="2.30"
  6.        debug="false"
  7.        />
  8.        
  9.     <variables>
  10.         <var name="LoopSpell">Bio IV</var> //Trigger spell
  11.         <var name="EnemyHPCheckSpell">Dancing Chains</var> //Spell to force HP check on enemy
  12.         <var name="Run">1</var> //Running
  13.         <var name="First">1</var> //Leave it Forever Alone.jpg!
  14.         <var name="WS">Tachi: Jinpu</var> //WS of choice
  15.         <var name="Samba">Drain Samba II</var> //Samba of choice for /DNC
  16.         <var name="HPThreshold">70</var> //HP to cure from?
  17.         <var name="Waltz">Curing Waltz II</var> //Waltz
  18.         <var name="RestDelay">150</var> //Number of seconds to rest for HP
  19.         <var name="Distance">5</var> //Distance to allow WS's from
  20.         <var name="SafeMobs">Lesser Colibri</var> //Safe mobs to kill
  21.         <var name="ThirdEyeTimer">0</var> //Track whether TE is up or not
  22.        
  23.     </variables>
  24.     <sets>
  25.         <group name="Main" default="yes">
  26.        
  27.             <set name="TPGear">
  28.                 <head>Walahra Turban</head>
  29.                 <neck>Rancor Collar</neck>
  30.                 <lear>Brutal Earring</lear>
  31.                 <rear>Merman's Earring</rear>
  32.                 <body>Perle Hauberk</body>
  33.                 <hands>Dusk Gloves +1</hands>
  34.                 <lring>Rajas  Ring</lring>
  35.                 <rring>Flame Ring</rring>
  36.                 <back>Cerberus Mantle</back>
  37.                 <waist>Goading Belt</waist>
  38.                 <legs>Byakko's Haidate</legs>
  39.                 <feet>Perle Solerets</feet>
  40.             </set>
  41.            
  42.             <set name="WS_STR">
  43.                 <head>Varangian Helm</head>
  44.                 <neck>Rancor Collar</neck>
  45.                 <lear>Brutal Earring</lear>
  46.                 <rear>Merman's Earring</rear>
  47.                 <body>Perle Hauberk</body>
  48.                 <hands>Heafoc Mitts</hands>
  49.                 <lring>Rajas  Ring</lring>
  50.                 <rring>Flame Ring</rring>
  51.                 <back>Cerberus Mantle</back>
  52.                 <waist>Warwolf Belt</waist>
  53.                 <legs>Tumbler Trunks</legs>
  54.                 <feet>Perle Solerets</feet>
  55.             </set>
  56.         </group>
  57.     </sets>
  58.     <rules>
  59.    
  60.     <if advanced='("$Run"=="0")'>
  61.         <return />
  62.         <cancelspell />
  63.         <command>setkey numpad8 up;setkey numpad2 down;setkey numpad2 up</command>
  64.     </if>
  65.    
  66.         <equip set="TPGear" when="engaged" />
  67.    
  68.     <if spell="$LoopSpell" advanced='("$Run"=="1")'>
  69.         <if advanced='("$First"=="1")'>
  70.             <addtochat color="121">======= SPELLCAST STARTED =======</addtochat>
  71.             <command>mouse_blockinput 1;bind ^escape sc var set Run 0</command>
  72.             <addtochat color="121">======= MOUSE INPUT BLOCKED. PUSH CTRL+ESCAPE TO STOP =======</addtochat>
  73.             <var cmd="set First 0" />
  74.         </if>
  75.        
  76.         <if status="engaged">  
  77.             <if advanced='%SpellTargetDistance&gt;3'>
  78.                 <command>input /follow; setkey numpad8 up</command>
  79.             </if>
  80.             <if targethpplt="100">
  81.                 <if advanced='%SpellTargetDistance&lt;3'>
  82.                     <command>setkey numpad8 up;setkey numpad2 down;setkey numpad2 up</command>
  83.                 </if>
  84.             </if>
  85.             <if tpgt="99">
  86.                 <if hppgt="$HPThreshold">
  87.                     <if buffactive="*Samba*">
  88.                         <changespell spell="$WS" />
  89.                     </if>
  90.                     <elseif  mode="and" subjob="DNC" notbuffactive="*Samba*">
  91.                         <changespell spell="$Samba" />
  92.                     </elseif>
  93.                 </if>
  94.                 <elseif hpplt="$HPThreshold">
  95.                     <cancelspell />
  96.                     <command>input /ja "$Waltz" &lt;me&gt;</command>
  97.                 </elseif>
  98.             </if>
  99.             <elseif tplt="100">
  100.                 <if hppgt="$HPThreshold">
  101.                     <if buffactive="*Samba*">
  102.                         <cancelspell />
  103.                     </if>
  104.                     <elseif  mode="and" subjob="DNC" notbuffactive="*Samba*">
  105.                         <changespell spell="$Samba" />
  106.                     </elseif>
  107.                 </if>
  108.                 <elseif hpplt="$HPThreshold">
  109.                     <changespell spell="$Waltz" />
  110.                 </elseif>
  111.             </elseif>
  112.            
  113.             <if mode="or" mainjob="SAM" subjob="SAM">
  114.                 <if mode="and" notbuffactive="Third Eye" advanced='("$ThirdEyeTimer"=="0")'>
  115.                     <changespell spell="Third Eye" />
  116.                 </if>
  117.                 <if mode="and" Spell="Third Eye" notbuffactive="Seigan">
  118.                     <cancelspell />
  119.                     <command>input /ja "Seigan" &lt;me&gt;;wait 2.5;input /ja "Third Eye" &lt;me&gt;;</command>
  120.                 </if>
  121.                 <if spell="Third Eye">
  122.                     <var cmd="set ThirdEyeTimer 1" />
  123.                     <aftercastdelay delay="30" />
  124.                     <var cmd="set ThirdEyeTimer 0" when="aftercast" />
  125.                 </if>
  126.             </if>
  127.                
  128.            
  129.         </if>
  130.        
  131.         <elseif status="Idle">
  132.             <if hppgt="$HPThreshold">      
  133.                 <command>setkey Right down;wait 0.5;setkey Right up;setkey Numpad8 down;setkey Numpad 8 up;setkey tab down;setkey tab up;$EnemyHPCheckSpell &lt;t&gt;</command>
  134.                 <cancelspell />
  135.                 <if mode="and" targettype="NPC" advanced='("%Target"=="$SafeMobs")'>
  136.                     <if targethppgt="99">
  137.                         <cancelspell />
  138.                         <command>input /attack on;input /follow</command>
  139.                     </if>
  140.                     <elseif targethpplt="100">
  141.                         <cancelspell />
  142.                         <command>setkey Right down;wait 0.5;setkey Right up;setkey Numpad8 down;setkey Numpad 8 up;setkey tab down;setkey tab up;$EnemyHPCheckSpell &lt;t&gt;</command>
  143.                     </elseif>
  144.                 </if>
  145.                 <elseif nottargettype="NPC">
  146.                     <command>setkey Right down;wait 0.5;setkey Right up;setkey Numpad8 down;setkey Numpad 8 up;setkey tab down;setkey tab up;$EnemyHPCheckSpell &lt;t&gt;</command>
  147.                 </elseif>
  148.             </if>
  149.             <elseif hpplt="$HPThreshold">
  150.                 <command>input /heal on; wait $RestDelay;input /heal off</command>
  151.                 <command>setkey Right down;wait 0.5;setkey Right up;setkey Numpad8 down;setkey Numpad 8 up;setkey tab down;setkey tab up;$EnemyHPCheckSpell &lt;t&gt;</command>
  152.             </elseif>
  153.         </elseif>
  154.        
  155.         <if type="Weaponskill">
  156.             <if mode="OR" TPLT="100" advanced='%SpellTargetDistance&gt;$Distance' notstatus="engaged">
  157.                 <addtochat color="121">Too far away from target, not enough TP or not engaged. Cancelling WS</addtochat>
  158.                 <cancelspell/>
  159.                 <return />
  160.             </if>
  161.         </if>
  162.        
  163.         <command>wait 1;$LoopSpell</command>
  164.     </if>
  165.     </rules>
  166. </spellcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement