Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2002, 03:05 AM
neotokyo
Hill Giant
 
Join Date: Oct 2002
Posts: 118
Default FIX: some xp bugs

as you may well know, the xp bar didnt really update well. and when you put 100% into AAXP the game actually said that you lose xp. well those issues are kinda fixed.

sorry i dont have a diff output :-((

in client.cpp


void Client::SetEXP(int32 set_exp, int32 set_aaxp, bool isrezzexp) {

> // neotokyo 09-Nov-02
> // each AA-Level is supposed to be like levelling from 51 to 52
> // -- this is probably not the best place to calculate the xp needed, but at
> // least the neccessary variables are valid (race,class,...)
> max_AAXP = GetEXPForLevel(52) - GetEXPForLevel(51);
> // neotokyo 09-Nov-02
> // need to calc the sum of both xp's otherwise the prg thinks its negative xp
> if ((set_exp + set_aaxp) > pp.exp)


in client.cpp in the same function SetEXP i changed the formula for eu->exp to correctly update the xp bar in the client:


ExpUpdate_Struct* eu = (ExpUpdate_Struct*)app.pBuffer;
> double tmpxp = (double) ( (double) set_exp-GetEXPForLevel( GetLevel() )) /
> ( (double) GetEXPForLevel(GetLevel()+1)-GetEXPForLevel(GetLevel()));
> eu->exp = (int32)(330.0f * tmpxp);
QueuePacket(&app);


the "wrong" formula is applied throughout the zone-server in a few other places. you need to replace those at well.
hope this isnt too confused ...
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 03:47 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