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 07-02-2003, 10:47 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default Code for STR/STA/AGI/DEX/INT/WIS/CHA Luclin AAs

The following is code that enables the Innate Strength, Stamina, etc AAs, as well as raises the caps of the stats to their PoP levels.

client.cpp line ~224 change:

Code:
sint16 Client::GetMaxSTR()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxSTA()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxDEX()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxAGI()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxINT()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxWIS()
{
    // todo: PoP AA abilities
    return 255;
}
sint16 Client::GetMaxCHA()
{
    // todo: PoP AA abilities
    return 255;
}
To:

Code:
sint16 Client::GetMaxSTR()

{

    // todo: PoP AA abilities
	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}
}

sint16 Client::GetMaxSTA()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}

sint16 Client::GetMaxDEX()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}

sint16 Client::GetMaxAGI()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}

sint16 Client::GetMaxINT()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}

sint16 Client::GetMaxWIS()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}

sint16 Client::GetMaxCHA()

{

    // todo: PoP AA abilities

	if (GetLevel() == 65) {
		return 280;
	}
	else if (GetLevel() == 64) {
		return 275;
	}
	else if (GetLevel() == 63) {
		return 270;
	}
	else if (GetLevel() == 62) {
		return 265;
	}
	else if (GetLevel() == 61) {
		return 260;
	}
	else {
    return 255;
	}

}
client.h line ~154 change:

Code:
	inline sint16	GetSTR()		{ int16 str = GetBaseSTR() + itembonuses->STR + spellbonuses->STR; if(str>255)return 255; else return str  /*+ aa.general_skills.named.innate_strength * 2*/; }//might be screwing up
	inline sint16	GetSTA()		{ int16 sta = GetBaseSTA() + itembonuses->STA + spellbonuses->STA; if(sta>255)return 255; else return sta/*+ aa.general_skills.named.innate_stamina * 2*/; }
	inline sint16	GetDEX()		{ int16 dex = GetBaseDEX() + itembonuses->DEX + spellbonuses->DEX; if(dex>255)return 255; else return dex/*+ aa.general_skills.named.innate_dexterity * 2*/; }
	inline sint16	GetAGI()		{ int16 agi = GetBaseAGI() + itembonuses->AGI + spellbonuses->AGI; if(agi>255)return 255; else return agi/*+ aa.general_skills.named.innate_agility * 2*/; }
	inline sint16	GetINT()		{ int16 int_ = GetBaseINT() + itembonuses->INT + spellbonuses->INT; if(int_>255)return 255; else return int_/*+ aa.general_skills.named.innate_intelligence * 2*/; }
	inline sint16	GetWIS()		{ int16 wis = GetBaseWIS() + itembonuses->WIS + spellbonuses->WIS; if(wis>255)return 255; else return wis/*+ aa.general_skills.named.innate_wisdom * 2*/; }
	inline sint16	GetCHA()		{ int16 cha = GetBaseCHA() + itembonuses->CHA + spellbonuses->CHA; if(cha>255)return 255; else return cha/*+ aa.general_skills.named.innate_charisma * 2*/; }
To:

Code:
	inline sint16	GetSTR()		{ int16 str = GetBaseSTR() + itembonuses->STR + spellbonuses->STR; uint8 *aa_item = &(((uint8 *)&aa)[1]); if(str>255)return str+*aa_item*2; else return str+*aa_item*2; }
	inline sint16	GetSTA()		{ int16 sta = GetBaseSTA() + itembonuses->STA + spellbonuses->STA; uint8 *aa_item = &(((uint8 *)&aa)[2]); if(sta>255)return sta+*aa_item*2; else return sta+*aa_item*2; }
	inline sint16	GetDEX()		{ int16 dex = GetBaseDEX() + itembonuses->DEX + spellbonuses->DEX; uint8 *aa_item = &(((uint8 *)&aa)[4]); if(dex>255)return dex+*aa_item*2; else return dex+*aa_item*2; }
	inline sint16	GetAGI()		{ int16 agi = GetBaseAGI() + itembonuses->AGI + spellbonuses->AGI; uint8 *aa_item = &(((uint8 *)&aa)[3]); if(agi>255)return agi+*aa_item*2; else return agi+*aa_item*2; }
	inline sint16	GetINT()		{ int16 int_ = GetBaseINT() + itembonuses->INT + spellbonuses->INT; uint8 *aa_item = &(((uint8 *)&aa)[5]); if(int_>255)return int_+*aa_item*2; else return int_+*aa_item*2; }
	inline sint16	GetWIS()		{ int16 wis = GetBaseWIS() + itembonuses->WIS + spellbonuses->WIS; uint8 *aa_item = &(((uint8 *)&aa)[6]); if(wis>255)return wis+*aa_item*2; else return wis+*aa_item*2; }
	inline sint16	GetCHA()		{ int16 cha = GetBaseCHA() + itembonuses->CHA + spellbonuses->CHA; uint8 *aa_item = &(((uint8 *)&aa)[7]); if(cha>255)return cha+*aa_item*2; else return cha+*aa_item*2; }
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #2  
Old 07-03-2003, 06:30 AM
Slayden
Hill Giant
 
Join Date: Jun 2003
Location: PA
Posts: 203
Default woot

Awsome, thanks a Ton!
__________________
"I know of no higher fortitude than stubbornness in the face of overwhelming odds." Louis Nizer
Reply With Quote
  #3  
Old 07-14-2003, 02:08 PM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

Added to 0.5.0-DR1

(PS: Thanks!)
Reply With Quote
  #4  
Old 07-15-2003, 06:16 AM
Memener's Avatar
Memener
Dragon
 
Join Date: Jan 2003
Location: College park, GA (atlanta)
Posts: 640
Default

This may be stupied or what not but what do you souce the code?
__________________
AMD AM2 X2 3.01Ghz(OC'ed at 3.8Ghz) 4096MB DDR2 800 Geforce 8800 ultra SLI 1.2TB HD <-- All water cooled

Thanks to Imageshack.us for free image hosting!
Reply With Quote
  #5  
Old 07-15-2003, 06:33 AM
Merth
Dragon
 
Join Date: May 2003
Location: Seattle, WA
Posts: 609
Default

Quote:
This may be stupied or what not but what do you souce the code?
I don't understand what you are asking about.
Reply With Quote
  #6  
Old 07-15-2003, 07:06 AM
tcsmyworld's Avatar
tcsmyworld
Discordant
 
Join Date: Feb 2002
Posts: 452
Default

I actually added this into the last compile I did of 044.
It's avalable here-

http://forums.eqemu.net/viewtopic.php?t=8962
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 07:24 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