Jump to content
  • 0

[Requst qustion]How to call xml files


SkySkase

Question

So lets start

i am using .aio command

and when i press shop/weapon its all ok

but THE PROBLEM is after that

when press s80 for example i doesnt do anytning

 

When i call the xml File

Htmls works fine the Xml files dont work

 

So Can someone tell how to call the Xml files on java Code ?

 

I use L2JGracia Epilogue !!!!

 

 

So i want this think

 

 

35bbj2u.png

Link to comment
Share on other sites

Recommended Posts

  • 0

I don't want to be mean or anything, but I can't understand why ppl wants to make servers without any programming knowledge. It's like trying to compose music without seeing any chords before.

 

the problem isn´t knowledge, as you know everyone here start from 0 or almost everyone, the problem is that if you have 0 java knowledge you should at least read a bit, or not even read cos you know got a shitload of videos at youtube, you can easily learn the basics there.

 

but if you dont want to do anything and you want everything to be fixed and you also want to take credits for other ppl work you are not going to learn never.

Link to comment
Share on other sites

  • 0

/**

*

* @author Skyskase

*

*/

 

that voiced is from coyote, i mean can you even try to do things by yourself? or at least not changing the author when you did nothing.

 

also, im tired of this, im not keep going helping you out with this cos you dont even try, i did at least 60% of the work and you dont even read a bit. im done with this.

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

Link to comment
Share on other sites

  • 0

/**

*

* @author Skyskase

*

*/

 

that voiced is from coyote, i mean can you even try to do things by yourself? or at least not changing the author when you did nothing.

 

also, im tired of this, im not keep going helping you out with this cos you dont even try, i did at least 60% of the work and you dont even read a bit. im done with this.

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

Link to comment
Share on other sites

  • 0

/**

*

* @author Skyskase

*

*/

 

that voiced is from coyote, i mean can you even try to do things by yourself? or at least not changing the author when you did nothing.

 

also, im tired of this, im not keep going helping you out with this cos you dont even try, i did at least 60% of the work and you dont even read a bit. im done with this.

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

Link to comment
Share on other sites

  • 0

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

 

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

Link to comment
Share on other sites

  • 0

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

 

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

Link to comment
Share on other sites

  • 0

i am not making a server to oppen it online or anything i am trying to lern

also

 

/**

*

* @author Skyskase

*

*/

 

Everyone can see that its not mine and i never sayed its mine. i ama Newbie as i sayed i cant make something like that

Also only i can see that  ( just i  showed it to you ( i didint want to make this point of "Mine code" ) )

 

 

@Rizel

i will not oppen a server ofc i am doing all this to lern and not to sell or oppen a server

 

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

Link to comment
Share on other sites

  • 0

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

were i sayed its mine?
Link to comment
Share on other sites

  • 0

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

were i sayed its mine?
Link to comment
Share on other sites

  • 0

at the moment you add

 

 

/**

*

* @author Skyskase

*

*/

 

in a code you are saying that is yours, and you dont even manage to change the call to the bypass i did, or even read a bit to see what is inside the voiced, you just change the @author.

 

were i sayed its mine?
Link to comment
Share on other sites

  • 0

Voiced

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 Skyskase
*
*/
public class shop implements IVoicedCommandHandler
{
    private static final String[] VOICED_COMMANDS = { "shop" };
    private static final Logger _log = Logger.getLogger(GameServer.class.getName());
    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    { 
        if (command.equalsIgnoreCase("shop"))
       {
               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.htm");
                       if (htmContent != null)
                       {
                               NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
                               infoHtml.setHtml(htmContent);
                               activeChar.sendPacket(infoHtml);
                       }
                       else
                       {
                               _log.info("Failed to load File! Make sure that you fix it soon!");
                       }
               }
        }
               return false;
    }

    public String[] getVoicedCommandList()
    {
        return VOICED_COMMANDS;
    }
}

 

/**

*

* @author Skyskase

*

*/

 

there, when you say that you are the author of the code, you are saying that the code is yours.

Link to comment
Share on other sites

  • 0

Voiced

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 Skyskase
*
*/
public class shop implements IVoicedCommandHandler
{
    private static final String[] VOICED_COMMANDS = { "shop" };
    private static final Logger _log = Logger.getLogger(GameServer.class.getName());
    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    { 
        if (command.equalsIgnoreCase("shop"))
       {
               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.htm");
                       if (htmContent != null)
                       {
                               NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
                               infoHtml.setHtml(htmContent);
                               activeChar.sendPacket(infoHtml);
                       }
                       else
                       {
                               _log.info("Failed to load File! Make sure that you fix it soon!");
                       }
               }
        }
               return false;
    }

    public String[] getVoicedCommandList()
    {
        return VOICED_COMMANDS;
    }
}

 

/**

*

* @author Skyskase

*

*/

 

there, when you say that you are the author of the code, you are saying that the code is yours.

Link to comment
Share on other sites

  • 0

Voiced

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 Skyskase
*
*/
public class shop implements IVoicedCommandHandler
{
    private static final String[] VOICED_COMMANDS = { "shop" };
    private static final Logger _log = Logger.getLogger(GameServer.class.getName());
    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    { 
        if (command.equalsIgnoreCase("shop"))
       {
               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.htm");
                       if (htmContent != null)
                       {
                               NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
                               infoHtml.setHtml(htmContent);
                               activeChar.sendPacket(infoHtml);
                       }
                       else
                       {
                               _log.info("Failed to load File! Make sure that you fix it soon!");
                       }
               }
        }
               return false;
    }

    public String[] getVoicedCommandList()
    {
        return VOICED_COMMANDS;
    }
}

 

/**

*

* @author Skyskase

*

*/

 

there, when you say that you are the author of the code, you are saying that the code is yours.

Link to comment
Share on other sites

  • 0

/**

*

* @author Skyskase

*

*/

 

there, when you say that you are the author of the code, you are saying that the code is yours.

as i told you from 1st time

i did that ONLY FOR ME

you know this is on my pc Only

i just showed it to you to tell me what i will add to the path and NOT TO TELL YOU ITS MINE

Link to comment
Share on other sites

  • 0

/**

*

* @author Skyskase

*

*/

 

there, when you say that you are the author of the code, you are saying that the code is yours.

as i told you from 1st time

i did that ONLY FOR ME

you know this is on my pc Only

i just showed it to you to tell me what i will add to the path and NOT TO TELL YOU ITS MINE

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • I can use this folder system for High Five offline server?   The folder does not have a l2.exe file.   Thank you very much if anyone can help me.   https://drive.google.com/file/d/13kU-g_4JJ-sP-kg2F7pqkUOVKmQdubFm/view
    • I know, but...every time I have problem with IP address setup 😞
    • ENGLISH As you know, we have always profiled in the development of Java emulators, we continue to do our favorite thing, and now we have the opportunity to provide you with services in the field of private development of L2 assemblies Essence, Classic and High Five, which we have been doing in recent years, we have not been working on basic builds for a long time and work only on contracts for the world's best projects. These are the best builds we can offer, we have test servers and we can show them to you on the test, and if you are very good at gameplay, you will see a big difference in the quality and detail of the official content compared to the basic builds. These are the best top solutions in the world, which are currently used to implement the largest projects in the world. We guarantee 100% implementation of all official content. If you have any questions about testing, discussions, etc., please contact our studio and we will discuss everything. At the moment, you can get acquainted with the preliminary information and prices for Private L2 contracts here: Private Server packs L2 Essence 464, 447, 388, 362, 286 protocols Private server packs L2Classic Private server pack High Five РУССКИЙ --------------------------------------------- Как вы знаете мы всегда профилировались на разработке в сфере Java эмуляторов, мы продолжаем заниматься своим любимым делом, и сейчас у нас появилась возможность предоставлять вам услуги в сфере приватных разработок L2 сборок Essence, Classic и High Five, которыми мы занимаемся последние годы, мы уже давно не работаем над базовыми сборками и работаем только на контрактах для лучших мировых проектов. Это лучшие сборки, которые мы можем предложить, у нас есть тестовые сервера, и мы можем показать их вам на тесте, и если вы очень хорошо разбираетесь в игровом процессе, вы увидите большую разницу в качестве и детализации официального контента по сравнению с базовыми сборками. Это лучшие топовые решения в мире, которые на данный момент используются для реализации крупнейших проектов в мире. Мы даем гарантии - 100% реализации всего официального контента. По вопросам тестирования, обсуждений и тд - пишите по контактам нашей студии и мы все обсудим. На данный момент вы можете ознакомиться с предварительной информацией и ценами на Приватные контракты L2 тут: Приватные Сборки L2 Essence 464, 447, 388, 362, 286 protocols Приватные Сборки L2Classic Приватная Сборка High Five -------------------------------------------------------------- Contacts: Telegram: https://t.me/L2scripts Whatsapp, Viber: +1 (916) 226 1910 С уважением, Администрация !
    • I can sell it. If you are interested just pm.
  • Topics

×
×
  • Create New...