Page 1 of 1

/if changed from older MQ2 version?

Posted: Sat Sep 29, 2007 11:33 pm
by sod_player
First things first..
http://www.macroquest2.com/wiki/index.php/If
I added a line indicating the lack of support for the current /if command on older MQ2 version.


I'm having issues with my first macro. It gets to :mr and constantly loop casts that spell without a target. I'm using MQ2 from early 04.. my name should explain the reason.

How might I change the /if command to work? I've tried various adjustments with no luck.

Code: Select all

| - enchbot2.mac -|
#include routines.mac
#turbo

Sub Main
     :loop
/if (${Me.Casting.ID}) /goto :loop
/assist PETNAME
/delay 4
/if (${Target.ID}==FALSE) /goto :loop 
/if (${Target.DisplayName}==PCNAME) /goto :loop 
/if (${Target.PctHPs}<95) /goto :mr
/delay 4
/if (${Target.PctHPs}<90) /goto :slow
/delay 4
/if (${Target.PctHPs}<80) { /goto :debuff 
} else {
/if (${Me.PctHPs}<90) /goto :agro
/if (${Me.PctMana}<70) /goto :meding
/tar PCNAME
/delay 10
/if (${Target.Distance}>70) /goto :follow
/delay 4
/goto :loop

:mr
/if (${Me.PctMana}<12) /goto :oom 
/delay 4 
/cast "Tashanian"
/delay 4
/cast "Tashanian"
/delay 4
/goto :loop

:slow
/if (${Me.PctMana}<12) /goto :oom 
/delay 4 
/cast "Forlorn Deeds"
/delay 4
/cast "Forlorn Deeds"
/delay 4
/goto :loop

:debuff
/if (${Me.PctMana}<12) /goto :oom 
/delay 4 
/cast "Cripple"
/delay 4
/cast "Cripple"
/delay 4
/goto :loop

:agro
/g group message
/g group message
/delay 2
/goto :loop

:follow
/tar PCNAME
/delay 10
/if (${Target.Distance}>70) /sit off
/delay 4
/follow 
/delay 2
/goto :loop

:meding
/tar PCNAME
/delay 10
/if (${Target.Distance}<70) /sit on 
/delay 2
/goto :loop

:oom
/tar PCNAME
/delay 10
/if (${Target.Distance}<70) /sit on 
/g GROUP MESSAGE
/delay 2
/goto :loop

Posted: Sat Sep 29, 2007 11:53 pm
by Jarid
PICNIC

Code: Select all

/if (${Target.ID}==FALSE) /goto :loop 
/if (${Target.DisplayName}==PCNAME) /goto :loop 

Code: Select all

/if (!${Target.ID}) /goto :loop 
/if (${Target.CleanName.Equal[Whatever]}) /goto :loop 

Posted: Sat Sep 29, 2007 11:54 pm
by ascii38
Can you be a little more specific that "early 04"? Answering the question will probably require looking at the source.

EDIT: Well, it might have required looking at the source if the statement that /if works differently was actually true :)

Posted: Sat Sep 29, 2007 11:57 pm
by jacensolo
Lol jarid beat me to it.

In the future, before blaming faulty source, check for logic errors. Also, checking line numbers on errors helps.

Posted: Sun Sep 30, 2007 12:23 am
by sod_player
Thanks for the quick responce. I'll update the wiki after I test it (and better understand how it works).

I wasn't necessarily blaming the source code. That was the only thing I could think of after I tested a copy/paste macro. For example.. The below macro was taken from the wiki, however, it gives the same response as my macro did.

The line number error always pointed to the first /if statment I had. The below macro gives an error at

Code: Select all

/if (${Target.ID}) 
Version is Jan 25th 2004

Code: Select all

| - test2.mac -|
#include routines.mac


Sub Main
   :loop
/if (${Target.ID}) {
  /echo I have a target
} else {
  /echo No target
}

   /goto :loop
/return

New Natural Pet Supplements Site

