Jump to content

Recommended Posts

Hei guys i had a problem with an script.
This script dont wanna do what i want so for exemple i want when i will teleport from a map to other map this script make my party group declined.
This script block the group party from mapindex 26.

SCRIPT C++:

// PARTY_JOIN_BUG_FIX
void CInputMain::PartyInvite(LPCHARACTER ch, const char * c_pData)
{
    if (ch->GetArena())
    {
        ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("대련장에서 사용하실 수 없습니다."));
        return;
    }

    TPacketCGPartyInvite * p = (TPacketCGPartyInvite*) c_pData;

    LPCHARACTER pInvitee = CHARACTER_MANAGER::instance().Find(p->vid);

    if (!pInvitee || !ch->GetDesc() || !pInvitee->GetDesc())
    {
        sys_err("PARTY Cannot find invited character");
        return;
    }
    
    if(ch->GetMapIndex() == 26)
    {
        ch->ChatPacket(CHAT_TYPE_INFO,"In aceasta mapa nu poti invita playeri in grupa!");
        return;
    }
    else
    {
        ch->PartyInvite(pInvitee);
    }
}

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

18 hours ago, metin2-factory said:

this function you're showing is to invite a player to a group. besides that,use proper English because no one can understand anything of what you're asking.

This script is made to when u are on mapindex 26 u cant make any party group. What i want is when u teleport on this map the group party u have already maded this group will be destroyed.

You know?

Thanks you!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 0

      PRESENTATION PAGE [OLDGODSMT2 RELEASE]

    3. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    4. 2

      United/Club/Midgard serverfiles?

    5. 13

      Metin2 Closed Beta Content (2003-2004)

    6. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.