A whole bunch of questions

Talk about AshitaCast here. Need help with setting things up? Questions about how to do something? Post here.
matix
Addon/Plugin Developer
Posts: 49
Joined: Sun May 15, 2016 10:46 pm

Re: A whole bunch of questions

Post by matix » Mon May 08, 2017 2:51 pm

in your variables

Code: Select all

<var name="TP-$">0</var><!-- 0(low)/1(mid)/2(high)/3(max)-->
try naming it

Code: Select all

<var name="TP-Tier">0</var><!-- 0(low)/1(mid)/2(high)/3(max)-->
than when you want to use that

Code: Select all

<if eq_main="Ragnarok"><equip set="TP-$TP-Tier" /></if>
<elseif eq_main="Apocalypse"><equip set="TP-$TP-Tier" /></elseif>
<else><equip set="TP-$TP-Tier" /></else>
$TP-Tier will be replaced with the value its set to, prefixing the $ tells ashitacast that its a user variable


something else i noticed, you do not have your <cmd>'s inside of an <inputcommands></inputcommands> section, you should add one so its nest like below, additionally in the example below, i put a space after the "/acc " when reading %arg1(which means the first word supplied after /acc, in this case, its assumed you will be typing "/acc 3" or "/acc 0" to change tiers

Code: Select all

<inputcommands>
	<cmd input="/acc "> <!-- /acc # ; set the acc tier manually, 0-1-2-3 -->
		<setvar name="TP-$" value="%arg1" />
		<addtochat color="159">AccTier: $AccTier</addtochat>
		<doidlegear />
	</cmd>
</inputcommands>
Tru14
Posts: 19
Joined: Sun Feb 19, 2017 10:56 am

Re: A whole bunch of questions

Post by Tru14 » Wed May 10, 2017 12:22 pm

Can you do something like this for Magic Bursting?

Say have a command "/mb" which has functions like: Change elemental magic casting to magic burst mode: Where when in precast still equip precast gear, but when in midcast equip magic burst gear for the designated time set within the command (say 30 seconds).

Or could you just set a /mb mode "on" (that still precasts in precast gear) and an /mb mode "off" that goes back to normal casting?
User avatar
atom0s
Site Admin
Posts: 457
Joined: Sat May 14, 2016 5:13 pm

Re: A whole bunch of questions

Post by atom0s » Wed May 10, 2017 8:26 pm

