Brynner 35 Posted July 15, 2013 (edited) 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 July 15, 2013 by bgamez23 Share this post Link to post Share on other sites
0 Xgear 44 Posted July 15, 2013 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 Samuel 83 Posted July 15, 2013 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 Brynner 35 Posted July 15, 2013 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 Xgear 44 Posted July 15, 2013 I'm completely blind. Totally missed it 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 Joseph 6 Posted July 15, 2013 I think this is the issue: http://herc.ws/board/tracker/issue-6988-monster-with-onkill-label/?gopid=16246#entry16246 Share this post Link to post Share on other sites
0 Euphy 5 Posted July 15, 2013 I think this is the issue: http://herc.ws/board/tracker/issue-6988-monster-with-onkill-label/?gopid=16246#entry16246 There's no "OnDeath" label in any official scripts. Share this post Link to post Share on other sites
0 Joseph 6 Posted July 15, 2013 Probably not the official scripts, but other custom scripts. Share this post Link to post Share on other sites
0 Samuel 83 Posted July 15, 2013 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 jaBote 438 Posted July 15, 2013 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
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 bgamez23Share this post
Link to post
Share on other sites