Death Match teleport

11/06/2014 19:55 LoscArmy#1
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:
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
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
11/07/2014 14:57 raventh1984#2
Do you have an error? Check error logs.
Also check if the map is located inside /Resource/World and /Client/World

Also did you restart the server files? and not only worldServer? You also need to restart CoreServer.

I also have added the deathmatch but i have no problems with the TP commands.
11/11/2014 14:42 Wharsh#3
Quote:
Originally Posted by LoscArmy View Post
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:
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
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
Try reading the whole code maybe you're missing something.
11/11/2014 15:59 .SnoX#4
If you cant teleport with the cmd why should he teleport you with a npc?
Srsly. Fix your map then it will works lawl. :facepalm:
11/17/2014 19:12 LoscArmy#5
Hi and thanks, When rename the world_itak_arena in world.inc with:
WI_WORLD_ITAK_ARENA "WdArena", that's work (i delete the "WdArena" with the WI_WORLD_ARENA. But, i can't attack another players in the DeathMatch and the registration GuildWar crash. Maybe u know how fix it pls?

Sorry for my english..
11/20/2014 20:05 ZeroTwo02#6
Level Flyff source backdoor :) Low Kid don't use the source, go use Virtuos Shitty Source :)