Jump to content
  • 0
Brynner

why this script does not work here?

Question

the punching bag should respawn back after it was killed. but the npc does not show again.


 

-	script	Punching Bag	-1,{	OnInit: 	OnDeath:	monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";}
Edited by bgamez23

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0
monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";

 

Where is the OnDeath Event code?

Share this post


Link to post
Share on other sites
  • 0

 

the punching bug should respawn back after it was killed. but the npc does not show again.

 

 

-	script	Punching Bag	-1,{	OnInit: 	OnDeath:	monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";}

 

Tried and tested with current revision and it's working fine.

 

 

monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";

 

Where is the OnDeath Event code?

 

OnDeath event code is below the OnInit label

Share this post


Link to post
Share on other sites
  • 0

 

monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";

 

Where is the OnDeath Event code?

event code?

 

the problem here is sometimes the Punching Bag does not respawn.

i try this script on rA but it is working normally. the Punching Bag should have a new replacement after killing it.

Share this post


Link to post
Share on other sites
  • 0

I'm completely blind. Totally missed it :P

 

I am not a pro scripter so I mighjt be wrong in here, but if I remember correctly Mob Death events only trigger if there is a RID attached, meaning it will not work if its killed by another mob, pet, clone, homun, mercenary or command (Someone correct me if I am wrong here). 

 

Would that be the case here?

Share this post


Link to post
Share on other sites
  • 0

It's just fine using the OnDeath label since it's defined in the script.

 

Maybe you should just change

 

 strnpcinfo(3)

 to

 

 

strnpcinfo(0)

Share this post


Link to post
Share on other sites
  • 0

Nope, strnpcinfo(3) is the full NPC unique name.

 

Maybe what Joseph said, try that hotfix Ind posted in the Bug Report.

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.