viewing paste mero pvp announcer | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
-   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;
    }
}
Viewed 1115 times, submitted by jaBote.