Jump to content

protect

Members
  • Posts

    83
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by protect

  1. Freya or Epilogue
  2. maybe i must change something in hellboundmanager.java? package com.l2dc.gameserver.instancemanager; import java.util.logging.Logger; import com.l2dc.Config; import com.l2dc.database.MiscDbTask; import com.l2dc.gameserver.datatables.NpcTable; import com.l2dc.gameserver.datatables.SpawnTable; import com.l2dc.gameserver.model.L2Spawn; import com.l2dc.gameserver.templates.chars.L2NpcTemplate; // author: TheOne public class HellboundManager { private boolean _isOpen = false; private boolean _megalithsCompleted = false; private int _level = 0; private int _currentTrust = 0; private int _tempTrust = 0; private int tempLevel = 0; private static final Logger _log = Logger.getLogger(HellboundManager.class.getName()); // ========================================================= // Constructor private HellboundManager() { _log.info("Initializing HellboundManager"); init(); } private void init() { checkHellboundLevel(); _log.info("HellboundManager: Loaded "); } public static final HellboundManager getInstance() { return SingletonHolder.INSTANCE; } public boolean checkMegalithsCompleted() { return _megalithsCompleted; } public void setMegalithsCompleted(boolean value) { _megalithsCompleted = value; } public boolean checkIsOpen() { return _isOpen; } public int getLevel() { return _level; } public int getTrust() { return _currentTrust; } public L2Spawn addSpawn(int mobId, int xx, int yy, int zz, int headg, int respTime) { L2NpcTemplate template1; template1 = NpcTable.getInstance().getTemplate(mobId); L2Spawn spawn = null; try { spawn = new L2Spawn(template1); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (NoSuchMethodException e) { // TODO Auto-generated catch block e.printStackTrace(); } spawn.setLocx(xx); spawn.setLocy(yy); spawn.setLocz(zz); spawn.setAmount(1); spawn.setHeading(headg); spawn.setRespawnDelay(respTime); spawn.setInstanceId(0); spawn.setOnKillDelay(0); SpawnTable.getInstance().addNewSpawn(spawn, false); spawn.init(); spawn.startRespawn(); if (respTime == 0) { spawn.stopRespawn(); } return spawn; } public void unlockHellbound() { MiscDbTask.getInstance().unlockHellbound(); _isOpen = true; } public void increaseTrust(int points) { _currentTrust += (points * Config.RATE_HELLBOUND_POINTS); updateTrust(_currentTrust); } public void updateTrust(int newTrust) { _currentTrust = newTrust; MiscDbTask.getInstance().updateHellboundTrust(newTrust); } public void changeLevel(int newLevel) { _level = newLevel; MiscDbTask.getInstance().changeHellboundLevel(newLevel); } public void checkHellboundLevel() { Object[] obj = MiscDbTask.getInstance().checkHellboundLevel(); _tempTrust = (Integer)obj[0]; tempLevel = (Integer)obj[1]; _isOpen = (Boolean)obj[2]; if (_tempTrust > 0 && _tempTrust < 300000) _level = 1; if (_tempTrust >= 300000 && _tempTrust < 600000) _level = 2; if (_tempTrust >= 600000 && _tempTrust < 1000000) _level = 3; if (_tempTrust >= 1000000 && _currentTrust < 1030000) _level = 4; if (tempLevel == 5) _level = 5; if (tempLevel == 6) _level = 6; if (tempLevel == 7) _level = 7; if (tempLevel == 8) _level = 8; if (tempLevel == 9) _level = 9; if (tempLevel == 10) _level = 10; if (_level >= 10 && _tempTrust >= 2000000) _level = 11; _currentTrust = _tempTrust; if (tempLevel != _level && tempLevel != 5) { changeLevel(_level); } } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final HellboundManager INSTANCE = new HellboundManager(); } }
  3. maybe someone have epilogue server and say how his raise hellbound level to 11
  4. i make manual with hellbound.sql 11lvl hellbound but after rr him by 4lvl always i dont understand why i bet max trust point
  5. I buy full workink T2-e pack must work all quest and skill who have good pack write info to my email Djamuras@gmail.com
  6. Would anyone know how to be lifted Hellbound level to 11.
  7. Maybe somebody know best protect from botnet[ddos] ? Lameguard help from them? or only help from bots,php and t.t
  8. Can someone explain me about ip write to Freya server .... Where need write an external ip and where need write inside IP...And which port need write to l2.ini Here all config which i find IPconfig... <?xml version="1.0" encoding="UTF-8"?> <!-- Put old contents of ExternalHostname here, used by default --> <gameserver address="127.0.0.1"> <!-- Localhost access --> <define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- LAN's, put old contents of InternalHostname here --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.0.0" /> </gameserver> Server.propties # --------------------------------------------------------------------------- # Game Server Settings # --------------------------------------------------------------------------- # This is the server configuration file. Here you can set up the connection information for your server. # This was written with the assumption that you are behind a router. # Dumbed Down Definitions... # LAN (LOCAL area network) - typically consists of computers connected to the same router as you. # WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet). # x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers. # --------------------------------------------------------------------------- # Networking # --------------------------------------------------------------------------- # # Note: External/Internal address definitions was moved to the ipconfig.xml # # Where's the Login server this gameserver should connect to # Default: 127.0.0.1 LoginHost = 192.168.1.64 # TCP port the login server listen to for gameserver connection requests # Default: 9014 LoginPort = 9014 # Bind address for gameserver. You should not need to change it in most cases. # Default: * (0.0.0.0) GameserverHostname = * # Default: 7777 GameserverPort = 7777 # --------------------------------------------------------------------------- # Database # --------------------------------------------------------------------------- # Specify the appropriate driver and url for the database you're using. # Examples: # Driver = com.mysql.jdbc.Driver (default) # Driver = org.hsqldb.jdbcDriver # Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver Driver = com.mysql.jdbc.Driver # Database URL # URL = jdbc:mysql://localhost/l2jdb (default) # URL = jdbc:hsqldb:hsql://localhost/l2jdb # URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password = URL = jdbc:mysql://localhost/l2jdb # Database user info (default is "root" but it's not recommended) Login = root # Database connection password Password = # Default: 100 MaximumDbConnections = 100 # Default: 0 MaximumDbIdleTime = 0 And login.properties # Bind ip of the LoginServer, use * to bind on all available IPs # Default: * LoginserverHostname = * # Default: 2106 LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs # Default: * LoginHostname = 192.168.1.64 # The port on which login will listen for GameServers # Default: 9014 LoginPort = 9014 # The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic) # Default: 15 IpUpdateTime = 15 # --------------------------------------------------------------------------- # Security # --------------------------------------------------------------------------- # Default: True LogLoginController = True # How many times you can provide an invalid account/pass before the IP gets banned. # Default: 10 LoginTryBeforeBan = 10 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. # Default: 600 (10 minutes) LoginBlockAfterBan = 600 # If set to True any GameServer can register on your login's free slots # Default: False AcceptNewGameServer = False # Enforce GameGuard authorization from client? # If True, login server will kick client if the client bypassed GameGuard authentication. # Default: False ForceGGAuth = False # Flood Protection. All values are in MILISECONDS. # Default: True EnableFloodProtection = True # Default: 15 FastConnectionLimit = 15 # Default: 700 NormalConnectionTime = 700 # Default: 350 FastConnectionTime = 350 # Default: 50 MaxConnectionPerIP = 50 # --------------------------------------------------------------------------- # Database # --------------------------------------------------------------------------- # Specify the appropriate driver and url for the database you're using. # Examples: # Driver = com.mysql.jdbc.Driver (default) # Driver = org.hsqldb.jdbcDriver # Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver Driver = com.mysql.jdbc.Driver # Database URL # URL = jdbc:mysql://localhost/l2jdb (default) # URL = jdbc:hsqldb:hsql://localhost/l2jdb # URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password = URL = jdbc:mysql://localhost/l2jdb # Database user info (default is "root" but it's not recommended) Login = root # Database connection password Password = # Default: 10 MaximumDbConnections = 10 # Default: 0 MaximumDbIdleTime = 0 Help somebody plz
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..