• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Request - heal group pets....

janktron

Member
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}]

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!
 
Request - heal group pets....

Users who are viewing this thread

Back
Top
Cart