Jump to content

How To Fix PartyRemovePacket


xP3NG3Rx

Recommended Posts

  • Honorable Member

Hello,

Today I'm gonna share with you a little fix from the official server.

 

Spoiler
// PythonPlayerModule.cpp
PyObject * playerPartyMemberVIDToPID(PyObject* poSelf, PyObject* poArgs)
{
    DWORD dwVID;
    if (!PyTuple_GetUnsignedLong(poArgs, 0, &dwVID))
        return Py_BadArgument();
 
    DWORD dwPID;
    if (CPythonPlayer::Instance().PartyMemberVIDToPID(dwVID, &dwPID))
        return Py_BuildValue("i", dwPID);
 
    return Py_BuildValue("i", 0);
}
//
        { "PartyMemberVIDToPID",                    playerPartyMemberVIDToPID,                  METH_VARARGS },
 
After if you want to remove a member by VID just use like this:
(m2)net(m2g).SendPartyRemovePacket(player.PartyMemberVIDToPID(self.vid))

 

 

https://pastebin.com/15aqnrif

.png

  • Metin2 Dev 2
  • Love 8
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Announcements



×
×
  • 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.