Noticias:

No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.

Menú Principal

Quake PVP Reward System

Iniciado por Swarlog, Jul 25, 2025, 11:53 PM

Tema anterior - Siguiente tema

Swarlog

CitarINFO:

Cuando matas a un jugador, aparece un mensaje y un sonido. Dependiendo de la cantidad de juegadores matados, aparecerá un sonido u otro, al igual que los mensajes.

CitarCODE:

Index: D:/Programs/WorkSpace/L2_GameServer/java/config/l2jmods.properties
===================================================================
--- D:/Programs/WorkSpace/L2_GameServer/java/config/l2jmods.properties  (revision 4488)
+++ D:/Programs/WorkSpace/L2_GameServer/java/config/l2jmods.properties  (working copy)
@@ -426,3 +426,49 @@
 # will be 1+2=3. Use 0 or negative value for unlimited number of connections.
 # Default: 127.0.0.1,0 (no limits from localhost)
 DualboxCheckWhitelist = 127.0.0.1,0
+
+# ------------------------------------------
+# Quake PvP System By iliqbg                     
+# ------------------------------------------
+
+# Default: False
+EnableQuakeSystem = False
+
+# Default Reward: 57
+QuakeReward1 = 57
+# Count: 100
+QuakeCount1  = 100
+
+# Default Reward: 57
+QuakeReward2 = 57
+# Count: 200
+QuakeCount2  = 200
+
+# Default Reward: 57
+QuakeReward3 = 57
+# Count: 500
+QuakeCount3  = 500
+
+# Default Reward: 57
+QuakeReward5 = 57
+# Count: 1000
+QuakeCount5  = 1000
+
+# Default Reward: 57
+QuakeReward10 = 57
+# Count: 15000
+QuakeCount10  = 15000
+
+# Default Reward: 57
+QuakeReward15 = 57
+# Count: 25000
+QuakeCount15  = 25000
+
+# Default Reward: 57
+QuakeReward25 = 57
+# Count: 1000000
+QuakeCount25  = 1000000
+
+# Default: true
+# when do 25 killings without dying become heroes
+EnableSetHero = true
Index: D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (revision 4488)
+++ D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
@@ -1,5 +1,5 @@
 /*
- * This program is free software: you can redistribute it and/or modify it under
+\ * This program is free software: you can redistribute it and/or modify it under
  * the terms of the GNU General Public License as published by the Free Software
  * Foundation, either version 3 of the License, or (at your option) any later
  * version.
@@ -574,6 +574,9 @@
        private boolean _noble = false;
        private boolean _hero = false;
        
+       /**PvP Quake Reward System (By iliqbg)*/
+       private int QuakePvPSystem = 0;
+       
        /** The L2FolkInstance corresponding to the last Folk wich one the player talked. */
        private L2Npc _lastFolkNpc = null;
        
@@ -5319,7 +5322,7 @@
                // Kill the L2PcInstance
                if (!super.doDie(killer))
                        return false;
-               
+                               
                if (isMounted())
                        stopFeed();
                synchronized (this)
@@ -5409,6 +5412,22 @@
                                                        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())
+                                               {
+                                                         if (onlinePlayer.getClan() != null)
+                                                         {
+                                                               if (onlinePlayer.getClan() == pk.getClan() && onlinePlayer != pk)
+                                                               {
+                                                                       onlinePlayer.sendPacket(_snd);
+                                                               }
+                                                         }
+                                               }
+                                               
+
                                                                if (AntiFeedManager.getInstance().check(killer, this))
                                                                {
                                                                        //      when your reputation score is 0 or below, the other clan cannot acquire any reputation points
@@ -5485,6 +5504,7 @@
                {
                        reviveRequest(this, null, false);
                }
+               QuakePvPSystem = 0;
                return true;
        }
        
