question about GM account

Status
Not open for further replies.
Skilled Illusionist
Joined
Mar 4, 2012
Messages
326
Reaction score
22
Hi,

I want to allow only 1 character per GM account. what should I edit? I searched the source but I don't know what to edit..

thanks.
 
allright and i will be the one.
There are 2 ways of giving someone rights.
1. Per account:
ACCOUNT_DBF -> Tables -> dbo.ACCOUNT_TBL_DETAIL -> m_chLoginAuthority
2. Per character:
CHARACTER_01_DBF -> Tables -> dbo.CHARACTER_TBL -> m_chAuthority

EDIT: NOTE that you must do 1 or the other. If you put account and character, the whole account will have the authority, it overrules the character method.

Have fun,
Worf.
 
well i need to do the account because of the website and stuff.. and that's what i'm doing.. the account thing.. what i want to do to only allow 1 character in a GM account.. cause right now.. a GM accounts can have 3 GM characters..

thanks.
 
than edit your website that it does not read in the account_tbl but in the character_01_tbl for the authority.

make it so that if > 0 chars are => P have certain rights. should not be to difficult to find the right database lookup and change it.
 
I don't want to mix a GM character and a normal character in one account.. that's why I want only allow 1 character per GM account..

anyways.. Im looking at this code in WndTitle.cpp:
Code:
void CWndSelectChar::OnDraw( C2DRender* p2DRender )
{
	CWndButton* pWndAccept = (CWndButton*)GetDlgItem( WIDC_ACCEPT );
	CWndButton* pWndCreate = (CWndButton*)GetDlgItem( WIDC_CREATE );
	CWndButton* pWndDelete = (CWndButton*)GetDlgItem( WIDC_DELETE );

	CRect rect;
	for( int i = 0; i < MAX_CHARACTER_LIST; i++ )
	{
		rect = m_aRect[ i ];
		if( g_Neuz.m_apPlayer[i] != NULL )
		{
#if __VER >= 15 // __2ND_PASSWORD_SYSTEM
			if( g_WndMng.GetWndBase( APP_2ND_PASSWORD_NUMBERPAD ) == NULL )
			{
				POINT point = GetMousePoint();
				if( m_aRect[ i ].PtInRect( point ) )
				{
					CRect rectHittest = m_aRect[ i ];
					CPoint point2 = point;

I know the MAX_CHARACTER_LIST = 3.. can I do an if statement inside a for statement? if yes, how can i do it? i tried copying the whole loop and doing like:
Code:
 if(m_dwAuthorization >= AUTH_GAMEMASTER)
{ 
	for( int i = 0; i < 1; i++ )
	{ THE LOOP }
}
else
{
	for( int i = 0; i < MAX_CHARACTER_LIST; i++ )
	{THE LOOP }
}

I included the authorization.h. but it says m_dwAuthorization is not defined.. so i included mover.h.. but it still the same.
oh i think that loop will make the create button in the character select clickable or not.
 
Status
Not open for further replies.
Back