Jump to content
  • 0
Adam

Force warp back upon death

Question

Hi,

 

Title says it all ^^;

 

For this script (poring catcher) I need people to die (which happens) and to be automatically warped back to prontera (which doesn't happen)

 

 


OnMobKilled:
dispbottom "Aww...You hit the wrong one! Try again next time!";
percentheal -100,-100;
warp "prontera",185,127;
end;

 

 

What's wrong with this please ?

 

Thanks.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I still think that's a bug

because there is a workaround for this ... detachrid

prontera,156,189,5	script	Raid	100,{	dispbottom "Aww...You hit the wrong one! Try again next time!";	.@aid = getcharid(3);	detachrid;	unitkill .@aid;//	sleep 2000;	if ( !attachrid(.@aid) ) end;	warp "prontera",156,184;	end;}
in the source code it says ... if ( sd->st->state ) ... so if detachrid, then sd is not read, thus it work

Share this post


Link to post
Share on other sites
  • 0

remove the percentheal part and just warp them to prontera :) there is no need to kill them and warp

Share this post


Link to post
Share on other sites
  • 0

remove the percentheal part and just warp them to prontera :) there is no need to kill them and warp

That would work, you're right there evilpuncker.

Still worth to be considered as a bug since in this case -let's say I'm a sadistic person and I want the players to die upon killing the wrong poring muhahahah....but such situation could happen in many other scripts- I need a post-mortem action: The warp back.

Now the problem would be, as Ind mentioned in Annie's bug report; this could be intended and/or considered as a preventive counter-measure to prevent people to interact with NPC when they already are dead.

 

Out of my hands for now.

Edited by Adam

Share this post


Link to post
Share on other sites
  • 0

I still think that's a bug

I think the same

 

By the way, your workaround works like a charm, thanks.

I'll mark the topic as solved for now, and will update it whenever we get a fix for that issue.

Edited by Adam

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.