• 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 - DebuffAll / Macro.Return Returning Wrong Value (Cast Success Always?)

cdmkeeb

Member
Hi - I've been trying to get my shaman to do debuffall correctly with slow. However, it seems that the result of Macro.Return during the conditional checks always returns CAST_SUCCESS. I have never seen any messages other than the success one, and when I put in the print Macro.Result there and manually interrupt the casting it still prints and says CAST_SUCCESS
Code:
| Conditional Check Added.

                /if (${ConOn} && ${DPS[${i}].Find[|cond]} && ${If[${Cond[${DPS[${i}].Mid[${Math.Calc[${DPS[${i}].Find[|cond]}+5]},3]}]},0,1]}) /break

                | Everything is ready, lets debuff this mob

                /call CastWhat "${DebuffText}" ${DebuffTargetID} DebuffCast 0 0

                DEBUGCOMBAT DebuffCast: Return From CastWhat: ${Macro.Return}

                /if (${Macro.Return.Equal[CAST_RESISTED]}) {

                    /echo ** ${DebuffText} on >> ${Spawn[${DebuffTargetID}].CleanName} << - RESISTED

                } else /if (${Macro.Return.Equal[CAST_INTERRUPTED]}) {

                    /echo ** ${DebuffText} on >> ${Spawn[${DebuffTargetID}].CleanName} << - INTERRUPTED

                } else /if (${Macro.Return.Equal[CAST_TAKEHOLD]}) {

                    /echo ** ${DebuffText} on >> ${Spawn[${DebuffTargetID}].CleanName} << - DID NOT TAKE HOLD

                    /varset TempTimer 3m

                } else /if (${Macro.Return.Equal[CAST_IMMUNE]}) {

                    /echo ** ${Spawn[${DebuffTargetID}].CleanName} is IMMUNE to - ${DebuffText}

                    /if (!${DBOList${i}.Find[|${DebuffTargetID}]}) /varset DBOList${i} ${DBOList${i}}|${DebuffTargetID}

                    /varset TempTimer 3m

                } else /if (${Macro.Return.Equal[CAST_SUCCESS]}) {

                    /echo ** Debuffing: ${Macro.Return} ==> ${DebuffText} on >> ${Spawn[${DebuffTargetID}].CleanName} << DebuffTargetID: ${DebuffTargetID} Target: ${Target.ID} DBOList: ${DBOList${i}}

Any idea why this is happening? I tried this with both Time's Antithesis (clickie) and Turgur's Insects (spell). Same result both times.
 
1646167789473.png

Added
/echo ** Debuffing: ${Macro.Return} ${Cast.Result} ${Cast.Return} ==> ${DebuffText} on >> ${Spawn[${DebuffTargetID}].CleanName} << DebuffTargetID: ${DebuffTargetID} Target: ${Target.ID} DBOList: ${DBOList${i}}
and it returns different values for Cast.Result vs. Macro.Return and Cast.Return
 
I think I solved this. The event logic for interrupt is looking for the wrong wording. I updated it to be this and it now seems to work!
1646170072489.png
 
Problem - DebuffAll / Macro.Return Returning Wrong Value (Cast Success Always?)

Users who are viewing this thread

Back
Top
Cart