Jump to content

Recommended Posts

  • Active Member

input_login.cpp

 

void CInputLogin::Entergame(LPDESC d, const char * data)
{
  [...]
	if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() <= DUNGEON_INDEX*10010)
	{
		if(ch->IsAffectFlag(AFF_SHAMAN_SKILL))
			RemoveAffect(AFF_SHAMAN_SKILL);
	}
  [...]
}

 

Edit DUNGEON_INDEX & AFF_SHAMAN_SKILL and you should be good to go ;)

 

 

Link to comment
https://metin2.dev/topic/25168-remove-buff-with-login/#findComment-134468
Share on other sites

  • Honorable Member
On 12/24/2020 at 11:09 PM, Sonitex said:

input_login.cpp

 


void CInputLogin::Entergame(LPDESC d, const char * data)
{
  [...]
	if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() <= DUNGEON_INDEX*10010)
	{
		if(ch->IsAffectFlag(AFF_SHAMAN_SKILL))
			RemoveAffect(AFF_SHAMAN_SKILL);
	}
  [...]
}

 

Edit DUNGEON_INDEX & AFF_SHAMAN_SKILL and you should be good to go ;)

 

 

 

if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() <= DUNGEON_INDEX*10010)

?

 

if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() < (DUNGEON_INDEX+1)*10000)

 

  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/25168-remove-buff-with-login/#findComment-134506
Share on other sites

  • Active Member
42 minutes ago, Syreldar said:

 


if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() <= DUNGEON_INDEX*10010)

?

 


if (ch->GetMapIndex() >= DUNGEON_INDEX*10000 && ch->GetMapIndex() < (DUNGEON_INDEX+1)*10000)

 

 

Even better :)

Link to comment
https://metin2.dev/topic/25168-remove-buff-with-login/#findComment-134509
Share on other sites

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.