Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2011, 11:58 AM
iRFNA
Fire Beetle
 
Join Date: Dec 2009
Posts: 23
Default Altering max health/mana formula for players: possible?

I've been considering creating an EQ server that has diminishing returns for all item/spell added stats based on the total used (but NOT base stats) and removing all class based formulas for the calculation of health and mana, instead using one based only on stats. Anyway, the only thing I'm not sure about is a way to make the client recognize the new HP and mana values. I'm guessing this could be done with some sort of hacked AAs? If it's impossible, I guess I can just "fake it" by altering all damage taken/mana costs dynamically to use the % from their EQ client calculated pools that would have been taken out of their "correct" pools, but it's so ugly. Any advice? I'd also like to mess with regen values as well, but I'm also not sure if that's possible...
Reply With Quote
  #2  
Old 02-09-2011, 01:45 PM
iRFNA
Fire Beetle
 
Join Date: Dec 2009
Posts: 23
Default

I guess to be more clear, I'm asking if there's a way to send a max HP/mana buff/debuff via custom AAs with a dynamically determined value so I can correct the client/default calculated values to my custom ones. I'm guessing something like AAs would be needed because having buff icons would look silly. Or is there a way to just make custom buffs on the fly and have them permanently stick, preferably with no icon?
Reply With Quote
  #3  
Old 03-16-2011, 10:33 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I believe some coders experimented by using Charm slot to send "fake" stats updates to the client to force it to recognize server-side data.
This of course puts your Charm slot out of the game usage, but at least it grants access to custom formulas
Reply With Quote
  #4  
Old 05-02-2011, 01:45 PM
devn00b's Avatar
devn00b
Demi-God
 
Join Date: Jan 2002
Posts: 15,658
Default

Quote:
Originally Posted by iRFNA View Post
I guess to be more clear, I'm asking if there's a way to send a max HP/mana buff/debuff via custom AAs with a dynamically determined value so I can correct the client/default calculated values to my custom ones. I'm guessing something like AAs would be needed because having buff icons would look silly. Or is there a way to just make custom buffs on the fly and have them permanently stick, preferably with no icon?
Suppose you could adjust playerprofile to add the stats you want and they would be there. This would of course affect base stats. So that portion of your request would need a work around.
__________________
(Former)Senior EQEMu Developer
GuildWars Co-Founder / World Builder.
World Builder and Co-Founder Zek [PVP/Guild Wars/City Takeovers]
Member of the "I hate devn00b" Club
Most Senior EQEMu Member.

Current Work: EverQuest 2 Emulator. Zeklabs Server
Reply With Quote
  #5  
Old 05-02-2011, 05:08 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

Use the tribute code to send invisible items to the client to correct HP/Mana/Stats to the values you want.

All tributes are, are items that are equipped invisibly in 4 slots. You can hijack this code, and while losing the tribute feature, you gain the ability to do what you want. Look at the revisions for tribute.cpp to see an example we tried. (PEQ reverted it because of a conflict with the playerbase, but they balanced hp/mana/end throughout clients.)

Here's the revision in specific:

http://code.google.com/p/projecteqem...svn1888&r=1508
Reply With Quote
Reply


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 08:42 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