• 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

Problem - Modbot error on THF(Emu)

Running RG Very Vanilla install of MQ2 on THF while trying to set things up and doing trial and error stuff to see what works and not works, i tried this modbot version out here.
Anyway when i try to run modbot and a character starts to buff i get the following error.
Code:
Failed to parse /if command.  Could not find command to execute.

modbuff.inc@651 (BuffThem(int a, int tSpellID, int tGem, int tTargetID, int tBot)): /if (!${Select[${Cast.Result},cast_immune,cast_takehold]} || ${ABTarCnt[${a}]}>1)) {

modbuff.inc@254 (ABBuffCheck): /call BuffThem ${a} ${tSpellID} ${tGem} ${tTargetID} ${tBot}

modbot.mac@139 (Main(INI)): /if (${DoBuffs} && ${ABCount} && !${ABCheckTimer} && !${APPullDelay}) /call ABBuffCheck

Usage: /if (<conditions>) <command>
 
I posted the fix for this in another thread. Remove the extra parentheses so the line looks like:

/if (!${Select[${Cast.Result},cast_immune,cast_takehold]} || ${ABTarCnt[${a}]}>1) {

I will put together a fix-release package.
 
Last edited:
No thank you for the fast fix, hope you don't mind that i have the next one already

When giving a mage the command pettoys (not sure how it would work automatically so far in this version)
Code:
Subroutine 10s wasn't found

modbot.inc@3477 (MQ2Cast(string spellName,string spellType,timer giveUpTimer,string mySub,string MQ2Feature1,string MQ2Feature2,string MQ2Feature3,string MQ2Feature4)): /if (${mySub.Length}) /call ${mySub} ${giveUpTimer}

modbot.inc@3176 (PetToys(int petID)): /call MQ2Cast "${PTSpell[${i}].Arg[1,|]}" ${PTSpell[${i}].Arg[2,|]} 10s -targetID|${Me.ID} -maxtries|3

modbot.inc@1114 (Event_chat(MsgType,MsgFrom,MsgText)): /call PetToys "${Spawn[pc ${SenderName}].Pet.ID}"

modbot.inc@290 (Event_EQBC(EQBCSay,EQBCSender,EQBCCommand)): /call Event_chat "eqbc" "${EQBCSender}" "${EQBCCommand}"

modbot.mac@174 (Main(INI)): /doevents
 
Problem - Modbot error on THF(Emu)

Users who are viewing this thread

Back
Top
Cart