Skip to content
Snippets Groups Projects
Commit 71e1ffac authored by Zealar's avatar Zealar
Browse files

Add missing message on soul/spirit shot use

parent dd682c9c
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; ...@@ -30,6 +30,7 @@ import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
import com.l2jserver.gameserver.model.items.type.ActionType; import com.l2jserver.gameserver.model.items.type.ActionType;
import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.util.Broadcast; import com.l2jserver.gameserver.util.Broadcast;
import com.l2jserver.util.Rnd; import com.l2jserver.util.Rnd;
...@@ -110,6 +111,10 @@ public class SoulShots implements IItemHandler ...@@ -110,6 +111,10 @@ public class SoulShots implements IItemHandler
activeChar.soulShotLock.unlock(); activeChar.soulShotLock.unlock();
} }
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_S1_);
sm.addItemName(itemId);
activeChar.sendPacket(sm);
// Send message to client // Send message to client
activeChar.sendPacket(SystemMessageId.ENABLED_SOULSHOT); activeChar.sendPacket(SystemMessageId.ENABLED_SOULSHOT);
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUse(activeChar, activeChar, skills[0].getSkillId(), skills[0].getSkillLvl(), 0, 0), 600); Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUse(activeChar, activeChar, skills[0].getSkillId(), skills[0].getSkillLvl(), 0, 0), 600);
......
...@@ -30,6 +30,7 @@ import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; ...@@ -30,6 +30,7 @@ import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
import com.l2jserver.gameserver.model.items.type.ActionType; import com.l2jserver.gameserver.model.items.type.ActionType;
import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.util.Broadcast; import com.l2jserver.gameserver.util.Broadcast;
public class SpiritShot implements IItemHandler public class SpiritShot implements IItemHandler
...@@ -97,6 +98,10 @@ public class SpiritShot implements IItemHandler ...@@ -97,6 +98,10 @@ public class SpiritShot implements IItemHandler
// Charge Spirit shot // Charge Spirit shot
activeChar.setChargedShot(ShotType.SPIRITSHOTS, true); activeChar.setChargedShot(ShotType.SPIRITSHOTS, true);
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_S1_);
sm.addItemName(itemId);
activeChar.sendPacket(sm);
// Send message to client // Send message to client
activeChar.sendPacket(SystemMessageId.ENABLED_SPIRITSHOT); activeChar.sendPacket(SystemMessageId.ENABLED_SPIRITSHOT);
Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUse(activeChar, activeChar, skills[0].getSkillId(), skills[0].getSkillLvl(), 0, 0), 600); Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUse(activeChar, activeChar, skills[0].getSkillId(), skills[0].getSkillLvl(), 0, 0), 600);
......
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