Toggled equipping can be done pretty easily with commands. This is what I do for a Paladin setup on a private server:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ashitacast>
  3.     <!-- Settings -->
  4.     <settings>
  5.         <buffupdate>false</buffupdate>
  6.         <statusupdate>true</statusupdate>
  7.         <hpupdate>false</hpupdate>
  8.         <autoupdate>true</autoupdate>
  9.     </settings>
  10.  
  11.     <!-- Gear Sets -->
  12.     <sets>
  13.         <set name="main">
  14.             <main>Burtgang</main>
  15.             <sub>Aegis</sub>
  16.             <ammo>Angha Gem</ammo>
  17.             <head>Chev. Armet +1</head>
  18.             <body>Chev. Cuirass +1</body>
  19.             <hands>Chev. Gauntlets +1</hands>
  20.             <legs>Chev. Cuisses +1</legs>
  21.             <feet>Chev. Sabatons +1</feet>
  22.             <neck>Twilight Torque</neck>
  23.             <waist>Flume Belt +1</waist>
  24.             <ear1>Etiolation Earring</ear1>
  25.             <ear2>Ethereal Earring</ear2>
  26.             <ring1>Vocane Ring</ring1>
  27.             <ring2>Defending Ring</ring2>
  28.             <back>Annealed Mantle</back>
  29.         </set>
  30.  
  31.         <!-- Curing Gearset -->
  32.         <set name="cure">
  33.             <head>Chev. Armet +1</head>
  34.             <body>Emet Harness +1</body>
  35.             <hands>Macabre Gaunt. +1</hands>
  36.             <legs>Enif Cosciales</legs>
  37.             <feet>Chev. Sabatons +1</feet>
  38.             <neck>Phalaina Locket</neck>
  39.             <waist>Acerbic Sash +1</waist>
  40.             <ear1>Etiolation Earring</ear1>
  41.             <ear2>Mendi. Earring</ear2>
  42.             <ring1>Vocane Ring</ring1>
  43.             <ring2>Janniston Ring</ring2>
  44.             <back>Fierabras's Mantle</back>
  45.         </set>
  46.  
  47.         <!-- Kite Gearset -->
  48.         <set name="kite">
  49.             <head>Chev. Armet +1</head>
  50.             <body>Chev. Cuirass +1</body>
  51.             <hands>Chev. Gauntlets +1</hands>
  52.             <legs>Blood Cuisses</legs>
  53.             <feet>Chev. Sabatons +1</feet>
  54.             <neck>Twilight Torque</neck>
  55.             <waist>Flume Belt +1</waist>
  56.             <ear1>Etiolation Earring</ear1>
  57.             <ear2>Ethereal Earring</ear2>
  58.             <ring1>Shneddick Ring</ring1>
  59.             <ring2>Defending Ring</ring2>
  60.             <back>Annealed Mantle</back>
  61.         </set>
  62.        
  63.         <!-- Farm Gearset -->
  64.         <set name="farm">
  65.             <main>Burtgang</main>
  66.             <sub>Aegis</sub>
  67.             <ammo>Ginsen</ammo>
  68.             <head>Quauhpilli Helm</head>
  69.             <body>Xaddi Mail</body>
  70.             <hands>Chev. Gauntlets +1</hands>
  71.             <legs>Zoar Subligar</legs>
  72.             <feet>Chev. Sabatons +1</feet>
  73.             <neck>Asperity Necklace</neck>
  74.             <waist>Windbuffet Belt +1</waist>
  75.             <ear1>Etiolation Earring</ear1>
  76.             <ear2>Brutal Earring</ear2>
  77.             <ring1>Vocane Ring</ring1>
  78.             <ring2>Defending Ring</ring2>
  79.             <back>Annealed Mantle</back>
  80.         </set>
  81.        
  82.         <include>
  83.         </include>
  84.     </sets>
  85.    
  86.  
  87.     <!-- Variables -->
  88.     <variables>
  89.         <var name="kite">Off</var>
  90.         <var name="farm">Off</var>
  91.     </variables>
  92.    
  93.     <!-- Input Commands -->
  94.     <inputcommands>
  95.         <cmd input="/kite">
  96.             <if advanced="$kite=Off">
  97.                 <setvar name="kite" value="On" />
  98.                 <addtochat color="4">Kite Mode: [Enabled]</addtochat>
  99.                 <doidlegear />
  100.             </if>
  101.             <else>
  102.                 <setvar name="kite" value="Off" />
  103.                 <addtochat color="4">Kite Mode: [Disabled]</addtochat>
  104.                 <doidlegear />
  105.             </else>
  106.         </cmd>
  107.         <cmd input="/farm">
  108.             <if advanced="$farm=Off">
  109.                 <setvar name="farm" value="On" />
  110.                 <addtochat color="4">Farm Mode: [Enabled]</addtochat>
  111.                 <doidlegear />
  112.             </if>
  113.             <else>
  114.                 <setvar name="farm" value="Off" />
  115.                 <addtochat color="4">Farm Mode: [Disabled]</addtochat>
  116.                 <doidlegear />
  117.             </else>
  118.         </cmd>
  119.     </inputcommands>
  120.    
  121.     <!-- Idle Gear Parsing -->
  122.     <idlegear>
  123.         <if p_status="engaged">
  124.             <if advanced="($farm=On)&(%p_hpp>80)">
  125.                 <equip set="farm" />
  126.             </if>
  127.             <else>
  128.                 <equip set="main" />
  129.             </else>
  130.         </if>
  131.         <else>
  132.             <if advanced="$kite=On">
  133.                 <equip set="kite" />
  134.             </if>
  135.             <else>
  136.                 <equip set="main" />
  137.             </else>
  138.         </else>
  139.     </idlegear>
  140.    
  141.     <!-- Pre Ranged Event -->
  142.     <preranged>
  143.     </preranged>
  144.    
  145.     <!-- Mid Ranged Event -->
  146.     <midranged>
  147.     </midranged>
  148.    
  149.     <!-- Pre Magic Event -->
  150.     <premagic>
  151.     </premagic>
  152.    
  153.     <!-- Mid Magic Event -->
  154.     <midmagic>
  155.         <if ad_name="Cure*">
  156.             <equip set="cure" />
  157.             <addtochat color="4">Equipped Set: [Cure]</addtochat>
  158.         </if>
  159.     </midmagic>
  160.    
  161.     <!-- Pre Job Ability Event -->
  162.     <jobability>
  163.     </jobability>
  164.    
  165.     <!-- Weaponskill Event -->
  166.     <weaponskill>
  167.         <equip set="main" />
  168.         <addtochat color="4">Equipped Set: [Main]</addtochat>
  169.     </weaponskill>
  170.    
  171.     <!-- Pet Skill Event -->
  172.     <petskill>
  173.     </petskill>
  174.    
  175.     <!-- Pet Spell Event -->
  176.     <petspell>
  177.     </petspell>
  178.    
  179. </ashitacast>
