Its an aio item that i changed it to command .aiotem
but when i press .aioitem
it says on gameserver
Cache: Running lazy cache
package handlers.voicedcommandhandlers;
import java.util.logging.Logger;
import com.l2jserver.Config;
import com.l2jserver.gameserver.GameServer;
import com.l2jserver.gameserver.cache.HtmCache;
import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
/**
*
* @author Coyote
*
*/
public class AioItem implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = { "aioitem" };
private static final Logger _log = Logger.getLogger(GameServer.class.getName());
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
if (command.equalsIgnoreCase("aioitem"))
{
if (activeChar.isInJail())
{
activeChar.sendMessage("You can't use this command while being in Jail!");
return false;
}
else if (activeChar.isInDuel() && !Config.VCAIO_AND_DUEL)
{
activeChar.sendMessage("You can't use this command while dueling!");
return false;
}
else if (activeChar.isDead() && !Config.VCAIO_AND_DEAD)
{
activeChar.sendMessage("You can't use this command while being dead!");
return false;
}
else if (activeChar.isInOlympiadMode() && !Config.VCAIO_AND_OLY)
{
activeChar.sendMessage("You can't use this command while being in Olympiad!");
return false;
}
else if (activeChar.getKarma() > 0 && !Config.VCAIO_AND_KARMA)
{
activeChar.sendMessage("You can't use this command while having Karma!");
return false;
}
else if (activeChar.getPvpFlag() > 0 && !Config.VCAIO_AND_FLAG)
{
activeChar.sendMessage("You can't use this command while being Flagged!");
return false;
}
else if (activeChar.inObserverMode() && !Config.VCAIO_AND_OBSERVER)
{
activeChar.sendMessage("You can't use this command while observing an olympiad match!");
return false;
}
else if (activeChar.isFestivalParticipant() && !Config.VCAIO_AND_FESTIVAL)
{
activeChar.sendMessage("You can't use this command while participating in the Festival!");
return false;
}
else if (activeChar.isFishing() && !Config.VCAIO_AND_FISHING)
{
activeChar.sendMessage("You can't use this command while fishing!");
return false;
}
else if (activeChar.isInCombat() && !Config.VCAIO_AND_COMBAT)
{
activeChar.sendMessage("You can't use this command while being in combat!");
return false;
}
else if (activeChar.isParalyzed() && !Config.VCAIO_AND_PARA)
{
activeChar.sendMessage("You can't use this command while being paralyzed!");
return false;
}
else if (activeChar.isFakeDeath() && !Config.VCAIO_AND_FD)
{
activeChar.sendMessage("You can't use this command while using the 'Fake Death' skill!");
return false;
}
else if (activeChar.isChatBanned() && !Config.VCAIO_AND_CHATBAN)
{
activeChar.sendMessage("You can't use this command while being Chat Banned!");
return false;
}
else if (activeChar.isCursedWeaponEquipped()&& !Config.VCAIO_AND_CW_EQUIPPED)
{
activeChar.sendMessage("You can't use this command while holding a Cursed Weapon!");
return false;
}
else if (activeChar.isRooted() && !Config.VCAIO_AND_ROOT)
{
activeChar.sendMessage("You can't use this command while being rooted to the ground!");
return false;
}
else if (activeChar.isSitting() && !Config.VCAIO_AND_SITTING)
{
activeChar.sendMessage("You can't use this command while sitting down!");
return false;
}
else if (activeChar.isImmobilized() && !Config.VCAIO_AND_IMOBILE)
{
activeChar.sendMessage("You can't use this command while being imobilised!");
return false;
}
else if (activeChar.isIn7sDungeon() && !Config.VCAIO_AND_7SDUNGEON)
{
activeChar.sendMessage("You can't use this command while being at the 7 Signs Dungeon!");
return false;
}
else
{
String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/mods/mainhtml-0");
if (htmContent != null)
{
NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
infoHtml.setHtml(htmContent);
activeChar.sendPacket(infoHtml);
}
else
{
_log.info("Failed to load VCAIO File! Make sure that you fix it soon!");
}
}
}
return false;
}
public String[] getVoicedCommandList()
{
return VOICED_COMMANDS;
}
}
[/code]
Now i get only this error "Failed to load File! Make sure that you fix it soon!"
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Question
SkySkase
Its an aio item that i changed it to command .aiotem
but when i press .aioitem
it says on gameserver
Cache: Running lazy cache
[/code]
Now i get only this error "Failed to load File! Make sure that you fix it soon!"
everytime i try to press .aioitem
10 answers to this question
Recommended Posts