@@ -5681,11 +5701,62 @@
                {
                        // Add karma to attacker and increase its PK counter
                        setPvpKills(getPvpKills() + 1);
-                       
+
+               if (Config.L2JMOD_QUAKE_PVP_ENABLE)
+               {
+               QuakePvPSystem++;
+               switch(QuakePvPSystem) {
+               case 1:
+                                 addItem("Loot", Config.QUAKE_REWARD_1, Config.QUAKE_COUNT_1, this, true);
+                                 PlaySound _snd1 = new PlaySound(1, "firstblood", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd1);
+                                 sendMessage("You will be rewarded for 1,pvp kill!");
+                       break;
+               case 2:
+                                 addItem("Loot", Config.QUAKE_REWARD_2, Config.QUAKE_COUNT_2, this, true);
+                                 PlaySound _snd2 = new PlaySound(1, "doublekill", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd2);
+                                 sendMessage("You will be rewarded for 2, pvp kill!");
+                         break;
+               case 3:
+                                 addItem("Loot", Config.QUAKE_REWARD_3, Config.QUAKE_COUNT_3, this, true);
+                                 PlaySound _snd3 = new PlaySound(1, "triplekill", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd3);
+                                 sendMessage("You will be rewarded for 3, pvp kill!");
+                         break;
+               case 5:
+                                 addItem("Loot", Config.QUAKE_REWARD_5, Config.QUAKE_COUNT_5, this, true);
+                                 PlaySound _snd4 = new PlaySound(1, "megakill", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd4);
+                                 sendMessage("You will be rewarded for 5,  pvp kill!");
+                         break;
+               case 10:
+                                 addItem("Loot", Config.QUAKE_REWARD_10, Config.QUAKE_COUNT_10, this, true);
+                                 PlaySound _snd5 = new PlaySound(1, "ultrakill", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd5);
+                                 sendMessage("You will be rewarded for 10, pvp kill!");
+                         break;
+               case 15:
+                                 addItem("Loot", Config.QUAKE_REWARD_15, Config.QUAKE_COUNT_15, this, true);
+                                 PlaySound _snd10 = new PlaySound(1, "monsterkill", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd10);
+                                 sendMessage("You will be rewarded for 15, pvp kill!");
+                         break;
+               case 25:
+                                 addItem("Loot", Config.QUAKE_REWARD_25, Config.QUAKE_COUNT_25, this, true);
+                                 PlaySound _snd15 = new PlaySound(1, "killingspree", 0, 0, 0, 0, 0);
+                                 sendPacket(_snd15);
+                                 sendMessage("You will be rewarded for 25, pvp kill (already a hero!)");
+                                 setHero(Config.L2JMOD_QUAKE_HERO_ENABLE);
+                         default:
+                               ;
+               }
+               
                        // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
                        sendPacket(new UserInfo(this));
                        sendPacket(new ExBrExtraUserInfo(this));
                }
+       }
        }
        
        /**
Index: D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/Config.java
===================================================================
--- D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/Config.java  (revision 4488)
+++ D:/Programs/WorkSpace/L2_GameServer/java/com/l2jserver/Config.java  (working copy)
@@ -718,6 +718,23 @@
        public static int L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP;
        public static TIntIntHashMap L2JMOD_DUALBOX_CHECK_WHITELIST;
        
+       public static boolean L2JMOD_QUAKE_PVP_ENABLE;
+       public static boolean L2JMOD_QUAKE_HERO_ENABLE;
+       public static int QUAKE_REWARD_1;
+       public static int QUAKE_REWARD_2;
+       public static int QUAKE_REWARD_3;
+       public static int QUAKE_REWARD_5;
+       public static int QUAKE_REWARD_10;
+       public static int QUAKE_REWARD_15;
+       public static int QUAKE_REWARD_25;
+       public static int QUAKE_COUNT_1;
+       public static int QUAKE_COUNT_2;
+       public static int QUAKE_COUNT_3;
+       public static int QUAKE_COUNT_5;
+       public static int QUAKE_COUNT_10;
+       public static int QUAKE_COUNT_15;
+       public static int QUAKE_COUNT_25;
+       
        //--------------------------------------------------
        // NPC Settings
        //--------------------------------------------------
@@ -2196,6 +2213,24 @@
                                        L2JMOD_CHAMPION_ENABLE_VITALITY = Boolean.parseBoolean(L2JModSettings.getProperty("ChampionEnableVitality", "False"));
                                        L2JMOD_CHAMPION_ENABLE_IN_INSTANCES = Boolean.parseBoolean(L2JModSettings.getProperty("ChampionEnableInInstances", "False"));
                                        
+                                       L2JMOD_QUAKE_PVP_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("EnableQuakeSystem", "false"));
+                                       L2JMOD_QUAKE_HERO_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("EnableSetHero", "true"));
+                                       QUAKE_REWARD_1 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward1", "57"));
+                                       QUAKE_REWARD_2 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward2", "57"));
+                                       QUAKE_REWARD_3 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward3", "57"));
+                                       QUAKE_REWARD_5 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward5", "57"));
+                                       QUAKE_REWARD_10 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward10", "57"));
+                                       QUAKE_REWARD_15 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward15", "57"));
+                                       QUAKE_REWARD_25 = Integer.parseInt(L2JModSettings.getProperty("QuakeReward25", "57"));
+                                       QUAKE_COUNT_1 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount1", "100"));
+                                       QUAKE_COUNT_2 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount2", "200"));
+                                       QUAKE_COUNT_3 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount3", "500"));
+                                       QUAKE_COUNT_5 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount5", "1000"));
+                                       QUAKE_COUNT_10 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount10", "15000"));
+                                       QUAKE_COUNT_15 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount15", "25000"));
+                                       QUAKE_COUNT_25 = Integer.parseInt(L2JModSettings.getProperty("QuakeCount25", "1000000"));
+
+                                       
                                        TVT_EVENT_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("TvTEventEnabled", "false"));
                                        TVT_EVENT_IN_INSTANCE = Boolean.parseBoolean(L2JModSettings.getProperty("TvTEventInInstance", "false"));
                                        TVT_EVENT_INSTANCE_FILE = L2JModSettings.getProperty("TvTEventInstanceFile", "coliseum.xml");

CitarSONIDOS:

4shared: No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.?
Mediafire: No tienes permiso para ver los enlaces. Para poder verlos Registrate o Conectate.