Page 1 of 1

ExpTracking.mac Version 2.0 -- New Exp Tracker in .mac form

Posted: Fri Oct 29, 2004 9:29 pm
by Neolesh
Updated Dec 30, 2004 - Just as Cr4zy orginally said, this needed to be fine tuned and I finally got around to it. My Declares are not nearly as long as the code now!! Even the code was shorted quite a bit. I still believe this exp tracker is much better than the one that is stickied!

A .inc version is available in the snippets part of the forums to more easily integrate this into your current macros. Or just run this macro to track exp stats while not running any macros.

This is originally influenced by "perfect xptracker". I wanted more useful and better displayed information, and this is the result. Enjoy

Code: Select all

|**********************
ExpTracking.mac
Version 2.0

This macro will track your exp in various forms.
You can track Total Exp Gained, Total AA Exp Gained, Total Run Time, Exp Gained Per Minute,
AA Exp Gained Per Minute, Aproximate Time Till Ding, and Aproximate Time Till AA Ding.
Some of this came from the current "perfect xptracker" macro however I wanted to display
more usefull information.

To use simply /mac ExpTracking

Here's an example of the information you might see.

************************************
Total Exp Gained: 127.43%
Total AA Exp Gained: 55.59%
Total Running Time: 189.45 minutes
Exp Gained Per Minute: 0.67
AA Exp Gained Per Minute: 0.29
Aprox Time to Ding: 120 Minutes
Aprox Time to AA Ding: 317 Minutes
************************************

***********************|

#event Exp "You Gain#*#"

Sub Main

   /declare Exper          float  outer ${Me.PctExp}
   /declare AAExp          float  outer ${Me.PctAAExp}
   /declare TotalAAExp     float  outer  0.00
   /declare TotalExp       float  outer  0.00

   
|*********************************************************************
Edit these values as you see fit. If you set to 1 the information will 
show each call. Set to 0 and it will not show.
**********************************************************************|

||Show Total Exp Gained?||
   /declare ShowTEG       bool   outer TRUE

||Show Total AA Exp Gained?||
   /declare ShowTAAEG     bool   outer TRUE
   
||Show Total Run Time?||   
   /declare ShowTRT       bool   outer TRUE
   
||Show Exp Gained Per Minute?||   
   /declare ShowEGPM      bool   outer TRUE
   
||Show AA Exp Gained Per Minute?||
   /declare ShowAAEGPM    bool   outer TRUE
   
||Show Aproximate Time Till Ding?||
   /declare ShowATTD      bool   outer TRUE
   
||Show Aproximate Time Till AA Ding?||
   /declare ShowATTAAD    bool   outer TRUE

:ExpCheckLoop

/doevents

/goto :ExpCheckLoop

/return

Sub event_Exp

  /if (${Me.PctAAExp}>=${AAExp}) {
   /varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}]} 
  } else {
   /varset AAExp ${Math.Calc[${Me.PctAAExp}-${AAExp}+100]}
  }
  /if (${Me.PctExp}>=${Exper}) {
   /varset Exper ${Math.Calc[${Me.PctExp}-${Exper}]} 
  } else {
   /varset Exper ${Math.Calc[${Me.PctExp}-${Exper}+100]}
  }
      /varcalc TotalAAExp ${TotalAAExp}+${AAExp}
      /varcalc TotalExp ${TotalExp}+${Exper}

   /echo ***************************************
   /if (${ShowTEG}) /echo Total Exp Gained: ${TotalExp}%
   /if (${ShowTAAEG}) /echo Total AA Exp Gained: ${TotalAAExp}%
   /if (${ShowTRT}) /echo Total Running Time: ${Math.Calc[${Macro.RunTime}/60]} minutes
   /if (${ShowEGPM}) /echo Exp Gained Per Minute: ${Math.Calc[${TotalExp}/${Math.Calc[${Macro.RunTime}/60]}]}
   /if (${ShowAAEGPM}) /echo AAExp Gained Per Minute: ${Math.Calc[${TotalAAExp}/${Math.Calc[${Macro.RunTime}/60]}]}
   /if (${ShowATTD}) {
      /if (${TotalExp}==0) {
         /echo Aprox Time till Ding: Forever!!
      } else {
         /echo Aprox Time till Ding: ${Math.Calc[${Math.Calc[${Math.Calc[${Macro.RunTime}/60]}/${TotalExp}]}*${Math.Calc[100-${Me.PctExp}]}]} minutes
      }
   }
   /if (${ShowATTAAD}) {
      /if (${TotalAAExp}==0) {
         /echo Aprox Time till AA Ding: Forever!!
      } else {
         /echo Aprox Time till AA Ding: ${Math.Calc[${Math.Calc[${Math.Calc[${Macro.RunTime}/60]}/${TotalAAExp}]}*${Math.Calc[100-${Me.PctAAExp}]}]} minutes
      }
   }
   /echo ***************************************
   /varset Exper ${Me.PctExp} 
   /varset AAExp ${Me.PctAAExp} 
     
