Mana Robe macro - and my first macro

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

horseshoecrabs
a ghoul
a ghoul
Posts: 89
Joined: Fri Jun 10, 2005 6:35 pm

Post by horseshoecrabs » Mon Oct 03, 2005 10:25 am

Fearless,

You're going to drag me kicking and screaming to using better form. :)

I don't get why the quotation marks aren't necesscary when brackets surround the variable. Does the bracket act as the same delimeter value as quotes? For example...would this work:

Code: Select all

/cast item [${RuneStaff}]
edit: I tested the above question, and it doesn't work. So I'm confused. :?

Thanks for your feedback, seriously. I've edited the script a couple posts above and would love to get your opinion on whether it's now crafted properly.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Oct 03, 2005 12:17 pm

horseshoecrabs wrote:Fearless,

You're going to drag me kicking and screaming to using better form. :)

I don't get why the quotation marks aren't necesscary when brackets surround the variable. Does the bracket act as the same delimeter value as quotes? For example...would this work:

Code: Select all

/cast item [${RuneStaff}]
edit: I tested the above question, and it doesn't work. So I'm confused. :?

Thanks for your feedback, seriously. I've edited the script a couple posts above and would love to get your opinion on whether it's now crafted properly.
The vast majority of the time you only need to use quote marks when you are calling another sub and passing a string to it. IE /call cast "Blessed Armor of the Risen" gem8 10s

Let's mix in a declare line like /declare myvar string outer "Blessed Armor of the Risen". What happens with you use this later? If you use myvar, it turns into /call cast "${"Blessed Armor of the Risen"}" gem8 10s. See where the quotes come back in to play?

Regarding brackets . . . brackets are their own delimiter when used in a variable, ie you don't need quote marks in ${Spell[Blessed Armor of the Risen].ID}, but that is the only time they act as a delimiter. You do not want to use quotes in that same variable because ${Spell["Blessed Armor of the Risen"].ID} may or may not match the spell.

Does that make more sense?
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Oct 03, 2005 12:23 pm

For

Code: Select all

(${Bool[${Me.Buff[${RuneBuff}]}]}==TRUE)
you can just do

Code: Select all

${Me.Buff[${RuneBuff}.ID]}
for true or

Code: Select all

!${Me.Buff[${RuneBuff}].ID}
for false. No need to switch it to a bool.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

horseshoecrabs
a ghoul
a ghoul
Posts: 89
Joined: Fri Jun 10, 2005 6:35 pm

Post by horseshoecrabs » Mon Oct 03, 2005 12:41 pm

These are some great pointers! I was afraid to ask for this kind of help early on because my dumb questions might have been confused for those asked by somebody who isn't willing to make an honest effort on learning this stuff.

Your lesson on quotations and brackets clear things up nicely and your bool comments are remarkably simple implemenations of something I should have noticed in the first place, but obviously did not.

Edited the script again.

Thanks!

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Oct 03, 2005 12:57 pm

Glad to help.

Also, for something like ${RobeCasts}==0, you can just use !${RobeCasts}. I noticed you have a few of them in the mac.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/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 » Mon Oct 03, 2005 1:00 pm

If you can, hang out in IRC. Most of us are pretty helpful when it comes to giving macro pointers, as long as its apparent you're trying to learn and not looking for handouts.
[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]

horseshoecrabs
a ghoul
a ghoul
Posts: 89
Joined: Fri Jun 10, 2005 6:35 pm

Post by horseshoecrabs » Fri Oct 14, 2005 4:57 pm

Also, for something like ${RobeCasts}==0, you can just use !${RobeCasts}.
Hi there, back again from another trip. Yes, I thought about this too, and thought about it some more after reading your post. The reason I elected to check for a zero value in particular is because I'm looking at the var not so much as on or off, but as a value ranging from zero to 12. In that regard, I was interested in consistency.

I modified the macro again and did a couple of little things that make it a bit better than before. New features / changes may be found on the post with the macro itself.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Fri Oct 14, 2005 5:40 pm

horseshoecrabs wrote:
Also, for something like ${RobeCasts}==0, you can just use !${RobeCasts}.
The reason I elected to check for a zero value in particular is because I'm looking at the var not so much as on or off, but as a value ranging from zero to 12. In that regard, I was interested in consistency..
That's fair and I certainly can not argue with it. I just wanted to point it out as an option in case you were unawares.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

flabbie
orc pawn
orc pawn
Posts: 11
Joined: Wed May 18, 2005 7:57 pm

Post by flabbie » Wed Nov 02, 2005 2:34 pm

LUB YU!!!

And this macro too.

I actually wrote my own macro based of this one and integrated it into my overall wizard macro. Awesome work and wonderful feedback..I learned lots too!

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Nov 02, 2005 2:51 pm

flabbie wrote:LUB YU!!!

And this macro too.

I actually wrote my own macro based of this one and integrated it into my overall wizard macro. Awesome work and wonderful feedback..I learned lots too!
I am sure horseshoecrabs, and everybody else, would love to take a look at what you have been able to come up with. ;)
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

horseshoecrabs
a ghoul
a ghoul
Posts: 89
Joined: Fri Jun 10, 2005 6:35 pm

Post by horseshoecrabs » Wed Nov 02, 2005 7:27 pm

Yeah, let's see it!

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

old 1's

Post by B_rizzleB » Sun Jan 08, 2006 3:40 pm

repost the old ones cuz this new 1 keeps tweakin me! btw i liked the old 1 and reformated and lost all info

flabbie
orc pawn
orc pawn
Posts: 11
Joined: Wed May 18, 2005 7:57 pm

Here's my pitiful version compared to yours.

Post by flabbie » Thu Jan 26, 2006 4:47 pm

Welp, here you go!

No where near as sophisticated or sexy coding as yours but I'm rather new to the coding scene!

Anyhoo! Here's my code

B_rizzleB
orc pawn
orc pawn
Posts: 10
Joined: Mon Sep 26, 2005 10:15 am
Location: Mq centrel

dont work

Post by B_rizzleB » Mon Apr 03, 2006 10:20 am

ok for some reason this dont work for me. i start it and just keeps spammin the mq2 box it cant do somthing then when i pick up my manarobe in my cursor it starts but then never rerunes itself- im using 1.0 wiz epic

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Re: dont work

Post by fearless » Mon Apr 03, 2006 10:34 am

B_rizzleB wrote:ok for some reason this dont work for me. i start it and just keeps spammin the mq2 box it cant do somthing then when i pick up my manarobe in my cursor it starts but then never rerunes itself- im using 1.0 wiz epic
The actual error messages would help here . . . I lost my psychic abilities last week.
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]