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
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