With this I have two commands I can use for various modes:
- /kite
- /farm

Kite mode puts on movement speed gear while not engaged with a something.
Farm mode puts on as much double/triple/quad attack gear + haste gear available on the server. This mode keeps the gear on while above 80% health.

This shows how to make use of commands and variables together to toggle modes. In midmagic, you can check if a variable is set to true/on and equip sets based on that as well as what your casting etc. to accomplish what you are asking.
Lead Ashita Developer

Want to donate to say thanks?
https://www.paypal.me/atom0s
Tru14
Posts: 19
Joined: Sun Feb 19, 2017 10:56 am

Re: A whole bunch of questions

Post by Tru14 » Thu May 11, 2017 6:51 am

Thanks, Atom0s! I have been missing out by not using variables. I appreciate you showing that!
matix
Addon/Plugin Developer
Posts: 49
Joined: Sun May 15, 2016 10:46 pm

Re: A whole bunch of questions

Post by matix » Thu May 11, 2017 2:50 pm

Code: Select all

	<inputcommands>		
		<cmd input="/mb">
			<if advanced="$MB=0">
					<setvar name="MB" value="1" />
					<addtochat color="159">MB ON</addtochat>
			</if>
			<else>
					<setvar name="MB" value="0" />
					<addtochat color="159">MB OFF</addtochat>
			</else>
		</cmd>		
		<cmd input="/mb ">
			<setvar name="MB" value="%arg1" />
			<addtochat color="159">MB %arg1</addtochat>
		</cmd>	
	</inputcommands>		
	
	<midmagic>
		<!-- other midmagic stuff -->
		<if ad_name="*ga|*ra|Fire|Blizzard|Stone|Aero|Water|Thunder|*II|*III">
				<if advanced="$MB=1">
					<equip set="NukeLoMB" /><!-- NukeLoMB -->
				</if>
				<else>
					<equip set="NukeLo" />
				</else>	
		</if>		
		<elseif ad_name="*IV|*V">
			<if advanced="$MB=1">
				<equip set="NukeHiMB" /><!-- NukeHiMB -->
			</if>
			<else>
				<equip set="NukeHi" />
			</else>	
		</elseif>
		<!-- other midmagic stuff -->
	</midmagic>	
boleslaus
Posts: 5
Joined: Wed May 10, 2017 2:02 pm

Re: A whole bunch of questions

Post by boleslaus » Fri May 12, 2017 8:44 am

so im assuming i can make a variable for death set for death idle, precast and midcast?
matix
Addon/Plugin Developer
Posts: 49
Joined: Sun May 15, 2016 10:46 pm

Re: A whole bunch of questions

Post by matix » Fri May 12, 2017 11:33 am

yeah, ive seen alot of people find it easier just to make a separate xml for death, but you totally can do the toggle thing, i did that prior to using a separate xml
Luckyseven
Posts: 30
Joined: Tue May 02, 2017 9:13 am

Re: A whole bunch of questions

Post by Luckyseven » Fri Jun 09, 2017 6:37 am

Thanks for helping Matix.

I've added it like this, but it's not changing Tiers.
Did I remove something I shouldn't have? :S

Code: Select all