/return

Posted: Fri Oct 29, 2004 11:42 pm
by Cr4zyb4rd
When the number of declares is that close to the number of lines of actual working code, it's a good sign that you may need to rethink things just a bit. :P

Posted: Sat Oct 30, 2004 12:28 am
by Neolesh
:roll:

Posted: Thu Dec 30, 2004 4:22 pm
by Neolesh
Shorter Declares, shorter code. looking for a Cr4zyb4rd stamp of approval! yes and it only took me 2 months to get around to it!

Posted: Thu Dec 30, 2004 9:42 pm
by aChallenged1
Haven't read through it, but the one thing that drove me nuts with the one I ripped and used is that it did not reset the XP for the current level when I 'dinged' and I'm wondering if this one does that.

Posted: Thu Dec 30, 2004 10:30 pm
by Neolesh
This one keeps on counting, if you ding it will continue counting as if you didn't. The total exp %# goes over 100. You could have for example an output like this

Code: Select all

************************************ 
Total Exp Gained: 127.43% 
Total AA Exp Gained: 456.89% 
Total Running Time: 651.10 minutes 
Exp Gained Per Minute: 0.28
AA Exp Gained Per Minute: 0.70
Aprox Time to Ding: 502.99 Minutes 
Aprox Time to AA Ding: 50.05 Minutes 
************************************ 

Posted: Thu Dec 30, 2004 11:34 pm
by aChallenged1
Cool, I'll have to give it a go.

Posted: Fri Dec 31, 2004 1:55 am
by JimJohnson
i was using his older version of this as an include and its pretty nice. 18 hours run time. will grab the new version and see how it handles

Posted: Fri Dec 31, 2004 4:28 am
by mq2user77
A plugin version would be usable. I tend to use other macros while fighting/kiting.. (forage, loot/sell, ability, etc)

Posted: Fri Dec 31, 2004 1:39 pm
by Neolesh
mq2user77 wrote:A plugin version would be usable. I tend to use other macros while fighting/kiting.. (forage, loot/sell, ability, etc)
There is a .inc version available in the snippets section

Cool 2026-27 News Website

Posted: Mon May 18, 2026 5:35 pm
by FrankJScott
In response to the guy asking about online business, x ray tech, 2024 presidential candidates prediction, technology news, technology in education, political campaign strategies, black politician, lab technician, breitbart politics, top 10 corrupt politicians in world 2022, I highly recommend this excellent news in 2026-27 details or talking politics, medical lab technician, corporate online, kari lake cnn, llc, conservative news, bob chapek political party, real clear policy, patriotic alliance, green politics, not forgetting sites such as this at bing for news in 2026-27 tips on top of real clear pol, johnson amendment, political call, single party system, limited liability, sarah palin education, bovada politics, corporation business, legendary marketer, all politics is local, and don't forget this official source on news in 2026-27 blog which is also great. Also, have a look at this updated news in 2026-27 url not to mention business growth, pluralist democracy, shiv sena news, entrepreneur, the populist party, government and politics, fark politics, mccarthy and gaetz, conservative party shop, softtech, and don't forget this new news in 2026-27 info bearing in mind isidewith, cassell coliseum, conservative leadership race candidates, amway pyramid scheme, best business to start with little money, and go to the website for for good measure. Check more @ Top 2026-27 News Info ecbe2d2