Jump to content

Acacia

Members
  • Posts

    53
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Acacia

  1. 1 hour ago, Psygrammator said:

    You can add minlvl/maxlvl parameter. In the enterzone method, check the level.

    This will prevent the player from entering this area.

    i think he meant info for zones like elven forest 10-15 elven fortress 15-20 etc etc , to add info on his html on gk 
    unfortunately i don't know 😜 , incase you know any website to help him drop it 

  2. 12 hours ago, FA1XAPRET4 said:

    Salve meus amigos😎✌️

    Venho pedir encarecidamente se alguém conseguir fazer um mod de anúncio de quantidade de kill. 

     

    EX: 

    Monstro! BRASILEIRO matou 10 jogadores consecutivos 

    (isso e anunciado no anúncio do jogo)

     

    Se ele continuar dando kill sem morrer o próximo anúncio seria com 15 PvP. 

    EX:

    Lendário! BRASILEIRO Matou 15 Jogadores consecutivos. 

     

    Se ele matar mais 5 anos 

     

    Que merda! BRASILEIRO matou 20 jogadores consecutivos 

     

     

     

    Seria esse mod. Alguém pode me ajudar? 

    Meu pacote e uma aCis jmega 

     

    agradeço desde já.  

     

    there are countless Spree Systems shared bro .

  3. 23 hours ago, FossilGamer said:

    Hello, thanks for the reply. This skin system makes each item have a different visual correct? Is there any code that makes the player own the skin regardless of what they are wearing? Can't decide which is better

    it changes the current equiped Item's visual ( saves in db under item id in inventory table ). if u equip another equipment it wont have the other visual . u'll have to reuse 

  4. 21 hours ago, FossilGamer said:

    Hello maxcheaters, I've been working on a hi5 server. I want to add skin/dressme system on my server. But I searched and couldn't find anything for hi5 here. Is there anyone willing to guide or send me a shared code?
    Thanks in advance,

    DressMe for L2JSunrise
    Got this now from a random forum , 

    Its Tested i adapted it before on both acis and l2j worked as a charm 
    HF

    dress.jpg.8aae7353eeeee11274cff6ed218d1948.jpg

    • Like 1
  5. Its an old adapted code i made many years ago ,  just adapted it for latest Acis rev 
    feel free to correct any unnecessary lines or issues ( it works as intended and good to go though ) 
    its easy to extend 

    *Missing Mods ( Teleporter & Symbol Maker , didn't had time to adapt from my old rev )

    DIFF ( CODE )
    HTML FILES

    Locate : data/xml/items/5500-5599.xml ( Tutorial Guide )
    Locate Item Id : 5588
     

    change  <set name="handler" val="Book" />
    to : ----> <set
    name="handler" val="Cubic" />
     

    Cubic Menu Stats.jpg

    Cubic En Aug.jpg

    Cubic Store .jpg

    Cubic Store Multi.jpg

    Cubic Store Sell.jpg

    • Upvote 2
  6. Hello , i coded this one a lil while ago for someone that requested it , i'll just drop it here aswell 

    PVP PK TITLE RANK <--- DIFF Format for Latest Acis Rev 
    Code: @Kishin

    Apply it using the diff or navigate and do it manually 

    It does Updates when a new PvP / PK or when changing your Title
    max title letters changed to 9 ( more than that it hides the pvp/count letters )

    Have fun 🙂

    PVPPKRANK.jpg.e84877c523027f811eb30d6b92d0a6ec.jpg

    • Like 1
  7. On 6/18/2023 at 6:46 AM, DEVILMSTAR said:

    image.png.f23b048e4f58d5fa18e1edd89a7a201d.png

    Hello all does anyone know where i can find this mod or show me an example how to create my own ? 


    PVP PK RANK UPDATE  <--
    Code: @Kishin

    Here you go ready to use . coded on latest sources of acis  on diff format ,
    or you can apply it or navigate and paste it manually .

    it does updates when new pvp / pk or changing title 

    max title letters changed to 9 ( more than that it hides the pvp/count letters )PVPPKRANK.jpg.9a47ecec21c62839982f1c006cbde327.jpg

     

  8. 1 minute ago, Trance said:


    You don't need to copy and paste everything. Instead, you can use the same logic to implement it in your Thread Pool Manager. However, I am providing you with the files: https://files.lineage2.gold/threads.zip

    ye was about to do that , but was curious of its purpose . since even if i did implement it how it was , i would have to rework the whole src  .
    though ty for the file . i'll look around and work around on these 

    • Upvote 1
  9. Never had an issue with kara , any order i requested were given to me as he did promised and even done more than that.
    i don't see any reason to flag him as scammer .
    even if you ended getting half of the codes probably your attitude was the problem on that part 
    learn to be able to understand people's lifes first and their current problems and listen to them instead raging cause you didnt got what u wanted on * time *
    cause even if your at work and end up sick, you'll get a day off next day / 's  understand that.
    good luck 
     

  10. create a class on -> model.actor.instance that extends Folk / L2Npc / Npc (depend the source u using)  based on ur code instead using the voice command , use it on the

    onBypassFeedback

     

    and call ur code and appends to show the NpcHtmlWindow with onAction to Player/PlayerInstance/L2PcInstance etc 

    create an npc afterwards as type "name of your class instance" 

    • Like 1
  11. On 5/5/2021 at 12:38 AM, Zake said:

    Database should be included in the first link. As for the core, unfortunately there is no such share. 

    you can easily add the missing database sql files from the shared one , and add the the 2 missing fields on the characters/accounts file

  12. 19 minutes ago, Contessina* said:

    At least HE SHARE something in this dead forum , instead of judge .. u can tell him mistakes

    its fine mate and thank you , we all know how this forum works , everyone is a java diva around here so you dont have to take anything personal and argue about it . you walk in prepared :D

  13. Okay , a simple drop event coded on l2j Sources 
    it multiplies the drops of item only if its 100% rate 

     

    you type //dropevent to start the event after 15 mins ex. 

    and re-type //dropevent if you wish to force stop it 

     

    there is a configuration on the rate default is x1.2 

     

    the event will last for 60 minutes , and it will announce back when it ends 

     

    if event is active and a player logs in he will get a notification by pm 🙂

     

    Create a new class : DropEvent 

    package com.event;
    
    import net.sf.l2j.Config;
    import net.sf.l2j.gameserver.Announcements;
    import net.sf.l2j.gameserver.ThreadPoolManager;
    import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    import net.sf.l2j.gameserver.network.clientpackets.Say2;
    import net.sf.l2j.gameserver.network.serverpackets.CreatureSay;
    
    /**
     * @author Kishin
     */
    public class DropEvent {
    
       private int startIn = Config.DROP_EVENT_START;
       private int stopIn = Config.DROP_EVENT_END;
    
    
       public void sendDropEventInfo(L2PcInstance player) {
               player.broadcastPacket(new CreatureSay(player.getObjectId() ,Say2.TELL," "+player.getName()+":","Drop Event is currently running!"));
               player.sendMessage("Drop event is currently running!");
       }
    
    public void startEvent()
    {
        Announcements.getInstance().announceToAll("Double drop event will start in "+startIn+" minutes");
        ThreadPoolManager.getInstance().scheduleGeneral(new startTimer(), (startIn *60 * 1000));
    }
    
        public void forceStop()
        {
                setDoubleDrop(false);
        }
    
        public class startTimer implements Runnable {
    
            public void run() {
                setDoubleDrop(true);
                Announcements.getInstance().announceToAll("Double drop event has started !");
                Announcements.getInstance().announceToAll("Event will end in "+stopIn+" minutes !");
                ThreadPoolManager.getInstance().scheduleGeneral(new stopTimer(), (stopIn * 60 * 1000));
    
            }
        }
    
        public class stopTimer implements Runnable {
    
            public void run() {
                if (isDoubleDrop()) {
                    setDoubleDrop(false);
                    Announcements.getInstance().announceToAll("Double drop event has ended");
                }
            }
        }
    
        public static DropEvent getInstance() {
            return DropEvent.SingletonHolder._instance;
        }
    
        private static class SingletonHolder {
            protected static final DropEvent _instance = new DropEvent();
        }
    
        private boolean _isDoubleDrop;
    
        public void setDoubleDrop(boolean isDoubleDrop)
        {
            _isDoubleDrop = isDoubleDrop;
        }
    
        public boolean isDoubleDrop()
        {
            return _isDoubleDrop;
        }
    }


    L2Attackable.java search this -> 

    private RewardItem calculateCategorizedRewardItem
    

     

     and under this :

    dropChance *= Config.L2JMOD_CHAMPION_REWARDS;

    paste :

     

    if (DropEvent.getInstance().isDoubleDrop())
    {
       if ( dropChance == 1000000) {
          dropChance *= Config.DROP_EVENT_RATE;
       }
    }

    EnterWorld.java ->

    paste somewhere 

     

    if (DropEvent.getInstance().isDoubleDrop()) {
       DropEvent.getInstance().sendDropEventInfo(activeChar);
    }

    in Config.java 
    paste somewhere this :
     

     

    public static int DROP_EVENT_START;
    public static int DROP_EVENT_END;
    public static float DROP_EVENT_RATE;


    pick your destination file  mine is customSettings 

    paste

    DROP_EVENT_START = Integer.parseInt(customsSettings.getProperty("dropEventStart", "15"));
    DROP_EVENT_END = Integer.parseInt(customsSettings.getProperty("dropEventEnd", "60"));
    DROP_EVENT_RATE =  Float.parseFloat(customsSettings.getProperty("dropEventRate", "1.2"));

    Create a new class in admincommandhandlers 

    AdminDropEvent <-

    package net.sf.l2j.gameserver.handler.admincommandhandlers;
    
    import com.event.DropEvent;
    import net.sf.l2j.gameserver.Announcements;
    import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
    
    import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    
    /**
     * @author Kishin
     */
    public class AdminDropEvent implements IAdminCommandHandler {
    
        private static final String[] ADMIN_COMMANDS = {
                        "admin_dropevent"   };
    
        @Override
        public boolean useAdminCommand(String command, L2PcInstance activeChar) {
    
            try
            {
                if (command.equals("admin_dropevent"))
                {
                    if (DropEvent.getInstance().isDoubleDrop())
                    {
                        DropEvent.getInstance().forceStop();
                        Announcements.getInstance().announceToAll("Admin has ended the drop event");
                    }
                    else
                    {
                        DropEvent.getInstance().startEvent();
                    }
                }
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            return false;
        }
    
        @Override
        public String[] getAdminCommandList()
        {
            return ADMIN_COMMANDS;
        }
    }
    Have fun :)

    register the command handler  and good to go 🙂

    • Thanks 1
×
×
  • Create New...