${Spell[Glacier Breath].Range}

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

${Spell[Glacier Breath].Range}

Post by A_Druid_00 » Sat Nov 27, 2004 7:04 pm

Returns 0, which is incorrect. Not sure what other spells may come up with it, but I noticed it after I got my OoW debuff spell today. Right clicking the icon returns the proper range of 150, so I dunno where the problem lies
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
fice
a hill giant
a hill giant
Posts: 187
Joined: Thu Jul 17, 2003 3:28 pm

Post by fice » Sat Nov 27, 2004 7:30 pm

Glacier Breath is useless!!!!!1 E'ci owns it!

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sat Nov 27, 2004 8:33 pm

I've found that I have better luck sticking E'Ci and then overwriting it with GB than I do with just GB. FU Sony for not giving our cold debuffs a resist mod like our fire debuffs
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
fice
a hill giant
a hill giant
Posts: 187
Joined: Thu Jul 17, 2003 3:28 pm

Post by fice » Sat Nov 27, 2004 9:47 pm

you are missing one thing, they debuff for the exact same amout, all glacier breath does is debuff for a little more AC and costs like 70more mana

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sun Nov 28, 2004 11:06 am

Ohey, I probably should have looked at the spell description closer. What a waste of a Rune.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sun Nov 28, 2004 3:07 pm

Hardly a waste...

at any rate, you're getting the wrong entry. Use

Code: Select all

${Me.Book[${Me.Book[somespell]}].Range}
to be sure you're referencing YOUR spell. (Yeah, it looks funky, but you don't have to have it memmed that way) Even better, do the Book^2 trick to get the spell ID and use Spell[ID] for everything else in your script.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sun Nov 28, 2004 3:19 pm

You sir, are my Hero. AFK to redo the distance references on all my cast checks now!
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Sun Nov 28, 2004 3:24 pm

Out of curiousity, what other advantages are ther to using the spell ID other than being 100% guaranteed to be accurate. I mean; in my current mac, there's really no need for it just for accuracy's sake after I do the me.book check. It's not like I'm going to have 2 identically named spells.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Sun Nov 28, 2004 5:09 pm

Speed. When you call ${Spell[Voice of the Crazy Bard]}, MQ2 has to walk the entire spell database, doing a fairly computationally-expensive string compare to each entry until it finds a match...not just once, but every time it's used, for example:

Code: Select all

/if (${Spell[foo].Mana} > ${mymana} || ${Spell[foo].Range} > ${Target.Distance} || ${Spell[foo].Duration} < ${worthcasting}) /return
would do 3 of these expensive lookups every time the macro reached that line. Putting a bunch of lines like that in the "CheckHP" sub of an afcleric type macro could be disasterous for execution time.

${Spell[128].Mana} on the other hand returns the 128th entry in the spell database, toot-sweet.

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Mon Nov 29, 2004 12:51 pm

Interesting. So, would/could you do something like this then? Instead of declaring a spell like this, which is what I do now:

Code: Select all

/declare SpellHaste outer "Turgur's Insects"
Do this instead:

Code: Select all

/declare SpellHaste outer ${Me.Book[Turgur's Insects].ID}
Then every time I reference that spell in the macro, be it for cast time, range, mana, or whatever, would it use the faster ID lookup like so?

Code: Select all

/if (${Spell[${SpellHaste}].Mana} > ${Me.CurrentMana}) /dosomestuff
I haven't really run into any performance problems with anything I'm doing, but if this is that much more efficient, I might switch to using something like this.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Mon Nov 29, 2004 1:03 pm

That's essentially it ded. And I can see where it would surely be more efficient. Like he said, the more of them you have, the bigger the impact is. If you're only calling your spells like this every so often and not like every other /if, I doubt you'll see much difference.

But, I converted my druid mac over last night and it does seem to run at least a little bit cleaner. The only issue I have now is just doing something similar to this for my item calls for clickies, which I'll probably sort out today.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Mon Nov 29, 2004 1:10 pm

A_Druid_00, I would be interested to see what you do to handle clickies. I'm at work right now and won't have time to play around tonight, but I'm interested in doing this with my own main macro as well. I don't do a lot of clicking, but am always interested in efficiency.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Mon Nov 29, 2004 1:54 pm

The only idea I have so far is to use 2 different declares, one for the clicky spell ID and one for the item name, since spell_routines needs the item name to cast it. I'm going to throw it together and see how it looks tonight.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

FrankJScott
naggy
naggy
Posts: 2353
Joined: Sun Feb 19, 2023 7:11 am

Best Workspace Management And Moving Solutions Guide

Post by FrankJScott » Tue Aug 12, 2025 1:59 am

why not just google it

FrankJScott
naggy
naggy
Posts: 2353
Joined: Sun Feb 19, 2023 7:11 am

Cool Todaki Women's Massage Blog

Post by FrankJScott » Mon Sep 08, 2025 1:17 pm

In response to the person talking about asian female masseuse, baiboon thai spa for women & family, massage by female near me, body massage oil for women, leg shaping massager, massage for male by female near me, pregnant leg massage, women want massage, massage big women, male to female massage at home near me, I highly recommend this do you agree about todaki women's massage tips or private massage by female, female body massage home service near me, female back massage, male to female body massage at home, man giving massage to woman, massage woman woman gilroy, urban clap massage for ladies, vitalzen foot and leg massager, best female to male massage, massage for pregnant women near me, bearing in mind this best todaki women's massage details not forgetting sites such as body massage ladies gents, massage for women, female to male body massage therapist near me, hot stone massage and pregnancy, body massage female to male price, female to female massage home service, female to female massage at home, ladies massage therapy, masseur for ladies, massage women near me, not to mention this your input here on todaki women's massage url which is also great. Also, have a look at this updated todaki women's massage site not forgetting sites such as female masseuse instagram, lady giving massage, full body massage of ladies, female massage spa near me, massage spa for female, female chest massage, body oil massage for women, massage lady london, massage spa female to male, mobile female massage therapist near me, and don't forget this killer deal for todaki women's massage forum not to mention body massage for women near me, private massage ladies, massage at home female to male, dorothy stein massage, yw massage, how you can help for alongside all lady bird massage, male massage therapist for ladies, massage lady for postnatal near me, labor inducing massage near me, thigh massager, for good measure. Check more @ Great Slot Gacor Website 3c8dec9