Browse Source

Fixed unknown for max characters. Increased max characters from 10 to 30.

Devn00b 1 year ago
parent
commit
be77540b74

+ 5 - 5
EQ2/source/LoginServer/PacketHeaders.cpp

@@ -27,7 +27,7 @@ EQ2Packet* LS_CharSelectList::serialize(int16 version){
 		account_info.account_id = account_id;
 		account_info.unknown1 = 0xFFFFFFFF;
 		account_info.unknown2 = 0;
-		account_info.unknown3 = 10;
+		account_info.maxchars = 10;
 		account_info.unknown4 = 0;
 		AddData(account_info);
 	}
@@ -36,13 +36,13 @@ EQ2Packet* LS_CharSelectList::serialize(int16 version){
 		account_info.account_id = account_id;
 		account_info.unknown1 = 0xFFFFFFFF;
 		account_info.unknown2 = 0;
-		account_info.unknown3 = 10;
+		account_info.maxchars = 30; //devn00b:Corrected unknown and increased maxchars from 10 to 30.
 		account_info.unknown4 = 0;
 		for (int i = 0; i < 3; i++)
 			account_info.unknown5[i] = 0xFFFFFFFF;
 		account_info.unknown5[3] = 0;
-		account_info.unknown6 = 0xFFFF; // sets Veteran Bonus under 'Select Character' yellow (vs greyed out), adventure/tradeskill bonus 200%
-		account_info.unknown7 = 0; // when 1 (count?) provides free upgrade option for character to lvl 90 (heroic character) -- its a green 'Free' up arrow next to the character that is selected in char select
+		account_info.vet_adv_bonus = 1;
+		account_info.vet_trade_bonus = 0;
 		AddData(account_info);
 	}	
 	return new EQ2Packet(OP_AllCharactersDescReplyMsg, getData(), getDataSize());
@@ -72,4 +72,4 @@ void LS_CharSelectList::loadData(int32 account, vector<CharSelectProfile*> charl
 void CharSelectProfile::SaveData(int16 in_version){
 	Clear();
 	AddData(*packet->serializeString());
-}
+}

+ 4 - 4
EQ2/source/LoginServer/login_structs.h

@@ -40,7 +40,7 @@ struct LS_CharListAccountInfoEarlyClient {
 	int32	account_id;	
 	int32	unknown1;	
 	int16	unknown2;	
-	int32	unknown3;	
+	int32   maxchars;	
 	int8	unknown4;	
 	//	int8	unknown7; // adds 'free' option..	
 };
@@ -49,12 +49,12 @@ struct LS_CharListAccountInfo{
 	int32	account_id;
 	int32	unknown1;
 	int16	unknown2;
-	int32	unknown3;
+	int32	maxchars;
 	// DoF does not have the following data
 	int8	unknown4;
 	int32	unknown5[4];
-	int16	unknown6;
-	int8	unknown7; // adds 'free' option..
+	int8	vet_adv_bonus;  // sets Veteran Bonus under 'Select Character' yellow (vs greyed out), adventure/tradeskill bonus 200%
+	int8	vet_trade_bonus;  // when 1 (count?) provides free upgrade option for character to lvl 90 (heroic character) -- its a green 'Free' up arrow next to the character that is selected in char select
 };
 #pragma pack()