Posted: Thu Apr 10, 2025 11:29 am
by FrankJScott
To the people talking about seamless dog, pet cooling mat, 4 dogs, facts about my dog, tips on training your dog, pet puppy, dog pads, summer cooling mat, dog tips water bowl over, dog on the mat, I highly suggest this read full report on natural pet supplements details or look after dog, about your pet, best dog for dogs, animal adoption, with your dog, a dog bed, for my dogs, dog fur care, water filled dog cooling mat, cooling dog water bowl, which is worth considering with this cool natural pet supplements tips and don't forget cooling dog water bowl, hot weather pet safety, dog boarding in, signs overheating dogs, summer dog training, dogs pet dogs, tto dog, signs dog, cooling outdoor dog bed, cat and dog boarding, as well as this here for natural pet supplements tips which is also great. Also, have a look at this visit this link for natural pet supplements site together with dog cubes, dog excessive panting and drooling, dog summer heat, dog is hot, dogs that need, animal day care, shade dog, you can dog, dog and cat, cat and dog care, as well as this listen to this podcast about natural pet supplements info not forgetting sites such as dog exercise tips, keep dog cool in summer, all you need is a dog, best dogs in hot weather, animal hydration, this contact form on on top of to my dog, best pet cooling mat, pet adoption in my area, care for your pet, your terrier, for good measure. Check more @ Great Platelet Rich Plasma Therapy For Men Sarasota Site 3bc5_2a

Awesome Amino Acids Guide

Posted: Thu Apr 10, 2025 6:02 pm
by FrankJScott
In reply to the guy asking about pd1 checkpoint inhibitor, enclomiphene citrate tablets for sale, reduce dhea, indication of calcium channel blockers, dhea inhibitor, dhea a, akt autophagy, protease inhibitor cocktail thermo, sglt sodium glucose transporter, ferroptosis drugs, I highly recommend this here are the findings about amino acid forum or betahistine mesylate tablet, hdac histone deacetylase, 4 antibiotics, amino acids biochem, sodium deoxycholate solubility, essential ammonia acid, adiporon, nadh cas, magainin 2, anti pdl1 antibody, bearing in mind this great post to read about amino acid tips not to mention tryptophan non essential amino acids, enclomiphene testosterone, carbocisteine solubility, glyceryl acetate, riboflavin synonyms, h3 receptor agonist drugs, octyl triazone, choline glycerophosphate, antimicrobial resistance and antibiotic resistance, compound antibiotics, as well as this read full article about amino acid site which is also great. Also, have a look at this helpful hints about amino acid tips as well as desmopressin medication, pathway wnt, potassium channel blockers drugs list, cysteine protease inhibitor, rapamycin mtorc1, mtor enzyme, thymol liquid, pi3k autophagy, some essential amino acids, sarcosine solubility, and don't forget this that guy for amino acid details and don't forget protease inhibitor cocktail sigma, mtor rapamycin, nitro tyrosine, gc376 for cats, calcium channel blockers purpose, i loved this about which is worth considering with bacterial antimicrobial resistance, tideglusib, inhibitors of atp synthesis, gc376 price, synthesis of thyroxine hormone, for good measure. Check more @ New Natural Pet Supplements Tips 1d1ac74

Top Digital Marketing Services Info

Posted: Wed Apr 30, 2025 8:48 am
by FrankJScott
In reply to the guy asking about online marketing how to, social media marketing in, marketing technician, social media software, best digital blogs, online communication channels, tips of digital marketing, digital market, blog web marketing, fucking scammer social media marketing, fucking scammer social media, your social media, market and analysis, the importance of digitalization, marketing 2024, tips and tricks for social media, online presence, social media marketing platforms for business, 4 as of marketing, share a voice, I suggest this agree with about digital marketing services forum for web design and digital marketing, using marketing, digital 11, digital marketing in, blog web marketing, fucking scammer and social media marketing, digital marketing it, marketing ways, digital media blog, social media marketing techniques, best social media marketing software, march marketing, marketing for tech, tips and tricks for social media marketing, marketing dixhital, business digital marketing, social media voice, marketing tips and tricks, email digital, digital marketing for, your social media, tech in marketing, marketing tips, also. See More Best Car Parts Tips 2c78ecb