Jump to content

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
https://metin2.dev/topic/29537-ninja-stealth-improve/
Share on other sites

  • Forum Moderator

Excellent, always felt weird to me that the Ninja becomes invisible and your average monster just casually follows the invisible man around

  • Love 1

Gurgarath
coming soon
My Services

Link to comment
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-151674
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
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-152033
Share on other sites

  • Premium
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!

  • Love 1
Link to comment
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-152037
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
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-152063
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
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-152105
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
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-154868
Share on other sites

  • 9 months later...
  • Premium
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

 

  • Good 1
Link to comment
https://metin2.dev/topic/29537-ninja-stealth-improve/#findComment-161200
Share on other sites

  • 2 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.