Hi,
I have try to add the Death Math system (on Level Flyff). The system work, but i can't teleport my character to the arena (I have try to add the Fwc map with the WI_WORLD_ITAK_ARENA).
In resource folder, i have add WI_WORLD_ITAK_ARENA to defineworld and world.inc (and wold.txt) and CoreServer. (When i test to teleport my character /teleport 247 100 100 100 that's doesn't work, the map doesn't work)
This is the DPsrv.cpp files:
The AddText "Vous êtes entré dans la zone d'attente, le survival va bientôt commencer, bonne chance !" work, but i'm not teleport in the DeathMath.
Please how fix it ?
Thks
I have try to add the Death Math system (on Level Flyff). The system work, but i can't teleport my character to the arena (I have try to add the Fwc map with the WI_WORLD_ITAK_ARENA).
In resource folder, i have add WI_WORLD_ITAK_ARENA to defineworld and world.inc (and wold.txt) and CoreServer. (When i test to teleport my character /teleport 247 100 100 100 that's doesn't work, the map doesn't work)
This is the DPsrv.cpp files:
Code:
#ifdef __DEATH_MATCH
void CDPSrvr::OnArenaEnter2( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
// ¾Æ·¹³ª Áö¿ª ÀÔÀå
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
if( IsValidObj( pUser ) )
{
if( pUser->IsBaseJob() ) // 1Â÷ ÀüÁ÷À» ¿Ï·áÇÑ À¯Àú¸¸ °¡´É
return;
if( g_DeathMatch.DM_STATE == DM_OPEN )
{
pUser->AddText("Le survival n'est pas ouvert à cette heure.");
return;
}
/*else if( ((CMover*)pUser)->GetPartyId() )
{
pUser->AddText("Vous ne devez pas être groupés.");
return;
}*/
pUser->SetMarkingPos();
pUser->REPLACE( g_uIdofMulti, WI_WORLD_ITAK_ARENA, D3DXVECTOR3( 1217.0F, 147.0F, 1775.0F ), REPLACE_NORMAL, nDefaultLayer );
pUser->AddText("Vous êtes entré dans la zone d'attente, le survival va bientôt commencer, bonne chance !");
}
}
#endif //__DEATH_MATCH
Please how fix it ?
Thks