Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2008, 04:09 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Thanks - I'll let it stand around here a few days before committing it all, incase anyone else has more ideas.
I wasn't really sure why this never got in, probably just forgotten I guess.
Reply With Quote
  #2  
Old 10-26-2008, 06:24 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Just a thought, but couldn't we just set the rule to the % of a level we want to lose on death instead of predefined options?

common/ruletypes.h
Code:
RULE_REAL ( Character, DeathExpLossLevelPercent, 20) //1 yellow of exp lost on death by default. float for a little more accuracy if needed
zone/attack.cpp
Code:
// figure out if they should lose exp
	float loss = RuleR(Character, DeathExpLossLevelPercent) / 100.0f;
	exploss=(int)((float)GetEXP() * (loss)); //Angelox: loose % of total XP
SQL:
Code:
INSERT INFO rule_values VALUES (0, 'Character:DeathExpLossLevelPercent', 20);
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 10-27-2008, 11:07 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

I went ahead and put it in as I originally had it, since it's based on what cbodmer posted and was running on the Rathe server for a long time now (Derisions addition included).
Not that I think it's any better than yours, I'm just sure it all works as is since it's all been tested doesn't show any problems. The variable experience thing was what I added, and I tested it all week too.
It's always up for change anyway.
Reply With Quote
  #4  
Old 10-27-2008, 12:42 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

Quote:
Originally Posted by AndMetal View Post
Just a thought, but couldn't we just set the rule to the % of a level we want to lose on death instead of predefined options?
yeah the plain % xp way does seem more straight forward
Reply With Quote
  #5  
Old 10-29-2008, 06:12 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Cavedude; I saw you put back the old exp multiplier back? You can take the one I put in out if it's no good.
Reply With Quote
  #6  
Old 10-29-2008, 07:24 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

I added a rule, so admins can either use the old formula or your rule to specify a multiplier. The default is to use your system. I created the rule for purely selfish reasons, I liked the old formula and wished to keep it. But, this is a win-win situation. Stubborn folks like me can continue to use the old system, and people who want control can use yours.
Reply With Quote
  #7  
Old 05-24-2009, 12:55 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I had an interesting idea.

I like idea that peopel loose Xp on death but I don't like idea of people loosing their level.
Is it posible to implement a rule that when you die, you NEVER loose Xp beyond your level?
Reply With Quote
  #8  
Old 05-24-2009, 03:57 PM
WillowyLady
Sarnak
 
Join Date: Aug 2003
Location: Recycle Bin
Posts: 90
Default

CharacterDeathExpLossLevel

This rule exists, Table (rule_values)

Just set to desired level, > than can be made on server?

__________________
I'll be back!

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:50 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3