Jump to content

kostantinosftw

Members
  • Posts

    325
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by kostantinosftw

  1. L2j , 8 GB memory , OS ~= 670mb / 700mb , seperated db

     

     

    What are the best configs for gameserver.bat (including GC)  and my.ini?

    REM java -server -Xmx5g -Xms2g -Xmn512m -XX:PermSize=128m -XX:MaxPermSize=768m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCucle=10 -XX:+CMSParellelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:C:\log\gc.txt
    
    

    I did some research and I found these? Good? or no?

  2. What is the difference between Geodata and Pathnotes? With few words what exactly are they? I heard they make pvps fair b/c cant bypass walls (pray for castle) etc but they need loads of ram. Is it possible to add geo and path only for few areas? What is the best program to do it? PS: In case they go by areas I need geo for "cata of the forb. path", "elven ruins", "ketra" , "primeval isle" , "DVC",  "ACM" , and all castles. erm.. Kind of rude to ask but if there isnt any at least you can tell me how to do it. Thank you

  3. 1st Open commandname-e with L2fileedit and add this line at the end of the file. (without + )

    113 112 withdraw
    114 113 partyduel
    +115 114 delevel
    

    2nd Create "Delevel.java"  inside net.sf.l2j.gameserver.handler.usercommandhandlers. Then paste inside it the correct code:

    /*
     * This program is free software: you can redistribute it and/or modify it under
     * the terms of the GNU General Public License as published by the Free Software
     * Foundation, either version 3 of the License, or (at your option) any later
     * version.
     *
     * This program is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
     * details.
     *
     * You should have received a copy of the GNU General Public License along with
     * this program. If not, see <http://www.gnu.org/licenses/>.
     */
    package net.sf.l2j.gameserver.handler.usercommandhandlers;
    
    import net.sf.l2j.gameserver.handler.IUserCommandHandler;
    import net.sf.l2j.gameserver.instancemanager.GrandBossManager;
    import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    import net.sf.l2j.gameserver.model.base.Experience;
    
    public class Delevel implements IUserCommandHandler
    {
        private static final int[] COMMAND_IDS =
        {
            114
        };
        
        @Override
        public boolean useUserCommand(int id, L2PcInstance activeChar)
        {
            if (activeChar.isCastingNow() || activeChar.isSitting() || activeChar.isMovementDisabled() || activeChar.isOutOfControl() || activeChar.isInOlympiadMode() || activeChar.inObserverMode() || activeChar.isFestivalParticipant() || activeChar.isInJail() || GrandBossManager.isInBossZone(activeChar))
            {
                activeChar.sendMessage("Your current state doesn't allow you to use the /delevel command.");
                return false;
            }
            
            activeChar.stopMove(null);
            
            activeChar.getStat().removeExpAndSp(activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1], 0);
            
            return true;
        }
        
        @Override
        public int[] getUserCommandList()
        {
            return COMMAND_IDS;
        }
    }
    

    3rd and final go to net.sf.l2j.gameserver.handler and open the file "UserCommandHandler.java". Now all you have to do is to add 2 more lines!

    ........gameserver.handler.UserCommandHandler.java
    
    @@ 27
    
    import gnu.trove.map.hash.TIntObjectHashMap;
    
    import java.util.logging.Logger;
    
    import net.sf.l2j.Config;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.ChannelDelete;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.ChannelLeave;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.ChannelListUpdate;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.ClanPenalty;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.ClanWarsList;
    +import net.sf.l2j.gameserver.handler.usercommandhandlers.Delevel;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.DisMount;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.Escape;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.Loc;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.Mount;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.OlympiadStat;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.PartyInfo;
    import net.sf.l2j.gameserver.handler.usercommandhandlers.Time;
    
    public class UserCommandHandler
    {
    	private static Logger _log = Logger.getLogger(UserCommandHand
    
    
    
    
    @@ 58
    
    
    		_datatable = new TIntObjectHashMap<>();
    		registerUserCommandHandler(new ClanPenalty());
    		registerUserCommandHandler(new ClanWarsList());
    +		registerUserCommandHandler(new Delevel());
    		registerUserCommandHandler(new DisMount());
    		registerUserCommandHandler(new Escape());
    		registerUserCommandHandler(new Loc());
    		registerUserCommandHandler(new Mount());
    		registerUserCommandHandler(new PartyInfo());
    		registerUserCommandHandler(new Time());
    		registerUserCommandHandler(new OlympiadStat());
    		registerUserCommandHandler(new ChannelLeave());
    		registerUserCommandHandler(new ChannelDelete());
    		registerUserCommandHandler(new ChannelListUpdate());
    
    

    Credits goes to SweeTs

  4. An mporeis kane copy paste to droplist t mob giati diaferoun se kapoia pack.

     

    Suni8os paei as poume gia adena

    category=0 itemid=57 min=10000 max=10000 chance=1000000   rixnei 100% 10000 adena

    category=0 itemid=57 min=1 max=10000 chance=1000000           rixnei 100% apo 1 ews 10000 adena

     

    gia deftero item grafeis category=1 , trito category=2 k.o.k.

     

    kai gia spoil category=-1

  5. 1o Ekana edit to "commandname-e" kai pros8esa sto telos

     

     

    113 112 withdraw
    114 113 partyduel
    +115 114 delevel
    

     

    2o Dhmiourgisa Delevel.java sto net.sf.l2j.gameserver.handler.usercommandhandlers to e3is arxeio

    /*
     * This program is free software: you can redistribute it and/or modify it under
     * the terms of the GNU General Public License as published by the Free Software
     * Foundation, either version 3 of the License, or (at your option) any later
     * version.
     * 
     * This program is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
     * details.
     * 
     * You should have received a copy of the GNU General Public License along with
     * this program. If not, see <http://www.gnu.org/licenses/>.
     */
    package net.sf.l2j.gameserver.handler.usercommandhandlers;
    
    import net.sf.l2j.gameserver.handler.IUserCommandHandler;
    import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    import net.sf.l2j.gameserver.model.base.Experience;
    import net.sf.l2j.gameserver.datatables.SkillTable;
    import net.sf.l2j.gameserver.instancemanager.GrandBossManager;
    import net.sf.l2j.gameserver.network.SystemMessageId;
    
    public class Delevel implements IUserCommandHandler
    {
    	private static final int[] COMMAND_IDS =
    	{
    		114
    	};
    	
    	@Override
    	public boolean useUserCommand(int id, L2PcInstance activeChar)
    	{
    		if (activeChar.isCastingNow() || activeChar.isSitting() || activeChar.isMovementDisabled() || activeChar.isOutOfControl() || activeChar.isInOlympiadMode() || activeChar.inObserverMode() || activeChar.isFestivalParticipant() || activeChar.isInJail() || GrandBossManager.isInBossZone(activeChar))
    		{
    			activeChar.sendMessage("Your current state doesn't allow you to use the /delevel command.");
    			return false;
    		}
    		
    		activeChar.stopMove(null);
    		
    		if (activeChar.isGM())
    			activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0);
    		else
    		{
    			activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0);
    		}
    		
    		return true;
    	}
    	
    	@Override
    	public int[] getUserCommandList()
    	{
    		return COMMAND_IDS;
    	}
    }
    

    Alla den douleuei.. kapoia voh8ia ti mporei na exw kanei la8os?

  6. Config.java

     

    @@ 511

     

      public static double RATE_XP;
      public static double RATE_SP;
    +public static double SATURDAY_RATE_XP;
      public static double RATE_PARTY_XP;
      public static double RATE_PARTY_SP;

     

     
     
    @@ 1171
     
      RATE_XP = server.getProperty("RateXp", 1.);
      RATE_SP = server.getProperty("RateSp", 1.);
    + SATURDAY_RATE_XP = server.getProperty("SaturDayXp", 1.);
      RATE_PARTY_XP = server.getProperty("RatePartyXp", 1.);
      RATE_PARTY_SP = server.getProperty("RatePartySp", 1.);

     

     
     
    Config.properties 
     
    # =================================================================
    #                               RATES
    # =================================================================
     
         # Rate control
         RateXp = 1.
         RateSp = 1.
    +   SaturDayXp = 2.
         RatePartyXp = 2.
         RatePartySp = 2.

     

     
    L2Npc.java
     
    @@ 18
     
    import java.text.DateFormat;
    +import java.util.Calendar;
    import java.util.ArrayList;

     

     
     
    @@ 1516
     
    /**
    * @return the Exp Reward of this L2Npc contained in the L2NpcTemplate (modified by RATE_XP).<br><br>
    */
     
    -  public int getExpReward()
    -    {  
    -      return (int) (getTemplate().getRewardExp() * Config.RATE_XP);  
    -    }
     
    +    private int Savvato()
    +   {
    +     return Calendar.SATURDAY;
    +    }
    +
    +   public int getExpReward()
    +    {
    +     if(Savvato() != 0)
    +        return (int) (getTemplate().getRewardExp() * Config.SATURDAY_RATE_XP);
    +     else
    +     return (int) (getTemplate().getRewardExp() * Config.RATE_XP);
    +    
    +    }
     
    /**
    * @return the SP Reward of this L2Npc contained in the L2NpcTemplate (modified by RATE_SP).
    */
     

     

     
     
    Credits goes to absolutepower, i just changed/added few things in order to work on Acis. (My first java share)
  7. Epitelous ena oloklhromeno guide.. keep going! Ta peri "wraio alla uparxoun kai alla" toso analutika den uparxoun, mpourdologoune ade 1-2 na uparxoun me dead links stis photo. Tespa, gj k pali!

     

     

     

    Man Yparxoun idi tosa polla kala guide gia to pws na ftia3eis server kai apenergopoiontas to firewall kai to SPI apo to modem sou meneis akaleiptos apo pantou...

    Egw proswpika den 8a akolou8ousa auto to guide...

     

     Pws alliws mporeis na to kaneis?

  8. I don't understund correctly whats wrong but I will give it a try - maybe i can help you.

     

    1st you have to open eclipse and create the proper file (L2bufferInstance.Java) and paste the codes inside.

     

    2nd you have to compile it.

     

    if something goes wrong read it again. lol

     

    in case you already combiled your server and you added the buffer later you have to c/p the .jar (new) compiled files and replace the one your running in order to run your server.

  9. Problem solved. Had to use command:

     

    $ less /etc/services

     

    and manualy add the ports. Also

     

    sudo iptables -I INPUT -p tcp --dport 7777 --syn -j ACCEPT

     

    sudo iptables -I INPUT -p udp --dport 7777 -j ACCEPT

     

    sudo iptables -I INPUT -p tcp --dport 2100 --syn -j ACCEPT

     

    sudo iptables -I INPUT -p udp --dport 2100 -j ACCEPT

     

    After, i had to test it with

     

    telnet localhost 7777

    telnet 192.168.1.3 7777

    telnet example.no-ip.org 7777

     

    to check if everything works.

     

    Thank you FirefoxAurora (da spammer)

     

    -request lock

  10. Hello, I'm using linux server.

     

    Server machine infos:

    internet ip : example.no-ip.net

    Lan ip: 192.168.1.3

    login port: 2100

    gamserver port: 7777

    ---------------------------------------------------

    How to config my files in order to work properly?

    Loginserver.properties:

    ExternalHostname = examples.no-ip.org
    InternalHostname = 192.168.1.3
    
    LoginserverHostname = 192.168.1.3
    LoginserverPort = 2100
    
    LoginHostname = 127.0.0.1
    LoginPort = 1821
    

    Gameserver.properties:

    GameserverHostname = 192.168.1.3
    GameserverPort = 7777
    
    ExternalHostname = example.no-ip.org
    InternalHostname = 192.168.1.3
    
    LoginPort = 1821
    LoginHost = 127.0.0.1
    

    Also how i can open 2100 and 7777 ports on linux server?

     

    Thank you in advance.

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