Help with MQ2Cast

Darkon

Lifetime Member
Joined
Jul 19, 2008
Messages
334
Reaction score
2
Points
18
for the most part MQ2cast is great especially with clickies and AAs as well as alt abilities. I am trying to create a macro I can run on rez to hit all the clickie buffs as well as spell buffs. the clickies and AAS work fine Spells on the other hand are really hit and miss on weather or not they actually cast. I have been through the mq2cast wiki and have tried a few differant things and still no help. dermal brimstone wont cast it will mem but never tries to cast. prescience and hast always mem but its a 30% chance that they actually cast even with the retries set to 10.


Code:
#include MQ2Cast_Spell_Routines.inc
Sub main
/squelch /plugin MQ2Cast
/call MQ2Cast "Familiar of the Emerald Jungle" |item
/delay 1
/call MQ2Cast "Nra`Vruu's Earring" |item
/delay 1
/call MQ2Cast Sash of the Pox-Blessed" |item
/delay 1
/call MQ2Cast "oculus of Persuasion" |item
/delay 1
/call MQ2Cast "Gnawstone" |item
/delay 1
/call MQ2Cast "Eldritch Rune" |ALT
/delay 1
/call MQ2Cast "Fungus Encrusted Gorget" |item
/delay 1
/call MQ2Cast "Twincast Aura" Gem9
/delay 1
/call MQ2Cast "Veil of Coiling Shadow" |item
/delay 1
/call MQ2Cast "Mana reiterate Aura" Gem8
/delay 1
/call MQ2Cast "Dermal brimstone Rk. II" Gem9 -maxtries|3
/delay 1
/call MQ2Cast "Twincast Aura" Gem9
/delay 1
/call MQ2Cast "Azure Mind Crystal" |item
/delay 150
/call MQ2Cast "Voice of Prescience Rk. II" Gem8 -maxtries|10
/1 casting VOP
/sit
/delay 150
/call MQ2Cast "Hastening of Erradien Rk. II" Gem9 -maxtries|10
/1 casting haste
/sit
/delay 150
/call MQ2Cast "Azure Mind Crystal" |ALT
/delay 10
:ClearCursor 
/if (${Cursor.ID}) { 
/autoinventory 
/goto :ClearCursor 
}
/sit
/return
 
You have all kind of crazy spelling/syntax errors your items have to be spelled exactly correct for it to work i.e go allah and fix your shit.

/call MQ2Cast Sash of the Pox-Blessed" |item - missing opening "
/delay 1
/call MQ2Cast "oculus of Persuasion" |item - small o in Oculus
/delay 1
/call MQ2Cast "Gnawstone" |item
/delay 1
/call MQ2Cast "Eldritch Rune" |ALT
/delay 1
/call MQ2Cast "Fungus Encrusted Gorget" |item
/delay 1
/call MQ2Cast "Twincast Aura" Gem9
/delay 1
/call MQ2Cast "Veil of Coiling Shadow" |item
/delay 1
/call MQ2Cast "Mana reiterate Aura" Gem8 - small r Reiterate
/delay 1
/call MQ2Cast "Dermal brimstone Rk. II" Gem9 -maxtries|3 - small b in brimstone

etc etc
 
Last edited:
I would guess your problem is MQ2Cast timing out after memming a spell. I could be wrong but I'm pretty sure it doesn't retry a spell if it times out after memming no matter what you have the -maxtries set to. -maxtries is only if the spell is interrupted or resisted or something like that.

Also I'm don't have the file with me atm to look at it but pretty sure the routine in the include has the 3rd parameter as being the give up time setting. The way you are calling it you would be passing -maxtries as that give up time setting. Try doing this instead

Code:
     /call MQ2Cast "SpellName" gem1 10s -maxtries|4

And play around with the 10s time to see if that gives you more consistent results.
 
Last edited:
as far as spell names CAPS are irrelevant. I did fix the missing quote. but thanks :) Gnawstone just as well as GnAwStONe.


You have all kind of crazy spelling/syntax errors your items have to be spelled exactly correct for it to work i.e go allah and fix your shit.

/call MQ2Cast Sash of the Pox-Blessed" |item - missing opening "
/delay 1
/call MQ2Cast "oculus of Persuasion" |item - small o in Oculus
/delay 1
/call MQ2Cast "Gnawstone" |item
/delay 1
/call MQ2Cast "Eldritch Rune" |ALT
/delay 1
/call MQ2Cast "Fungus Encrusted Gorget" |item
/delay 1
/call MQ2Cast "Twincast Aura" Gem9
/delay 1
/call MQ2Cast "Veil of Coiling Shadow" |item
/delay 1
/call MQ2Cast "Mana reiterate Aura" Gem8 - small r Reiterate
/delay 1
/call MQ2Cast "Dermal brimstone Rk. II" Gem9 -maxtries|3 - small b in brimstone

etc etc
 
Thanks Dev will give that a shot.




I would guess your problem is MQ2Cast timing out after memming a spell. I could be wrong but I'm pretty sure it doesn't retry a spell if it times out after memming no matter what you have the -maxtries set to. -maxtries is only if the spell is interrupted or resisted or something like that.

Also I'm don't have the file with me atm to look at it but pretty sure the routine in the include has the 3rd parameter as being the give up time setting. The way you are calling it you would be passing -maxtries as that give up time setting. Try doing this instead

Code:
     /call MQ2Cast "SpellName" gem1 10s -maxtries|4

And play around with the 10s time to see if that gives you more consistent results.
 
Just make 2 lines.. one for it to load the spell and delay until its read and one to cast it.

something like

Code:
/if (!${Me.SpellReady[JackMeOff]}) {
/call MQ2Cast LineToMemThatSpell
/delay 15s ${Me.SpellReady[JackMeOff]}
/call MQ2Cast SpellYouWantCasted
}
 
Thanks JJ and yea that's what I ended up doing. the spell timing is not critical this is for when I am freshly rezzed and just wants buffs done.

/memorize "Voice of Prescience Rk. II" Gem8
/delay 5s
/casting "Voice of Prescience Rk. II" Gem8

that's what I went with and it seems to be working :)


Just make 2 lines.. one for it to load the spell and delay until its read and one to cast it.

something like

Code:
/if (!${Me.SpellReady[JackMeOff]}) {
/call MQ2Cast LineToMemThatSpell
/delay 15s ${Me.SpellReady[JackMeOff]}
/call MQ2Cast SpellYouWantCasted
}
 
One more thing to consider

I use the ${Cast.Status} flag to tell when MQ2Cast is actually casting or not (and can move to the next spell). You could make a subroutine that you call after each spell cast (i.e. /call CheckCast)

Code:
Sub CheckCast
:wait
/if ${Cast.Status.NotEqual[I]} /goto :wait
/return

${Cast.Status} can be any of the following values:
* I: idle and waiting for you
* A: advpath pause
* F: stick pause
* S: immobilize in progress
* M: memorize in progress
* E: item swapped
* D: ducking casting
* T: targeting
* C: spell casting in progress
 
Last edited: