From 07cd742de1376f876b4ae634577d6348dbc7a227 Mon Sep 17 00:00:00 2001 From: Nos <NosBit@users.noreply.github.com> Date: Thu, 2 Jan 2014 19:30:28 +0000 Subject: [PATCH] BETA: DP-Part for [L6331] --- .../scripts/handlers/actionhandlers/L2PcInstanceAction.java | 3 ++- .../scripts/handlers/effecthandlers/OpenCommonRecipeBook.java | 3 ++- .../scripts/handlers/effecthandlers/OpenDwarfRecipeBook.java | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/actionhandlers/L2PcInstanceAction.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/actionhandlers/L2PcInstanceAction.java index dbf5d22ca1..93f66105d1 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/actionhandlers/L2PcInstanceAction.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/actionhandlers/L2PcInstanceAction.java @@ -22,6 +22,7 @@ import com.l2jserver.Config; import com.l2jserver.gameserver.GeoData; import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.enums.InstanceType; +import com.l2jserver.gameserver.enums.PrivateStoreType; import com.l2jserver.gameserver.handler.IActionHandler; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.actor.L2Character; @@ -83,7 +84,7 @@ public class L2PcInstanceAction implements IActionHandler else if (interact) { // Check if this L2PcInstance has a Private Store - if (((L2PcInstance) target).getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE) + if (((L2PcInstance) target).getPrivateStoreType() != PrivateStoreType.NONE) { activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, target); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenCommonRecipeBook.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenCommonRecipeBook.java index 43a216a7d4..a77fa4526d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenCommonRecipeBook.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenCommonRecipeBook.java @@ -19,6 +19,7 @@ package handlers.effecthandlers; import com.l2jserver.gameserver.RecipeController; +import com.l2jserver.gameserver.enums.PrivateStoreType; import com.l2jserver.gameserver.model.StatsSet; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.conditions.Condition; @@ -52,7 +53,7 @@ public final class OpenCommonRecipeBook extends AbstractEffect } L2PcInstance player = info.getEffector().getActingPlayer(); - if (player.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE) + if (player.getPrivateStoreType() != PrivateStoreType.NONE) { player.sendPacket(SystemMessageId.CANNOT_CREATED_WHILE_ENGAGED_IN_TRADING); return; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenDwarfRecipeBook.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenDwarfRecipeBook.java index d3e7df8752..014497dc32 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenDwarfRecipeBook.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/OpenDwarfRecipeBook.java @@ -19,6 +19,7 @@ package handlers.effecthandlers; import com.l2jserver.gameserver.RecipeController; +import com.l2jserver.gameserver.enums.PrivateStoreType; import com.l2jserver.gameserver.model.StatsSet; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.conditions.Condition; @@ -52,7 +53,7 @@ public final class OpenDwarfRecipeBook extends AbstractEffect } L2PcInstance player = info.getEffector().getActingPlayer(); - if (player.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE) + if (player.getPrivateStoreType() != PrivateStoreType.NONE) { player.sendPacket(SystemMessageId.CANNOT_CREATED_WHILE_ENGAGED_IN_TRADING); return; -- GitLab