Skip to content

Spree Announcements

Featured Replies

Exw to parakatw kodika omos den m emfanizei swsta ta announcements. diladi den mou dixnei akrivos posa kills exei o player otan pe8enei. sxedon panta m emfanizei oti exei 1 i 2 i 3 kills. pws mporw na to ftiaksw? (den kserw ean exw antigrapsei swsta to kodika, prwti fora kanw auto to pragma. :P )

@@  -5410, 25 +5424,22 @@
						if (!(isInsideZone(ZONE_PVP) && !isInSiege()) || pk == null)
							onDieUpdateKarma(); // Update karma if delevel is not allowed
				
						if (pvpspree >= 35)
						{
							if (this.killcount >= 35)
							Announcements.getInstance().announceToAll(killer.getName() + " has gave an end to " + getName() + "'s spree of " + pvpsree + " straight kills!" );
							
							if(pvpspree >= 40)
							{
								setHero(false);
							}
						}
						pvpspree = 0;
					}

@@ -5626 ,13 +5640, 10 @@
			if (target instanceof L2PcInstance)
	            increasePvpKills();
			
			if (targetPlayer.pvpspree >= 35)
			{
				if (targetPlayer.killcount >= 35)
				Announcements.getInstance().announceToAll(getName() + " has gave an end to " + targetPlayer.getName() + "'s spree of " + pvpspree + " straight kills!" );
				
				if(targetPlayer.pvpspree >= 40)
				{
					targetPlayer.setHero(false);
				}
			}
			targetPlayer.pvpspree = 0;
		}

@@ -5560, 13 +5673, 43 @@
			if (targetPlayer.getKarma() > 0)                                        // Target player has karma
			{
				
				if (targetPlayer.pvpspree >= 35)
				{
					if (targetPlayer.killcount >= 35)
					Announcements.getInstance().announceToAll(targetPlayer.getName() + " has gave an end to " + getName() + "'s spree of " + pvpspree + " straight kills!" );
					
					if(targetPlayer.pvpspree >= 40)
					{
						targetPlayer.setHero(false);
					}
				}
				targetPlayer.pvpspree = 0;

@@ -5710,1 +5732, 10 @@
        // Add karma to attacker and increase its PK counter 
        setPvpKills(getPvpKills() + 1);
    
        pvpspree++;

        switch (pvpspree)
        {
        case 35 :
        	sendMessage("You are almost on a killing spree");
        	break;
        case 40 :
        	Announcements.getInstance().announceToAll(getName()+" is on a killing spree!");
        	this.setHero(true);
        	broadcastUserInfo();
        	sendMessage("You have granted with hero status until restart");
        	break;
        case 80 :
        	Announcements.getInstance().announceToAll(getName()+" is Unstoppable!");
        	break;
        case 120 :
        	Announcements.getInstance().announceToAll(getName()+" is Godlike!");
        	break;
        }

L2j server.

Edited by Komnis

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.