- script meropvp -,{
OnPCDieEvent:
@pvppoints = 0; //reset points
if (killerrid < 2000000 || killerrid >= 110000000) // This filters non-players
end;
if ( !isloggedin(killerrid) ) // Dafuq?
end;
if (getcharid(3) == killerrid) // Killed himself? Grand Cross or so.
end;
if (getgmlevel() > 0 ) //GM considerations
.@gmholyshit = 1;
.@map$ = strcharinfo(PC_MAP);
.@deadrid = getcharid(3);
// We finished with the killed one, starting with killer
attachrid killerrid;
if (getgmlevel() > 0 ) // GM doesn't get anything
end;
if (.@map$ != strcharinfo(PC_MAP)) // Different maps? WTF
end;
.@map$ = strcharinfo(PC_MAP); // Will save some time now
if ( getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_pvp_noparty) ||
getmapflag(.@map$, mf_pvp_noguild) || getmapflag(.@map$, mf_pvp_nocalcrank) )
.@pvpannounce = 1;
if ( .@pvpannounce || getmapflag(.@map$, mf_gvg) ||
getmapflag(.@map$, mf_gvg_noparty) || getmapflag(.@map$, mf_gvg_castle) ||
getmapflag(.@map$, mf_gvg_dungeon) || getmapflag(.@map$, mf_battleground ) ) {
@pvppoints++;
dispbottom "HI KILLER PLAYER AGAIN!";
if (@pvppoints < 10 && !.@gmholyshit) {// Other announces than Holy Shit
switch (@pvppoints) {
case 3: // Killing Spree
soundeffectall "killingspree.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is on a KILLING SPREE! #", bc_map;
break;
case 4: // Dominating
soundeffectall "dominating.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is DOMINATING! #", bc_map;
break;
case 5: // Megakill
soundeffectall "megakill.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" has a MEGA KILL! #", bc_map;
break;
case 6: // Unstoppable
soundeffectall "unstoppable.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is UNSTOPPABLE! #", bc_map;
break;
case 7: // Wicked Sick
soundeffectall "wickedsick.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is a WICKED SICK! #", bc_map;
break;
case 8: // Monster Kill
soundeffectall "monsterkill.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" has a MONSTER KILL! #", bc_map;
break;
case 9: // Godlike
soundeffectall "godlike.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is GODLIKE! #", bc_map;
break;
}
}
else { // HOLY SHIT!
soundeffectall "holyshit.wav",0,.@map$;
if (.@pvpannounce)
announce "# " + strcharinfo(PC_NAME) +" is on BEYOND GODLIKE! Someone KILL " + ( (Sex) ? "HIM" : "HER" ) + "!!!!!! #", bc_map;
}
end;
}
}