Jump to content
  • 0
Thyr

Punching Bag [DPS Test]

Question

Hello, I got a problem that my Punching Bug monster respawn even tho current Dummy is not yet dead or at 0% HP (Isn't it configured to respawn if the other punching bag died), Now It spawns another punching bag so it will stack .

Here's the script I am using.

-	script	Punching Bag	FAKE_NPC,{
OnInit:
	setmapflag( "rebel_mt",mf_monster_noteleport );
OnDummyKill:
	 monster "rebel_mt",203,160,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
	 monster "rebel_mt",209,160,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
	 end;
OnPCAttackEvent:
	if ( !@test_punch ) end;
	@dps_damage += @damage;
	end;
}

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

If you want both punching bags to respawn when one of them is killed, you would add this in OnDummyKill right before you use monster()

killmonster("rebel_mt", "Punching Bag::OnDummyKill");

 

If you want only one to respawn you will have to split OnDummyKill into two separate events

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, meko said:

If you want both punching bags to respawn when one of them is killed, you would add this in OnDummyKill right before you use monster()

killmonster("rebel_mt", "Punching Bag::OnDummyKill");

 

If you want only one to respawn you will have to split OnDummyKill into two separate events

Did it like this, is it correct?

-	script	Punching Bag	FAKE_NPC,{
OnInit:
	setmapflag( "rebel_mt",mf_monster_noteleport );
OnDummyKill:
	killmonster("rebel_mt", "Punching Bag::OnDummyKill");
	 monster "rebel_mt",203,160,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
	 monster "rebel_mt",209,160,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
	 end;
OnPCAttackEvent:
	if ( !@test_punch ) end;
	@dps_damage += @damage;
	end;
}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.