Force warp back upon death

Adam

New member
Messages
66
Points
0
Github
Adam
Emulator
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.

 
remove the percentheal part and just warp them to prontera
default_smile.png
there is no need to kill them and warp

 
remove the percentheal part and just warp them to prontera
default_smile.png
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.

 
Last edited by a moderator:
I still think that's a bug

because there is a workaround for this ... detachrid

Code:
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
 
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.

 
Last edited by a moderator:
Back
Top