notbugme 14 Posted October 27, 2018 Share Posted October 27, 2018 Hello Everyone I'm sorry if it's on the wrong side. In the Metin2 official game, there is a hydra region, where monsters attack an object. How can I make this system help me in this regard? I really appreciate you. Have a good day. System: Monsters attack the object. Link to comment Share on other sites More sharing options...
Forum Moderator Raylee 656 Posted October 27, 2018 Forum Moderator Share Posted October 27, 2018 #moved Best regards Raylee Link to comment Share on other sites More sharing options...
okan4141 0 Posted October 27, 2018 Share Posted October 27, 2018 Yes it attacks but I guess char_battle.cpp but I don't know Link to comment Share on other sites More sharing options...
boaspessoal 8 Posted October 28, 2018 Share Posted October 28, 2018 am also looking for this Link to comment Share on other sites More sharing options...
okan4141 0 Posted October 28, 2018 Share Posted October 28, 2018 Refresh UP UP UP am also looking for this Link to comment Share on other sites More sharing options...
okan4141 0 Posted October 29, 2018 Share Posted October 29, 2018 ++++++++ Link to comment Share on other sites More sharing options...
ruizuinho-o 12 Posted October 30, 2018 Share Posted October 30, 2018 up Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 4, 2018 Author Share Posted November 4, 2018 up Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 5, 2018 Premium Share Posted November 5, 2018 Show a video, i can misunderstand the problem... Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 5, 2018 Share Posted November 5, 2018 vor 4 Stunden schrieb WeedHex: Show a video, i can misunderstand the problem... What exactly Can you misunderstand? He asked how he Can make monsters attack a object E.g. Aggressive Monsters attack a Player 1 Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted November 6, 2018 Premium Share Posted November 6, 2018 Serach in char_state.cpp: m_pkParty->SendMessage(this, PM_ATTACKED_BY, 0, 0); Add after: if (m_pkMobData->m_table.dwVnum == 1111) // mob that attack vnum { LPCHARACTER the_object = FindVictim(5555, m_pkMobData->m_table.wAggressiveSight); // 5555 = object vnum SetVictim(the_object); return; } It's not tested, i just writed it. 1 Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 6, 2018 Author Share Posted November 6, 2018 (edited) 18 godzin temu, WeedHex napisał: Show a video, i can misunderstand the problem... The monsters are attacking the object. 2 godziny temu, Dobrescu Sebastian napisał: Serach in char_state.cpp: m_pkParty->SendMessage(this, PM_ATTACKED_BY, 0, 0); Add after: if (m_pkMobData->m_table.dwVnum == 1111) // mob that attack vnum { LPCHARACTER the_object = FindVictim(5555, m_pkMobData->m_table.wAggressiveSight); // 5555 = object vnum SetVictim(the_object); return; } It's not tested, i just writed it. char_state.cpp: In member function 'virtual void CHARACTER::StateBattle()': char_state.cpp:1115: error: invalid conversion from 'int' to 'CHARACTER*' char_state.cpp:1115: error: initializing argument 1 of 'CHARACTER* FindVictim(CHARACTER*, int)' gmake: *** [OBJDIR_GAME/char_state.o] Error 1 root@host:/usr/aSource/Server/game/src # Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 6, 2018 Author Share Posted November 6, 2018 (edited) 2 godziny temu, Dobrescu Sebastian napisał: Serach in char_state.cpp: m_pkParty->SendMessage(this, PM_ATTACKED_BY, 0, 0); Add after: if (m_pkMobData->m_table.dwVnum == 1111) // mob that attack vnum { LPCHARACTER the_object = FindVictim(5555, m_pkMobData->m_table.wAggressiveSight); // 5555 = object vnum SetVictim(the_object); return; } It's not tested, i just writed it. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 6, 2018 Author Share Posted November 6, 2018 ++++ Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 8, 2018 Premium Share Posted November 8, 2018 Show your char_state XD Link to comment Share on other sites More sharing options...
notbugme 14 Posted November 8, 2018 Author Share Posted November 8, 2018 This is the hidden content, please Sign In or Sign Up 7 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now