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.


  • Posts

    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • 📜 • Mass PVP – Craft – Progressive Server (ITEMS, ARMOR, WEAPONS, ETC) 🕹️ • Chronicles: Lineage 2 - Interlude (C6) 🛠️ • Retail status 🕒 • Server Time: GMT -3 🏙️ • Main Town: Giran ✨ • Teleportation for all Towns, Gk Global 🛡️ • NPC BUFFER - GMSHOP B-GRADE - DONATION SHOP - AUCTION MANAGER 🐉 • Epic Bosses: Chaotic Zones 🔁 • Protection respawn: 15 seconds ⏰ • Restart Server: 05:00 AM Today 💸 • RTM allowed between players (ask Staff if in doubt) 📊 SERVER RATES: • EXP: x8 • SP: x10 • Adena: x3 • Seal Stone: x3 • Drop: x3 • Spoil: x5 • Raid EXP/SP/Drop: x3 • Premium Rates: x2 🌐 Website: https://www.l2roosters.com 💬 Discord: https://discord.gg/cUyYXrfy 🔥 Join us now and forge your legacy at Roosters Gaming!
    • Hello, lovely people, how are you? I just finished compiling the L2jFrozen project Rev: 1132 (very old). I don't mind it being too old, since the project is for me and my children. (LAN/Offline) it's not meant to be put online. I want to learn and give my children more comfort when playing. And for my part, I also experiment with the game. My problem is that I don't know much about the subject. I was able to make some basic configurations to my liking and that of my children, but it never compiles or anything like that... I would really need help from you, the community... I simply want to remove all subclass restrictions, remove the restriction on "Overlord, Warsmith, and Dark Elf subclasses with White Elves and vice versa." Thank you very much in advance! Greetings, community.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock