• 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

Question - Buff precondition

skuyou

Member
Joined
Jul 2, 2022
RedCents
51¢
[AB1]
Gem=13
Spell=Virtue
DurMod=120
SpellAlias=virtue
Announce=/bc
SpellMinMana=0
TarCnt=1
TarType=idle cbt war shd pal rng mnk rog brd bst ber shm clr dru wiz mag enc nec
Recast=FALSE
SpellFoci=
SpellIcon=



PreCondition=/if ({Target.Level} > 45 && {Target.Level} < 66) /return TRUE

I need to find out if this is proper syntax or if this can be done this way. there used to be something like this way back when. I just dont have a copy of it any longer and cant find it.
 
Modbot doesn't target things before checking whether to cast or not. However, we recently added the following variable to help with this: PSTargetID

2021-09-27 Rev 5.13 - woobs
- Added a ModBot internal variable: PSTargetID. This variable will have the ID of the mob that is currently being acted upon in standard Modbot Scripts and PreConditions. For instance, if you have an AD entry and you want to check things about the target of the entry, you can use {Spawn[{PSTargetID}].xxx}, etc. This entry will work for:
1. Gem=script for AH, AD, AB, AQ, AE entries
2. PreCondition= for AH, AD, AB, AQ entries

2022-04-03 Rev 5.20 - woobs
- The ModBot internal variable PSTargetID will now also work in the IfSpellImmune scripts of Debuffs.

Try substituting {Spawn[{PSTargetID}].Level} for your conditions above.
 
When I tried it like this, I get buff errors in the console like this:
DoCommand - Couldn't parse FALSE

1658758600330.png

Here's the INI Setting:
[CODE lang="ini" title="Modbot INI"][AB8]
Gem=9
Spell=Hand of Virtue
DurMod=120
SpellAlias=HoVirt
Announce=/bc
SpellMinMana=0
TarCnt=2
TarType=idle cbt war shd pal rng mnk rog brd bst ber shm clr dru wiz mag enc nec
Recast=FALSE
SpellFoci=
SpellIcon=
PreCondition=/if ({Spawn[{PSTargetID}].Level} > 45 && {Spawn[{PSTargetID}].Level} < 66) /return TRUE[/CODE]
 
Last edited:
I found my issue, it was w/ the Aura precondition, that's fixed now. So disregard, the Spawn w/ PSTargetID is working as intended.
 
Question - Buff precondition

Users who are viewing this thread

Back
Top
Cart