Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
SoW1983
Newbie


Joined: 14 Nov 2008
Posts: 4
Location: Washington State

PostPosted: 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.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
SoW1983
Newbie


Joined: 14 Nov 2008
Posts: 4
Location: Washington State

PostPosted: 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)
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
SoW1983
Newbie


Joined: 14 Nov 2008
Posts: 4
Location: Washington State

PostPosted: 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.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 672
Location: New York

PostPosted: Mon Nov 17, 2008 4:17 pm   
 
Safe to assume there's no prompts?
Reply with quote
SoW1983
Newbie


Joined: 14 Nov 2008
Posts: 4
Location: Washington State

PostPosted: Mon Nov 17, 2008 9:10 pm   
 
correct
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net