• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

DI Emerald Check Issue

Joined
Dec 18, 2017
RedCents
21¢
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)
 
/if (${FindItemCount[=Emerald]>1} /Return TRUE

try that
 
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