Jump to content
×
×
  • Create New...
  • 0

Remove buff with login


Malbeth

Question

4 answers to this question

Recommended Posts

  • 1
  • 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

  • 0
  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.