• 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

Help with a (supposedly) basic Shammy macro

Borys212

New member
I copied this code from another macro. This subroutine is supposed to cycle through the group, check their class, and if they're a melee cast Spritit of the Puma on them. The code is entering the loop when called, but its not doing anything else. It just returns to the sub that called it.

Any thoughts on why this isn't working?

Thanks so much.

Rich (BB code):
/declare MyMob int local 
/varset MyMob ${Target.ID} 
/declare x int local
/for x 1 to {Group.Members}
      /if (${Group.Member[${i}].ID}) {
	/if (${Select[${Group.Member[${i}].Class.ShortName},WAR,MNK,ROG,RNG,BST,SHD,PAL,BER,BRD]}) {
 	     /squelch /target id ${Spawn[${Group.Member[${i}]}].ID}
	     /delay 5 ${Target.ID}==${Spawn[${Group.Member[${i}]}].ID}
	     /call cast "${Me.Gem[4]}"
	}
      }
/next x
/target id ${MyMob} 
/return
 
You're missing a dollar sign.

Rich (BB code):
/for x 1 to {Group.Members}
Rich (BB code):
/for x 1 to ${Group.Members}
 
Thanks so much for replying Alatyami. It's always the most obvious mistakes...

I plugged this in expecting everything to do fine, but it still won't target the group members. I think it has something to do with the way that character names have changed for the spam flagging. Right now I'm doing it the heard way and hard-coded the names of the group members with whom I group regularly plus mercs, so I cycle through and hit them, but it does seem like such a waste.

If anyone else has this problem and has a fix, please let me know. It would be nice to know that my buffs get spread out the way they ought to without having to tab back and forth between toons.
 
Ummmm

you declared x but have ${i} as your variable so nothing is looping. Change the x to i

/declare x int local
/for x

Rich (BB code):
/declare MyMob int local 
/varset MyMob ${Target.ID} 
/declare i int local
/for i 1 to ${Group.Members}
      /if (${Group.Member[${i}].ID}) {
	/if (${Select[${Group.Member[${i}].Class.ShortName},WAR,MNK,ROG,RNG,BST,SHD,PAL,BER,BRD]}) {
 	     /squelch /target id ${Spawn[${Group.Member[${i}]}].ID}
	     /delay 5 ${Target.ID}==${Spawn[${Group.Member[${i}]}].ID}
	     /call cast "${Me.Gem[4]}"
	}
      }
/next i
/target id ${MyMob} 

/return
 
Help with a (supposedly) basic Shammy macro

Users who are viewing this thread

Back
Top
Cart