Skip to content
Snippets Groups Projects
Commit 07cd742d authored by Nos's avatar Nos
Browse files

BETA: DP-Part for [L6331]

parent 77cb6995
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment