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
➜ Plugins
➜ XP Rate Plugin
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Pokkie
(11 posts) Bio
|
| Date
| Thu 05 Nov 2009 07:28 AM (UTC) |
| Message
| I am trying to write a plugin that will calculate the amount of XP/Minute based on the last mob kill.
I want it to display on the status bar, e.g. where the Tick_Timer plugin displays, underneath the command input window.
It should have the following fields :
Time : Displays, in seconds, the time it took for the last kill
XP : Displays the amount of XP gained from the last kill
XP/Minute : Displays the calculated XP/Minute calculated by the following formula : 60/Time * XP
So, if it takes 20 seconds to kill a mob and I gain 100 XP, then the XP/Minute is calculated as 60/20 * 100 which works out to be 300 XP/Minute.
Could somebody point me in the right direction as to how one can develop such a plugin?
Thanks,
-- pok
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 05 Nov 2009 07:41 AM (UTC) |
| Message
| This plugin which does something similar might help you get started:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Pokkie
(11 posts) Bio
|
| Date
| Reply #2 on Thu 05 Nov 2009 08:52 AM (UTC) |
| Message
| | Thanks alot Nick, exactly what I was looking for | | 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.
14,326 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top