Page 2 of 7
Posted: Mon Oct 03, 2005 10:25 am
by horseshoecrabs
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:
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.
Posted: Mon Oct 03, 2005 12:17 pm
by fearless
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:
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?
Posted: Mon Oct 03, 2005 12:23 pm
by fearless
For
Code: Select all
(${Bool[${Me.Buff[${RuneBuff}]}]}==TRUE)
you can just do
for true or
for false. No need to switch it to a bool.
Posted: Mon Oct 03, 2005 12:41 pm
by horseshoecrabs
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!
Posted: Mon Oct 03, 2005 12:57 pm
by fearless
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.
Posted: Mon Oct 03, 2005 1:00 pm
by A_Druid_00
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.
Posted: Fri Oct 14, 2005 4:57 pm
by horseshoecrabs
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.
Posted: Fri Oct 14, 2005 5:40 pm
by fearless
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.
Posted: Wed Nov 02, 2005 2:34 pm
by flabbie
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!
Posted: Wed Nov 02, 2005 2:51 pm
by fearless
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. ;)
Posted: Wed Nov 02, 2005 7:27 pm
by horseshoecrabs
Yeah, let's see it!
old 1's
Posted: Sun Jan 08, 2006 3:40 pm
by B_rizzleB
repost the old ones cuz this new 1 keeps tweakin me! btw i liked the old 1 and reformated and lost all info
Here's my pitiful version compared to yours.
Posted: Thu Jan 26, 2006 4:47 pm
by flabbie
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
dont work
Posted: Mon Apr 03, 2006 10:20 am
by B_rizzleB
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
Re: dont work
Posted: Mon Apr 03, 2006 10:34 am
by fearless
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.