Secret Experience

Secret Experience (https://secretexperience.net/index.php)
-   [Lineage] Java Mods (https://secretexperience.net/forumdisplay.php?f=636)
-   -   [L2JServer] Sons de ConterStriker no PvP Point! (https://secretexperience.net/showthread.php?t=22119)

Drako 08-06-2010 10:03 AM

Sons do ConterStriker nos seus PvP's
 
Este Mod, funciona da seguinte maneira.
Ele tem as opções de mortes consecutivas.

Uma Breve explicação.
Exemplo: Mato Joao 01 vez.
Agora mato Maria 01 vez.
Na vez que mato Maria, (Segunda vez) ele vai iniciar o SOUND que vc configurou no mod.
por exemplo configuro

case 2: (02 PvPs consecutivos)
PlaySound _snd2: (Sound que sera tocado tem que estar na pasta Sound do seu Lineage2.
Se nao me engando o arquivo PlaySound_snd2 vai "Tocar" como fala de "DOUBLEKILL, porem vc pode criar seus proprios Sounds e nao se limitar apenas aos do CS, (Grave sua voz dizendo NOOB DOWN^^ ETC^^) basta criar um arquivo no formato OGG e colocar la na pasta SOUNDS e o nome respectivo no mod, neste caso esta como PlaySound_snd2.").

Segue abaixo o Mod.

Código:

Index: D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java  (revision 3428)
+++ D:/Workspace/wks/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java  (working copy)
@@ -182,6 +182,7 @@
 import net.sf.l2j.gameserver.network.serverpackets.ObservationReturn;
 import net.sf.l2j.gameserver.network.serverpackets.PartySmallWindowUpdate;
 import net.sf.l2j.gameserver.network.serverpackets.PetInventoryUpdate;
+import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
 import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListDelete;
 import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListUpdate;
 import net.sf.l2j.gameserver.network.serverpackets.PrivateStoreListBuy;
@@ -5289,6 +5305,8 @@
      if (!super.doDie(killer))
          return false;
     
+      spreeKills = 0;
+     
      if (isMounted())
          stopFeed();
      synchronized (this)
@@ -5333,9 +5351,25 @@
                      if ((_clan.isAtWarWith(pk.getClanId()) && pk.getClan().isAtWarWith(_clan.getClanId()))
                            || (isInSiege() && pk.isInSiege()))
                      {
+                        PlaySound _snd = new PlaySound(1, "enemydown", 0, 0, 0, 0, 0);
+                       
+                        Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();
+                        for (L2PcInstance onlinePlayer : pls)
+                          if (onlinePlayer.isOnline() == 1)
+                          {
+                              if (onlinePlayer.getClan() != null)
+                              {
+                                if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk)
+                                {
+                                    onlinePlayer.sendPacket(_snd);
+                                }
+                              }
+                          }
+                       
                        //    when your reputation score is 0 or below, the other clan cannot acquire any reputation points
-                        if (getClan().getReputationScore() > 0)
+                        if (getClan().getReputationScore() > 0){
                            pk.getClan().setReputationScore(pk.getClan().getReputationScore() + Config.REPUTATION_SCORE_PER_KILL, true);
+                        }
                        //    when the opposing sides reputation score is 0 or below, your clans reputation score does not decrease
                        if (pk.getClan().getReputationScore() > 0)
                            _clan.setReputationScore(_clan.getReputationScore() - Config.REPUTATION_SCORE_PER_KILL, true);
@@ -5616,8 +5650,47 @@
      * Increase the pvp kills count and send the info to the player
      *
      */
+  private int spreeKills = 0;
    public void increasePvpKills()
    {
+      spreeKills++;
+     
+      switch(spreeKills){
+     
+      case 1:
+          PlaySound _snd1 = new PlaySound(1, "firstblood", 0, 0, 0, 0, 0);
+          sendPacket(_snd1);
+      break;
+     
+      case 2:
+          PlaySound _snd2 = new PlaySound(1, "doublekill", 0, 0, 0, 0, 0);
+          sendPacket(_snd2);
+      break;
+     
+      case 3:
+          PlaySound _snd3 = new PlaySound(1, "triplekill", 0, 0, 0, 0, 0);
+          sendPacket(_snd3);
+      break;
+     
+      case 4:
+          PlaySound _snd4 = new PlaySound(1, "megakill", 0, 0, 0, 0, 0);
+          sendPacket(_snd4);
+      break;
+     
+      case 5:
+          PlaySound _snd5 = new PlaySound(1, "ultrakill", 0, 0, 0, 0, 0);
+          sendPacket(_snd5);
+      break;
+     
+      case 10:
+          PlaySound _snd10 = new PlaySound(1, "monsterkill", 0, 0, 0, 0, 0);
+          sendPacket(_snd10);
+      break;
+     
+      case 15:
+          PlaySound _snd15 = new PlaySound(1, "killingspree", 0, 0, 0, 0, 0);
+          sendPacket(_snd15);
+      break;
+        default:
+          ;
+      }
+
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);
 
@@ -5669,6 +5742,10 @@
        if (getKarma() > (Integer.MAX_VALUE - newKarma))
            newKarma = Integer.MAX_VALUE - getKarma();
 
+        PlaySound _snd = new PlaySound(1, "knife", 0, 0, 0, 0, 0);
+      sendPacket(_snd);
+      broadcastPacket(_snd);
+     
        // Add karma to attacker and increase its PK counter
        setPkKills(getPkKills() + 1);
        setKarma(getKarma() + newKarma);

E usei este mod junto com um de anuncio do CS, ficou muito legal, ele anunciava, Fulano matou Joaquim ele fez um "Doublekill" e logo em seguida ativava o Mod do Sound junto que ja soltava o som dizendo "Doublekill" foi uma junção interessante que fiz.
Porém nao vem ao caso neste mod.

Quem criou o mod do sound foi Vago.

Download dos arquivos de Sound do CS já em formato OGG.
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar] .
Abraço e boa Sorte!.

dinn 08-06-2010 11:10 AM

hahaha da hora
holy shit
Double kill
ultra kill

WebMaster_FoX 13-06-2010 09:37 PM

Muito Obrigado
 
Muito bom esse post eu estava atras disso mesmo Obrigado :jiggy:

KetChup 13-06-2010 10:58 PM

Muitoo feraa veeý

xdavison 14-06-2010 06:40 AM

na hora q os kara morrer so falta aquela vois sinistra Disendo Redshop :wacko:

WebMaster_FoX 23-06-2010 10:15 PM

ajudaaa aee alguem
 
bom to tentando add aqui em l2jserver interlud nao esta dando nao sera que tem diferença de versao ?

pode ser para qualquer versao? il ,gracia ,hellbound

alguem da uma luz aeeee

C.Bartowski 23-06-2010 11:16 PM

Manoo....

Ele pode ser usado por qualquer versão e em qualquer rev...

Basta Saber add ele...

Esta aqui esse Tutorial que poderá lhe ajudar

[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Espero ter ajudado

WebMaster_FoX 23-06-2010 11:51 PM

lol
 
sim isso eu sei so que ta dando erro e add mods eu sei deve ser algo no scripts nao sei

Guma 25-06-2010 09:35 PM

existe uma diferenca entre os import
c voce poder postar uma ss do erro seria melhor.

GugaMagic 26-06-2010 03:01 AM

alguem sabe dizer se esse mod aparece como anuncios as mortes? tipo: fulano double kill... triple kill.. monster kill e etc...:cute:


Horários baseados na GMT -3. Agora são 10:49 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.