why this script does not work here?

Brynner

Community Contributors
Messages
563
Points
0
Github
https://github.com/bgamez23
the punching bag should respawn back after it was killed. but the npc does not show again.

Code:
-	script	Punching Bag	-1,{	OnInit: 	OnDeath:	monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";}
 
Last edited by a moderator:
monster "prontera",156,170,"Punching Bag",1905,1,strnpcinfo(3)+"::OnDeath";

Where is the OnDeath Event code?

 
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

 
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.

 
I'm completely blind. Totally missed it
default_tongue.png


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?

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

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

 
Last edited by a moderator:
Back
Top