Jump to content
  • 0
minx123

NPC Punching Beg auto respawn when die

Question

i have problem to make its auto respawn when  player kill it..

 

here the script..

 

-	script	Punching Bag	-1,{OnInit:OnDummyKill:     monster "invek",143,148,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";     end;}-	script	Punching Bag 2	-1,{OnInit:OnDummyKill:     monster "invek",153,140,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";     end;}-	script	Punching Bag 3	-1,{OnInit:OnDummyKill:     monster "invek",161,169,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";     end;}

 

 

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

-	script	Punching Bag	-1,{OnInit:monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill";monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2";monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3";end;OnDummyKill:     monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill";     end;OnDummyKill2:     monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2";     end;OnDummyKill3:     monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3";     end;}

You were using wrong npc name, since npc name was having 2/3 at end, but better merge them all into one npc, like shown above.

Share this post


Link to post
Share on other sites
  • 0

 

-	script	Punching Bag	-1,{OnInit:monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill";monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2";monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3";end;OnDummyKill:     monster "invek",143,148,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill";     end;OnDummyKill2:     monster "invek",153,140,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill2";     end;OnDummyKill3:     monster "invek",161,169,"Punching Bag",1905,1,strnpcinfo(0)+"::OnDummyKill3";     end;}

You were using wrong npc name, since npc name was having 2/3 at end, but better merge them all into one npc, like shown above.

oh.. like that..

thank you..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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