Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ XP Counter Mini-window

XP Counter Mini-window

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Funkenstein   (17 posts)  Bio
Date Wed 10 Mar 2010 07:49 AM (UTC)
Message
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
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 10 Mar 2010 07:17 PM (UTC)
Message
This thread may help a bit:

Template:post=8777 Please see the forum thread: http://gammon.com.au/forum/?id=8777.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Funkenstein   (17 posts)  Bio
Date Reply #2 on Thu 11 Mar 2010 09:08 AM (UTC)
Message
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.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,588 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.