<ashitacast>
    <settings> <!--Contains settings specific to this xml, must be set to true/false to override default-->
        <buffupdate>true</buffupdate> <!--Determines if your idlegear will be parsed when you gain/lose a buff. Default: TRUE -->
        <statusupdate>true</statusupdate> <!--Determines if your idlegear will be parsed when you change status(stand/rest/engage/etc).  Default: TRUE -->
        <hpupdate>false</hpupdate> <!--Determines if your idlegear will be parsed when your HP % changes.  Default: TRUE -->
        <autoupdate>true</autoupdate> <!--Determines if your idlegear will be parsed on outgoing status updates(roughly every 350ms).  Default: TRUE-->
    </settings>
	<sets>
		<set name="Stand">
			<ammo>Iron Gobbet</ammo>
			<head augment="S8136856742914328697">Valorous Mask</head>
			<body>Sulevia's Plate. +1</body>
			<hands>Sulev. Gauntlets +1</hands>
			<legs augment="D12932343615234">Carmine Cuisses +1</legs>
			<feet>Sulev. Leggings +2</feet>
			<neck>Sanctity Necklace</neck>
			<waist>Flume Belt +1</waist>
			<ear1>Etiolation Earring</ear1>
			<ear2>Infused Earring</ear2>
			<ring1>Defending Ring</ring1>
			<ring2 augment="S17832976261174">Dark Ring</ring2>
			<back>Xucau Mantle</back>
			
		</set>
		<set name="TP-0">
			<ammo>Ginsen</ammo>
			<head augment="D2998206729152">Argosy Celata +1</head>
			<body augment="S1100425243040424601">Valorous Mail</body>
			<hands augment="D2710170112959">Argosy Mufflers +1</hands>
			<legs augment="S8137742578899628695">Odyssean Cuisses</legs>
			<feet>Flam. Gambieras +1</feet>
			<neck>Lissome Necklace</neck>
			<waist>Ioskeha Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Rajas Ring</ring1>
			<ring2>Petrov Ring</ring2>
			<back augment="S7926617608038518575">Ankou's Mantle</back>
		</set>
		<set name="TP-1">
			<ammo>Seeth. Bomblet +1</ammo>
			<head augment="D2998206729152">Argosy Celata +1</head>
			<body augment="S1100425243040424601">Valorous Mail</body>
			<hands augment="D2710170112959">Argosy Mufflers +1</hands>
			<legs augment="S8137742578899628695">Odyssean Cuisses</legs>
			<feet>Flam. Gambieras +1</feet>
			<neck>Lissome Necklace</neck>
			<waist>Ioskeha Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Rajas Ring</ring1>
			<ring2>Petrov Ring</ring2>
			<back augment="S7926617608038518575">Ankou's Mantle</back>
		</set>
		<set name="Torcleaver">
			<ammo>Seeth. Bomblet +1</ammo>
			<head>Sulevia's Mask +1</head>
			<body>Ignominy Cuirass +3</body>
			<hands>Sulev. Gauntlets +1</hands>
			<legs>Ig. Flanchard +3</legs>
			<feet>Sulev. Leggings +2</feet>
			<neck>Fotia Gorget</neck>
			<waist>Fotia Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Niqmaddu Ring</ring1>
			<ring2>Petrov Ring</ring2>
			<back augment="S8137500502272218759">Ankou's Mantle</back>
		</set>
		<set name="Resolution">
			<ammo>Seeth. Bomblet +1</ammo>
			<head augment="D2998206729152">Argosy Celata +1</head>
			<body>Ignominy Cuirass +3</body>
			<hands augment="D2710170112959">Argosy Mufflers +1</hands>
			<legs>Ig. Flanchard +3</legs>
			<feet augment="D5192661221378">Argosy Sollerets +1</feet>
			<neck>Fotia Gorget</neck>
			<waist>Fotia Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Niqmaddu Ring</ring1>
			<ring2>Shukuyu Ring</ring2>
			<back augment="S8136641508812818575">Ankou's Mantle</back>
		</set>
		<set name="Catastrophe">
			<ammo>Seeth. Bomblet +1</ammo>
			<head>Sulevia's Mask +1</head>
			<body>Ignominy Cuirass +3</body>
			<hands>Sulevia's Gauntlet's +1</hands>
			<legs>Ig. Flanchard +3</legs>
			<feet>Sulevia's Leggings +2</feet>
			<neck>Fotia Gorget</neck>
			<waist>Fotia Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Niqmaddu Ring</ring1>
			<ring2>Shukuyu Ring</ring2>
			<back augment="S8136641508812818575">Ankou's Mantle</back>
		</set>
		<set name="TP-2">
			<ammo>Seeth. Bomblet +1</ammo>
			<head augment="D2998206729152">Argosy Celata +1</head>
			<body>Sulevia's Plate. +1</body>
			<hands augment="D2710170112959">Argosy Mufflers +1</hands>
			<legs augment="S8137742578899628695">Odyssean Cuisses</legs>
			<feet>Flam. Gambieras +1</feet>
			<neck>Loricate Torque</neck>
			<waist>Ioskeha Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Defending Ring</ring1>
			<ring2>Petrov Ring</ring2>
			<back augment="S7926617608038518575">Ankou's Mantle</back>
		</set>
		<set name="TP-3">
			<ammo>Seeth. Bomblet +1</ammo>
			<head>Sulevia's Mask +1</head>
			<body>Sulevia's Plate. +1</body>
			<hands>Sulev. Gauntlets +1</hands>
			<legs>Sulevi. Cuisses +1</legs>
			<feet>Sulev. Leggings +2</feet>
			<neck>Loricate Torque</neck>
			<waist>Flume Belt</waist>
			<ear1>Brutal Earring</ear1>
			<ear2>Cessance Earring</ear2>
			<ring1>Defending Ring</ring1>
			<ring2 augment="S17832976261174">Dark Ring</ring2>
			<back>Xucau Mantle</back>
		</set>
		<set name="TP-4">
			<ammo>Demonry Stone</ammo>
			<head>Sulevia's Mask +1</head>
			<body>Sulevia's Plate. +1</body>
			<hands>Sulev. Gauntlets +1</hands>
			<legs>Sulevi. Cuisses +1</legs>
			<feet>Sulev. Leggings +2</feet>
			<neck>Warder's Charm +1</neck>
			<waist>Flume Belt</waist>
			<ear1>Etiolation Earring</ear1>
			<ear2>Merman's Earring</ear2>
			<ring1>Defending Ring</ring1>
			<ring2>Fortified Ring</ring2>
			<back>Xucau Mantle</back>
		</set>
		<set name="Precast">
			<ammo>Impatiens</ammo>
			<head>Carmine Mask</head>
			<body>Nuevo Coselete</body>
			<hands>Sulev. Gauntlets +1</hands>
			<legs>Eschite Cuisses</legs>
			<feet>Carmine Greaves</feet>
			<neck>Warder's Charm +1</neck>
			<waist>Flume Belt</waist>
			<ear1>Etiolation Earring</ear1>
			<ear2>Merman's Earring</ear2>
			<ring1>Veneficium Ring</ring1>
			<ring2>Prolix Ring</ring2>
			<back>Xucau Mantle</back>
		</set>


        <include>
        </include>
    </sets>
    
	<variables>
	<var name="TPSet">Old</var><!-- Old/Ionis/Yoichi/Hybrid-->
	<var name="TP-Tier">0</var><!-- 0(low)/1(mid)/2(high)/3(max)-->
    </variables>
    
    <idlegear>
        <if p_status="engaged">
            <if eq_main="Ragnarok"><equip set="TP-$TP-Tier" /></if>
		<elseif eq_main="Apocalypse"><equip set="TP-$TP-Tier" /></elseif>
		<else><equip set="TP-$TP-Tier" /></else>

 </if>
        <else><equip set="Stand" /></else>
		
	
	<if eq_back="Mecisto. Mantle">
            <equip lock="true">
                <back>Mecisto. Mantle</back>                
            </equip>
		</if>
		<if buffactive="2|19">
			<equip>
			<neck>Berserker's Torque</neck>
			</equip>
		</if>
		<if buffactive="579">
			<equip>
			<back>Mecisto. Mantle</back>
			</equip>
		</if>
	<if eq_body="Blacksmith's Apron">
            <equip lock="true">
                <body>Blacksmith's Apron</body>                
            </equip>
		</if>
	<if eq_neck="Smithy's Torque">
            <equip lock="true">
                <neck>Smithy's Torque</neck>                
            </equip>
		</if>
	<if eq_neck="Goldsmith's Torque">
            <equip lock="true">
                <neck>Goldsmith's Torque</neck>                
            </equip>
		</if>
	<if eq_hands="Smithy's Mitts">
            <equip lock="true">
                <hands>Smithy's Mitts</hands>                
            </equip>
		</if>
	<if eq_head="Shaded Spectacles">
            <equip lock="true">
                <head>Shaded Spectacles</head>                
            </equip>
		</if>
	<if eq_rring="Trizek Ring">
            <equip lock="true">
                <rring>Trizek Ring</rring>                
            </equip>
		</if>
		<if eq_rring="Capacity Ring">
            <equip lock="true">
                <rring>Capacity Ring</rring>                
            </equip>
		</if>
		<if eq_lring="Orvail Ring">
            <equip lock="true">
                <lring>Orvail Ring</lring>                
            </equip>
		</if>
		<if eq_rring="Facility Ring">
            <equip lock="true">
                <rring>Facility Ring</rring>                
            </equip>
		</if>
		<if eq_rring="Artificer's Ring">
            <equip lock="true">
                <rring>Artificer's Ring</rring>                
            </equip>
		</if>
		<if eq_rring="Smith's Ring">
            <equip lock="true">
                <rring>Smith's Ring</rring>                
            </equip>
		</if>
		<if eq_rring="Craftmaster's Ring">
            <equip lock="true">
                <rring>Craftmaster's Ring</rring>                
            </equip>
		</if>

	
	</idlegear>

	<inputcommands>
	<cmd input="/acc "> <!-- /acc # ; set the acc tier manually, 0-1-2-3 -->
		<setvar name="TP-$" value="%arg1" />
		<addtochat color="159">TPTier: $TPTier</addtochat>
		<doidlegear />
	</cmd>
	</inputcommands>
	
	
    <preranged>
    </preranged>
    <midranged>
    </midranged>
    <premagic>
            <equip set="Precast" />
    </premagic>
    <midmagic>
    </midmagic>
	

    <jobability>
            <if ad_name="Diabolic Eye"><equip>
                <hands>Fallen's finger gauntlets +1</hands></equip>
            </if>
            <elseif ad_name="Arcane Circle"><equip>
                <feet>Ignominy Sollerets +1</feet></equip>
            </if>
            <elseif ad_name="Souleater"><equip>
                <head>Ignominy Burgeonet +2</head></equip>
            </if>
            <elseif ad_name="Blood Weapon"><equip>
                <body>Fallen's Cuirass +1</body></equip>
            </if>
    </jobability>
    <weaponskill>
        <if ad_name="Resolution|Cross Reaper|Insurgency|Hard Slash"><equip set="Resolution" /></if>
		<if ad_name="Torcleaver"><equip set="Torcleaver" /></if>
		<if ad_name="Catastrophe|Scourge"><equip set="Catastrophe" /></if>
		<if p_tp="<3000"><equip><lear>Moonshade Earring</lear></equip></if>
		<elseif e_time=">17.01|<6.59"><equip><lear>Lugra Earring</lear></equip></elseif>
		<if e_time=">17.01|<6.59"><equip><rear>Lugra Earring +1</rear></equip></if>
    </weaponskill>
