/*
* Copyright (C) 2004-2013 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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 .
*/
package handlers.actionhandlers;
import com.l2jserver.Config;
import com.l2jserver.gameserver.datatables.ItemTable;
import com.l2jserver.gameserver.handler.IActionHandler;
import com.l2jserver.gameserver.instancemanager.WalkingManager;
import com.l2jserver.gameserver.model.Elementals;
import com.l2jserver.gameserver.model.L2DropCategory;
import com.l2jserver.gameserver.model.L2DropData;
import com.l2jserver.gameserver.model.L2Object;
import com.l2jserver.gameserver.model.L2Object.InstanceType;
import com.l2jserver.gameserver.model.actor.L2Attackable;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.items.L2Item;
import com.l2jserver.gameserver.model.stats.BaseStats;
import com.l2jserver.gameserver.model.stats.Stats;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.util.StringUtil;
public class L2NpcActionShift implements IActionHandler
{
/**
* Manage and Display the GM console to modify the L2NpcInstance (GM only).
*
* Actions (If the L2PcInstance is a GM only) :
*
*
" + "Max.HP | ", String.valueOf(((L2Character) target).getMaxHp() / hpMul), "*", String.valueOf(hpMul), " | Max.MP | ", String.valueOf(((L2Character) target).getMaxMp()), " |
" + "P.Atk. | ", String.valueOf(((L2Character) target).getPAtk(null)), " | M.Atk. | ", String.valueOf(((L2Character) target).getMAtk(null, null)), " |
" + "P.Def. | ", String.valueOf(((L2Character) target).getPDef(null)), " | M.Def. | ", String.valueOf(((L2Character) target).getMDef(null, null)), " |
" + "Accuracy | ", String.valueOf(((L2Character) target).getAccuracy()), " | Evasion | ", String.valueOf(((L2Character) target).getEvasionRate(null)), " |
" + "Critical | ", String.valueOf(((L2Character) target).getCriticalHit(null, null)), " | Speed | ", String.valueOf(((L2Character) target).getRunSpeed()), " |
" + "Atk.Speed | ", String.valueOf(((L2Character) target).getPAtkSpd()), " | Cast.Speed | ", String.valueOf(((L2Character) target).getMAtkSpd()), " |
" + "Race | ", ((L2Npc) target).getTemplate().getRace().toString(), " | | |
" + "
" + "" + "STR | ", String.valueOf(((L2Character) target).getSTR()), " | DEX | ", String.valueOf(((L2Character) target).getDEX()), " | CON | ", String.valueOf(((L2Character) target).getCON()), " |
" + "INT | ", String.valueOf(((L2Character) target).getINT()), " | WIT | ", String.valueOf(((L2Character) target).getWIT()), " | MEN | ", String.valueOf(((L2Character) target).getMEN()), " |
" + "
");
if (!((L2Npc) target).getTemplate().getDropData().isEmpty())
{
StringUtil.append(html1, "