Increasing Max Character Slot

01/18/2014 16:11 raventh1984#1
Hi elitepvpers,

I am testing something out but i am hitting agains an brick wall atm

What i want to do is when you login and you are seeing the character selection screen instead of 3 chars i want to have 4 chars.

I already edited Resdata.inc and this is correct.
Also WndTitle.cpp is edited (At least the things i can see atm)

So what it does know is you can click on the 4th slot and you can create an char. This char is saved into the DB with playerslot[3]

However when you have created the char and you will be redirected to the char selection screen. It wont show the 4th Char.

Also on top of my screen i also see only Characters 3 instead of 4

So i guess its not getting the playerslot 3 from the DB.

So where do i need to look so that i can see the 4th char and its getting the playerslot[3] from the DB.

MAX_PLAYERSLOT has also been altered to 4 instead of the 3.
01/18/2014 16:24 WurstbrotQT#2
Code:
	CMover*							pMover[3];
	u_long							m_idPlayerBank[3];
	CItemContainer< CItemElem  >	m_Bank[3];
	DWORD							m_dwGoldBank[3];
And take a look at
Code:
CDbManager::SendPlayerList( CQuery* qry, LPDB_OVERLAPPED_PLUS lpDbOverlappedPlus )
Instead of increasing the array size I'd recommend you use tha macro MAX_PLAYERSLOT. There are many loops using 3 instead of 4.
01/18/2014 16:44 raventh1984#3
Thank you WurstbrotQT

that function did the trick it is now showing the 4th char.
Now i will do the rest and indeed with macro as in MAX_PLAYERSLOT is indeed an nice thing to do.

Well back to coding then.