Not answered Martysama 5.8 problem with refine

Member
Jun
Threads
1
12
0
1

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

Sem nome.png

Anyone knows how to fix this?

he confuses the value of vnum count and prob, dont know why
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,385
2
1,310
113
View attachment 2966

Anyone knows how to fix this?

he confuses the value of vnum count and prob, dont know why

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Member
Sep
Threads
0
4
0
1
Can someone help me?!
There are 2 problems, one is in the Packets.h file in the client, search
TRefineTable and do the same on the server you will see that the structures are different, then changes the client structure with the one present in the server. Fix errors that can popup due to that mod. Then open PythonNetworkStreamPhaseGame, search for RecvRefineInformationPacketNew and replace it with the code you can see down here.


C++:
bool CPythonNetworkStream::RecvRefineInformationPacketNew()
{
    TPacketGCRefineInformationNew kRefineInfoPacket;
    if (!Recv(sizeof(kRefineInfoPacket), &kRefineInfoPacket))
        return false;

    PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME],
        "OpenRefineDialog",
        Py_BuildValue("(BILiB)",
            kRefineInfoPacket.pos,
            kRefineInfoPacket.result_vnum,
            kRefineInfoPacket.cost,
            kRefineInfoPacket.prob,
            kRefineInfoPacket.type)
        );

    for (int i = 0; i < kRefineInfoPacket.material_count; ++i)
    {
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "AppendMaterialToRefineDialog", Py_BuildValue("(II)", kRefineInfoPacket.materials[i].vnum, kRefineInfoPacket.materials[i].count));
    }
    //>> RecvRefineInformationPacketNew(pos = 3, result_vnum = 51, cost = 600, prob = 0, type = 100)
#ifdef _DEBUG
    Tracef(" >> RecvRefineInformationPacketNew(pos=%d, result_vnum=%d, cost=%lld, prob=%d, type=%d)\n",
                                                        kRefineInfoPacket.pos,
                                                        kRefineInfoPacket.result_vnum,
        kRefineInfoPacket.cost,
        kRefineInfoPacket.prob,
                                                        kRefineInfoPacket.type);
#endif

    return true;
}
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock