How to retrieve an "incrementing" prestige ability's current increment count from maintained datatyp

mistahmikey

Active Member
Topic says it all. Took a look at the "maintained" datatype on isxeq2, but the current increment count doesn't appear to be there. Can someone enlighten me how this info can be retrieved? I assume it must be possible, since Kannkor provides the MAX INCREMENT feature. I have submitted a couple of requests to add features to Ogre that are related to this count, but I figure while I wait for them to bubble up the priority list, I would take a shot at scripting the features myself.

Thanks.
 

Rodent

Member
I think it's the same way you get the triggers on a spell (Hostage, Prismatic, Death Saves, whatnot), but I could be wrong.
 

mistahmikey

Active Member
Don't know anything about that. Could you provide a code snippet that demonstrate what you are talking about?

Thanks.
 

mistahmikey

Active Member
Ok, after doing a lot more digging, I think this might be it:

${EQ2DataSourceContainer[GameData].GetDynamicData[Maintained.Spell_${SpellNumber}.StackCount].ShortLabel}

Looks like you have to search the maintained spell data for the specific spell using

${EQ2DataSourceContainer[GameData].GetDynamicData[Maintained.Spell_${SpellNumber}.Name].ShortLabel}

where ${SpellNumber} can range from 1-30

Is there some reason this info (StackCount) is not provided by the Maintained datatype?
 

macker0407

Active Member
November 13, 2012 -- By Amadeus
[20121113.0023]
* Added new a MEMBER to the 'effect' and 'maintained' datatypes:
1. CurrentIncrements (int type)
Learn to either read the changelog or use LSType from the console.
 

mistahmikey

Active Member
Thanks for your input, kind sir. Based on this, attached is the script I created for my bruiser to cast "Battering Onslaught" whenever "Pulverize" has 5 increments. You can run it from the console and forget it if you want, but you can stop it whenever you like using endscript. As a bonus, I also attached a script that causes my bruiser run though its snap spells until it regains agro - just attach it to an MCP button for one-click agro management. Its a bit hard-wired, particularly wrt the spell recast and recovery times (in the past, I found using the dynamic gamedata to get spell recast and recovery times to provide randomly spurious results), so you may want to modify it to suit your situation.

Oh, and you will need to rename OgrePauseResume.iss to OgrePauseResume.inc - the uploader didn't like the ".inc" extension for some reason.
 

Attachments

Top Bottom