Jump to content
  • 0

Remove buff with login


Malbeth

Question

4 answers to this question

Recommended Posts

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

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to post
  • 0
  • VIP

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.