• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - heal group pets....

janktron

Member
Joined
Sep 25, 2015
RedCents
761¢
anyway to make this heal your pet only? having issues with my shammy and druid healing cleric hammers and wizard swords =|
 
Find this line around num 3537 ish
Rich (BB code):
/if (${HealGroupPetsOn} && ${Group.Member[${i}].Pet.ID}>0 && ${Group.Member[${i}].Pet.PctHPs} < ${MostHurtHP}) {
replace it with this line
Rich (BB code):
/if (${HealGroupPetsOn} && ${Select[${Group.Member[${i}].Class.Name},cleric,wizard]}==0 && ${Group.Member[${i}].Pet.ID}>0 && ${Group.Member[${i}].Pet.PctHPs} < ${MostHurtHP}) {
 
sorry if this is a silly question.... can I please get an explanation of what the following is doing?

Rich (BB code):
[${i}]
 
sorry if this is a silly question.... can I please get an explanation of what the following is doing?

Rich (BB code):
[${i}]

You are not going to like the answer as it will be more confusing than the question. ${i} is a variable used to enumerate a collection, in this case, an array.

Rich (BB code):
${Group.Member[${i}]}

In short, in layman's terms, it is going thru the various members of your group, one by one, and i represents the individual and specific member in the iteration of the group.
 
so its the Check health sub rhiza if you scroll up a few lines from where he told you to make the change,

Rich (BB code):
        /declare i                  int         local       0
Right there he declares an interger I


Then he has like a forloop its a loop in code that loops around

Rich (BB code):
/for i 0 to ${Group}
                   /if (${Select[${HealsOn},2]} && ${Select[${Spawn[${MainAssist} ${MainAssistType}].ID},${Group.Member[${i}].ID},${Group.Member[${i}].Pet.ID}]}>0) /goto :NextGMember

inside the loop its looking for the groupmember's health where groupmember = i

So the loop works off the integer named i that he declared earlier in the code then you see the /goto :nextgmember there

Which makes it jump here
Rich (BB code):
:NextGMember
                /next i
which moves i up one I think next i is the same as i=i+1

right after this there's a } which is the end of the for loop code execution so it jumps back to the top of the loop to see if it's done the loop yet.

In short i is the group member number within the loop

- - - Updated - - -

Aww, I type too slow, Incognito beat me!
 
awesome thanks for the explanation guys. i figured it was some kind of way to identify group members i just couldn't work out how.
 
Request - heal group pets....

Users who are viewing this thread

Back
Top
Cart