Jump to content
  • 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
  • Nitro Booster

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


  • Activity

    1. 5
    2. 5

      Zodiac Roulette (Aeldra event concept)

    3. 0

      I am looking for a team for PVP Server!

    4. 0

      How about get quest flag from binary??

    5. 5

      Zodiac Roulette (Aeldra event concept)

    6. 5

      Zodiac Roulette (Aeldra event concept)

    7. 5

      Zodiac Roulette (Aeldra event concept)

    8. 12

      REAL_TIME_FIRST_USE items not being expired in the safe-box

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.