Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!
Moderator: MacroQuest Developers
-
rainmaker
- You cant see me, I'm invisible!
- Posts: 8
- Joined: Sun Feb 08, 2004 5:10 pm
- Location: Closer to here than there
Post
by rainmaker » Thu Apr 22, 2004 10:45 pm
Code: Select all
#turbo
#define abilitymax 200
#define abilityneedingwork Tracking
Sub Main
/declare abilitylvlmax global
/if (${Me.Level}*5+5<=abilitymax) /varset abilitylvlmax ${Int[${Math.Calc[(${Me.Level}*5)+5]}]}
/if (${Me.Level}*5+5>=abilitymax) /varset abilitylvlmax abilitymax
/echo Current skill is ${Me.Skill[abilityneedingwork]} of a max skill of @abilitylvlmax (Level Cap)
/call abilityup
/return
Sub abilityup
:loop
/doevents
/if (${Me.State.Equal[SIT]}) {
/stand
/delay 3
}
/if (${Me.Skill[abilityneedingwork]}>=@abilitylvlmax) {
/call endmacro
}
/if (${Me.Skill[abilityneedingwork]}<=@abilitylvlmax) {
/doability abilityneedingwork
/delay 120
/goto :Loop
}
/return
Sub EndMacro
/echo Woot!!!! abilityneedingwork Skill is Maxed!!!!
/endmacro
/return
What's wrong with this?
It always does:
/if (${Me.Skill[abilityneedingwork]}>=@abilitylvlmax) {
/call endmacro
}
Even tho i'm lvl 24, so my Lvl max is 125 and my skill is 105
-
dont_know_at_all
- Developer

- Posts: 5450
- Joined: Sun Dec 01, 2002 4:15 am
- Location: Florida, USA
-
Contact:
Post
by dont_know_at_all » Fri Apr 23, 2004 12:01 am
This macro works....do you have the latest zip?
VS6 with SP6?
-
rainmaker
- You cant see me, I'm invisible!
- Posts: 8
- Joined: Sun Feb 08, 2004 5:10 pm
- Location: Closer to here than there
Post
by rainmaker » Fri Apr 23, 2004 12:30 am
Latest Zip "April 21 2004 14:55:47" and VS.NET
-
Lax
- We're not worthy!

- Posts: 3524
- Joined: Thu Oct 17, 2002 1:01 pm
- Location: ISBoxer
-
Contact:
Post
by Lax » Fri Apr 23, 2004 12:50 am
Judge whether or not you have the latest by comparing the changes.txt with the last entry shown in the MQ2::Announcements thread.
Code: Select all
21 Apr 2004 by Lax:
- Fixed if/newif
If this is not it, you do not have the newest.
-
rainmaker
- You cant see me, I'm invisible!
- Posts: 8
- Joined: Sun Feb 08, 2004 5:10 pm
- Location: Closer to here than there
Post
by rainmaker » Fri Apr 23, 2004 12:53 am
got it!!
don't uncomment
and expect that macro to work
and thanks for you code cleanup suggestion in the IRC Chat Lax
-
Hades0721
- a lesser mummy

- Posts: 31
- Joined: Sun Apr 11, 2004 4:57 pm
-
Contact:
Post
by Hades0721 » Fri Apr 23, 2004 2:09 pm
Having trouble getting this to work with sense traps ability. When checking skill level always returns NULL and it cant find the ability using /doability... Needin' some help.
"I'm Goin' to Hell. Who's comin' with me?" - Eminem