Эта команда даст Вам возможность принимать любой облик.
Вот что вам нужно для этого зделать:
ae-go\trunk\AE-go_GameServer\src\com\aionemu\gameserver\configs AdminConfig.java
Код:
@Property(key = "gameserver.administration.command.morph", defaultValue = "3")
public static int COMMAND_MORPH;//Morph
ae-go\trunk\AE-go_GameServer\data\scripts\system\handlers\adminco mmands
Код:
/*
* This file is part of aion-unique <aion-unique.org>.
*
* aion-unique 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.
*
* aion-unique 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 aion-unique. If not, see <http://www.gnu.org/licenses/>.
*/
package admincommands;
import com.aionemu.gameserver.configs.AdminConfig;
import com.aionemu.gameserver.model.gameobjects.Creature;
import com.aionemu.gameserver.model.gameobjects.VisibleObject;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.network.aion.serverpackets.SM_TRANSFORM;
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.utils.chathandlers.AdminCommand;
/**
* @author ATracer
*
*/
public class Morph extends AdminCommand
{
public Morph()
{
super("morph");
}
@Override
public void executeCommand(Player admin, String[] params)
{
if(admin.getCommonData().getAdminRole() < AdminConfig.COMMAND_MORPH)
{
PacketSendUtility.sendMessage(admin, "You don't have enough rights to execute this command!");
return;
}
int param;
if (params == null || params.length < 1)
{
PacketSendUtility.sendMessage(admin, "syntax //morph <NPC ID>");
return;
}
try{
param = Integer.parseInt(params[0]);
} catch (NumberFormatException e)
{
PacketSendUtility.sendMessage(admin, "You have wrong NPC ID Quantity.");
return;
}
Creature morphd = (Creature) admin.getTarget();
morphd.setTransformedModelId(param);
PacketSendUtility.broadcastPacket(morphd, new SM_TRANSFORM(morphd));
if (admin.getTarget() instanceof Player){
Player player = (Player) admin.getTarget();
PacketSendUtility.broadcastPacket(player, new SM_TRANSFORM(player));
PacketSendUtility.sendMessage(player, "morph successed!!");
}
}
}
ae-go\trunk\AE-go_GameServer\config admin.properties
Цитата:
# change morph
gameserver.administration.command.morph=3
|