Page 1 of 2
Perfect XP Tracker - With XP over Time
Posted: Mon Aug 30, 2004 3:35 pm
by PhoenixZorn
A few minutes of searching, and a few cut/pastes, and I've made the perfect XP tracker for an AFK Powerlevellee... like to box 2 or 3 chars with your main and kite all day, then you'll enjoy this. Since I'm the Macro Czar, I'll be including this macro with the MQ2 release...
Code: Select all
|-- exptrack.mac
|-- by Raebis, with tweaks from Phoenix
|-- Version 0.6
|-- August 30th, 2004
|----------------------------------------------------
|-- Macro will track the immediate experience gained after each gain, as well as keep a running total over time.
|-- Blatantly stolen from AdvChant.mac specifically for the character being powerlevelled, since when you AE, you
|-- don't really want XP flashes at 20 per second when ALL the mobs die. Does not differentiate between Group,
|-- Raid or Single XP, but really... it's far better this way... remove the (/popup)/(/i say) if you don't want them in there.
#event Exp "You gain#*#"
#turbo
Sub Main
/declare Exper float outer
/declare AAExp float outer
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/echo Beginning XPTracker..
:loop
/doevents
/goto :loop
/return
Sub Event_Exp
/varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]}
/varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]}
/echo EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - ${Math.Calc[${Macro.RunTime}/60]} minutes
/i say EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - ${Math.Calc[${Macro.RunTime}/60]} minutes
/popup EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - ${Math.Calc[${Macro.RunTime}/60]} minutes
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/return
Posted: Sun Sep 05, 2004 10:18 pm
by JP5
exptrack.mac@36 (Event_Exp): /i say EXP: ${Exper} etc.
/i = ?
Posted: Mon Sep 06, 2004 4:25 am
by GD
My guess is it's a command to a custom plugin, or an alias, because it's not an MQ command, that's for sure.
Posted: Mon Sep 06, 2004 5:43 am
by Qimbz
/i say is a command native to the MQ2IRC plugin, in the event you don't have the plugin it shouldn't cause you issues.
Posted: Tue Sep 14, 2004 2:22 am
by rustedone
anyone able to modify this one so it checks Leader Xp and maybe make the average line a bit less confusing, or what ever the first line was.
Posted: Tue Sep 14, 2004 5:08 pm
by PhoenixZorn
Pardon?? what's confusing about this?? it takes 2 lines of math and 2 variables, with a total of 8 MQ2 Value structures... I can't make it any simpler... as for the Leadership XP, I can add it in, gimme a couple days... I'm quite busy.
Posted: Thu Sep 16, 2004 6:29 pm
by psychotik
Code: Select all
/varset Exper ${Me.Exp}
/varset AAExp ${Me.AAExp}
should be
Code: Select all
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
the first gain of exp reports a neg number because of this =p
Posted: Thu Sep 16, 2004 9:59 pm
by Ferinus
I took the liberty and added Leader experiance and fixed the problem addressed by Psychotick. You will have to fix the problem caused by the board word wrapping my lines near the bottom.
Code: Select all
|-- exptrack.mac
|-- by Raebis, with tweaks from Phoenix
|-- Version 0.5
|-- August 30th, 2004
|----------------------------------------------------
|-- Macro will track the immediate experience gained after each gain, as well as keep a running total over time.
|-- Blatantly stolen from AdvChant.mac specifically for the character being powerlevelled, since when you AE, you
|-- don't really want XP flashes at 20 per second when ALL the mobs die. Does not differentiate between Group,
|-- Raid or Single XP, but really... it's far better this way... remove the (/popup)/(/i say) if you don't want them in there.
#event Exp "You gain#*#"
#turbo
Sub Main
/declare Exper float outer
/declare AAExp float outer
/declare LDRExp float outer
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset LDRExp ${Me.PctGroupLeaderExp}
/echo Beginning XPTracker..
:loop
/doevents
/goto :loop
/return
Sub Event_Exp
/varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]}
/varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]}
/varset LDRExp ${Math.Calc[${Me.PctGroupLeaderExp}-${LDRExp}]}
/echo EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - LDRXP: ${LDRExp}:${Me.PctGroupLeaderExp} - ${Math.Calc[${Macro.RunTime}/60]} minutes
/i say EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - LDRXP: ${LDRExp}:${Me.PctGroupLeaderExp} - ${Math.Calc[${Macro.RunTime}/60]} minutes
/popup EXP: ${Exper}:${Me.PctExp}% - AAXP: ${AAExp}:${Me.PctAAExp}% - LDRXP: ${LDRExp}:${Me.PctGroupLeaderExp} - ${Math.Calc[${Macro.RunTime}/60]} minutes
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset LDRExp ${Me.PctGroupLeaderExp}
/return
[/code]
Posted: Fri Sep 17, 2004 6:13 pm
by PhoenixZorn
Psychotik and Ferinus, thanks both of you... Psy, I always wondered why it did that... =)
Posted: Sat Sep 18, 2004 5:34 am
by 3x
Can you please add time till LVL/AA/LDRAA is complete?
Posted: Mon Sep 20, 2004 3:46 pm
by PhoenixZorn
well... since there is a perfektly gud plugin for this, I'm likely not going to update this macro anymore... it's good the way it is if all you want is what it has. If you want more than this, check out the plugins page.. =)
Posted: Thu Oct 21, 2004 5:04 pm
by endymion
Had a problem where this macro would display two /echo's for experience when you have leadership XP turned on...fixed that by adding a seperate sub for solo xp and changing the sub for grouped xp slightly. here's the new code:
Code: Select all
|-- August 30th, 2004
|----------------------------------------------------
|-- Macro will track the immediate experience gained after each gain, as well as keep a running total over time.
|-- Blatantly stolen from AdvChant.mac specifically for the character being powerlevelled, since when you AE, you
|-- don't really want XP flashes at 20 per second when ALL the mobs die. Does not differentiate between Group,
|-- Raid or Single XP, but really... it's far better this way... remove the (/popup)/(/i say) if you don't want them in there.
|-----------------------------------------
| Our new, seperate events...
|-----------------------------------------
#event Exp "#*#party experience!!"
#event Exp2 "You gain experience!!"
#turbo
|-----------------------------------------
| Here's our main...
|
|-----------------------------------------
Sub Main
/declare Exper float outer
/declare AAExp float outer
/declare LDRExp float outer
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset LDRExp ${Me.PctGroupLeaderExp}
/echo Beginning XPTracker..
:loop
/doevents
/goto :loop
/return
|-----------------------------------------
| Here's out first sub, tracking only grouped xp....
|
|-----------------------------------------
Sub Event_Exp
/varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]}
/varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]}
/varset LDRExp ${Math.Calc[${Me.PctGroupLeaderExp}-${LDRExp}]}
/echo EXP: ${Exper} (${Me.PctExp}%) - AAXP: ${AAExp} (${Me.PctAAExp}%) - LDRXP: ${LDRExp} (${Me.PctGroupLeaderExp})
/popup ${Exper} (${Me.PctExp}%) - AAXP: ${AAExp} (${Me.PctAAExp}%) - LDRXP: ${LDRExp} (${Me.PctGroupLeaderExp})
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset LDRExp ${Me.PctGroupLeaderExp}
/return
|-----------------------------------------
| Here's our second sub, tracking solo XP.
| Since you dont get LExp when solo, removed the popup/echo.
|-----------------------------------------
Sub Event_Exp2
/varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]}
/varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]}
/varset LDRExp ${Math.Calc[${Me.PctGroupLeaderExp}-${LDRExp}]}
/echo EXP: ${Exper} (${Me.PctExp}%) - AAXP: ${AAExp} (${Me.PctAAExp}%)
/popup ${Exper} (${Me.PctExp}%) - AAXP: ${AAExp} (${Me.PctAAExp}%)
/varset Exper ${Me.PctExp}
/varset AAExp ${Me.PctAAExp}
/varset LDRExp ${Me.PctGroupLeaderExp}
/return
Something else I'm going to work on while at work today: Making it so that it doesn't display AA xp if you are lower than level 51.
Edit: There's two !! in the xp messages, edited to reflect that.
Posted: Fri Oct 22, 2004 5:32 pm
by Space-Boy
either way as soon as you ding or ping, this is gonna show negative numbers~
Posted: Sat Oct 23, 2004 1:48 am
by endymion
Space-Boy wrote:either way as soon as you ding or ping, this is gonna show negative numbers~
I use it for showing how much XP i get per kill. It's still a good system, and it's only going to show negative numbers on the first kill of any ding. Excellent for seeing if you belong in a certain group or how much certain mobs are giving you.
Posted: Thu Nov 04, 2004 4:58 pm
by Healer
After compling i had the following error's, and could not load..
im not sure if my problem is coming from compling or loading the plugin
any thoughts?
Output Window
Compiling...
MQ2XPtrack.cpp
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(1) : error C2143: syntax error : missing ';' before '|'
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(4) : error C2059: syntax error : 'bad suffix on number'
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(8) : error C2001: newline in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(8) : error C2015: too many characters in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(9) : error C2015: too many characters in constant
C:\MQ2\MQ2XPtrack\MQ2XPtrack.cpp(11) : fatal error C1021: invalid preprocessor command 'event'
Error executing cl.exe.
Results
MQ2XPtrack.dll - 6 error(s), 0 warning(s)