Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/aCis_gameserver/config/players.properties b/aCis_gameserver/config/players.properties
- index 812a6e7..1a5d603 100644
- --- a/aCis_gameserver/config/players.properties
- +++ b/aCis_gameserver/config/players.properties
- @@ -45,6 +45,10 @@
- # Transformations for pk players, the transformation type has to be NPC.
- TransformId = 0
- +# Level Reward
- +ListLevel = 25,26,27,28,29,30,31,32,33,34,35,36,37
- +RewardLevel = 57-10000000
- +
- #=============================================================
- # Inventory / Warehouse
- #=============================================================
- diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
- index 2ee0339..fe35d87 100644
- --- a/aCis_gameserver/java/net/sf/l2j/Config.java
- +++ b/aCis_gameserver/java/net/sf/l2j/Config.java
- @@ -339,6 +339,8 @@
- public static boolean ALT_GAME_DELEVEL;
- public static int DEATH_PENALTY_CHANCE;
- public static int TRANSFORM_NPC_ID;
- + public static int[] LIST_LEVEL;
- + public static IntIntHolder[] LEVEL_REWARD_ITEM;
- /** Inventory & WH */
- public static int INVENTORY_MAXIMUM_NO_DWARF;
- @@ -973,6 +975,8 @@
- ALT_GAME_DELEVEL = players.getProperty("Delevel", true);
- DEATH_PENALTY_CHANCE = players.getProperty("DeathPenaltyChance", 20);
- TRANSFORM_NPC_ID = players.getProperty("TransformId", 0);
- + LEVEL_REWARD_ITEM = players.parseIntIntList("RewardLevel", "0-0");
- + LIST_LEVEL = players.getProperty("ListLevel", new int[]{80,81,82,83,84,85});
- INVENTORY_MAXIMUM_NO_DWARF = players.getProperty("MaximumSlotsForNoDwarf", 80);
- INVENTORY_MAXIMUM_DWARF = players.getProperty("MaximumSlotsForDwarf", 100);
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/status/PlayerStatus.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/status/PlayerStatus.java
- index bf67be0..f44d500 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/status/PlayerStatus.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/status/PlayerStatus.java
- @@ -3,6 +3,7 @@
- import java.util.Map;
- import net.sf.l2j.commons.random.Rnd;
- +import net.sf.l2j.commons.util.ArraysUtil;
- import net.sf.l2j.Config;
- import net.sf.l2j.gameserver.data.manager.DuelManager;
- @@ -23,6 +24,7 @@
- import net.sf.l2j.gameserver.model.actor.instance.Servitor;
- import net.sf.l2j.gameserver.model.entity.Duel.DuelState;
- import net.sf.l2j.gameserver.model.group.Party;
- +import net.sf.l2j.gameserver.model.holder.IntIntHolder;
- import net.sf.l2j.gameserver.model.olympiad.OlympiadGameManager;
- import net.sf.l2j.gameserver.model.olympiad.OlympiadGameTask;
- import net.sf.l2j.gameserver.model.pledge.Clan;
- @@ -632,6 +634,15 @@
- qs.getQuest().notifyEvent("CE40", null, _actor);
- }
- + if (Config.LIST_LEVEL.length > 0)
- + {
- + if (ArraysUtil.contains(Config.LIST_LEVEL, getLevel()))
- + {
- + for (IntIntHolder reward : Config.LEVEL_REWARD_ITEM)
- + _actor.addItem("Level Reward", reward.getId(), reward.getValue(), null, true);
- + }
- + }
- +
- setCp(getMaxCp());
- _actor.broadcastPacket(new SocialAction(_actor, 15));
Add Comment
Please, Sign In to add comment