Advertisement
Guest User

Untitled

a guest
Apr 5th, 2014
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.49 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ===============================================================================
  4. Sigmund's BLM script for Ashitacast
  5. v1.2, 03/28/14
  6.  
  7. Changes:
  8. * Added a /resist custom command that toggles on and off a mode where ele-
  9.  mental resistance gear is equipped in place of regular nuke gear.  This mode
  10.  is appropriate for fighting HNM/Sky/Sea opponents.
  11.  
  12. To do:
  13. * Figure out a way to force activate the Sorcerer Ring's latent via gear swaps.
  14. * at_type does not return the correct target.  Once this bug is fixed, it'll
  15.  be possible to put in a function that cancels sneak for you if re-applying on
  16.  yourself.
  17.  
  18. Note:
  19. * Sometimes when changing rings or earrings in gear swaps, a ring or earring
  20.  from a previous gear set is held over when swapping to the new set. This
  21.  seems to happen when the new gearset has the same item in both slots (two
  22.  phanntom earrings +1, one in each ear, for example.)  When writing gearsets,
  23.  prioritize placing jewelry in the left ear or left ring finger first.
  24. ===============================================================================
  25. -->
  26. <ashitacast>
  27.     <settings>
  28.         <hpupdate>false</hpupdate>
  29.         <autoupdate>true</autoupdate>
  30.     </settings>
  31.    
  32.     <variables>
  33.         <var name="MeleeMode">0</var>
  34.         <var name="ResistMode">0</var>
  35.     </variables>
  36.    
  37.     <sets>
  38.         <set name="Idle">
  39.             <main>Terra's Staff</main>
  40.             <sub>Vivid Strap +1</sub>
  41.             <ammo>Phtm. Tathlum</ammo>
  42.             <head>none</head>
  43.             <neck>Orochi Nodowa +1</neck>
  44.             <lear>Sorcerer's Earring</lear>
  45.             <rear>Antivenom Earring</rear>
  46.             <body>Ixion Cloak</body>
  47.             <hands>Sorcerer's Gloves</hands>
  48.             <lring>Celestial Ring</lring>
  49.             <rring>Celestial Ring</rring>
  50.             <back>Umbra Cape</back>
  51.             <waist>Headlong Belt</waist>
  52.             <legs>Wizard's Tonban</legs>
  53.             <feet>Herald's Gaiters</feet>
  54.         </set>
  55.        
  56.         <set name="Resting">
  57.             <main>Chatoyant Staff</main>
  58.             <head>Cobra Hat</head>
  59.             <neck>Beak Necklace +1</neck>
  60.             <lear>Rapture Earring</lear>
  61.             <rear>Antivenom Earring</rear>
  62.             <body>Mahatma Hpl.</body>
  63.             <hands>Genie Gages</hands>
  64.             <lring>Celestial Ring</lring>
  65.             <rring>Celestial Ring</rring>
  66.             <back>Invigorating Cape</back>
  67.             <waist>Qiqirn Sash +1</waist>
  68.             <legs>Baron's Slops</legs>
  69.             <feet>Arborist Nails</feet>
  70.         </set>
  71.        
  72.         <set name="Haste">
  73.             <waist>Headlong Belt</waist>
  74.         </set>
  75.        
  76.         <!-- Magic gearsets -->
  77.        
  78.         <!-- For future use -->
  79.         <set name="HPConvert" />
  80.        
  81.         <set name="FastCast">
  82.             <main>Chatoyant Staff</main>
  83.             <sub>Vivid Strap +1</sub>
  84.         </set>
  85.        
  86.         <set name="INT">
  87.             <main>Chatoyant Staff</main>
  88.             <sub>Vivid Strap +1</sub>
  89.             <ammo>Phtm. Tathlum</ammo>
  90.             <head>Demon Helm +1</head>
  91.             <neck>Lmg. Medallion +1</neck>
  92.             <lear>Omn. Earring +1</lear>
  93.             <rear>Omn. Earring +1</rear>
  94.             <body>Mahatma Hpl.</body>
  95.             <hands>Mahatma Cuffs</hands>
  96.             <lring>Omn. Ring +1</lring>
  97.             <rring>Omn. Ring +1</rring>
  98.             <back>Ixion Cape</back>
  99.             <waist>Witch Sash</waist>
  100.             <legs>Mahatma Slops</legs>
  101.             <feet>Custom M Boots</feet>
  102.         </set>
  103.        
  104.         <set name="MND">
  105.             <main>Chatoyant Staff</main>
  106.             <sub>Vivid Strap +1</sub>
  107.             <body>Mahatma Hpl.</body>
  108.             <lring>Celestial Ring</lring>
  109.             <rring>Celestial Ring</rring>
  110.             <back>Ixion Cape</back>
  111.             <waist>Witch Sash</waist>
  112.             <legs>Mahatma Slops</legs>
  113.         </set>
  114.        
  115.         <set name="Dark" baseset="INT">
  116.             <sub>Dark Grip</sub>
  117.             <neck>Dark Torque</neck>
  118.             <lear>Dark Earring</lear>
  119.             <rear>Incubus Earring +1</rear>
  120.             <hands>Sorcerer's Gloves</hands>
  121.             <legs>Wizard's Tonban</legs>
  122.             <feet>Genie Huaraches</feet>
  123.         </set>
  124.        
  125.         <set name="Elemental" baseset="INT">
  126.             <lear>Moldavite Earring</lear>
  127.             <body>Genie Weskit</body>
  128.             <hands>Genie Manillas</hands>
  129.         </set>
  130.        
  131.         <!-- For Sky, Sea, and other events where elemental resistance is high. -->
  132.         <set name="ElementalResist" baseset="Elemental">
  133.             <lear>Incubus Earring +1</lear>
  134.             <rear>Incubus Earring +1</rear>
  135.             <hands>Wizard's Gloves</hands>
  136.         </set>
  137.        
  138.         <set name="Enfeebling">
  139.             <head>Genie Tiara</head>
  140.             <neck>Enfeebling Torque</neck>
  141.             <lear>Incubus Earring +1</lear>
  142.             <rear>Incubus Earring +1</rear>
  143.             <body>Wizard's Coat</body>
  144.             <legs>Genie Lappas</legs>
  145.         </set>
  146.        
  147.         <set name="Enhancing">
  148.             <neck>Enhancing Torque</neck>
  149.             <lear>Augment. Earring</lear>
  150.             <feet>Genie Huaraches</feet>
  151.         </set>
  152.        
  153.         <set name="Healing" baseset="MND">
  154.             <hands>Mahatma Cuffs</hands>
  155.         </set>
  156.        
  157.         <set name="Stoneskin">
  158.             <main>Chatoyant Staff</main>
  159.             <sub>Vivid Strap +1</sub>
  160.             <head>none</head>
  161.             <neck>Enhancing Torque</neck>
  162.             <lear>Augment. Earring</lear>
  163.             <rear>Antivenom Earring</rear>
  164.             <body>Ixion Cloak</body>
  165.             <hands>Sorcerer's Gloves</hands>
  166.             <lring>Celestial Ring</lring>
  167.             <rring>Celestial Ring</rring>
  168.             <back>Ixion Cape</back>
  169.             <waist>Witch Sash</waist>
  170.             <legs>Mahatma Slops</legs>
  171.             <feet>Genie Huaraches</feet>
  172.         </set>
  173.        
  174.         <!-- Weaponskills -->
  175.         <set name="WS-SpiritTaker">
  176.             <ammo>Phtm. Tathlum</ammo>
  177.             <head>Mahatma Hat</head>
  178.             <neck>Promise Badge</neck>
  179.             <lear>Celestial Earring</lear>
  180.             <rear>Celestial Earring</rear>
  181.             <body>Mahatma Hpl.</body>
  182.             <hands>Mahatma Cuffs</hands>
  183.             <lring>Omn. Ring +1</lring>
  184.             <rring>Omn. Ring +1</rring>
  185.             <back>Ixion Cape</back>
  186.             <waist>Witch Sash</waist>
  187.             <legs>Mahatma Slops</legs>
  188.             <feet>Mahatma Pigaches</feet>
  189.         </set>
  190.        
  191.         <include>
  192.             <item>Aquilo's Staff</item>
  193.             <item>Thunder Grip</item>
  194.         </include>
  195.     </sets>
  196.    
  197.     <inputcommands>
  198.         <cmd input="/melee">
  199.             <if advanced="$MeleeMode=0">
  200.                 <setvar name="MeleeMode" value="1" />
  201.                 <command>/ac disable main</command>
  202.                 <command>/ac disable sub</command>
  203.                 <addtochat color="57">Melee mode enabled!</addtochat>
  204.             </if>
  205.             <else>
  206.                 <setvar name="MeleeMode" value="0" />
  207.                 <command>/ac enable main</command>
  208.                 <command>/ac enable sub</command>
  209.                 <addtochat color="57">Melee mode disabled.</addtochat>
  210.             </else>
  211.         </cmd>
  212.         <cmd input="/resist">
  213.             <if advanced="$ResistMode=0">
  214.                 <setvar name="ResistMode" value="1" />
  215.                 <addtochat color="57">Elemental resistance mode enabled!</addtochat>
  216.             </if>
  217.             <else>
  218.                 <setvar name="ResistMode" value="0" />
  219.                 <addtochat color="57">Elemental resistance mode disabled.</addtochat>
  220.             </else>
  221.         </cmd>
  222.         <cmd input="/debug" />
  223.     </inputcommands>
  224.    
  225.     <idlegear>
  226.         <if p_status="resting">
  227.             <equip set="Resting" />
  228.         </if>
  229.         <else>
  230.             <equip set="Idle" />
  231.         </else>
  232.     </idlegear>
  233.    
  234.     <!-- Put fast cast gear in the premagic section. -->
  235.     <premagic>
  236.         <equip set="FastCast" />
  237.     </premagic>
  238.    
  239.     <midmagic>
  240.         <if ad_type="blackmagic">
  241.             <if ad_skill="darkmagic">
  242.                 <equip set="Dark" />
  243.                 <!-- Use Thunder Grip for Stun instead of the Dark Grip -->
  244.                 <if ad_name="Stun">
  245.                     <equip><sub>Thunder Grip</sub></equip>
  246.                 </if>
  247.             </if>
  248.             <elseif ad_skill="elementalmagic">
  249.                 <!-- Elemental debuffs benefit from pure INT. -->
  250.                 <if ad_name="Burn|Choke|Drown|Frost|Rasp|Shock">
  251.                     <equip set="INT" />
  252.                 </if>
  253.                 <!-- Nuke gear -->
  254.                 <else>
  255.                     <!-- If /resist is turned on, elemental resist gear
  256.                          will be used in place of regular nuke gear.    -->
  257.                     <if advanced="$ResistMode=1">
  258.                         <equip set="ElementalResist" />
  259.                         <!-- CONDITIONAL NUKE GEAR CHECKS BELOW -->
  260.                         <!-- Use Aquilo's if casting ice nukes. -->
  261.                         <if ad_name="Blizza*|Freeze*">
  262.                             <equip><main>Aquilo's Staff</main></equip>
  263.                         </if>
  264.                     </if>
  265.                     <!--- If /resist is turned off, regular nuking gear will be used. -->
  266.                     <else>
  267.                         <equip set="Elemental" />
  268.                         <!-- CONDITIONAL NUKE GEAR CHECKS BELOW -->
  269.                         <!-- Use Aquilo's if casting ice nukes. -->
  270.                         <if ad_name="Blizza*|Freeze*">
  271.                             <equip><main>Aquilo's Staff</main></equip>
  272.                         </if>
  273.                         <!-- Uggalepih Pendant latent checker -->
  274.                         <!-- NOTE:  If you play on a private server, the Uggy pendant
  275.                              may not be put on at the appropriate time due to differ-
  276.                              ences between client spell MP costs and server MP costs  -->
  277.                         <if advanced="%ad_mppaftercast<51">
  278.                             <equip><neck>Uggalepih Pendant</neck></equip>
  279.                         </if>
  280.                         <!-- Sorcerer's Ring latent checker -->
  281.                         <if advanced="(%p_hpp<76)&(%p_tp<100)">
  282.                             <equip><lring>Sorcerer's Ring</lring></equip>
  283.                         </if>
  284.                         <!-- Sorcerer's Tonban latent checker -->
  285.                         <if advanced="%ad_element=%e_dayelement">
  286.                             <equip><legs>Sorcerer's Tonban</legs></equip>
  287.                         </if>
  288.                     </else>
  289.                 </else>
  290.             </elseif>
  291.             <elseif ad_skill="enfeeblingmagic">
  292.                 <equip set="INT" />
  293.                 <equip set="Enfeebling" />
  294.                 <!-- Put on Dark Grip for landing Sleeps -->
  295.                 <if ad_name="Sleep*">
  296.                     <equip><sub>Dark Grip</sub></equip>
  297.                 </if>
  298.             </elseif>
  299.         </if>
  300.         <elseif ad_type="whitemagic">
  301.             <if ad_skill="enfeeblingmagic">
  302.                 <equip set="MND" />
  303.                 <equip set="Enfeebling" />
  304.             </if>
  305.             <elseif ad_skill="enhancingmagic">
  306.                 <if ad_name="Stoneskin">
  307.                     <equip set="Stoneskin" />
  308.                 </if>
  309.                 <elseif ad_name="Bar*|Phalanx">
  310.                     <equip set="Enhancing" />
  311.                 </elseif>
  312.             </elseif>
  313.             <elseif ad_skill="healingmagic">
  314.                 <if ad_name="Cur*">
  315.                     <equip set="Healing" />
  316.                 </if>
  317.             </elseif>
  318.         </elseif>
  319.         <elseif ad_type="ninjutsu">
  320.             <if ad_name="Utsusemi*">
  321.                 <equip set="Haste" />
  322.             </if>
  323.         </elseif>
  324.     </midmagic>
  325.    
  326.     <weaponskill>
  327.         <if ad_name="Spirit Taker">
  328.             <equip set="WS-SpiritTaker" />
  329.         </if>
  330.         <elseif ad_name="Cyclone|Gust Slash">
  331.             <equip set="INT" />
  332.         </elseif>
  333.     </weaponskill>
  334. </ashitacast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement