Jump to content

Remove buff with login


Recommended Posts

  • Premium

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
Share on other sites

  • Premium
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.