• 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
Resource icon

Trade / Skill Not-So-Quick Spell/Disc Checker

So I found myself needing to check what spells/discs I need to buy on my crew so I whipped this up. It's slow AF because the TLO's exposed do a lot of unnecessary loops (for this application), but it works in an appropriate amount of time. It will only look at base spells, so if you have any rank at all of a spell, it won't be missing.

Rich (BB code):
Sub Main
    /declare i int
    /declare CheckName string local
  
    | This is kind of hacky, but as of 06/23/2018 59999 is the highest ID in spell_us.txt
    /for i 1 to 60000
        | Deity is available in the struct, but not exposed to macros, have to live with it for now
        | This works because unknown spells have level of 255
        /if (${Spell[${i}].Level} > ${Me.Level} || ${Spell[${i}].Rank} > 1) /next i
      
        | I know here that the spell is real and I should have it.
        /varset CheckName ${Spell[${Spell[${i}].ID}].RankName}
      
        /if (!${CheckName.Equal[NULL]}) {
            /if (${Me.Book[${CheckName}]} == NULL) {
                /echo \arMissing Spell \ax-- \at${CheckName} \ax-- \aoLevel: ${Spell[${i}].Level}
            }
          
            /if (${Me.CombatAbility[${CheckName}]} == NULL) {
                /echo \arMissing Disc \ax-- \at${CheckName} \ax-- \aoLevel: ${Spell[${i}].Level}
            }
        }
    /next i
/return
Author
dannuic
Watchers
9
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from dannuic

Share this resource

Back
Top
Cart