31.10.2020 | 10:10
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум L2edit.Ru » Lineage 2 » Мануалы » Флагнутые игроки могут быть убиты в пис зоне
Флагнутые игроки могут быть убиты в пис зоне
ОвощДата: Пятница, 23.04.2010, 16:00 | Сообщение # 1
Овощ
Группа: Администратор
Сообщений: 2491
Награды: 162
Репутация: 5547
Статус: Offline
Для тех, кто не понял для чего это нужно:

Бывает так, что бишоп стоит в городе или в другой пис зоне и хилит игрока в PVP, вне этой зоны.
Данная модификация позволяет бить флагнутых игроков на мирной территории.

Code
Index: Trunk/7441/l2jfree-core/config/altsettings.properties
===================================================================
--- Trunk/7441/l2jfree-core/config/altsettings.properties
+++ Trunk/7441/l2jfree-core/config/altsettings.properties
@@ -113,6 +113,11 @@
  AltKarmaPlayerCanTrade = True
  AltKarmaPlayerCanUseWareHouse = False

+# -------------------------------------------------------------
+# Alternative settings against player with PVP_FLAG
+# -------------------------------------------------------------
+AltPvPFlagPlayerCanBeKilledInPeaceZone = True
+
  # Protect Player till level of PVP ( he also cant attack other players) 0 = disabled  
  AltPlayerProtectionLevel = 0
   

Index: Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/Config.java
===================================================================
--- Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/Config.java
+++ Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/Config.java
@@ -1576,6 +1576,7 @@
   public static boolean    ALT_GAME_KARMA_PLAYER_CAN_TELEPORT;
   public static boolean    ALT_GAME_KARMA_PLAYER_CAN_TRADE;
   public static boolean    ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE;
+    public static boolean    ALT_GAME_PVPFLAG_PLAYER_CAN_BE_KILLED_IN_PEACEZONE;       // PvP Punishment
   public static int     ALT_PLAYER_PROTECTION_LEVEL;                              // Player Protection Level
   public static boolean    ALT_AUTO_LEARN_SKILLS;                              // Config for Auto Learn Skills
   public static boolean    ALT_AUTO_LEARN_DIVINE_INSPIRATION;                              // Alternative auto skill learning for divine inspiration (+4 max buff count)
@@ -1773,6 +1774,7 @@
     ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Boolean.parseBoolean(altSettings.getProperty("AltKarmaPlayerCanTeleport", "true"));
     ALT_GAME_KARMA_PLAYER_CAN_TRADE = Boolean.parseBoolean(altSettings.getProperty("AltKarmaPlayerCanTrade", "true"));
     ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(altSettings.getProperty("AltKarmaPlayerCanUseWareHouse", "true"));
+   ALT_GAME_PVPFLAG_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Boolean.parseBoolean(altSettings.getProperty("AltPvPFlagPlayerCanBeKilledInPeaceZone", "false"));
     ALT_PLAYER_PROTECTION_LEVEL = Integer.parseInt(altSettings.getProperty("AltPlayerProtectionLevel", "0"));
     ALT_GAME_FREE_TELEPORT = Boolean.parseBoolean(altSettings.getProperty("AltFreeTeleporting", "False"));
     ALT_RECOMMEND = Boolean.parseBoolean(altSettings.getProperty("AltRecommend", "False"));
@@ -4180,6 +4182,8 @@
     ALT_GAME_KARMA_PLAYER_CAN_TRADE = Boolean.parseBoolean(pValue);
    else if (pName.equalsIgnoreCase("AltKarmaPlayerCanUseWareHouse"))
     ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(pValue);
+  else if (pName.equalsIgnoreCase("AltPvPFlagPlayerCanBeKilledInPeaceZone"))
+   ALT_GAME_PVPFLAG_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Boolean.parseBoolean(pValue);
    else if (pName.equalsIgnoreCase("AltCastleForDawn"))
     ALT_GAME_CASTLE_DAWN = Boolean.parseBoolean(pValue);
    else if (pName.equalsIgnoreCase("AltCastleForDusk"))

Index: Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/L2Character.java
===================================================================
--- Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/L2Character.java
+++ Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/L2Character.java
@@ -5575,19 +5575,26 @@
    if (InstanceManager.getInstance().getInstance(attacker.getInstanceId()).isPvPInstance())
     return false;
   
+  /************************************************************
+  *
+  * @author Sig'
+  *
+  *************************************************************/
+  if (Config.ALT_GAME_PVPFLAG_PLAYER_CAN_BE_KILLED_IN_PEACEZONE)
+  {
+   if (targetPlayer.getPvpFlag() != 0)
+    return false;
+  }
+
    if (Config.ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE)
    {
     // allows red to be attacked and red to attack flagged players
     if (targetPlayer.getKarma() > 0)
      return false;

Index:/Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java
+++ /Trunk/7441/l2jfree-core/src/main/java/com/l2jfree/gameserver/model/actor/instance/L2PcInstance.java
@@ -4720,7 +4720,7 @@
    // Force Charges
    clearCharges(); // Empty charges
   
-  //updatePvPFlag(0); // Clear the pvp flag
+  updatePvPFlag(0); // Clear the pvp flag
    // Pet shouldn't get unsummoned after masters death.
    // Unsummon the Pet
    //if (getPet() != null) getPet().unSummon(this);


Вёрстка макетов и создание клан сайтов на uCoz, STRESS - в ICQ
Хлеба и зрелищ

загрузка наград ...
 
Форум L2edit.Ru » Lineage 2 » Мануалы » Флагнутые игроки могут быть убиты в пис зоне
  • Страница 1 из 1
  • 1
Поиск: