Jump to content

Search the Community

Showing results for tags 'packet'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Forum
    • Anuncios
    • FAQ
  • DEV servidores
    • Metin2
  • Classificados
    • Trocas e Vendas
    • Outros
  • Hardware
    • Geral
    • Duvidas
  • Software
    • Download
    • Geral
    • Duvidas
  • Sistemas Operativos
    • FreeBSD
    • Windows
  • Programacao
    • PHP
    • C / C++ / C#
    • SQL
    • Python
  • Websites
    • Design
    • Codificado
  • Design
    • Galeria
    • Geral
    • Ferramentas
  • SysAdmin
    • Geral
    • Duvidas
  • Outros jogos
    • Geral
    • Downloads
  • Off-topic
    • Geral


  • Metin2
    • Quests
    • Clientes
    • Serverfiles
    • Tools
    • Other Downloads
    • Weapons & Armors
    • NPC & MOB
  • Software
  • Operating Systems
    • Windows
  • Honor Room

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me




Yahoo! Messenger




Google Analytics Client ID

Found 3 results

  1. Guest

    [C++] Item delete packet

    Hi folks! Client source: //ClientSide - Userinterface/Packet.h //Add this after the includes if you don't have: #include "Locale_inc.h" //Search for: HEADER_CG_ITEM_DROP2 = 20, //Add under: #ifdef ENABLE_REMOVE_PACKET HEADER_CG_ITEM_DESTROY = 21, #endif //Search for: } TPacketCGItemDrop2; //Add under: #ifdef ENABLE_REMOVE_PACKET typedef struct command_item_destroy { BYTE header; TItemPos pos; } TPacketCGItemDestroy; #endif //ClientSide - Userinterface/PythonNetworkStreamPhaseGameItem.cpp //Add this after the includes if you don't have: #include "Locale_inc.h" //Search for: bool CPythonNetworkStream::SendItemDropPacketNew(TItemPos pos, DWORD elk, DWORD count) //After the definition of SendItemDropPacketNew add under: #ifdef ENABLE_REMOVE_PACKET bool CPythonNetworkStream::SendItemDestroyPacket(TItemPos pos) { if (!__CanActMainInstance()) return true; TPacketCGItemDestroy itemDestroyPacket; itemDestroyPacket.header = HEADER_CG_ITEM_DESTROY; itemDestroyPacket.pos = pos; if (!Send(sizeof(itemDestroyPacket), &itemDestroyPacket)) { Tracen("SendItemDestroyPacket Error"); return false; } return SendSequence(); } #endif //ClientSide - Userinterface/PythonNetworkStreamModule.cpp //Add this after the includes if you don't have: #include "Locale_inc.h" //Search for: PyObject* netSendItemDropPacket(PyObject* poSelf, PyObject* poArgs) //After the definition of netSendItemDropPacket add under: #ifdef ENABLE_REMOVE_PACKET PyObject* netSendItemDestroyPacket(PyObject* poSelf, PyObject* poArgs) { TItemPos Cell; if (!PyTuple_GetInteger(poArgs, 0, &Cell.cell)) return Py_BuildException(); CPythonNetworkStream& rkNetStream = CPythonNetworkStream::Instance(); rkNetStream.SendItemDestroyPacket(Cell); return Py_BuildNone(); } #endif //Search for this: { "SendItemDropPacketNew", netSendItemDropPacketNew, METH_VARARGS }, //Add under: #ifdef ENABLE_REMOVE_PACKET { "SendItemDestroyPacket", netSendItemDestroyPacket, METH_VARARGS }, #endif //ClientSide - Userinterface/PythonNetworkStream.h //Add this after the includes if you don't have: #include "Locale_inc.h" //Search for: bool SendItemDropPacketNew(TItemPos pos, DWORD elk, DWORD count); //Add under: #ifdef ENABLE_REMOVE_PACKET bool SendItemDestroyPacket(TItemPos pos); #endif //ClientSide - Userinterface/PythonApplicationModule.cpp //Add this after the includes if you don't have: #include "Locale_inc.h" //Search for: PyModule_AddIntConstant(poModule, "CAMERA_STOP", CPythonApplication::CAMERA_STOP); //Add under: #ifdef ENABLE_REMOVE_PACKET PyModule_AddIntConstant(poModule, "DELETE_ITEM_PACKET", 1); #else PyModule_AddIntConstant(poModule, "DELETE_ITEM_PACKET", 0); #endif //ClientSide - Userinterface/Locale_inc.h //Add this: #define ENABLE_REMOVE_PACKET Server source: //Serverside - game/Packet.h //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: HEADER_CG_ITEM_DROP2 = 20, //Add under: #ifdef ENABLE_REMOVE_PACKET HEADER_CG_ITEM_DESTROY = 21, #endif //Search for: } TPacketCGItemDrop2; //Add Under: #ifdef ENABLE_REMOVE_PACKET typedef struct command_item_destroy { BYTE header; TItemPos Cell; } TPacketCGItemDestroy; #endif //Serverside - game/Packet_info.cpp //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: Set(HEADER_CG_ITEM_DROP2, sizeof(TPacketCGItemDrop2), "ItemDrop2", true); //Add under: #ifdef ENABLE_REMOVE_PACKET Set(HEADER_CG_ITEM_DESTROY, sizeof(TPacketCGItemDestroy), "ItemDestroy", true); #endif //Serverside - game/Input_main.cpp //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: void CInputMain::ItemDrop2(LPCHARACTER ch, const char * data) //After the definition of ItemDrop2 add this: #ifdef ENABLE_REMOVE_PACKET void CInputMain::ItemDestroy(LPCHARACTER ch, const char * data) { struct command_item_destroy * pinfo = (struct command_item_destroy *) data; if (ch) ch->DestroyItem(pinfo->Cell); } #endif //Search for: case HEADER_CG_ITEM_DROP2: //Add under: #ifdef ENABLE_REMOVE_PACKET case HEADER_CG_ITEM_DESTROY: if (!ch->IsObserverMode()) ItemDestroy(ch, c_pData); break; #endif //Serverside - game/Char.cpp //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount) //After the definition of DropItem add this: #ifdef ENABLE_REMOVE_PACKET bool CHARACTER::DestroyItem(TItemPos Cell) { LPITEM item = NULL; if (!CanHandleItem()) { if (NULL != DragonSoul_RefineWindow_GetOpener()) ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°*E*AcA» ?¬ »óAÂ?!1*´Â 3AAIAUA» ?A±a 1ö 3o1A´I´U.")); return false; } if (IsDead()) return false; if (!IsValidItemPosition(Cell) || !(item = GetItem(Cell))) return false; if (item->IsExchanging()) return false; if (true == item->isLocked()) return false; if (quest::CQuestManager::instance().GetPCForce(GetPlayerID())->IsRunning() == true) return false; if (item->GetCount() <= 0) return false; SyncQuickslot(QUICKSLOT_TYPE_ITEM, Cell.cell, 255); ITEM_MANAGER::instance().RemoveItem(item); ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Du hast %s zerstoert."), item->GetName()); return true; } #endif //Serverside - game/Char.h //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: bool DropItem(TItemPos Cell, BYTE bCount=0); //Add Under: #ifdef ENABLE_REMOVE_PACKET bool DestroyItem(TItemPos Cell); #endif //Serverside - game/Input.h //Add this after the includes if you don't have: #include "../../common/service.h" //Search for: void ItemDrop2(LPCHARACTER ch, const char * data); //Add Under: #ifdef ENABLE_REMOVE_PACKET void ItemDestroy(LPCHARACTER ch, const char * data); #endif //Serverside - common/service.h //Add this: #define ENABLE_REMOVE_PACKET Python: #root/uiCommon.py #Search for: class QuestionDialog(ui.ScriptWindow): #Add this above: if app.DELETE_ITEM_PACKET: class QuestionDialogItem(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__CreateDialog() def __del__(self): ui.ScriptWindow.__del__(self) def __CreateDialog(self): pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "uiscript/newquestiondialogitem.py") self.board = self.GetChild("board") self.textLine = self.GetChild("message") self.acceptButton = self.GetChild("accept") self.destroyButton = self.GetChild("destroy") self.cancelButton = self.GetChild("cancel") def Open(self): self.SetCenterPosition() self.SetTop() self.Show() def Close(self): self.Hide() def SetWidth(self, width): height = self.GetHeight() self.SetSize(width, height) self.board.SetSize(width, height) self.SetCenterPosition() self.UpdateRect() def SAFE_SetAcceptEvent(self, event): self.acceptButton.SAFE_SetEvent(event) def SAFE_SetCancelEvent(self, event): self.cancelButton.SAFE_SetEvent(event) def SetAcceptEvent(self, event): self.acceptButton.SetEvent(event) def SetDestroyEvent(self, event): self.destroyButton.SetEvent(event) def SetCancelEvent(self, event): self.cancelButton.SetEvent(event) def SetText(self, text): self.textLine.SetText(text) def SetAcceptText(self, text): self.acceptButton.SetText(text) def SetCancelText(self, text): self.cancelButton.SetText(text) def OnPressEscapeKey(self): self.Close() return TRUE #root/game.py #Search for this: def __DropItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount): #After that Search for this: itemDropQuestionDialog = uiCommon.QuestionDialog() #Replace with: if app.DELETE_ITEM_PACKET: itemDropQuestionDialog = uiCommon.QuestionDialogItem() else: itemDropQuestionDialog = uiCommon.QuestionDialog() #Search for this: itemDropQuestionDialog.SetAcceptEvent(lambda arg=TRUE: self.RequestDropItem(arg)) #Add under: if app.DELETE_ITEM_PACKET: itemDropQuestionDialog.SetDestroyEvent(lambda arg=TRUE: self.RequestDestroyItem(arg)) #Search for this: def RequestDropItem(self, answer): #After the definition of RequestDropItem add under: if app.DELETE_ITEM_PACKET: def RequestDestroyItem(self, answer): if not self.itemDropQuestionDialog: return if answer: dropType = self.itemDropQuestionDialog.dropType dropNumber = self.itemDropQuestionDialog.dropNumber if player.SLOT_TYPE_INVENTORY == dropType: if dropNumber == player.ITEM_MONEY: return else: self.__SendDestroyItemPacket(dropNumber) self.itemDropQuestionDialog.Close() self.itemDropQuestionDialog = None constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0) #Search for: def __SendDropItemPacket(self, itemVNum, itemCount, itemInvenType = player.INVENTORY): #After the definition of __SendDropItemPacket add under: if app.DELETE_ITEM_PACKET: def __SendDestroyItemPacket(self, itemVNum, itemInvenType = player.INVENTORY): if uiPrivateShopBuilder.IsBuildingPrivateShop(): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.DROP_ITEM_FAILURE_PRIVATE_SHOP) return net.SendItemDestroyPacket(itemVNum) #locale/ui/locale_interface.txt #Add this: DESTROY Destroy uiscript.rar
  2. Hi, I have a problem with the server He kicks me out of the client Unknown packet header: 125, last: 45 81  Maybe someone wants to look a little over files Packet.h binary [Hidden Content] packet.h server [Hidden Content]
  3. Boa noite pessoal estou com o seguinte error > Sysser : Unknown packet header: 245, last: 253 32
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.