I have provided in the attached zip file a basic Skill configuration tool and the LUA to parse it and cast a skill based off of those configurations.
The skill cast accounts for Enemy, Player, Pet health, mana and rage. Gives you an option to specify mins and max's of when to cast the spells. Tracks Cooldown timers, GDC's, and a load of other information.
The XML skill structure:
Code: Select all
<Skill name="NourishSphere"> -- Self explanitory.
<Enabled>True</Enabled> -- Self explanitory.
<CoolDownSecs>1800</CoolDownSecs> -- Time in seconds to when this skill can be cast again.
<CastTime>0</CastTime> -- time in miliseconds to cast the skill.
<Priority>0</Priority> -- Higher the number, the higher the priority.
<Vkey>VK_6</Vkey> -- Self explanitory.
<KeyModifyer></KeyModifyer> -- Self explanitory.
<States> -- There are 3 states a skill can be cast, Attack, Buf, Rest. Specify what states you want this skill cast in.
<State>Attack</State>
<State>Buf</State>
</States>
<CastBelowHealth>1</CastBelowHealth> -- Range 0 to 1
<CastBelowMana>1</CastBelowMana> -- Range 0 to 1
<CastBelowRage>1</CastBelowRage> -- Range 0 to 1
<CastAboveHealth>0</CastAboveHealth> -- Range 0 to 1
<CastAboveMana>0</CastAboveMana> -- Range 0 to 1
<CastAboveRage>0</CastAboveRage> -- Range 0 to 1
<CastBelowTargetHealth>1</CastBelowTargetHealth> -- Range 0 to 1
<CastAboveTargetHealth>0</CastAboveTargetHealth> -- Range 0 to 1
<CausesGDC>1000</CausesGDC> -- How much time does this skill add to the GDC? in seconds.
<ObeysGDC>True</ObeysGDC> -- Can you cast this skill even during GDC, of so, ObeysGDC = false.
<Channeled>False</Channeled> -- Is this skill cast > 0 seconds and can it fail being cast. If so, set this to true and CastTime > 0
<CastBelowPetHealth>1</CastBelowPetHealth> -- Range 0 to 1
<CastAbovePetHealth>0</CastAbovePetHealth> -- Range 0 to 1
<SelfCast>False</SelfCast> -- Does the bot need target himself.
<TargetBuf hasnot="False"></TargetBuf> -- NI - but, Cast if target has, or cast if target doesnt have this buf.
<PlayerBuf hasnot="False"></PlayerBuf> -- NI - but, Cast if target has, or cast if target doesnt have this buf.
</Skill>
The configuration XML supports multiple players and skills.
I hope someone can make use of this. I'd upload my whole bot but I am struggling on some memory address's forcing me frequently CE them again.