Retail like invul and invis messages.
This commit is contained in:
@@ -38,6 +38,7 @@ import com.l2jmobius.gameserver.network.serverpackets.SocialAction;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SunRise;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SunSet;
|
||||
import com.l2jmobius.gameserver.util.Broadcast;
|
||||
import com.l2jmobius.gameserver.util.BuilderUtil;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
/**
|
||||
@@ -115,13 +116,13 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.decayMe();
|
||||
activeChar.spawnMe();
|
||||
activeChar.sendMessage("You are now invisible.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Now, you cannot be seen.");
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.setInvisible(false);
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.sendMessage("You are now visible.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Now, you can be seen.");
|
||||
}
|
||||
|
||||
command = "";
|
||||
@@ -133,13 +134,13 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.decayMe();
|
||||
activeChar.spawnMe();
|
||||
activeChar.sendMessage("You are now invisible.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Now, you cannot be seen.");
|
||||
}
|
||||
else if (command.startsWith("admin_vis"))
|
||||
{
|
||||
activeChar.setInvisible(false);
|
||||
activeChar.broadcastUserInfo();
|
||||
activeChar.sendMessage("You are now visible.");
|
||||
BuilderUtil.sendSysMessage(activeChar, "Now, you can be seen.");
|
||||
}
|
||||
else if (command.startsWith("admin_setinvis"))
|
||||
{
|
||||
@@ -150,7 +151,7 @@ public class AdminEffects implements IAdminCommandHandler
|
||||
}
|
||||
final L2Character target = (L2Character) activeChar.getTarget();
|
||||
target.setInvisible(!target.isInvisible());
|
||||
activeChar.sendMessage("You've made " + target.getName() + " " + (target.isInvisible() ? "invisible" : "visible") + ".");
|
||||
BuilderUtil.sendSysMessage(activeChar, "You've made " + target.getName() + " " + (target.isInvisible() ? "invisible" : "visible") + ".");
|
||||
|
||||
if (target.isPlayer())
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.admincommandhandlers;
|
||||
import com.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||
import com.l2jmobius.gameserver.model.L2Object;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.util.BuilderUtil;
|
||||
|
||||
/**
|
||||
* This class handles following admin commands: - invul = turns invulnerability on/off
|
||||
@@ -64,13 +65,13 @@ public class AdminInvul implements IAdminCommandHandler
|
||||
if (activeChar.isInvul())
|
||||
{
|
||||
activeChar.setIsInvul(false);
|
||||
text = activeChar.getName() + " is now mortal";
|
||||
text = activeChar.getName() + " is now mortal.";
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.setIsInvul(true);
|
||||
text = activeChar.getName() + " is now invulnerable";
|
||||
text = activeChar.getName() + " is now invulnerable.";
|
||||
}
|
||||
activeChar.sendMessage(text);
|
||||
BuilderUtil.sendSysMessage(activeChar, text);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user