Premium WeedHex 635 Posted September 2, 2022 Premium Share Posted September 2, 2022 (edited) Char.h Replace this: void ForgetMyAttacker(bool revive = true); Char_battle.cpp Replace this: void CHARACTER::ForgetMyAttacker(bool revive) { const LPSECTREE pSec = GetSectree(); if (pSec) { FuncForgetMyAttacker f(this); pSec->ForEachAround(f); } if (revive) ReviveInvisible(5); } Char_skill.cpp Search the function: CHARACTER::ComputeSkill( and ADD below // ADD_GRANDMASTER_SKILL ..... // END_OF_ADD_GRANDMASTER_SKILL This //Ninja Stealth improve if (IsPC() && pkSk->dwVnum == SKILL_EUNHYUNG) ForgetMyAttacker(false); Hope you like it Edited September 18, 2022 by WeedHex Core X - External 2 Internal 8 7 1 8 Link to comment Share on other sites More sharing options...
Forum Moderator Gurgarath 2511 Posted September 2, 2022 Forum Moderator Share Posted September 2, 2022 Excellent, always felt weird to me that the Ninja becomes invisible and your average monster just casually follows the invisible man around 1 Gurgarath coming soon Link to comment Share on other sites More sharing options...
Premium Kraaz 621 Posted September 2, 2022 Premium Share Posted September 2, 2022 Nice, buddy! 1 Link to comment Share on other sites More sharing options...
Premium TAUMP 825 Posted September 2, 2022 Premium Share Posted September 2, 2022 THANKS 3 Link to comment Share on other sites More sharing options...
tarata12 16 Posted September 18, 2022 Share Posted September 18, 2022 (edited) Quote Compiling: char_item.cpp char_item.cpp: In member function 'bool CHARACTER::UseItemEx(LPITEM, TItemPos)': char_item.cpp:2602:26: error: call of overloaded 'ForgetMyAttacker()' is ambiguous ForgetMyAttacker(); ^ In file included from char_item.cpp:7: char.h:1308:11: note: candidate: 'void CHARACTER::ForgetMyAttacker()' void ForgetMyAttacker(); ^~~~~~~~~~~~~~~~ char.h:2181:8: note: candidate: 'void CHARACTER::ForgetMyAttacker(bool)' void ForgetMyAttacker(bool revive = true); ^~~~~~~~~~~~~~~~ gmake: *** [Makefile:183: .obj/char_item.o] Error 1 root@:/m2_source/GameSrc/Server/game/src # someone help me?, I didn't add anything in the char_item, I just followed the tutorial, I can't understand the problem.. EDIT: Fix Edited September 18, 2022 by tarata12 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted September 18, 2022 Author Premium Share Posted September 18, 2022 3 hours ago, tarata12 said: someone help me?, I didn't add anything in the char_item, I just followed the tutorial, I can't understand the problem.. EDIT: Fix I improved the transcription, thanks! 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted September 21, 2022 Author Premium Share Posted September 21, 2022 ACMD(do_invisibility) { if (!ch) return; if (ch->IsAffectFlag(AFF_INVISIBILITY)) ch->RemoveAffect(AFFECT_INVISIBILITY); else { ch->AddAffect(AFFECT_INVISIBILITY, POINT_NONE, 0, AFF_INVISIBILITY, INFINITE_AFFECT_DURATION, 0, true); ch->ForgetMyAttacker(false); } } 1 Link to comment Share on other sites More sharing options...
tarata12 16 Posted September 23, 2022 Share Posted September 23, 2022 (edited) On 9/21/2022 at 12:55 PM, WeedHex said: ACMD(do_invisibility) { if (!ch) return; if (ch->IsAffectFlag(AFF_INVISIBILITY)) ch->RemoveAffect(AFFECT_INVISIBILITY); else { ch->AddAffect(AFFECT_INVISIBILITY, POINT_NONE, 0, AFF_INVISIBILITY, INFINITE_AFFECT_DURATION, 0, true); ch->ForgetMyAttacker(false); } } Where do i add this? Yes replace cmd_gm.cpp Working. Edited September 23, 2022 by tarata12 1 Link to comment Share on other sites More sharing options...
ZeyrekGame 1 Posted January 30, 2023 Share Posted January 30, 2023 (edited) On 9/2/2022 at 7:19 AM, WeedHex said: Char.h Replace this: void ForgetMyAttacker(bool revive = true); Char_battle.cpp Replace this: void CHARACTER::ForgetMyAttacker(bool revive) { const LPSECTREE pSec = GetSectree(); if (pSec) { FuncForgetMyAttacker f(this); pSec->ForEachAround(f); } if (revive) ReviveInvisible(5); } Char_skill.cpp Search the function: CHARACTER::ComputeSkill( and ADD below // ADD_GRANDMASTER_SKILL ..... // END_OF_ADD_GRANDMASTER_SKILL This //Ninja Stealth improve if (IsPC() && pkSk->dwVnum == SKILL_EUNHYUNG) ForgetMyAttacker(false); Hope you like it Where can I find the Stealth Skill Effect? @ WeedHex Edited January 30, 2023 by ZeyrekGame Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted January 30, 2023 Author Premium Share Posted January 30, 2023 1 minute ago, ZeyrekGame said: Where can I find the Camouflage Skill Effect? @ WeedHex From @ Tatsumaru 1 Link to comment Share on other sites More sharing options...
ZeyrekGame 1 Posted January 30, 2023 Share Posted January 30, 2023 1 minute ago, WeedHex said: From @ Tatsumaru Thank you. Link to comment Share on other sites More sharing options...
Foxxielove 3 Posted November 23, 2023 Share Posted November 23, 2023 really nice. how we can improve it only with P skill or an item? is there a easy way? Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 23, 2023 Author Premium Share Posted November 23, 2023 7 hours ago, Foxxielove said: really nice. how we can improve it only with P skill or an item? is there a easy way? Add a new condition using GetUsedSkillMasterType(pkSk->dwVnum) >= SKILL_GRAND_MASTER 1 Link to comment Share on other sites More sharing options...
Foxxielove 3 Posted November 23, 2023 Share Posted November 23, 2023 thanks I'll try it. Link to comment Share on other sites More sharing options...
nosacz26 1 Posted December 5, 2023 Share Posted December 5, 2023 works fine, thank you Link to comment Share on other sites More sharing options...
Recommended Posts