EQ Crashes on mq2 spell casts

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

A Troll
a lesser mummy
a lesser mummy
Posts: 30
Joined: Fri May 21, 2004 10:04 am

EQ Crashes on mq2 spell casts

Post by A Troll » Sat Aug 14, 2004 5:42 am

Hi im using an updatet version of the Stick.mac and got some trouble since
12.8.04 patch. Each time Stick.mac.wants to cast
automaticly a spelll eq crasches.The following line will case eq crash:
/if (${Me.Gem[Aura of Hate]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<96) /call cast "Aura of Hate"

its not only the Aura of hate spell , you can insert any spells there

anyone has similar problems or it is a know bug and there is a workaround
already ?

This crash happends with spellcast.inc and spell_routines.inc for me

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Sat Aug 14, 2004 8:52 am

Code: Select all

/if (${Me.Gem[Aura of Hate]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<96) /call cast "Aura of Hate"
Is that what you put in your macro? If so, I believe the problem is that you did not put double ampersands (&&) between each if statement.

I could be off base, but take a look into that.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sat Aug 14, 2004 11:53 am

Try modifying that a little:

Code: Select all

/if (${Me.Gem[Aura of Hate]}>0 && ${Me.PctMana}>20 && ${Target.PctHPs}<96) /call cast "Aura of Hate"
What you had is a bit 'sloppy', although technically ok to do.

It also might be something in one of the include files causing the problem.

A Troll
a lesser mummy
a lesser mummy
Posts: 30
Joined: Fri May 21, 2004 10:04 am

Post by A Troll » Sun Aug 15, 2004 5:28 am

MY spellcast code atm is like this (its the old one from stick.mac was disbaled but get it to work)

Code: Select all

    /if (${Me.Class.Name.Equal[Shadow Knight]}) /if (${Target.ID}==${MobID}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /goto :attackSpellsSK 
  /goto :attackMeleeLoop 

  :attackSpellsSK 
  /echo spell
    /if (${Me.Gem["Zevfeer's Bite"]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<97) /call cast "Zevfeer's Bite" 
    /if (${Me.Gem[Aura of Hate]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<96) /call cast "Aura of Hate" 
    /if (${Me.Gem[Spear of Decay]}>0) /call Cast "Spear of Decay" 
    /if (${Me.Gem[Spear of Plague]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<95) /call cast "Spear of Plague" 
|    /if (${Me.Gem[Bond of Death]}>0) /if (${Me.PctHPs}<90)  /if (${Me.PctMana}>20) /if (${Target.PctHPs}<90) /call cast "Bond of Death" 
  /goto :attackMeleeLoop 
and cant get it to work , even with your suggestions about the && stuff.
and no im not a programmer i do this on a try and error basis :-)
maybe anyone got a working code for things like this that i can use