</ashitacast>
Luckyseven
Posts: 30
Joined: Tue May 02, 2017 9:13 am

Re: A whole bunch of questions

Post by Luckyseven » Fri Jun 09, 2017 9:03 am

Another thing..

No matter what type of Dark magic I cast this code will always use my Absorb set.
Any idea why?

Code: Select all

<midmagic>
		<if ad_skill="DarkMagic">
			<if ad_name="Drain|Drain II|Drain III|Aspir|Aspir II" /><equip set="Drain" />
			<if ad_name="Absorb-ACC|Absorb-TP|Absorb-Attri|Absorb-STR|Absorb-DEX|Absorb-VIT|Absorb-AGI|Absorb-INT|Absorb-MND|Absorb-CHR" /><equip set="Absorb" />
			<else><equip set="Dark" /></else>
		</if>
		<if ad_skill="EnfeeblingMagic"><equip set="Enfeebling" />
		</if>
	</midmagic>
User avatar
atom0s
Site Admin
Posts: 457
Joined: Sat May 14, 2016 5:13 pm

Re: A whole bunch of questions

Post by atom0s » Fri Jun 09, 2017 9:21 am

Your ifs are not being set correctly, so your <equip set="" /> commands are being executed always. Be mindful of when you use a single tag that ends with /> these deem a statement as finished. So it should look like this:

Code: Select all

<midmagic>
    <if ad_skill="DarkMagic">
        <if ad_name="Drain|Drain II|Drain III|Aspir|Aspir II">
            <equip set="Drain" />
        </if>
        <if ad_name="Absorb-ACC|Absorb-TP|Absorb-Attri|Absorb-STR|Absorb-DEX|Absorb-VIT|Absorb-AGI|Absorb-INT|Absorb-MND|Absorb-CHR">
            <equip set="Absorb" />
        </if>
        <else>
            <equip set="Dark" />
        </else>
        </if>
        <if ad_skill="EnfeeblingMagic">
            <equip set="Enfeebling" />
        </if>
    </if>
</midmagic>
Lead Ashita Developer

Want to donate to say thanks?
https://www.paypal.me/atom0s
Locked