Hello, here's my problem i'm looking for an xml that can equip myself once my HP goes low with twilight helm and mail, so i get auto-reraise in case i dies.
anyone have this please ?
Twilight Set Auto-reraise Xml |
||
|
Twilight set auto-reraise xml
Hello, here's my problem i'm looking for an xml that can equip myself once my HP goes low with twilight helm and mail, so i get auto-reraise in case i dies.
anyone have this please ? Unless you create a self-repeating loop, it will only swap you into your gear when you input a command.
Code <if status="engaged"> <if HPPLT="20"> <equip when="engaged" > <head>Twilight Helm</head> <body>Twilight mail</body> </equip> </if> <elseif HPPGT="21"> <equip when="engaged" set="TP" /> </elseif> </if> ... Let me elaborate more. You don't have to put in a specific command, it'll perform the check upon any command, albeit /attack - any WS - any JA - any MA. Endless loops are no good lol
Offline
Posts: 439
Not sure if there's any way to trigger a gear swap without performing an action yourself, but you could add something like this at the end of your XML:
Code <if HPPLT="20"> <equip when="Aftercast|Idle|Engaged" set="Twilight" /> </if> That will swap in your twilight gear if hp is less than 20% (adjust to whatever value you like) after trying to perform an action. Edit: ninja'd ^^ Offline
Posts: 1018
You could use autoexec to do it otherwise u must perform an action in order for a rule to be executed.
how can i do that on auto-exec ?
Offline
Posts: 1018
Really simple force to twilight set when hp hits lt 20 percent:
<autoexec> <register event="hpplt20" silent="true">sc set twilight</register> </autoexec> Every time your hp goes below 20 percent sets ur gear to twilight can make more elegant with variables and triggers and locks but would need a bit more time lol. ok so i did that on autoexec but idk how to input my twilight set and where ? have no clue, do i have to create a separated xml ? or could i just input it in autoexec ?
Offline
Posts: 1018
The twilight set goes into spellcast or can just make it:
<autoexec> <register event="hpplt20" silent="true">input /equip head "twilght helm"; wait 1; input /equip body "twilight mail"</register> </autoexec> That basically does it raw without spellcast... ok so i wrote that in my autoexec , and doesnt works, idk if i did something wrong :
<?xml version="1.0" ?> <autoexec> <register id="12007" silent="true" event="losebuff_Reraise">input /echo ~ Reraise lost !!! ~</register> <register silent="true" event="login">drawdistance set 10</register> <register event="jobchange_nin/*">input /macro book 1</register> <register event="Jobchange_nin/*">input //spellcast load nin.xml</register> <register event="jobchange_bst/*">input /macro book 6</register> <register event="Jobchange_bst/*">input //spellcast load bst.xml</register> <register event="jobchange_sam/*">input /macro book 2</register> <register event="Jobchange_sam/*">input //spellcast load sam.xml</register> <register event="jobchange_drg/*">input /macro book 9</register> <register event="Jobchange_drg/*">input //spellcast load drg.xml</register> <register event="jobchange_blu/*">input /macro book 7</register> <register event="Jobchange_blu/*">input //spellcast load blu.xml</register> <register event="jobchange_mnk/*">input /macro book 5</register> <register event="Jobchange_mnk/*">input //spellcast load mnk.xml</register> <register event="jobchange_rng/*">input /macro book 15</register> <register event="Jobchange_rng/*">input //spellcast load rng.xml</register> <register event="jobchange_whm/*">input /macro book 4</register> <register event="Jobchange_whm/*">input //spellcast load whm.xml</register> <register event="jobchange_rdm/*">input /macro book 10</register> <register event="Jobchange_rdm/*">input //spellcast load rdm.xml</register> <register event="jobchange_drk/*">input /macro book 17</register> <register event="Jobchange_drk/*">input //spellcast load drk.xml</register> <register event="jobchange_pld/*">input /macro book 16</register> <register event="Jobchange_pld/*">input //spellcast load pld.xml</register> <register event="jobchange_brd/*">input /macro book 18</register> <register event="Jobchange_brd/*">input //spellcast load brd.xml</register> <register event="jobchange_smn/*">input /macro book 13</register> <register event="Jobchange_smn/*">input //spellcast load smn.xml</register> <register event="jobchange_sch/*">input /macro book 20</register> <register event="Jobchange_sch/*">input //spellcast load sch.xml</register> <register event="jobchange_pup/*">input /macro book 12</register> <register event="Jobchange_pup/*">input //spellcast load pup.xml</register> <register event="jobchange_cor/*">input /macro book 20</register> <register event="Jobchange_cor/*">input //spellcast load cor.xml</register> <register event="jobchange_blm/*">input /macro book 3</register> <register event="Jobchange_blm/*">input //spellcast load blm.xml</register> <register event="jobchange_thf/*">input /macro book 8</register> <register event="Jobchange_thf/*">input //spellcast load thf.xml</register> <register event="jobchange_war/*">input /macro book 11</register> <register event="Jobchange_war/*">input //spellcast load war.xml</register> <register event="jobchange_dnc/*">input /macro book 19</register> <register event="Jobchange_dnc/*">input //spellcast load dnc.xml</register> <register event="hpplt20" silent="true">input /equip head "Twilght helm"; wait 1; input /equip body "Twilight mail"</register> <register silent="true" event="weather_Thunder*">wait 5; input /echo == Thunder ==</register> <register silent="true" event="weather_Ice*">wait 5; input /echo == Ice ==</register> <register silent="true" event="weather_Fire*">wait 5; input /echo == Fire ==</register> <register silent="true" event="weather_Earth*">wait 5; input /echo == Earth ==</register> <register silent="true" event="weather_Wind*">wait 5; input /echo == Wind ==</register> <register silent="true" event="weather_Water*">wait 5; input /echo == Water ==</register> <register silent="true" event="weather_Light*">wait 5; input /echo == Light ==</register> <register silent="true" event="weather_Dark*">wait 5; input /echo == Dark ==</register> <register silent="true" event="weather_Clear*">wait 5; input /echo == Clear ==</register> <register silent="true" event="weather_Fog*">wait 5; input /echo == Fog ==</register> <register silent="true" event="weather_Clouds*">wait 5; input /echo == Cloudy ==</register> <register silent="true" event="weather_Sunshine*">wait 5; input /echo == Sunny ==</register> <register silent="true" event="day_Firesday">wait5; input /echo == Fireday ==</register> <register silent="true" event="day_Earthsday">wait5; input /echo == Earthsday ==</register> <register silent="true" event="day_Watersday">wait5; input /echo == Watersday ==</register> <register silent="true" event="day_Windsday">wait5; input /echo == Windsday ==</register> <register silent="true" event="day_Iceday">wait5; input /echo == Iceday ==</register> <register silent="true" event="day_Lightningday">wait5; input /echo == Lightningday ==</register> <register silent="true" event="day_Lightsday">wait5; input /echo == Lightsday ==</register> <register silent="true" event="day_Darksday">wait5; input /echo == Darksday ==</register> </autoexec> Offline
Posts: 1018
You reloaded the autoexec and you let a mob beat you down until ur hit pts was less than 20% and it failed any error messages???
The trigger should cause those commands to fire and at least should see an error. Its pretty much the same as your reraise wore line pretty much just for hp is the trigger event. Offline
Posts: 1018
Do you have the latest autoexec loaded?
Offline
Posts: 1018
http://wiki.windower.net/display/Windower/Autoexec
hpplt76 hppgt75 Triggers when HP Percent is less than 76% or greater than 75% respectively. Interesting if not working and your lose reraise is working... Can't test while at work will check when I get home something just isn't right... Also it can conflict with another command happening say ur in another action it would require another loss of hp or gain of hp below 20% in order to fire. But an error should be generated.. ok fixed it :
<register event="lowhp|hpp_2*"" silent="true">input /equip head "Twilight helm"; wait 1; input /equip body "Twilight mail"</register> looks like hpplt20 isn't supported on autoexec Offline
Posts: 1018
Cool cool silly coders why have it hpplt and not cover the xx range 0-100... If u change gear after ur hp rises to 30% but less than 40% the lowhp won't fire again so if you take a single hit that takes you below 20 again your gear won't change |hpp_1*|criticalhp to be the safest. I gear swap like mad so use spellcasts and locks and disables for my gear.
Necro Bump Detected!
[314 days between previous and next post]
Offline
Posts: 36
Ok...so after reading this thread, I managed to get the following line to work in autoexec to put my twilight gear on when I get uner 20%hp, but if I take any action that involves a gear swap, spellcast removes them and autoexec doesn't put them back on.
<register event="lowhp|hpp_2*"" silent="false">input /equip head "Twilight helm"; input /equip body "Twilight mail"</register> What I'd like to add is a line to prevent spellcast from swapping them afterward. I attempted to use the bolded lines below to lock them on when my hp was below 20%, but it doesn't seem to be working. Any help would be appreciated. I've omitted the equipment sets segment of my spellcast, but left all of the rules intact. (I don't want this turning into a gear selection discussion.) <rules> <!-- Weaponskill Rules --> <if spell="Resolution"> <action type="equip" when="precast" set="Resolution" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Entropy"> <action type="equip" when="precast" set="Entropy" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Crescent Moon|Hard Slash|Vorpal Scythe|Slice|Vorpal Blade|Circle Blade|Flat Blade|Fell Cleave|Raging Rush|Keen Edge|Sturmwind|Iron Tempest"> <action type="equip" when="precast" set="StrengthWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Herculean Slash|Ground Strike|Spinning Slash|Freezebite|Frostbite|Insurgency|Infernal Scythe|Spiral Hell|Shadow of Death|Dark Harvest|Red Lotus Blade|Burning Blade"> <action type="equip" when="precast" set="StrIntWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Sickle Moon"> <action type="equip" when="precast" set="StrAgiWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Shockwave|Cross Reaper|Guillotine|Nightmare Scythe|Sanguine Blade|Savage Blade|Seraph Blade|Shining Blade"> <action type="equip" when="precast" set="StrMndWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Power Slash|Steel Cyclone|Full Break|Weapon Break|Armor Break|Shield Break"> <action type="equip" when="precast" set="StrVitWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Requiescat"> <action type="equip" when="precast" set="Requiescat" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Fast Blade"> <action type="equip" when="precast" set="StrDexWS" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <if spell="Upheaval"> <action type="equip" when="precast" set="Upheaval" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> <!-- Spell Rules --> <if type="*Magic"> <equip when="precast" set="Fastcastset" /> <if skill="DarkMagic"> <equip when="midcast" set="DarkMagicset" /> </if> <if skill="ElementalMagic"> <equip when="midcast" set="ElementalMagicset" /> </if> </if> <!-- Utility Rules --> <if HPPLT="20"> <head lock="t">Twilight Helm</head> <body lock="t">Twilight Mail</body> </if> <if spell="Nether Void"> <action type="equip" when="precast" set="Nether Void" /> </if> <if spell="*Waltz*"> <action type="equip" when="precast" set="Waltz" /> </if> <if status = "dead"> <cancelspell/> <return/> </if> <if BuffActive="Sleep|Petrification|Stun|Terror|Charm"> <return/> </if> <if Type="*Magic|BardSong|Ninjutsu" BuffActive="Silence"> <return/> </if> <if Type="Weaponskill|JobAbility|PetCommand" BuffActive="Amnesia"> <cancelspell/> <return/> </if> <if status="idle"> <equip when="idle|aftercast" set="Idle" /> </if> <if status="resting"> <equip when="resting" set="Resting"/> </if> <if Status="Engaged"> <equip When="engaged|aftercast" Set="StoreTP" /> <if BuffActive="Aftermath"> <equip when="engaged|aftercast" set="Aftermathset"/> </if> <if BuffActive="Voidwatcher"> <equip when="engaged|aftercast" set="VWStoreTP"/> </if> </if> <if type="Weaponskill"> <if SpellTargetDistanceGT="5.0"> <addtochat color="121">Target out of range!!</addtochat> <cancelspell /> <return /> </if> <if tplt="100"> <addtochat color="121">Not enough TP!!</addtochat> <cancelspell /> <return /> </if> </if> </rules> </spellcast> (My spellcast is a bit of a Frankenstein job. Bits taken from various sources) Leviathan.Dwb
Offline
I am far from a SC expert, but try putting it with other gearswap rules? IE in WS rules
Code <if spell="Upheaval"> <action type="equip" when="precast" set="Upheaval" /> <elseif HPPLT="95"> <equip><body lock="yes">Twilight Mail</body></equip> <equip><head lock="yes">Twilight Helm</body></equip> </elseif> <action type="equip" when="aftercast" set="StoreTP" /> <elseif HPPLT="95"> <equip><body lock="yes">Twilight Mail</body></equip> <equip><head lock="yes">Twilight Helm</body></equip> </elseif> </if> Like i said, im far from a pro, but this MAY??? work. It atleast makes sence to me to work lol, but not sure if it will even compile Offline
Posts: 36
The code above wouldn't compile, so I tried a couple of similar things, including putting the segment into my WS rule, but it still didn't work.
Code <if spell="Upheaval"> <if HPPLT="20"> <head lock="yes">Twilight Helm</head> <body lock="yes">Twilight Mail</body> </if> <action type="equip" when="precast" set="Upheaval" /> <action type="equip" when="aftercast" set="StoreTP" /> </if> Code <if type="Weaponskill"> <if HPPLT="20"> <head lock="yes">Twilight Helm</head> <body lock="yes">Twilight Mail</body> </if> <if SpellTargetDistanceGT="5.0"> <addtochat color="121">Target out of range!!</addtochat> <cancelspell /> <return /> </if> <if tplt="100"> <addtochat color="121">Not enough TP!!</addtochat> <cancelspell /> <return /> </if> </if> probably not what you would want at all but i find it easier to make a toggle for it in spellcast
<var name="TWILIGHTGEAR">0</var> (in var section)
<if spell="Stone V"> <if advanced='"$TWILIGHTGEAR" = "0"'> <addtochat color="28">--------------------Twilight Set LOCKED--------------------</addtochat> <command>input /equip head "Twilight Helm";input /equip body "Twilight Mail"</command> <disable slot="head|body" /> <var cmd="set TWILIGHTGEAR 1" /> <cancelspell /> </if> <elseif advanced='"$TWILIGHTGEAR" = "1"'> <addtochat color="56">--------------------Twilight Set UNLOCKED-----------------</addtochat> <enable slot="head|body" /> <var cmd="set TWILIGHTGEAR 0" /> <if status="Idle"> <command>sc set BSTidle</command> </if> <elseif status="Engaged"> <command>sc set BSTengaged</command> </elseif> <cancelspell /> </elseif> (in if section) this is what i use for bst for example Offline
Posts: 36
I wasn't sure how to use that in Spellcast, but I was able to derive an idea from it and it seems to work. The only problem (and it's pretty minor) is that when you take an action with HP above the threshold, it unlocks for actions after that, but for that action itself, the Twilight set is still locked in place. So...here's what I have:
Autoexec: Code <register event="lowhp|hpp_1*"" silent="false">input /equip head "Twilight helm"; input /equip body "Twilight mail"</register> This puts my Twilight set on automatically anytime my HP gets below 20%. Spellcast: Code <if HPPLT="20"> <addtochat color="121">HP Low - Twilight Set Locked</addtochat> <disable slot="head|body" /> </if> <if HPPGT="19"> <enable slot="head|body" /> </if> This segment prevents Spellcast from swapping the Twilight set when HP is below 20% and announces that it is locked. The next idea I have is to see if it can be put into Autoexec in some form to do the lock toggle automatically, which would ideally alleviate the delayed unlock. I'm not certain how to make Autoexec do that though (if it's even possible). Here is how I handle it, adjust the hp as you see fit. I avoid disables for that reason.
Code <!-- Auto Zombie Code! --> <if mode="OR" BuffActive="Weakness" HPLT="200"> <addtochat color="121">Twilight Set Locked - Zombie Away!</addtochat <equip when="idle|engaged|precast|midcast|aftercast"> <head lock="yes">Twilight Helm</head> <body lock="yes">Twilight Mail</body> </equip> </if> |
|
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|