Perfect XP Tracker - With XP over Time

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

Moderator: MacroQuest Developers

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Perfect XP Tracker - With XP over Time

Post by PhoenixZorn » Mon Aug 30, 2004 3:35 pm

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

Last edited by PhoenixZorn on Wed Nov 03, 2004 7:41 pm, edited 1 time in total.

JP5
a lesser mummy
a lesser mummy
Posts: 70
Joined: Tue Jul 06, 2004 10:32 pm

Post by JP5 » Sun Sep 05, 2004 10:18 pm

exptrack.mac@36 (Event_Exp): /i say EXP: ${Exper} etc.

/i = ?

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Mon Sep 06, 2004 4:25 am

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.
Opinions are like assholes, everyone has one, but most of them stink.

Qimbz
orc pawn
orc pawn
Posts: 11
Joined: Sun Jun 20, 2004 11:25 pm

Post by Qimbz » Mon Sep 06, 2004 5:43 am

/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.

rustedone
orc pawn
orc pawn
Posts: 14
Joined: Sat Aug 21, 2004 11:07 pm

Post by rustedone » Tue Sep 14, 2004 2:22 am

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.

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Post by PhoenixZorn » Tue Sep 14, 2004 5:08 pm

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.

User avatar
psychotik
a ghoul
a ghoul
Posts: 112
Joined: Mon Oct 06, 2003 3:48 am

Post by psychotik » Thu Sep 16, 2004 6:29 pm

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

Ferinus
orc pawn
orc pawn
Posts: 15
Joined: Thu Sep 16, 2004 9:57 pm
Location: Olympia, Wa

Post by Ferinus » Thu Sep 16, 2004 9:59 pm

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]

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Post by PhoenixZorn » Fri Sep 17, 2004 6:13 pm

Psychotik and Ferinus, thanks both of you... Psy, I always wondered why it did that... =)

3x
orc pawn
orc pawn
Posts: 20
Joined: Sun Jan 25, 2004 12:54 am

Post by 3x » Sat Sep 18, 2004 5:34 am

Can you please add time till LVL/AA/LDRAA is complete?

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Post by PhoenixZorn » Mon Sep 20, 2004 3:46 pm

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.. =)

endymion
a lesser mummy
a lesser mummy
Posts: 34
Joined: Sat Feb 21, 2004 8:37 pm

Post by endymion » Thu Oct 21, 2004 5:04 pm

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.
[size=67]Please don't flame me. It makes me cry.[/size]
-----------------
Everquest account: 34.95 a month
Macroquest Forum membership: Free

Putting your char names in your signature like a dumbass and getting banned for it: Priceless

Space-Boy
a hill giant
a hill giant
Posts: 242
Joined: Wed Dec 04, 2002 12:53 pm
Contact:

Post by Space-Boy » Fri Oct 22, 2004 5:32 pm

either way as soon as you ding or ping, this is gonna show negative numbers~
You have gotten better at Carpal Tunnel! (247)

endymion
a lesser mummy
a lesser mummy
Posts: 34
Joined: Sat Feb 21, 2004 8:37 pm

Post by endymion » Sat Oct 23, 2004 1:48 am

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.
[size=67]Please don't flame me. It makes me cry.[/size]
-----------------
Everquest account: 34.95 a month
Macroquest Forum membership: Free

Putting your char names in your signature like a dumbass and getting banned for it: Priceless

Healer
decaying skeleton
decaying skeleton
Posts: 1
Joined: Thu Nov 04, 2004 4:56 pm

Post by Healer » Thu Nov 04, 2004 4:58 pm

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)