• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Better Evac Subroutine?

Joined
Jun 14, 2017
RedCents
1,962¢
#1
Hi,
I have been trying to tinker with a macro that didnt have evac set up. I got everything set to trigger the sub routine. I am guessing that with my limited knowledge it is probably a bit clunky but seems to work under normal circumstances of when the Tank dies the Wiz will cast evac. However, I ran into a situation yesterday where when trying to /pick my group, the Wiz cast evac after the /pick. I am guessing that the Tank must have picked after the Wiz so when the Wiz loaded in the new pick it cast evac. Then to make matters worse, the Tank crashed and the Wiz just started chain casting evac. I know this situation isn't going to come up often and the work around is to pause the Macro before picking or zoning. But it did get me thinking that there is probably a better way to define the sub routine. I have looked around but have failed to find anything that would help. For instance, is there a way to get the evac to only fire once and then stop? Or maybe have a 20 min timer or some more clever way to keep the sub routine from going into a chain casting situation? Here is what I have so far:

|----------------------------------------------------------------------------
|- SUB: Evac
|----------------------------------------------------------------------------
Sub Evac
/if (${Group.Member[${assistname}].PctHPs} < 1) {
/call CastSpell "${EvacSpell}"
}
/return

Any direct help or a link to a reference or example of a better working evac would be appreciated. I am learning this stuff by looking through the forums for situations close to mine and then through trial and error getting them to work for my toons. There has been a lot of the error but have had some successes. Then every once in a while I get something like this that sort of works but can't figure out how to tweak it further. Thanks for any insight, AnotherJohn
 
You could look for the MA's corpse instead of his HP's to be under 1%. Then set an outer bool for having evac'd until the tank either no longer has a corpse as an option.
Code:
Before main loop /declare Evaced bool outer FALSE

Then in your routine
Code:
/if (!${Evaced} && ${Spawn[pccorpse ${assistname}].ID}) {
    /varset Evaced TRUE
    /call CastSpell "${EvacSpell}"
    /return
}
/if (${Evaced} && !${Spawn[pccorpse ${assistname}].ID}) {
    /varset Evaced FALSE
    /return
}

Just a though without much insight to the full scope of the macro.
 
CWTN,
This is exactly what I need. Something that is still out of my knowledge range. I did what I did because it was all I could piece together with what I could find to work with. I will tinker with this new info you have given me and see what I can come up with. Working on this new information will increase my knowledge and I will post again if I hit a dead end. It helps to have a working example to see what definitions work, I had not seen ${Spawn[pccorpse ${assistname}].ID} before so something new to play with.

Thank you for the input, AnotherJohn
 
Here's a link to the TLO wiki entry for Macroquest2. The mothership is still a good place to dock and fuel up your brain.

https://www.redguides.com/docs/tlos/

That link takes you to the list of Top Level Objects (IE: ${Spawn, ${Me, ${Spell etc, where each one has Members of that Top Level Object that you can then access, Click on the one you want to know more about, and it should list it's members and their uses, as well as any inherited types that you can use to access more information on.

Example
${Spawn[spawn search info here].MemberOfSpawn}

So if you want to know about spawn TLO you can click on that one to get to

https://www.redguides.com/docs/projects/macroquest/reference/top-level-objects/tlo-spawn/

Which then tells you the usage of it, Access to Types "spawn" and if you click on that it shows you all members of Spawn.
Additionally, it has a link to the list of spawn search options.
 
CWTN,

Thanks for the wiki link. I need to go back to this now that I have learned the small amount that I have. I looked at it months ago trying to figure something out and I couldn't make heads or tails of it. Now in looking at it I actually understand some of what it is trying to teach me. I need to spend some time studying it and see if I can get more out of it this time. Looks like a good place to start the next time I get stuck. Appreciate the feedback, AnotherJohn
 
Question - Better Evac Subroutine?

Users who are viewing this thread

Back
Top
Cart