I already fixed that myself and the script still does not work. For some reason the "OnPCLoadMapEvent: " seems to not activate.
Edit: Figured it out, remove the "end;" from the start of the script as it disconnects the OnPCLoadMapEvent from the player.
prontera,155,181,5 script Sample 757,{
mes "Go kill Evil Clone ?";
if( select( "Yes:No" ) == 2 ) close;
warp "guild_vs5",0,0;
OnPCLoadMapEvent:
if( strcharinfo(3) == "guild_vs5" ){
for( set .@i,0; .@i < 3; set .@i,.@i + 1 ){
clone "guild_vs5",0,0,strnpcinfo(0)+"::OnCloneDie",getcharid(0);
}
}
end;
OnPCLogoutEvent:
OnPCDieEvent:
OnCloneDie:
if( strcharinfo(3) == "guild_vs5" ){
killmonster "guild_vs5","All";
mapwarp "guild_vs5","prontera",0,0;
}
end;
}