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

 

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

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.