Jump to content

Ninja Stealth Improve


Recommended Posts

  • Premium

4231183dfab06ce7f4293e13e31be1fa.gif

 

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 by WeedHex
Core X - External 2 Internal
  • Metin2 Dev 8
  • Good 7
  • Love 1
  • Love 8
Link to comment
Share on other sites

  • 3 weeks later...

 

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 by tarata12
Link to comment
Share on other sites

  • Premium
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);
	}
}

 

  • Good 1
Link to comment
Share on other sites

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 by tarata12
  • Good 1
Link to comment
Share on other sites

  • 4 months later...
On 9/2/2022 at 7:19 AM, WeedHex said:

4231183dfab06ce7f4293e13e31be1fa.gif

 

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 by ZeyrekGame
Link to comment
Share on other sites

  • 9 months later...
  • 2 weeks later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.