- Katılım
- 23 Ocak 2017
- Konular
- 19
- Mesajlar
- 635
- Reaksiyon Skoru
- 104
- Altın Konu
- 0
- TM Yaşı
- 9 Yıl 4 Ay 24 Gün
- Başarım Puanı
- 49
- MmoLira
- 1
- DevLira
- 0
HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
kostüm silah sistemin uyumsuzluk var ait olduğu yere almak için güncel kod paylaşabilirmisin
![]()
font hatasiz vs ypmssn rica etsem alintilarmisn
- Katılım
- 22 Tem 2016
- Konular
- 75
- Mesajlar
- 1,406
- Çözüm
- 65
- Online süresi
- 2mo 18d
- Reaksiyon Skoru
- 1,223
- Altın Konu
- 0
- TM Yaşı
- 9 Yıl 10 Ay 29 Gün
- Başarım Puanı
- 234
- MmoLira
- 5,729
- DevLira
- 51
yeniden eklemem gerek bu files bitirip satalı çok oluyor bundan sonra çok editledimde bir tane konu vardı onaylı sistem de dahildi ondanfont hatasiz vs ypmssn rica etsem alintilarmisn
konular
https://forum.turkmmo.com/konu/3330147-onayli-envanter-sistemi-zacqooleaven/
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
- Katılım
- 23 Ocak 2017
- Konular
- 19
- Mesajlar
- 635
- Reaksiyon Skoru
- 104
- Altın Konu
- 0
- TM Yaşı
- 9 Yıl 4 Ay 24 Gün
- Başarım Puanı
- 49
- MmoLira
- 1
- DevLira
- 0
teşekkürler
- Katılım
- 11 May 2013
- Konular
- 63
- Mesajlar
- 655
- Çözüm
- 1
- Online süresi
- 25d 4h
- Reaksiyon Skoru
- 34
- Altın Konu
- 0
- TM Yaşı
- 13 Yıl 1 Ay 7 Gün
- Başarım Puanı
- 131
- MmoLira
- 3,988
- DevLira
- 0
Sorunsuz Eklendi Fakat Kemer Hariç Herşey Sorunsuz Kemer gözükmüyor Neden ?Gamesrc/packet.h açılır aratılır:
Kod bloğu değişilir;PHP:typedef struct pakcet_view_equipPHP:typedef struct pakcet_view_equip[/COLOR][/B][/FONT][/CENTER] [FONT=Verdana][B][COLOR=#0000cd] [CENTER]{ BYTE header; DWORD vid; struct { DWORD vnum; BYTE count; long alSockets[ITEM_SOCKET_MAX_NUM]; TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_MAX_NUM]; } equips[16]; } TPacketViewEquip;
Char.cpp aratılır:
Kod bloğu değiştirilir;PHP:void CHARACTER::SendEquipment(LPCHARACTER ch)
Kod:void CHARACTER::SendEquipment(LPCHARACTER ch){Kod:[/COLOR][/B][/CENTER] [B][COLOR=#0000cd] [CENTER][FONT=Verdana]TPacketViewEquip p; p.header = HEADER_GC_VIEW_EQUIP; p.vid = GetVID(); int pos[16] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 19, 20, 21, 22, 23 }; for (int i = 0; i < 16; i++) { LPITEM item = GetWear(pos[i]); if (item) { p.equips[i].vnum = item->GetVnum(); p.equips[i].count = item->GetCount();[/FONT] [FONT=Verdana]thecore_memcpy(p.equips[i].alSockets, item->GetSockets(), sizeof(p.equips[i].alSockets)); thecore_memcpy(p.equips[i].aAttr, item->GetAttributes(), sizeof(p.equips[i].aAttr)); } else { p.equips[i].vnum = 0; } } ch->GetDesc()->Packet(&p, sizeof(p));[/FONT] [FONT=Verdana]}[/FONT][/COLOR]
Gamesrc bitti
Clientsrc/Userınterface/packet.h aratılır:
Kod bloğu değiştirilir;PHP:typedef struct pakcet_view_equipPHP:typedef struct pakcet_view_equip{[/COLOR][/B][/FONT][/COLOR][/COLOR][/CENTER] [COLOR=#0000cd][COLOR=#BB0000][FONT=Verdana][B][COLOR=#0000cd] [CENTER]BYTE header; DWORD dwVID; TEquipmentItemSet equips[16]; } TPacketGCViewEquip;
UserInterfacePythonNetworkStreamPhaseGame.cpp aratın:Değiştirin;PHP:bool CPythonNetworkStream::RecvViewEquipPacket()PHP:bool CPythonNetworkStream::RecvViewEquipPacket()[/FONT][/COLOR][/COLOR][/CENTER] [COLOR=#0000cd][COLOR=#BB0000][FONT=Verdana] [CENTER]{ TPacketGCViewEquip kViewEquipPacket; if (!Recv(sizeof(kViewEquipPacket), &kViewEquipPacket)) return false; PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OpenEquipmentDialog", Py_BuildValue("(i)", kViewEquipPacket.dwVID)); for (int i = 0; i < 16; ++i) { TEquipmentItemSet & rItemSet = kViewEquipPacket.equips[i]; PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "SetEquipmentDialogItem", Py_BuildValue("(iiii)", kViewEquipPacket.dwVID, i, rItemSet.vnum, rItemSet.count)); for (int j = 0; j < ITEM_SOCKET_SLOT_MAX_NUM; ++j) PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "SetEquipmentDialogSocket", Py_BuildValue("(iiii)", kViewEquipPacket.dwVID, i, j, rItemSet.alSockets[j])); for (int k = 0; k < ITEM_ATTRIBUTE_SLOT_MAX_NUM; ++k) PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "SetEquipmentDialogAttr", Py_BuildValue("(iiiii)", kViewEquipPacket.dwVID, i, k, rItemSet.aAttr[k].bType, rItemSet.aAttr[k].sValue)); } return true; }
Clientsrcde bitti root/uitarget.py aratın:Altına ekle:PHP:self.buttonDict[localeInfo.TARGET_BUTTON_EXIT_OBSERVER].SAFE_SetEvent(self.__OnExitObserver)
uitargetin ilk başındaki:PHP:self.buttonDict[localeInfo.TARGET_BUTTON_VIEW_EQUIPMENT].SAFE_SetEvent(self.__OnViewEquipment)
Aralarına ekleyin;PHP:BUTTON_NAME_LIST = (
Aratın:PHP:localeInfo.TARGET_BUTTON_VIEW_EQUIPMENT,
PHP:def __OnExitObserver(self):[/FONT][/COLOR][/B][/B][/COLOR][/COLOR][/CENTER] [COLOR=#0000cd][COLOR=#BB0000][B][B][COLOR=#BB0000][FONT=Verdana] [CENTER]net.SendChatPacket("/observer_exit")
Altına ekleyin;
PHP:def __OnViewEquipment(self):[/FONT][/COLOR][/B][/B][/COLOR][/COLOR][/CENTER] [COLOR=#0000cd][COLOR=#BB0000][B][B][COLOR=#BB0000][FONT=Verdana] [CENTER]net.SendChatPacket("/view_equip " + str(self.vid))
Aratın:
Kod bloğunu değiştirin;PHP:def ShowDefaultButton(self):PHP:def ShowDefaultButton(self): self.isShowButton = TRUE[/FONT][/COLOR][/COLOR][/CENTER] [COLOR=#0000cd][COLOR=#BB0000][FONT=Verdana] [CENTER]self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_WHISPER]) self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_EXCHANGE]) self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_FIGHT]) self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_VIEW_EQUIPMENT]) self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_EMOTION_ALLOW]) for button in self.showingButtonList: button.Show()
Bir bug var onuda fixliyelim sürekli açabiliyorsunuz bu onu fixliyorroot/interfacemodule.py aratın:Değiştirin;Kod:[COLOR=#000088][FONT=monospace]def[/FONT][/COLOR][COLOR=#660066][FONT=monospace]OpenEquipmentDialog[/FONT][/COLOR][COLOR=#666600][FONT=monospace]([/FONT][/COLOR][COLOR=#000088][FONT=monospace]self[/FONT][/COLOR][COLOR=#666600][FONT=monospace],[/FONT][/COLOR][COLOR=#000000][FONT=monospace] vid[/FONT][/COLOR][COLOR=#666600][FONT=monospace]):[/FONT][/COLOR]Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Kod:def OpenEquipmentDialog(self, vid): if self.equipmentDialogDict.has_key(vid):Kod:[/COLOR][/CENTER] [COLOR=#0000cd] [CENTER][COLOR=#BB0000][FONT=Verdana]self.equipmentDialogDict[vid].Destroy() self.CloseEquipmentDialog(vid)[/FONT][/COLOR] [COLOR=#BB0000][FONT=Verdana]dlg = uiEquipmentDialog.EquipmentDialog() dlg.SetItemToolTip(self.tooltipItem) dlg.SetCloseEvent(ui.__mem_func__(self.CloseEquipm entDialog)) dlg.Open(vid)[/FONT][/COLOR] [COLOR=#BB0000][FONT=Verdana]self.equipmentDialogDict[vid] = dlg[/FONT][/COLOR]
Son olarak verdiğim dosyaları gerekli yerlere atın
Kanıt:![]()
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Indexe ekleyin
Kod:[COLOR=#BB0000][FONT=Verdana]*ekipman*[/FONT][/COLOR]
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 1
- Görüntüleme
- 211
- Cevaplar
- 37
- Görüntüleme
- 2K
- Cevaplar
- 33
- Görüntüleme
- 7K
- Cevaplar
- 65
- Görüntüleme
- 12K

