i've been trying to figure out this for quite sometime but after searching around and tinkering around i just can't seem to find out where is the issue here.
this works outside of the instance but within the instance, i get a weird error from the console
(map_mapname2mapid) mapindex_name2id:Map"" not found in index list!
I'm not sure how it works since it's kinda my first time using OnPcDieEvent in instances. Would appreciate if someone could point me to the right direction! Generally what I'm trying to achieve is that once you go in and die 3 times, your entire party should automatically get warped out.
- script Controller-1,{OnPcDieEvent:if(instance_mapname(strcharinfo(3))!= instance_mapname("instance")){end;}if(.chance ==3){ mapwarp instance_mapname("instance"),"prontera",150,150; end;}.chance++;
mapannounce strnpcinfo(4),strcharinfo(0)+" has died! you only have "+(3-.chance)+" lives remaining.",bc_all;
end;}
Question
ToiletMaster
Hi Guys,
i've been trying to figure out this for quite sometime but after searching around and tinkering around i just can't seem to find out where is the issue here.
this works outside of the instance but within the instance, i get a weird error from the console
I'm not sure how it works since it's kinda my first time using OnPcDieEvent in instances. Would appreciate if someone could point me to the right direction! Generally what I'm trying to achieve is that once you go in and die 3 times, your entire party should automatically get warped out.
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.