Quantcast
Channel: elitepvpers
Viewing all articles
Browse latest Browse all 31591

[Fix] User is not in GW

$
0
0
Too lazy to explain the exploit

Change your "CDPSrvr::OnGCTele" to ->

Code:

void CDPSrvr::OnGCTele( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
        CUser* pUser        = g_UserMng.GetUser( dpidCache, dpidUser );
        if( IsValidObj( pUser ) )
        {
                if( pUser->GetWorld() && pUser->GetWorld()->GetID() == WI_WORLD_GUILDWAR )
                {
                        PRegionElem pRgnElem = g_WorldMng.GetRevivalPos( WI_WORLD_MADRIGAL, "flaris" );
                        if( pRgnElem )
                                ((CMover*)pUser)->REPLACE( g_uIdofMulti, WI_WORLD_MADRIGAL, D3DXVECTOR3( 6983.0f, 0.0f, 3330.0f ), REPLACE_NORMAL, nDefaultLayer );
                }
        }
}


Viewing all articles
Browse latest Browse all 31591

Trending Articles