Anyone have an idea how to get the players current experience?
I want to write a function that returns the current XP Per Hour gains, probably by calculating from the scripts starting time and starting player xp...
The math is easy, but I am very new to this engine and am not sure how to (or if its even possible) to get the players current experience.
I looked, but I didnt see any XP related functions at all in bBot.
Any other ideas?
Frosty
Posted: May 22nd, 2007, 1:41 am
farkle Total Posts: 21 Location: West coast, US Joined: April 3rd, 2007, 12:41 pm
farkle's Reps:0
B-Bot uses an in game command /gvlist advex, and has the log file open/reading to get the needed information, you obviously didn't look that hard. Now that actual experience gained per kill has been added to the chatlog, it would be trivial to parse for it and inc the variable every pass it witnesses. Getting your total experience however, is probably somewhere in client memory and unless you find someone bored enough to disassemble (or execution trace, or look for changes in memory, or race/class combination experience pools get posted somewhere) vgclient.exe, it sounds like you're out of luck.