• 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

Question - Buff precondition

skuyou

Member
[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:
Modbot INI
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
 
Last edited:
Question - Buff precondition

Users who are viewing this thread

Back
Top
Cart