Configs for augmented item trade and destroy actions.
This commit is contained in:
@@ -335,6 +335,7 @@ MentorPenaltyForMenteeComplete = 1
|
||||
# Default: 2
|
||||
MentorPenaltyForMenteeLeave = 2
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Enchanting
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -356,6 +357,7 @@ EnchantBlackList = 7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7
|
||||
# Default: True
|
||||
DisableOverEnchanting = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Augmenting
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -367,7 +369,16 @@ AugmentationBlackList = 6656,6657,6658,6659,6660,6661,6662,8191,10170,10314,1374
|
||||
|
||||
# Allows alternative augmentation of PvP items.
|
||||
# Default: False
|
||||
AltAllowAugmentPvPItems = false
|
||||
AltAllowAugmentPvPItems = False
|
||||
|
||||
# Enable Trade/Drop/Sell for augmented items.
|
||||
# Default: False
|
||||
AltAllowAugmentTrade = False
|
||||
|
||||
# Enable Destroy/Crystalize for augmented items.
|
||||
# Default: True
|
||||
AltAllowAugmentDestroy = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Karma
|
||||
|
@@ -795,6 +795,8 @@ public final class Config
|
||||
public static boolean DISABLE_OVER_ENCHANTING;
|
||||
public static int[] AUGMENTATION_BLACKLIST;
|
||||
public static boolean ALT_ALLOW_AUGMENT_PVP_ITEMS;
|
||||
public static boolean ALT_ALLOW_AUGMENT_TRADE;
|
||||
public static boolean ALT_ALLOW_AUGMENT_DESTROY;
|
||||
public static double HP_REGEN_MULTIPLIER;
|
||||
public static double MP_REGEN_MULTIPLIER;
|
||||
public static double CP_REGEN_MULTIPLIER;
|
||||
@@ -1509,6 +1511,8 @@ public final class Config
|
||||
|
||||
Arrays.sort(AUGMENTATION_BLACKLIST);
|
||||
ALT_ALLOW_AUGMENT_PVP_ITEMS = Character.getBoolean("AltAllowAugmentPvPItems", false);
|
||||
ALT_ALLOW_AUGMENT_TRADE = Character.getBoolean("AltAllowAugmentTrade", false);
|
||||
ALT_ALLOW_AUGMENT_DESTROY = Character.getBoolean("AltAllowAugmentDestroy", true);
|
||||
ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Character.getBoolean("AltKarmaPlayerCanBeKilledInPeaceZone", false);
|
||||
ALT_GAME_KARMA_PLAYER_CAN_SHOP = Character.getBoolean("AltKarmaPlayerCanShop", true);
|
||||
ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Character.getBoolean("AltKarmaPlayerCanTeleport", true);
|
||||
|
@@ -786,6 +786,10 @@ public final class L2ItemInstance extends L2Object
|
||||
*/
|
||||
public boolean isDropable()
|
||||
{
|
||||
if (Config.ALT_ALLOW_AUGMENT_TRADE && isAugmented())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return !isAugmented() && _item.isDropable();
|
||||
}
|
||||
|
||||
@@ -795,6 +799,10 @@ public final class L2ItemInstance extends L2Object
|
||||
*/
|
||||
public boolean isDestroyable()
|
||||
{
|
||||
if (!Config.ALT_ALLOW_AUGMENT_DESTROY && isAugmented())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return _item.isDestroyable();
|
||||
}
|
||||
|
||||
@@ -804,6 +812,10 @@ public final class L2ItemInstance extends L2Object
|
||||
*/
|
||||
public boolean isTradeable()
|
||||
{
|
||||
if (Config.ALT_ALLOW_AUGMENT_TRADE && isAugmented())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return !isAugmented() && _item.isTradeable();
|
||||
}
|
||||
|
||||
@@ -813,6 +825,10 @@ public final class L2ItemInstance extends L2Object
|
||||
*/
|
||||
public boolean isSellable()
|
||||
{
|
||||
if (Config.ALT_ALLOW_AUGMENT_TRADE && isAugmented())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return !isAugmented() && _item.isSellable();
|
||||
}
|
||||
|
||||
|
@@ -99,13 +99,7 @@ public final class RequestCrystallizeItem implements IClientIncomingPacket
|
||||
if (inventory != null)
|
||||
{
|
||||
final L2ItemInstance item = inventory.getItemByObjectId(_objectId);
|
||||
if (item == null)
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.isHeroItem())
|
||||
if ((item == null) || item.isHeroItem() || (!Config.ALT_ALLOW_AUGMENT_DESTROY && item.isAugmented()))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
|
@@ -86,13 +86,7 @@ public class RequestCrystallizeEstimate implements IClientIncomingPacket
|
||||
}
|
||||
|
||||
final L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
|
||||
if ((item == null) || item.isShadowItem() || item.isTimeLimitedItem())
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.isHeroItem())
|
||||
if ((item == null) || item.isShadowItem() || item.isTimeLimitedItem() || item.isHeroItem() || (!Config.ALT_ALLOW_AUGMENT_DESTROY && item.isAugmented()))
|
||||
{
|
||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
@@ -189,6 +183,5 @@ public class RequestCrystallizeEstimate implements IClientIncomingPacket
|
||||
{
|
||||
client.sendPacket(SystemMessageId.CRYSTALLIZATION_CANNOT_BE_PROCEEDED_BECAUSE_THERE_ARE_NO_ITEMS_REGISTERED);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user