Adam 3 Posted March 1, 2014 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. Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 2, 2014 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 1 Adam reacted to this Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted March 1, 2014 remove the percentheal part and just warp them to prontera there is no need to kill them and warp Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted March 1, 2014 this is a bug reported -> http://herc.ws/board/index.php?app=tracker&showissue=8062 Quote Share this post Link to post Share on other sites
0 Adam 3 Posted March 1, 2014 this is a bug reported -> http://herc.ws/board/index.php?app=tracker&showissue=8062 Thanks Quote Share this post Link to post Share on other sites
0 Adam 3 Posted March 2, 2014 (edited) 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 March 2, 2014 by Adam 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
0 Adam 3 Posted March 2, 2014 (edited) 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 March 2, 2014 by Adam Quote Share this post Link to post Share on other sites
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