OnPCKillEvent:
if (getcharid(3) == killedrid) end;
setarray .@n$[0],strcharinfo(0),rid2name(killedrid);
detachrid;
set .@pvpmap$,"prontera"; // PVP map
query_sql("SELECT account_id FROM `char` WHERE `last_map` = '"+.@pvpmap$+"' AND online=1;",.@aid);
for(set .@i,0; .@i<getarraysize(.@aid); set .@i,.@i+1)
if (attachrid(.@aid[.@i])) {
dispbottom .@n$[0]+" has killed "+.@n$[1]+"!";
detachrid;
}
end;
`last_map` doesn't get requeried immediately, though.