prontera,255,55,5 test123 445,{
OnStart:
set .@party_id, getcharid(1); //add this
}
- script Controller -1,{
OnPcDieEvent:
if(.@party_id == !instance_mapname(".map$",100){
end;
} else {
mapannounce strnpcinfo(4),strcharinfo(0)+" has died! you only have "+(3 - .chance)+" lives remaining.",bc_all;
.chance++;
end;
}
if(.chance == .maxlives$){
mapwarp "instance_mapname(".map$")","prontera",<255>,<55>{,2,.@party_id};
end;
}
OnInit:
set .map$,"map_name";
set .maxlives$,3;
}
try this :))