XP Counter Mini-window

Posted by Funkenstein on Wed 10 Mar 2010 07:49 AM — 3 posts, 16,059 views.

#0
Hi everyone,

Was wondering if people could help me out of a pickle...

I am trying to create a mini-window that shows an updateable xp counter. I've had some minor successes with mini-windows before (got inventory and equipment mini windows to work) but am confused on getting an xp counter.

What I am after is an xp counter to show information about how much experience I have gained over a period of time as well as how many kills and how much per kill.

Fields the window I would like to have include:

Start XP: 135
Current XP: 135
XP Earned: 0
XP TNL: 865
XP/Min: 0
Mobs Killed: 0
Avg XP/Mob: 0

A mini-window of this would show up upon entering an alias that would get the initial information from the below example.

You have scored 135 experience points, and need 865 more to advance.


Start XP: would be calculated from the scored experience when the alias started.

Current XP: would be calculated from scored experience subsequent times when viewing your info.

XP Earned: would be current minus start

XP TNL: would be the experience needed more to advance

XP/Min: would be the experience earned up to the current time period

Mobs Killed: number of mobs killed so far

Avg XP/Mob: average experience from the mobs killed (XP earned / mobs killed)


I am also trying to have it update everytime i kill a mobile by adding on that experience and increasing the mob kill count as well as the xp/min being updated every minute or when the information is checked.

The window would stop when another alias is entered and that provides a final update on that xp session.

Any help would be appreciated

Thanks in advance
Australia Forum Administrator #1
This thread may help a bit:

Template:post=8777
Please see the forum thread: http://gammon.com.au/forum/?id=8777.
#2
Thanks Nick for the right direction,

I have got that xp gain plugin somewhat working in the MUD I play. One snag I am trying to overcome is capturing the data for the last mobile killed as well as the experience earned. I have to capture multiple lines... e.g.

A lazy forest troll is dead! R.I.P.
Your spirit increases by 5.
You receive your share of experience -- 52 points.

--or--

A large, brown snake is dead! R.I.P.
You receive your share of experience -- 8 points.

For humanoid mobiles I earn spirit but that screws with the 2 line trigger capture. Is there a way to pick up both examples using one capture? If not I can just make another trigger to capture the 3 lines...

Thanks in advance.