Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Reactivate Duel Mode

Junior Spellweaver
Joined
Mar 24, 2021
Messages
149
Reaction score
25
Im currently using k15 and just wanna explore classic things up and i just remember DUEL is one of the crazy things in game so i decided try to enable it. Here you go

WndWorld.cpp
Code:
#if __VER >= 12 // __CSC_VER12_1
            if( pTarget->m_vtInfo.IsVendorOpen() )
            {
                m_wndMenuMover.AppendMenu( 0,  MMI_QUERYEQUIP , prj.GetText(TID_MMI_QUERYEQUIP) );
            }
            else
            {
#endif //__CSC_VER12_1
            m_wndMenuMover.AppendMenu( 0,  MMI_TRADE        , prj.GetText( TID_MMI_TRADE ) );
            m_wndMenuMover.AppendMenu( 0,  MMI_ADD_MESSENGER, prj.GetText( TID_MMI_ADD_MESSENGER ) );
            m_wndMenuMover.AppendMenu( 0,  MMI_INVITE_PARTY , prj.GetText( TID_MMI_INVITE_PARTY ) );

            CGuild* pGuild    = g_pPlayer->GetGuild();
            if( pGuild )
            {
                CGuildMember* pMember    = pGuild->GetMember( g_pPlayer->m_idPlayer );
                if( pMember )
                {
                    if( pGuild->m_adwPower[pMember->m_nMemberLv] & PF_INVITATION )
                        m_wndMenuMover.AppendMenu( 0, MMI_INVITE_COMPANY, prj.GetText( TID_MMI_INVITE_COMPANY ) );
                }
            }

[COLOR=#FF0000]#ifdef __REACTIVATE_DUEL
            if( !pTarget->m_vtInfo.IsVendorOpen() )
            {
                if( fDistSq > 45.0f && pTarget->IsDie() == FALSE && !g_pPlayer->IsBaseJob() && g_pPlayer->GetWorld() && g_pPlayer->GetWorld()->GetID() != WI_WORLD_GUILDWAR )
                    m_wndMenuMover.AppendMenu( 0,  MMI_DUEL, prj.GetText( TID_MMI_FIGHT ));
                
            }
#endif[/COLOR]

/*#if __VER >= 8     // 8차 듀얼존에 관계없이 PVP가능하게함   Neuz, World
            if( !g_pPlayer->IsBaseJob() && pTarget->IsDie() == FALSE )    // 레벨이 15이상일때만 메뉴가 나타남.
            {
                BOOL bInsert = TRUE;
                if(g_pPlayer && g_pPlayer->GetWorld() && g_pPlayer->GetWorld()->GetID() == WI_WORLD_GUILDWAR)
                    bInsert = FALSE;
                if(fDistSq < 10.0f)
                    bInsert = FALSE;

                if( bInsert )
                {
                    m_wndMenuMover.AppendMenu( 0,  MMI_DUEL, prj.GetText( TID_MMI_DUEL ) );
                }
            }
#else    // __VER >= 8  */

I have to share this coz i see lots of sources doesn't have this. Have fun!!
 
Back
Top