bob_the_builder
Well-Known Member
Inquisitor seems to use more mana then needed. So I debugged using 'eq2execute /p Casting xxx'
I found that during cures the bot casts a heal also regardless of health.
Having issue with this function:
The problem seems to be were my ';' comments are:
It reports ${Me.Group[${gMember}].Health} as being < 50 ... From what I can tell it reports as NULL.
Anyone able to confirm that ${Me.Group[${gMember}].Health} works or if I am seeing something else in the script.
ty in adv.
Bob
I found that during cures the bot casts a heal also regardless of health.
Having issue with this function:
Code:
function CureGroupMember(int gMember)
{
declare tmpcure int local
tmpcure:Set[0]
do
{
call CheckGroupHealth 30
if !${Return}
{
eq2execute /p Casting ${SpellType[10]}
call CastSpellRange 10
}
;if ${Me.Group[${gMember}].Health}<50 && ${Me.Group[${gMember}].Health}>-99
;{
; eq2execute /p Casting ${SpellType[4]} while trying to cure
; call CastSpellRange 4 0 0 0 ${Me.Group[${gMember}].ID}
;}
if ${Me.Group[${gMember}].Arcane}>0
{
call CastSpellRange 326
wait 5
if ${Me.Group[${gMember}].Arcane}>0
{
eq2execute /p Casting ${SpellType[210]}
call CastSpellRange 210 0 0 0 ${Me.Group[${gMember}].ID}
}
}
if ${Me.Group[${gMember}].Noxious}>0
{
call CastSpellRange 213 0 0 0 ${Me.Group[${gMember}].ID}
}
if ${Me.Group[${gMember}].Elemental}>0
{
call CastSpellRange 211 0 0 0 ${Me.Group[${gMember}].ID}
}
if ${Me.Group[${gMember}].Trauma}>0
{
eq2execute /p Casting ${SpellType[212]}
call CastSpellRange 212 0 0 0 ${Me.Group[${gMember}].ID}
}
}
while ${Me.Group[${gMember}].IsAfflicted} && ${CureMode} && ${tmpcure:Inc}<3 && ${Me.Group[${gMember}].ToActor(exists)}
}
Code:
;if ${Me.Group[${gMember}].Health}<50 && ${Me.Group[${gMember}].Health}>-99
;{
; eq2execute /p Casting ${SpellType[4]} while trying to cure
; call CastSpellRange 4 0 0 0 ${Me.Group[${gMember}].ID}
;}
Anyone able to confirm that ${Me.Group[${gMember}].Health} works or if I am seeing something else in the script.
ty in adv.
Bob
Last edited: