• 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 - Twincast and its ranks

aspire2008

Well-known member
So I posted about this a couple of months back here: https://www.redguides.com/forums/th...ULLER-WITH-BOW?p=341696&viewfull=1#post341696


Well I finally got around to messing around with figuring out why KA casts every other Rank spell without putting the actual rank and never seems to cast Twincast.


So apparently core mq2 thinks the spell gem is never ready, it doesn't seem to be an issue with KA but mq2.

For example, if I do :
Rich (BB code):
/echo ${Me.SpellReady[${Spell[Twincast].RankName}]} it returns FALSE when the spell gem is actually ready

/echo ${Me.SpellReady[${Spell[Wild Barrage].RankName}]} it returns TRUE when the spell gem is actually ready
Which is why every single spell other than Twincast is working no matter the rank. So leads me to believe its an issue with core? This was tested using Rank III Twincast
 
have you tried seeing if mq2 sees the gem ready and not just the spell? Might be confused as to an AA or the spell since they have the same name?
 
Well tried to mess with it some more:


${Me.GemTimer[Twincast]} returns a value of 0, which seems right but then when I tried the condition as follows, nothing happened.

Rich (BB code):
DPS22=Twincast|99
DPSCond22=${Me.GemTimer[Twincast]}==0 && (!${Me.Buff[Twincast].ID} || !${Me.Buff[Improved Twincast].ID})


There must be either some issue in mq2cast or core is the only thing I can think off at this point.
 
Here try this:

Find the CastSpell routine and find the highlighted line:

Rich (BB code):
        /if (${Target.ID}!=${WhatID} && ${Spell[${WhatSpell}].TargetType.NotEqual[Self]} && ${Spawn[id ${WhatID}].ID}) /call CastTarget ${WhatID}
        /if (${Me.Gem[${WhatSpell}]}) {
            /if (${Me.GemTimer[${WhatSpell}]}==0) {
                /casting "${WhatSpell}" -maxtries|${MaxTryNum}                /while (${Cast.Status.Equal[C]} && ${CastResult.NotEqual[CAST_CANCELLED]}) {
                    /if (${CastingInterruptOn}) {

change the line to this:

Rich (BB code):
    /casting ${Me.Book[${Me.Book[${WhatSpell}]}].ID} -maxtries|${MaxTryNum}

That will at lease pass the spell ID to the /casting command
 
Here try this:

Find the CastSpell routine and find the highlighted line:

Rich (BB code):
        /if (${Target.ID}!=${WhatID} && ${Spell[${WhatSpell}].TargetType.NotEqual[Self]} && ${Spawn[id ${WhatID}].ID}) /call CastTarget ${WhatID}
        /if (${Me.Gem[${WhatSpell}]}) {
            /if (${Me.GemTimer[${WhatSpell}]}==0) {
                /casting "${WhatSpell}" -maxtries|${MaxTryNum}                /while (${Cast.Status.Equal[C]} && ${CastResult.NotEqual[CAST_CANCELLED]}) {
                    /if (${CastingInterruptOn}) {

change the line to this:

Rich (BB code):
    /casting ${Me.Book[${Me.Book[${WhatSpell}]}].ID} -maxtries|${MaxTryNum}

That will at lease pass the spell ID to the /casting command




Made the change you suggested, but no luck.
 
Hmm. Then the issue may be elsewhere. That should of passed the spell ID from your spell book to /casting.



My guess is since this is a quested spell, it may have been coded differently? I know I had this issue with devestators bots too, but then he made is own devcast.inc to completely avoid using mq2cast, and I think it worked after that but not really 100% sure on that either.
 
UPDATE:


Did a workaround fix for this. Made a copy of the ini and changed Twincast to Twincast Rk. III to get it to fire.


Ended up finding a small little exploit which I'm not sure if it does anything yet, need to do some testing on it.
 
Problem - Twincast and its ranks

Users who are viewing this thread

Back
Top
Cart