Oh yeah thats right, whenever I did java in high school I always liked bracketing my if's instead of just one line following, forgot it was just one line. Did you think he meant the lines on my previous uploaded routine or the SVN routine?
Ok so I didnt have too much time a few hours ago but I changed out the coding from my previous uploaded version with the suggestions, and fixed the brackets, but still wont heal.
This is where I'm at now (uploaded)
I was looking at
PetToHeal:Set[${Me.Group[${temphl}].ToActor.Pet.ID}
I felt like the bracket at the end of that statement should be followed by a ] but its the same in the mystic script so i'm missing something logic wise
I also did an echo for the boolean
if ${Me.Group[${temphl}].Class.Equal[conjuror]} || ${Me.Group[${temphl}].Class.Equal[necromancer]}
{
Echo ${Me.Group[${temphl}].Class.Equal[conjuror]}
if ${Me.Group[${temphl}].ToActor.Pet.Health}<85 && ${Me.Group[${temphl}].ToActor.Pet.Health}>0
{
PetToHeal:Set[${Me.Group[${temphl}].ToActor.Pet.ID}]
}
}
and it spammed TRUE..
So I did a
if ${Me.Group[${temphl}].Class.Equal[conjuror]} || ${Me.Group[${temphl}].Class.Equal[necromancer]}
{
if ${Me.Group[${temphl}].ToActor.Pet.Health}<85 && ${Me.Group[${temphl}].ToActor.Pet.Health}>0
{
PetToHeal:Set[${Me.Group[${temphl}].ToActor.Pet.ID}
Echo Pet Heal Set
}
}
And it echo'd... but didnt heal.. so I went and looked at
;PET HEALS
if ${PetToHeal} && ${Actor[${PetToHeal}](exists)}
{
if ${Actor[${PetToHeal}].InCombatMode}
call CastSpellRange 7 0 0 0 ${PetToHeal}
else
call CastSpellRange 1 0 0 0 ${PetToHeal}
}
And I'm wondering if its something to do with the fact that, that is copied straight from mystic I figured castspellrange might be the wrong spells..?
So I changed it to
;PET HEALS
if ${PetToHeal} && ${Actor[${PetToHeal}](exists)}
{
if ${Actor[${PetToHeal}].InCombatMode}
call CastSpellRange 4 0 0 0 ${PetToHeal}
else
call CastSpellRange 1 0 0 0 ${PetToHeal}
}
Using the coding from main tank heals, but the only thing that changed really was the 7 in the first CastSpellRange to a 4, but thats spellrange.. and even then its not healing the pet still! So where should I be looking, or can someone fix it what I'm missing?
I uploaded the latest.. not sure where I should be echoing or whatever, I figure if the first pettoheal coding is working on the echo's saying true etc and then if the 2nd set of pet to heal coding (the last few quotes) is the same as the mystics, then why wont it castspell?
I see there's a
if ${Me.ToActor.Pet.Health}<60
PetToHeal:Set[${Me.ToActor.Pet.ID}]
In the mystic script that isnt in the inquis, but isnt that for its own pet? hmmph
I'm setting the pet as the main tank by the way, and from doing all this coding it seems that the pettoheal coding is separate from main tank heals coding, so if I have the maintank set as the pet, why wont it just carry out the maintank heals coding onto the pet? Like I said it seems like even if I had a real tank in the group, the purpose of the pettoheal coding is to just heal the pet no matter if its tanking or not, correct? I mean as long as somehow it manages to heal the damn thing I'll be happy.