Skip to content
Snippets Groups Projects
Commit 7fcc2b85 authored by MELERIX's avatar MELERIX
Browse files

BETA/STABLE: Scroll Of Resurrection TVT Fix by Zoey76.

parent 504670a8
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,9 @@ import com.l2jserver.gameserver.model.actor.L2Playable; ...@@ -24,7 +24,9 @@ import com.l2jserver.gameserver.model.actor.L2Playable;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PetInstance; import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
import com.l2jserver.gameserver.model.entity.Castle; import com.l2jserver.gameserver.model.entity.Castle;
import com.l2jserver.gameserver.model.entity.TvTEvent;
import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage; import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
/** /**
...@@ -45,6 +47,13 @@ public class ScrollOfResurrection implements IItemHandler ...@@ -45,6 +47,13 @@ public class ScrollOfResurrection implements IItemHandler
return; return;
L2PcInstance activeChar = (L2PcInstance) playable; L2PcInstance activeChar = (L2PcInstance) playable;
if (!TvTEvent.onScrollUse(playable.getObjectId()))
{
playable.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
if (activeChar.isSitting()) if (activeChar.isSitting())
{ {
activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CANT_MOVE_SITTING)); activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CANT_MOVE_SITTING));
......
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