• 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

Plugin Request (1 Viewer)

LordMage

New member
I'm looking for a plugin that will notify me if someone zones in to a zone. Or possibly a macro line I can add in to another macro
 
Rich (BB code):
Sub Main
 /declare PCCounter int outer  ${SpawnCount[PC]}

:Loop
/if (${SpawnCount[PC]}>${PCCounter}) {
   /popup Someone just zoned in!
} else {
  /varset PCCounter int outer  ${SpawnCount[PC]}
}
/delay 5
/goto :Loop

/return
 
Wouldn't you want to take out that else statement, so that once it tells you that somebody zones in, it'll set the PCCounter as the new number of people in the zone? The way you have it now, if somebody zones in, I don't think that it will change the PCCounter value. As a result, PCCounter will continue to be 1 less than ${SpawnCount[PC]}, and will keep giving you the popup that somebody just zoned in until somebody zones out and these two values are equal.

I've done a bit of programming, but am new to plugins, so if my logic is wrong here, please let me know where. I'm trying to get the hang of it, but will take some time and practice.
 
Logic is correct, my concept is to normally exit the macro processing on key events. The throw together using "popup" was just an example of where to place the handling.

My bad for not clarifying the intent :)
 
Ok well

Sub Main
/declare PCCounter int outer ${SpawnCount[PC]}

:Loop
/if (${SpawnCount[PC]}>${PCCounter}) {
/popup Someone just zoned in!
/beep
/varset PCCounter int outer ${SpawnCount[PC]}
}
/delay 5
/goto :Loop

/return


works now, but I need to get it to work with another macro,

here is the other macro

Sub Main
:loop
/disc
/doability
/delay
/kiss
}

/goto :loop
 
Quick and easy, not complete. This is just an outline, fine tune it for your needs (disclaimer over)

Rich (BB code):
Sub PCInZoneCheck
  /if (!${Defined[PCCounter]}) /declare PCCounter int outer ${SpawnCount[PC]}

  /if (${SpawnCount[PC]}>${PCCounter}) {
      /call <whatever handler sub you want>
      /beep
  }
  /varset PCCounter ${SpawnCount[PC]}
  /delay 5
/return

Use where ya want by adding "/call PCInZoneCheck"
 
Plugin Request

Users who are viewing this thread

Back
Top
Cart