Jump to content

xP3NG3Rx

Honorable Member
  • Posts

    855
  • Joined

  • Days Won

    402
  • Feedback

    100%

Everything posted by xP3NG3Rx

  1. Which mode you are building the server?
  2. [Hidden Content] [Hidden Content] Reading is the base of learning.
  3. Stop beeing stupid. What I made that is only clientside visual bugfix. You have to edit the serverside part.
  4. If I'll be able to unpack it again I'll share it. After this leuco_shell shit right now I cannot unpack it.
  5. He's just a jealous kid, nothing else.
  6. If you extend the followings with a link of turkish forum, it's will be fine. /konu/3599508-kemik-efektleri/ or /konu/3602847-kemik-efektleri-c-py-paylasilan-ile-alakasi-yoktur/
  7. M2 Download Center Download Here ( Internal ) Hello. I saw this stuff on this and on another board also with bugs or it was incomplete, and I made it to myself. Feel free to use it with your brain. Good to know about this: The name of those items which have attributes will be golden. The skillbook and skillforget items will show the name of skill also. If the item isn't yours than the ownership color will be red instead of yellow. * Készségkönyv = Skillbook(id:50300) * Feledés könyve = Skillforget book(id:70037) PS.: If you have problems with the implementation: start to upgrade your programming knowledges and don't disturb me in private message, I won't answer. Thank you for understanding. [Hidden Content]
  8. 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)) [Hidden Content]
  9. Anyone know what the fuk is this shit??
  10. M2 Download Center Download Here ( Internal ) Hello. The most people here and on every board in this section don't have any clue about programming and they cannot do even nothing with the open source library codes, so here are the cryptlib(5.6.3 and 5.6.5) and libjpeg(9a) libraries what built with vc141 by me on the latest(I think) SDK on Windows10 10.0.16299.0. Sorry for my raw style but this is the truth. [Hidden Content] [Hidden Content] Aaaand I don't wanna talk about the services, that is another story... Peace.
  11. Of course it isn't problem. But let me to inform you; on the official, they are using a new part value stores the vnum of pendant, and than querying the values from it. int *__cdecl playerGetElementByVID(int a1, int a2) { int *result; // eax int iPendantVnum; // eax signed int iN; // [esp+8h] [ebp-1Ch] char tItemApply; // [esp+Ch] [ebp-18h] char *pPendantItemData; // [esp+14h] [ebp-10h] int iVID; // [esp+18h] [ebp-Ch] _DWORD *pDestInstance; // [esp+1Ch] [ebp-8h] int _dummy; // [esp+20h] [ebp-4h] if ( !PyTuple_GetLong(a2, 0, &iVID) ) return (int *)Py_BadArgument(); _dummy = 0; pDestInstance = (_DWORD *)(*(int (__thiscall **)(signed int, int))(MEMORY[4] + 8))(4, iVID);// CPythonCharacterManager::Instance().GetInstancePtr(iVID); if ( !pDestInstance ) return python27_Py_BuildValue((int)"i", 0); iPendantVnum = CInstanceBase::GetPart(pDestInstance, 6);// New PART_PENDANT to querying the equipped item of the target if ( !CItemManager::GetItemDataPointer(0, iPendantVnum, &pPendantItemData) ) return python27_Py_BuildValue((int)"i", 0); iN = 0; while ( 2 ) { if ( iN >= 3 ) return python27_Py_BuildValue((int)"i", 0); CItemData::GetApply(pPendantItemData, iN, (int)&tItemApply); switch ( tItemApply.bType ) { case 99: // APPLY_ENCHANT_ELECT result = python27_Py_BuildValue((int)"i", 2048); break; case 100: // APPLY_ENCHANT_FIRE result = python27_Py_BuildValue((int)"i", 4096); break; case 101: // APPLY_ENCHANT_ICE result = python27_Py_BuildValue((int)"i", 8192); break; case 102: // APPLY_ENCHANT_WIND result = python27_Py_BuildValue((int)"i", 16384); break; case 103: // APPLY_ENCHANT_EARTH result = python27_Py_BuildValue((int)"i", 32768); break; case 104: // APPLY_ENCHANT_DARK result = python27_Py_BuildValue((int)"i", 65536); break; default: ++iN; continue; } break; } return result; }
  12. Me neither see the server side codes why . Also the official version is client side only. Anyway thanks.
  13. @metin2-factory Just try that code what you paste
  14. Yes, that is only for debug.
  15. Hello everyone. Here is a little snippet for the chat history. I made this to turn back the "All" state if you turn off every each button.
  16. M2 Download Center Download Here ( Internal ) Hello, This little thing is marks your pet seal into your inventory like the autopotion. This arrives with the v17.5 patch. Open PetSystem.cpp and replace or make it fit for you: void CPetActor::SetSummonItem(LPITEM pItem) { if (NULL == pItem) { LPITEM pSummonItem = ITEM_MANAGER::instance().FindByVID(m_dwSummonItemVID); if (NULL != pSummonItem) pSummonItem->SetSocket(1, FALSE); m_dwSummonItemVID = 0; m_dwSummonItemVnum = 0; return; } pItem->SetSocket(1, TRUE); m_dwSummonItemVID = pItem->GetVID(); m_dwSummonItemVnum = pItem->GetVnum(); } After that open the uiInventory.py and paste this code below the autopotion if-statement in the RefreshBagSlotWindow function. elif itemVnum >= 53001 and itemVnum <= 53256: metinSocket = [player.GetItemMetinSocket(globalSlotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)]# <!> globalSlotNumber may be different <!> isActivated = 0 != metinSocket[1] if isActivated: self.wndItem.ActivateSlot(i) else: self.wndItem.DeactivateSlot(i)
  17. case POINT_GOLD: { UINT newGold = MINMAX(0, GetGold() + amount, g_llMaxGold);//!!!MaxGold SetGold(newGold); val = GetGold(); } break;
  18. I would never use this ugly type of code It hurts when I'm trying to read it.
  19. I will release the mine if I will have time to write the guide for it >,<
  20. Ahh no, leave the python alone.
  21. Maybe this? self.serverInfo.SetText("sv:HQ:0.0.0.0:ÑÑÑÇatrix") # This is INTENDED! If you change this horrendous thing, fix the dot bug before # (This solves it for the english alphabet) self.serverInfo.SetText("") (c)Wom@Think(?)
  22. Or explain your problem here, maybe?
  23. v17.5 Beta new packs are here! New dungeon w/ weapons, armors, mobs, sashes. New Halloween minigame gui files, costumes, pet and mount with 2 textures. And so on.. Download : (Mega) I wasn't update my proto packer yet. I cannot decrypt the mob_proto because of the changed structure. And the item_proto is containing a lot of new informations, new types, subtypes, applytypes and so on. item_proto: (Mega) Download : (All) (Metin2 Download)
×
×
  • 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.