Metin2 HIDING PLAYERS IN OX

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Blaze

Elite
Elite
VIP
Joined
Jan 28, 2019
Messages
507
Credits
635
Game-Db Source / Server / common / service.h
C++:
Expand Collapse Copy
#define HIDDEN_OX
Enter Game-Db Source / Server / game / src / entity_view.cpp and add it to the section where it contains;
C++:
Expand Collapse Copy
#include "OXEvent.h"
then search;
C++:
Expand Collapse Copy
void operator () (LPENTITY ent)
{
    if (!ent->IsType(ENTITY_OBJECT))
        if (DISTANCE_APPROX(ent->GetX() - m_me->GetX(), ent->GetY() - m_me->GetY()) > dwViewRange)
            return;
add below;
C++:
Expand Collapse Copy
#ifdef HIDDEN_OX
    if (ent->IsType(ENTITY_CHARACTER) && m_me->IsType(ENTITY_CHARACTER))
    {
        const LPCHARACTER chMe = static_cast<LPCHARACTER>(m_me);
        const LPCHARACTER chEnt = static_cast<LPCHARACTER>(ent);

        if (chMe->GetMapIndex() == OXEVENT_MAP_INDEX && !chMe->IsGM() && !chEnt->IsGM())
            return;   
    }
#endif

Good luck :)
 
Back
Top