Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2009, 06:35 AM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default Changing Stat Caps

I am attempting to alter the base stat caps but the changes I made to the client_mods.cpp file have no effect. This is the only location that I have found so far where this type of change could be made. Is this the correct location to make this change? Is there a redundant check or predefined variables else where that could keep my changes from working?

Previously I attempted to make this change in the database itself by altering the base1 and base2 fields of the aa_effects table but that did not work either.

I am using PEQdb Rev461 and EQEmu Rev483

Any suggestions would be greatly appreciated.
Reply With Quote
  #2  
Old 05-25-2009, 06:33 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

has anyone found out how to change the caps?
Reply With Quote
  #3  
Old 05-25-2009, 10:14 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

The stat caps are apparently calculated on both client and server side and I was never able to find the correct locations on server side to make the changes. I am guessing that I just over looked it and I have not had much time to spend on it lately. If I figure it out I will try to remember to post it here.

If you just want to increase your str, dex and sta caps you could do like I did and create a custom spell based off of the shaman focus and stamina lines. I used Talisman of the Dire Rk. III and Talisman of Persistence Rk. III as a base and just modded the stat cap increase to the desired level and decreased the other effects of the spell to zero, I also increased the duration of the spell so it would last for a long time. This is just a temporary and partial solution to the problem but it does work.
Reply With Quote
  #4  
Old 05-25-2009, 10:47 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

One way that should work is to use "IncStats(type, increase_val)" to set the base stats to whatever you want. I played with it a bit and it seemed to work ok. But, you would need to use it in a quest script, though you could put it into the player.pl if you wanted so that all newly created characters started with the base stats that you want. To use it, you should be able to do something like this:

Code:
$client->IncStats(STR, 100);
I don't remember offhand if type is supposed to be a number or the name of the stat, but if you play around with it a bit, it shouldn't be too hard to figure it out. I think the way it works is by changing the base stats in the playerprofile. You have to zone for the changes to take effect.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 05-25-2009, 11:16 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

Yes, that will work Trev and it can actually be done within the game world with #incstat 0 2 or #statinc 0 2 or something like that. Also in SoF I think that one could alter the starting stats table in SoFCharCreateData.h and achieve the same goal.
This still doesn't change the max value of a given stat that a character can reach with items. Right now it is at 430 even in SoF due to the missing aa tables in the emulator.

Altering the client_mods.cpp file so that you gain +10 to each stat at level up has no effect as there seems to be a redundant calculation some where else in the code.

I managed to gain a temporary stat cap increase by altering the aa's planar power and chaotic potential but as soon as the character zones it is reverted back to 430 due to that calculation I can't seem to find. Even changing the max level that is trainable in those aa's doesn't work as it just freezes the aa window.
Reply With Quote
  #6  
Old 05-25-2009, 11:46 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, there is no easy way to increase the max stats other than to rely on AAs. You should be able to easily adjust max stats for players that have the Planar Power AAs by editing the AA tables. Right now, it is set to give 5 to each stat per point you train in it, but you could set it to do 10 per train point or whatever you wanted.

The client enforces it's stats in most cases, so either you need to trick it from the server or you need to do work arounds with spells and such like you were doing. It is a limitation of the client. I am sure there are ways to trick the client to increase them in any way you want, but it wouldn't be pretty and it would require you to do some custom changes to the source code if you wanted it to be automatic.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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:10 AM.


 

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