• 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

annoyingly simple command i cant figure out

ss44

Active member
i have set up a stupid little open area melee mac, but it keeps wanting to target/kill guards. what is the command to set a specific level to avoid? I thought it was something like:
/if (${Target.level}>=15) /call doit

but that didnt work. I tried using the search but it wasnt pulling anything up, and I didnt see anything in macros.

Thanks!
 
/if (${Target.Level}>15 || ${Target.Level}<15) /call doit

that would ignore lvl 15 only

or yours would work if you capitalized the L on level.
/if (${Target.Level}>=15) /call doit
assuming the levels you are wanting to avoid are lvl 14 and lower.
 
Here is the macro I am working with, it is a macro that I found and have done some messy changes. Im sure someone can clean it up real fast, if someone could do that.

Pick any mob in a radius
make sure that mob is under a certain level
make sure that mob is NOT being attacked by another character
kill mob
check health
start over.

Rich (BB code):
#event win "#*#You gain experience!!#*#"

Sub Main
/call doit

Sub Event_win
/call doit
/return 

Sub Doit
/doevents
/if (${Spawn[gm].ID}) /q
/if (${Me.PctHPs}<=30) /call heal
/if (${Target.ID}==FALSE) /tar NPC radius 220  
/if (${Target.Distance}>220) /keypress esc  
/if (${Target.PctHPs}<=99) {
/delay 1s
/sit
/delay 1s
/keypress esc
/delay .5s
/call attacked
}
/if (${Target.lvl}>=15) /call doit
/if (${Target.ID}) /call kill
/return

Sub *move*
/face
/keypress back hold
/delay .5s
/keypress up
/stick 7
/attack on
/call kill
/return

Sub kill
/delay .5s
/if (${Target.PctHPs}<=99) {
/delay 1s
/sit
/delay 1s
/keypress esc
/delay .5s
/call attacked
}
/stick 7
/if (${Target.PctHPs}<=99) {
/delay 1s
/sit
/delay 1s
/keypress esc
/delay .5s
/call attacked
}
/attack on
:combatstart
/doevents
/if (${Target.Type.Equal[Corpse]}) /keypress esc
/goto :combatstart
/call wait
/return

Sub attacked
/delay 1s
/attack off
/delay 1s
/keypress back
/keypress back
/delay .5s
/call doit
/return


Sub wait
/if (${Me.PctHPs}<12) {
/call heal
}
/doevents
/if (${Target.ID}) /call kill
/return

Sub heal
/if (${Me.PctHPs}>80) /call doit
/if (${Me.PctHPs}<=80) {
/sit
/delay 10s
/call heal
}
/return
 
This seems to be your problem
Rich (BB code):
/if (${Target.lvl}>=15) /call doit
as it should be
Rich (BB code):
/if (${Target.Level}>=15) /call doit
Although that is looking for things equal to or above level 15. If you want equal to or lower than change >= to <= and if you want just lower than 15 change >= to <
 
annoyingly simple command i cant figure out

Users who are viewing this thread

Back
Top
Cart