• 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

Problem - DebuffAll / Macro.Return Returning Wrong Value (Cast Success Always?)

cdmkeeb

Member
Joined
Jan 17, 2021
RedCents
41¢
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