/summon command isn't working.

09/16/2012 08:30 RavenTh#1
Hello pvper's

I have a question when using the /summon command it doesn't work at all.

I have looked in the functxt.cpp but it seems good.
Also tried an different source and compared those to but they are the same.

What could be the problem.

With kind regards.

BTW I noticed when i am using the /summon command
the error.log gives an Layer not Found
09/16/2012 10:51 ThoughtfulDev#2
does the player exists u want to summon? when it does post your functextcmd.cpp part of summon in here pls
09/16/2012 11:12 RavenTh#3
The player exist in the game otherwise you will get the message player doesn't exist.

This is the functextcmd.cpp

ON_TEXTCMDFUNC( TextCmd_Summon, "summon", "su", "¼Òȯ", "¼Òȯ", TCM_SERVER, AUTH_GAMEMASTER , "À¯Àú¼Òȯ" )

BOOL TextCmd_Summon( CScanner& scanner )
{
#ifdef __WORLDSERVER
TCHAR lpszPlayer[32];

scanner.GetToken();
CUser* pUser = (CUser*)scanner.dwValue;
if( strcmp( pUser->GetName(), scanner.Token) )
{
#if __VER >= 11 // __SYS_PLAYER_DATA
u_long idPlayer = CPlayerDataCenter::GetInstance()->GetPlayerId( scanner.token );
#else // __SYS_PLAYER_DATA
u_long idPlayer = prj.GetPlayerID( scanner.Token );
#endif // __SYS_PLAYER_DATA
if( idPlayer > 0 ){
strcpy( lpszPlayer, scanner.Token );
#ifdef __LAYER_1015
g_DPCoreClient.SendSummonPlayer( pUser->m_idPlayer, pUser->GetWorld()->GetID(), pUser->GetPos(), idPlayer, pUser->GetLayer() );
#else // __LAYER_1015
g_DPCoreClient.SendSummonPlayer( pUser->m_idPlayer, pUser->GetWorld()->GetID(), pUser->GetPos(), idPlayer );
#endif // __LAYER_1015
}
else {
// scanner.Token¶ó´Â À̸§À» °¡Áø »ç¿ëÀÚ´Â ÀÌ °ÔÀÓ¿¡ Á¸ÀçÇÏÁö ¾Ê´Â´Ù.
pUser->AddReturnSay( 3, scanner.Token );
}
}
else
{
pUser->AddReturnSay( 2, " " ); // ÀÚ±â Àڽſ¡°Ô ¸í·ÉÇß´Ù.
}

#endif // __WORLDSERVER
return TRUE;
}
09/16/2012 11:32 ThoughtfulDev#4
u have AUTH_GAMEMASTER?
09/16/2012 11:55 RavenTh#5
i have AUTH_DEVELOPER.
But i also tested it with AUTH_GAMEMASTER

Both of them don't work
11/19/2012 10:06 raventh1984#6
Bump.

I still didnt solved it. And i dont know where to look anymore