Disabling various XP in EQ2

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Disabling various XP in EQ2

Post by John Adams » Mon Jan 09, 2012 10:08 pm

Anyone,

Is the Disable Combat XP, Disable Quest XP, and Disable Character Bonus XP settings persistent when you log off? Meaning, if you turn off your Combat XP, camp, and come back later in the day, is your XP still disabled?

I've implemented the toggles for Quest/Bonus XP, but noticed there never was a DB field to save these flags. It would be easy to add, just not sure why LE didn't do it originally... maybe this is why?

Thanks

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Disabling various XP in EQ2

Post by Jabantiz » Mon Jan 09, 2012 10:43 pm

It was persistent the last time I played, that was about 6 months ago.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Disabling various XP in EQ2

Post by John Adams » Tue Jan 10, 2012 6:34 am

Cool thanks. And once again, in a dream, a solution came to me :) I was wondering why the CF2_* values were "too big" for the flags value, and it's because the CF2_CHARACTER_BONUS_EXPERIENCE_ENABLED is a value of 38, so I need to do that fancy

Code: Select all

	if (flag < 32) GetInfoStruct()->flags |= (1 << flag);
	else GetInfoStruct()->flags2 |= (1 << (flag - 32));

Or... scatman...

Should I just make character_flags a BigInt(20)? not sure if that'll work.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests