• 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

DI Emerald Check Issue

Any clue why this wouldn't work? Removed all my emeralds from cleric and it still tries to cast it.

Rich (BB code):
[AB5]
Gem=13
Spell=Divine Imposition
DurMod=120
SpellAlias=di
Announce=
SpellMinMana=10
TarCnt=1
TarType=war pal shd
Recast=FALSE
SpellFoci=
SpellIcon=
PreCondition=/if ({FindItem[=Emerald].ID}) /return TRUE

Testing /echo (${FindItem[=Emerald].ID}) returns (NULL)
 
Well if you are testing /echo (${FindItem[=Emerald].ID}) and it returns NULL, it means you have none.

Also kaen you are missing a ) there.

Either way, the original should work... NULL means it can't find any Emerald's, ie it doesn't have an ID to return

In saying that, as kaen has said >1 is useful , as for higher level spells it 'consumes a pair of emeralds' so it needs at least 2.. ie >1
 
I changed it to:

Rich (BB code):
[AB5]
Gem=13
Spell=Divine Imposition
DurMod=120
SpellAlias=di
Announce=
SpellMinMana=10
TarCnt=1
TarType=war pal shd
Recast=FALSE
SpellFoci=
SpellIcon=
PreCondition=/if ({FindItemCount[=Emerald]>1}) /return TRUE

Still attempts to cast with no Emeralds in inventory. It's still the case with MB you don't use the $ in the conditions?
 
>1 goes on the outside of the bracket
Rich (BB code):
PreCondition=/if ({FindItemCount[=Emerald]}>1) /return TRUE
edited for modbot
 
Last edited:
Ok still failing (trying to cast with no emeralds), here is the spell lines:

Rich (BB code):
[AB5]
Gem=13
Spell=Divine Imposition
DurMod=120
SpellAlias=di
Announce=
SpellMinMana=10
TarCnt=1
TarType=war pal shd
Recast=FALSE
SpellFoci=
SpellIcon=
PreCondition=/if ({FindItemCount[=Emerald]}>1) /return TRUE
 
DI Emerald Check Issue

Users who are viewing this thread

Back
Top
Cart