Not really a help request, but something similar. As opposed to most people here, I have only played WoW for maybe... <50 hours..i haven't even played half of the classes, most not further than lvl 10 (As I am unemployed atm, I don't have $$ for an account). So my question is (in general) how are you guys handling the different wow spells? For example, some attack spells shouldn't be used unless #Attackers >1 (WarStomp, for example), some burn spells shouldn't be used unless a prior burn spell was cast (I forget the names), some you must be *behind* the target, etc..so I was wondering what types of properties you guys keep for spells? Currently (embarrassingly..) I must create an 'Attack Spell File' ..this works for very basic attacks..the only real requirements are that the mob be in range! Which is working for my low-level hunter, but as soon as I try to use a 60 paly (...again, because I haven't played enough..I really just don't know enough about the sub. material) it's going to fail miserably -- so I kinda thought there must be two ways, hardcode ALL wow spells into the bot (or some .xml file), but that's a lot of work..especially since I'll probably never use some of the classes/spells. So my second idea was, just make the user create .xml files including all the attacks they want to use -- but, I need to give them more properties. Min/Max Range & MinNumAttackers will NOT be enough.
Code:
Public Class wowAttackSpell
Inherits wowSpell
Private _minRange As Int32 = 0
Private _maxRange As Int32 = 0
Private _minNumOfAttackers As Int32 = 0
... 'public properties'...
Public Overloads Function IsReady(ByVal target As objMgrUnitObject) As Boolean
If MyBase.IsReady() = False Then Return False
Dim dist As Single = GPS.DistanceFromLocalPlayer(target.PosAsWorldPoint)
If dist >= _minRange And dist <= _maxRange Then
If LocalPlayer.NumberOfAttackers >= _minNumOfAttackers Then
Return True
Else
Return False
End If
Else
Return False
End If
End Function
again, not looking for code, just wondering what type of properties you guys give the spells (example: minDamange, maxDamage, etc..) (because AttackSpell inherits from basicSpell, it has a few other properties like 'key', manacost, etc. Still need more for my IsSpellReader() tho.. any ideas.