Jump to content
metin2dev
  • 0

Question

Hey guys,

is here someone who know how to make mob dead?

Thanks for answers!

Sincerely,

ReFresh

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

There you go

//char_battle.cpp find
	if (GetHP() <= 0)
	{
// replace Stun(); or comment it and add bellow
		if (!IsDead())
		{
			if (!IsPC() && m_pkParty)
			{
				m_pkParty->SendMessage(this, PM_ATTACKED_BY, 0, 0);
			}

			sys_log(1, "%s: Stun %p", GetName(), this);

			PointChange(POINT_HP_RECOVERY, -GetPoint(POINT_HP_RECOVERY));
			PointChange(POINT_SP_RECOVERY, -GetPoint(POINT_SP_RECOVERY));

			CloseMyShop();

			event_cancel(&m_pkRecoveryEvent); // ȸşą ŔĚşĄĆ®¸¦ Á×ŔδŮ.

			SET_BIT(m_pointsInstant.instant_flag, INSTANT_FLAG_STUN);

			if (!m_pkStunEvent)
			{
				char_event_info* info = AllocEventInfo<char_event_info>();
				info->ch = this;

				m_pkStunEvent = event_create(StunEvent, info, PASSES_PER_SEC(0));
			}
		}

#edit2

Edited by Nevisor
fixed stun bug
  • Thanks 1

Share this post


Link to post
Share on other sites
  • 0

Thanks. But I have a little problem. When I stun for example with a dash some monster the monster don't die and for few seconds attacking again. Idk if that bug was here before.

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×