Jump to content
  • 0

Cache[HTML]: Running lazy cache


Question

Posted

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!"

 

 

everytime i try to press .aioitem

10 answers to this question

Recommended Posts

  • 0
Posted

Then something is wrong in your html's.

ok i fixed that. :D

now i dont know how to make the paths and were. i mean i have normaly main page.

but when i press on gm-shop nothing happens. any idea?

  • 0
Posted

Show us main page htm, maybe bypass is wrong.

 

<tr><td><button value="Shop" action="bypass -h aio_shop" width=120 height=19 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td></tr><br1>

 

 

 

 


else if (_command.startsWith("aio_shop"))
			      {
			     if (Config.ENABLE_Aio_SHOP)
			     {
			                                   
			    	 String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/htm/mods/955.htm");
			     if (htmContent != null)
			      {
			     NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
			     infoHtml.setHtml(htmContent);
			     activeChar.sendPacket(infoHtml);

  • 0
Posted

You miss HTMs, or HTMs got wrong extensions/name in data/html/mods/ folder. Be sure it's .htm, not .html.

i Cheked it . path its ok and name its 955.htm

So were the problem can be?

  • 0
Posted

There is no logical explanation for your problem then.

 

Call Mulder & Scully.

 

:/ .... chek the code 1 more time if you can.... mabe there is the problem
  • 0
Posted

There is no logical explanation for your problem then.

 

Call Mulder & Scully.

 

Ok fixed .

But now i have a litle question.

now i get normaly to window of shop. but.

When i press for example "Weapons" nothing happes.

So how i will start make all this to bypass?

Can you make me an example?

Guest
This topic is now closed to further replies.


×
×
  • Create New...