/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package lineage2.gameserver.model.instances;
import lineage2.gameserver.model.Player;
import lineage2.gameserver.network.serverpackets.HennaEquipList;
import lineage2.gameserver.network.serverpackets.HennaUnequipList;
import lineage2.gameserver.templates.npc.NpcTemplate;
/**
* @author Mobius
* @version $Revision: 1.0 $
*/
public class SymbolMakerInstance extends NpcInstance
{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Constructor for SymbolMakerInstance.
* @param objectID int
* @param template NpcTemplate
*/
public SymbolMakerInstance(int objectID, NpcTemplate template)
{
super(objectID, template);
}
/**
* Method onBypassFeedback.
* @param player Player
* @param command String
*/
@Override
public void onBypassFeedback(Player player, String command)
{
if (!canBypassCheck(player, this))
{
return;
}
if (command.equals("Draw"))
{
player.sendPacket(new HennaEquipList(player));
}
else if (command.equals("RemoveList"))
{
player.sendPacket(new HennaUnequipList(player));
}
else
{
super.onBypassFeedback(player, command);
}
}
/**
* Method getHtmlPath.
* @param npcId int
* @param val int
* @param player Player
* @return String
*/
@Override
public String getHtmlPath(int npcId, int val, Player player)
{
String pom;
if (val == 0)
{
pom = "SymbolMaker";
}
else
{
pom = "SymbolMaker-" + val;
}
return "symbolmaker/" + pom + ".htm";
}
}