|
SoW1983 Newbie
Joined: 14 Nov 2008 Posts: 4 Location: Washington State
|
Posted: Fri Nov 14, 2008 10:50 pm
XP Counter for leveling and moster Kills (Astaria) |
I'm looking to set up a xp per kill and meter to show how much I have left to level script for the MUD I play on (Astaria) (astaria3.com port 5000). It would be really great if it could be in a status bar to elimate extra spam in the main window. I do not know how to do this, Please help. Below is the command we type to check the XP we currently have left to level. There is no command to show how much XP was gained off the last kill.
There are two ways to tell soemthing died.
X dies in fits of twitching agony.
or
Combat is Over
Here's the return when 'xp' is typed:
Your current experience points: 244423
Here's the return when 'lev' is typed:
You now have 244423 experience.
Your current player level is 14.
Player level 15 requires 245577 more experience,
and it will cost you 7840 falcon coins to advance.
Your current psion guild level is 13.
Psion guild level 14 requires 178077 more experience,
and it will cost you 6760 falcon coins to advance.
Your heritage is that of the noble. |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Nov 15, 2008 5:51 am |
Code: |
#CLASS {Level XP Tracker}
#TRIGGER {You now have (%n) experience.} {#CLASS {Level XP Tracker|Vars};#VAR CurrXP %1;#CLASS 0}
#TRIGGER {Player level (%d) requires (%n) more experience,} {#CLASS {Level XP Tracker|Vars};#VAR NextLVL %1;#VAR NeedXP %2;#CLASS 0}
#TRIGGER {whatever your gain message from mob is with the number replaced by (%n)} {#CLASS {Level XP Tracker|Vars};#VAR CurrXP %eval(@CurrXP + %1);#VAR NeedXP %eval(@NeedXP - %1);#CLASS 0}
#TRIGGER {You gained a level message here.} {lev}
#STAT {To reach level @NextLVL you need @NeedXP more XP. You currently have @CurrXP~.}
#CLASS {Level XP Tracker|Vars}
#VAR CurrXp {}
#VAR NextLVL {}
#VAR NeedXP {}
#CLASS 0 |
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Nov 15, 2008 5:52 am |
Bah, sorry... didn't notice what you said about there being no xp off last kill msg. That blows. I'll re-write the above script sometime when I'm awake. Its not hard, just... dumb.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sat Nov 15, 2008 3:07 pm |
Do you have anything to trigger off of when combat is over?
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
SoW1983 Newbie
Joined: 14 Nov 2008 Posts: 4 Location: Washington State
|
Posted: Sat Nov 15, 2008 11:15 pm |
X dies in fits of twitching agony. (is when a monster dies, If posible like to see the xp i gained off the individual monster for I hunt in rooms with more then one thing in it)
and
Combat is Over (is when everything in combat is dead or has stopped fighting) |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sun Nov 16, 2008 1:04 am |
Ok, that doesn't tell me what messages occur if fighting stops but the mob isn't DEAD.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
SoW1983 Newbie
Joined: 14 Nov 2008 Posts: 4 Location: Washington State
|
Posted: Sun Nov 16, 2008 3:34 am |
There is no message for me for if I leave the room while in combat or anything else.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Sun Nov 16, 2008 4:26 am |
... I don't know how to automate this then, since I don't play your MUD I have no way to see enough combat examples to be able to properly trigger such "non-death" combat ends.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Mon Nov 17, 2008 4:17 pm |
Safe to assume there's no prompts?
|
|
|
|
SoW1983 Newbie
Joined: 14 Nov 2008 Posts: 4 Location: Washington State
|
Posted: Mon Nov 17, 2008 9:10 pm |
correct
|
|
|
|
|
|