joungsam0724 0 Posted May 24, 2015 Share Posted May 24, 2015 Hello Speak Turkish Please PetSystem.cpp:318:25: error: 'class CPetActor' has no member named 'Attack' bResult = this->Attack(); ^ ----------------------------- bResult = this->Attack(); Please Link to comment Share on other sites More sharing options...
Xynjo 3 Posted May 27, 2015 Share Posted May 27, 2015 how to set only selectet pet attack ? wolf monster having animation Link to comment Share on other sites More sharing options...
Premium Mano 22 Posted July 11, 2015 Premium Share Posted July 11, 2015 char_battle.cpp: In member function 'bool CHARACTER::Attack(CHARACTER*, BYTE)': char_battle.cpp:275: error: invalid use of incomplete type 'struct CPetSystem' char.h:18: error: forward declaration of 'struct CPetSystem' char_battle.cpp:276: error: invalid use of incomplete type 'struct CPetSystem' char.h:18: error: forward declaration of 'struct CPetSystem' well any idea Link to comment Share on other sites More sharing options...
Sr.Agente 24 Posted July 12, 2015 Share Posted July 12, 2015 (edited) Where did I go wrong?The mobs can kill my pet, but my pet does not attack And I've changed the damage moob_proto : c Edited July 12, 2015 by Sr.Agente 1 Link to comment Share on other sites More sharing options...
Chris90909090909090 50 Posted July 12, 2015 Share Posted July 12, 2015 My pet attackiert the Mob an the mob kill my pet xd Link to comment Share on other sites More sharing options...
skill178 19 Posted August 7, 2015 Share Posted August 7, 2015 (edited) help my pet does not attack Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
skill178 19 Posted August 15, 2015 Share Posted August 15, 2015 up Link to comment Share on other sites More sharing options...
ms42kral 0 Posted November 14, 2015 Share Posted November 14, 2015 The system they're trying but they damage how can I improve the little pet shoots Link to comment Share on other sites More sharing options...
adisala 2 Posted January 17, 2016 Share Posted January 17, 2016 (edited) On 27.02.2015 at 11:34 AM, jma96 said: This work. ^^ Thanks. And pet can have HP and die. Edit: One little problem. ^^ someone solved? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium filipw1 1923 Posted February 20, 2016 Premium Share Posted February 20, 2016 My pet can attack me when I give him aggr flag, but then delete this flag he cannot attack anything. I don't know what I have done wrong. Can you give me mob proto entry? Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 8, 2016 Share Posted March 8, 2016 Just don't use NPC value. Use horse OR monster value if u want them kill possible. Link to comment Share on other sites More sharing options...
Premium Salya 1 Posted April 24, 2016 Premium Share Posted April 24, 2016 I've problem too, pet don't attack. I put dammage min and max. Link to comment Share on other sites More sharing options...
margoss 1 Posted May 3, 2016 Share Posted May 3, 2016 [FIX] Drops von Pets Vorhin meinte n Kumpel so, dass es den Bug gibt, dass wenn Pets Mobs killen der Name vom Pet über den gedropten Items steht und man diese nicht aufheben kann.Naja habs kurz gebastelt.Da es nur ne kleinigkeit is schenk ichs euch mal. Autor: xCPx EPVP service.h: add: #define __FIX_PET_ATTACK char.h: search: #ifdef __PET_SYSTEM__ private: bool m_bIsPet; public: void SetPet() { m_bIsPet = true; } bool IsPet() { return m_bIsPet; } #endif add below: #ifdef __FIX_PET_ATTACK private: LPCHARACTER m_Owner = NULL; public: void SetOwner(LPCHARACTER owner) { m_Owner = owner; } LPCHARACTER GetOwner() { return m_Owner; } #endif char.cpp: search: #ifdef PET_SYSTEM m_petSystem = 0; m_bIsPet = false; #endif add below: #ifdef __FIX_PET_ATTACK m_Owner = NULL; #endif PetSystem.cpp: in: DWORD CPetActor::Summon(const char* petName, LPITEM pSummonItem, bool bSpawnFar) search: if (0 != m_pkChar) { m_pkChar->Show (m_pkOwner->GetMapIndex(), x, y); m_dwVID = m_pkChar->GetVID(); return m_dwVID; } replace it with: if (0 != m_pkChar) { #ifdef __FIX_PET_ATTACK m_pkChar->SetOwner(m_pkOwner); m_pkChar->SetPet(); #endif m_pkChar->Show (m_pkOwner->GetMapIndex(), x, y); m_dwVID = m_pkChar->GetVID(); return m_dwVID; } search: m_pkChar->SetEmpire(m_pkOwner->GetEmpire()); add below: #ifdef __FIX_PET_ATTACK m_pkChar->SetOwner(m_pkOwner); #endif item.cpp: in: void CItem::SetOwnership(LPCHARACTER ch, int iSec) add at the beginning of the function: #ifdef __FIX_PET_ATTACK if(ch) { if (ch->IsPet()) { LPCHARACTER owner = ch->GetOwner(); if(owner) ch = owner; } } #endif 1 Link to comment Share on other sites More sharing options...
Nickas 42 Posted May 6, 2016 Share Posted May 6, 2016 On 03.05.2016 at 11:18 PM, margoss said: [FIX] Drops von Pets Vorhin meinte n Kumpel so, dass es den Bug gibt, dass wenn Pets Mobs killen der Name vom Pet über den gedropten Items steht und man diese nicht aufheben kann.Naja habs kurz gebastelt.Da es nur ne kleinigkeit is schenk ichs euch mal. Autor: xCPx EPVP service.h: add: #define __FIX_PET_ATTACK char.h: search: #ifdef __PET_SYSTEM__ private: bool m_bIsPet; public: void SetPet() { m_bIsPet = true; } bool IsPet() { return m_bIsPet; } #endif add below: #ifdef __FIX_PET_ATTACK private: LPCHARACTER m_Owner = NULL; public: void SetOwner(LPCHARACTER owner) { m_Owner = owner; } LPCHARACTER GetOwner() { return m_Owner; } #endif char.cpp: search: #ifdef PET_SYSTEM m_petSystem = 0; m_bIsPet = false; #endif add below: #ifdef __FIX_PET_ATTACK m_Owner = NULL; #endif PetSystem.cpp: in: DWORD CPetActor::Summon(const char* petName, LPITEM pSummonItem, bool bSpawnFar) search: if (0 != m_pkChar) { m_pkChar->Show (m_pkOwner->GetMapIndex(), x, y); m_dwVID = m_pkChar->GetVID(); return m_dwVID; } replace it with: if (0 != m_pkChar) { #ifdef __FIX_PET_ATTACK m_pkChar->SetOwner(m_pkOwner); m_pkChar->SetPet(); #endif m_pkChar->Show (m_pkOwner->GetMapIndex(), x, y); m_dwVID = m_pkChar->GetVID(); return m_dwVID; } search: m_pkChar->SetEmpire(m_pkOwner->GetEmpire()); add below: #ifdef __FIX_PET_ATTACK m_pkChar->SetOwner(m_pkOwner); #endif item.cpp: in: void CItem::SetOwnership(LPCHARACTER ch, int iSec) add at the beginning of the function: #ifdef __FIX_PET_ATTACK if(ch) { if (ch->IsPet()) { LPCHARACTER owner = ch->GetOwner(); if(owner) ch = owner; } } #endif i tested.not working 1 Link to comment Share on other sites More sharing options...
Micha aka xCPx 335 Posted May 8, 2016 Share Posted May 8, 2016 On 6.5.2016 at 10:12 PM, Nickas said: i tested.not working First of all: Nice that you asked to release my Code here. Second: the compiling of this version sometimes failes ( gcc issue) so to make it work right: change: LPCHARACTER m_Owner = NULL; to: LPCHARACTER m_Owner; 1 Link to comment Share on other sites More sharing options...
Recommended Posts