• 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
LoSafe - Line of Sight safe

Utility LoSafe - Line of Sight safe 1.0

Server Type
🏢 Live
Basic Lua script to move your character(s) out of Line of Sight of the target. I was working to implement this into Lua BARF and figured if it can be of use to others, then just load it up for everyone to access and butchered as desired.

To run this just type /lua run losafe

The script will do its thing based upon the target. I've only tested this with stationary NPC targets, so you may need to make adaptations to suit your specific use case. Right now it is set at a range of +/- 60 on the x/y, and +/- 20 on the z axis.

If you want to change the x/y and z axis, start the script with your command line arguments via, for example, /lua run losafe 100 10 to expand the search to +/- 100 x/y and reduce to +/- 10 z.

This script will determine Target.X, Target.Y, and Target.Z to establish the baseline, then generate potential offset coordinates in increments of 7.5 (so as not to melt your performance... Adjust this directly within the Lua if you need further refinement). Once it has that table established, it will first prune it down based upon which locations EverQuest determines are valid locations, then it will further reduce the list based upon which of those coordinates are NOT in Line of Sight of the target. Finally, it will run one more check of the remaining coordinates and remove any that MQ2Nav deems are not navigable.

Once the pruned table is constructed, it will rank coordinates by shortest to longest path length (from the character's current /loc) and attempt to navigate your character to the nearest identified safe location. If, at any time, the character travels through an area that does not have Line of Sight of the target, it will immediately stop the character there and consider the mission accomplished.

Enjoy... Maybe.
Author
DudeBro
Watchers
16
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from DudeBro

Share this resource

Back
Top
Cart