Jump to content

[share]Bless+Crystal Chance [Interlude]


Recommended Posts

Ayto to  Share to kanw giati blepw kapoies fores  san kai ayto edw to post  giati i perisoterh den  kanoun seacrh

 

Index: trunk/gameserver/java/config/players.properties
===================================================================
--- a/trunk/gameserver/java/config/players.properties
+++ b/trunk/gameserver/java/config/players.properties
@@ -137,2 +137,9 @@
MaxbuffAmount = 24
StoreSkillCooltime = True
+
+EnchantChanceWeaponCrystal = 100  
+EnchantChanceArmorCrystal = 100  
+EnchantChanceJewelryCrystal = 100           
+EnchantChanceWeaponBlessed = 85  
+EnchantChanceArmorBlessed = 85  
+EnchantChanceJewelryBlessed = 85 
Index: trunk/gameserver/java/net/sf/l2j/Config.java
===================================================================
--- a/trunk/gameserver/java/net/sf/l2j/Config.java
+++ b/trunk/gameserver/java/net/sf/l2j/Config.java
@@ -195,4 +195,12 @@
     public static boolean WEDDING_FORMALWEAR;
     public static int WEDDING_DIVORCE_COSTS;
+
+    /** Chance blessed-crystal enchants */ 
+   public static int ENCHANT_CHANCE_WEAPON_CRYSTAL;  
+   public static int ENCHANT_CHANCE_ARMOR_CRYSTAL;  
+   public static int ENCHANT_CHANCE_JEWELRY_CRYSTAL;  
+        public static int ENCHANT_CHANCE_WEAPON_BLESSED;  
+        public static int ENCHANT_CHANCE_ARMOR_BLESSED;  
+   public static int ENCHANT_CHANCE_JEWELRY_BLESSED;  
     
     /** Lottery */
@@ -925,4 +933,7 @@
                 WEDDING_DIVORCE_COSTS           = Integer.parseInt(eventsSettings.getProperty("WeddingDivorceCosts", "20"));               
                 
+                
+                /* if different from 100 (ie 100%) heal rate is modified acordingly */            
+                
                 ALT_LOTTERY_PRIZE                = Integer.parseInt(eventsSettings.getProperty("AltLotteryPrize","50000"));
                 ALT_LOTTERY_TICKET_PRICE         = Integer.parseInt(eventsSettings.getProperty("AltLotteryTicketPrice","2000"));
@@ -1073,4 +1084,11 @@
                 ENCHANT_SAFE_MAX_FULL   = Integer.parseInt(playersSettings.getProperty("EnchantSafeMaxFull", "4"));

+                ENCHANT_CHANCE_WEAPON_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponCrystal", "100"));   
+                ENCHANT_CHANCE_ARMOR_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorCrystal", "100"));   
+                ENCHANT_CHANCE_JEWELRY_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryCrystal", "100"));   
+                ENCHANT_CHANCE_WEAPON_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponBlessed", "85"));   
+                ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorBlessed", "85"));   
+                ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryBlessed", "85"));                
+                
                 KARMA_PLAYER_CAN_BE_KILLED_IN_PZ= Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanBeKilledInPeaceZone", "False"));
                 KARMA_PLAYER_CAN_SHOP           = Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanShop", "True"));

Index: trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- a/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
+++ b/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
@@ -40,6 +40,8 @@
{
     protected static final Logger _log = Logger.getLogger(Inventory.class.getName());
+    private static final int[] ENCHANT_SCROLLS = { 729, 730, 947, 948, 951, 952, 955, 956, 959, 960 }; 
     private static final String _C__58_REQUESTENCHANTITEM = "[C] 58 RequestEnchantItem";
     private static final int[] CRYSTAL_SCROLLS = { 731, 732, 949, 950, 953, 954, 957, 958, 961, 962 };
+    private static final int[] BLESSED_SCROLLS = { 6569, 6570, 6571, 6572, 6573, 6574, 6575, 6576, 6577, 6578 }; 
     
     private int _objectId;
@@ -56,4 +58,11 @@
         L2PcInstance activeChar = getClient().getActiveChar();
         if (activeChar == null || _objectId == 0) return;
+        
+        if (activeChar.isProcessingTransaction())  
+         {  
+        activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));  
+         activeChar.setActiveEnchantItem(null);  
+        return;  
+          }  
         
         if (activeChar.isProcessingTransaction()) 
@@ -195,25 +204,93 @@
             return;
         }
-
-        SystemMessage sm;
-
-        int chance = 0;
-        int maxEnchantLevel = 0;
-
-        if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
-        {
-                chance = Config.ENCHANT_CHANCE_WEAPON;
-                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON;
-        }
-        else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)
-        {
-                chance = Config.ENCHANT_CHANCE_ARMOR;
-                maxEnchantLevel = Config.ENCHANT_MAX_ARMOR;
-        }
-        else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)
-        {
-                chance = Config.ENCHANT_CHANCE_JEWELRY;
-                maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY;
-        }
+ 
+                                                        // SystemMessage(SystemMessageId.ENCHANT_SCROLL_CANCELLED);  
+                                                        // activeChar.sendPacket(sm);  
+                                                        SystemMessage sm;  
+                                                        int chance = 0;  
+                                                int maxEnchantLevel = 0;  
+                                                if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)  
+                                                        {  
+                                                                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                             {  
+                                                                        chance = Config.ENCHANT_CHANCE_WEAPON;  
+                                                                        break;  
+                                                                }  
+                                                                }  
+                                                                for (int scrollId : CRYSTAL_SCROLLS)  
+                                                        {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                                chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL;  
+                                                                        ;  
+                                                                                break;  
+                                                                }  
+                                                        }  
+                                                                for (int scrollId : BLESSED_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                                        chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED;  
+                                                                   break;  
+                                                                        }  
+                                                                }  
+                                                } else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)  
+                                                        {  
+                                                     maxEnchantLevel = Config.ENCHANT_MAX_ARMOR;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                               {  
+                                                                                chance = Config.ENCHANT_CHANCE_ARMOR;  
+                                                                                break;  
+                                                                        }  
+                                                                }  
+                                                                for (int scrollId : CRYSTAL_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                                chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL;  
+                                                                                break;  
+                                                                        }  
+                                                        }  
+                                                        for (int scrollId : BLESSED_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                        chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED;  
+                                                                                break;  
+                                                                }  
+                                                        }  
+                                                        } else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)  
+                                                        {  
+                                                                maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                        if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                                chance = Config.ENCHANT_CHANCE_JEWELRY;  
+                                                                                break;  
+                                                                        }  
+                                                                }  
+                                                        for (int scrollId : CRYSTAL_SCROLLS)  
+                                                        {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                        chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL;  
+                                                               break;  
+                                                                }  
+                                                                }  
+                                                        for (int scrollId : BLESSED_SCROLLS)  
+                                                        {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                     chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED;  
+                                                                     break;  
+                                                                }  
+                                                        }  
+                                                        } 

         if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX

Link to comment
Share on other sites

File PsychoSquad* eleos  pragmatika.. :)

to ekana post  gia ton logo oti  den to briskhs kai giati to  eixa perasei para poly palia  otan asxoliomouna me to Interlude na les pali kala pou exw to palio mou svn... :)

Link to comment
Share on other sites

File PsychoSquad* eleos  pragmatika.. :)

to ekana post  gia ton logo oti  den to briskhs kai giati to  eixa perasei para poly palia  otan asxoliomouna me to Interlude na les pali kala pou exw to palio mou svn... :)

Το ξέρω ρε πλάκα έκανα..
Link to comment
Share on other sites

Ayto to  Share to kanw giati blepw kapoies fores  san kai ayto edw to post  giati i perisoterh den  kanoun seacrh

 

Index: trunk/gameserver/java/config/players.properties
===================================================================
--- a/trunk/gameserver/java/config/players.properties
+++ b/trunk/gameserver/java/config/players.properties
@@ -137,2 +137,9 @@
MaxbuffAmount = 24
StoreSkillCooltime = True
+
+EnchantChanceWeaponCrystal = 100  
+EnchantChanceArmorCrystal = 100  
+EnchantChanceJewelryCrystal = 100           
+EnchantChanceWeaponBlessed = 85  
+EnchantChanceArmorBlessed = 85  
+EnchantChanceJewelryBlessed = 85 
Index: trunk/gameserver/java/net/sf/l2j/Config.java
===================================================================
--- a/trunk/gameserver/java/net/sf/l2j/Config.java
+++ b/trunk/gameserver/java/net/sf/l2j/Config.java
@@ -195,4 +195,12 @@
     public static boolean WEDDING_FORMALWEAR;
     public static int WEDDING_DIVORCE_COSTS;
+
+    /** Chance blessed-crystal enchants */ 
+   public static int ENCHANT_CHANCE_WEAPON_CRYSTAL;  
+   public static int ENCHANT_CHANCE_ARMOR_CRYSTAL;  
+   public static int ENCHANT_CHANCE_JEWELRY_CRYSTAL;  
+        public static int ENCHANT_CHANCE_WEAPON_BLESSED;  
+        public static int ENCHANT_CHANCE_ARMOR_BLESSED;  
+   public static int ENCHANT_CHANCE_JEWELRY_BLESSED;  
     
     /** Lottery */
@@ -925,4 +933,7 @@
                 WEDDING_DIVORCE_COSTS           = Integer.parseInt(eventsSettings.getProperty("WeddingDivorceCosts", "20"));               
                 
+                
+                /* if different from 100 (ie 100%) heal rate is modified acordingly */            
+                
                 ALT_LOTTERY_PRIZE                = Integer.parseInt(eventsSettings.getProperty("AltLotteryPrize","50000"));
                 ALT_LOTTERY_TICKET_PRICE         = Integer.parseInt(eventsSettings.getProperty("AltLotteryTicketPrice","2000"));
@@ -1073,4 +1084,11 @@
                 ENCHANT_SAFE_MAX_FULL   = Integer.parseInt(playersSettings.getProperty("EnchantSafeMaxFull", "4"));

+                ENCHANT_CHANCE_WEAPON_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponCrystal", "100"));   
+                ENCHANT_CHANCE_ARMOR_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorCrystal", "100"));   
+                ENCHANT_CHANCE_JEWELRY_CRYSTAL = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryCrystal", "100"));   
+                ENCHANT_CHANCE_WEAPON_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceWeaponBlessed", "85"));   
+                ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceArmorBlessed", "85"));   
+                ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(playersSettings.getProperty("EnchantChanceJewelryBlessed", "85"));                
+                
                 KARMA_PLAYER_CAN_BE_KILLED_IN_PZ= Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanBeKilledInPeaceZone", "False"));
                 KARMA_PLAYER_CAN_SHOP           = Boolean.valueOf(playersSettings.getProperty("KarmaPlayerCanShop", "True"));

Index: trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- a/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
+++ b/trunk/gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
@@ -40,6 +40,8 @@
{
     protected static final Logger _log = Logger.getLogger(Inventory.class.getName());
+    private static final int[] ENCHANT_SCROLLS = { 729, 730, 947, 948, 951, 952, 955, 956, 959, 960 }; 
     private static final String _C__58_REQUESTENCHANTITEM = "[C] 58 RequestEnchantItem";
     private static final int[] CRYSTAL_SCROLLS = { 731, 732, 949, 950, 953, 954, 957, 958, 961, 962 };
+    private static final int[] BLESSED_SCROLLS = { 6569, 6570, 6571, 6572, 6573, 6574, 6575, 6576, 6577, 6578 }; 
     
     private int _objectId;
@@ -56,4 +58,11 @@
         L2PcInstance activeChar = getClient().getActiveChar();
         if (activeChar == null || _objectId == 0) return;
+        
+        if (activeChar.isProcessingTransaction())  
+         {  
+        activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION));  
+         activeChar.setActiveEnchantItem(null);  
+        return;  
+          }  
         
         if (activeChar.isProcessingTransaction()) 
@@ -195,25 +204,93 @@
             return;
         }
-
-        SystemMessage sm;
-
-        int chance = 0;
-        int maxEnchantLevel = 0;
-
-        if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)
-        {
-                chance = Config.ENCHANT_CHANCE_WEAPON;
-                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON;
-        }
-        else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)
-        {
-                chance = Config.ENCHANT_CHANCE_ARMOR;
-                maxEnchantLevel = Config.ENCHANT_MAX_ARMOR;
-        }
-        else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)
-        {
-                chance = Config.ENCHANT_CHANCE_JEWELRY;
-                maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY;
-        }
+ 
+                                                        // SystemMessage(SystemMessageId.ENCHANT_SCROLL_CANCELLED);  
+                                                        // activeChar.sendPacket(sm);  
+                                                        SystemMessage sm;  
+                                                        int chance = 0;  
+                                                int maxEnchantLevel = 0;  
+                                                if (item.getItem().getType2() == L2Item.TYPE2_WEAPON)  
+                                                        {  
+                                                                maxEnchantLevel = Config.ENCHANT_MAX_WEAPON;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                             {  
+                                                                        chance = Config.ENCHANT_CHANCE_WEAPON;  
+                                                                        break;  
+                                                                }  
+                                                                }  
+                                                                for (int scrollId : CRYSTAL_SCROLLS)  
+                                                        {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                                chance = Config.ENCHANT_CHANCE_WEAPON_CRYSTAL;  
+                                                                        ;  
+                                                                                break;  
+                                                                }  
+                                                        }  
+                                                                for (int scrollId : BLESSED_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                                        chance = Config.ENCHANT_CHANCE_WEAPON_BLESSED;  
+                                                                   break;  
+                                                                        }  
+                                                                }  
+                                                } else if (item.getItem().getType2() == L2Item.TYPE2_SHIELD_ARMOR)  
+                                                        {  
+                                                     maxEnchantLevel = Config.ENCHANT_MAX_ARMOR;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                               {  
+                                                                                chance = Config.ENCHANT_CHANCE_ARMOR;  
+                                                                                break;  
+                                                                        }  
+                                                                }  
+                                                                for (int scrollId : CRYSTAL_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                                chance = Config.ENCHANT_CHANCE_ARMOR_CRYSTAL;  
+                                                                                break;  
+                                                                        }  
+                                                        }  
+                                                        for (int scrollId : BLESSED_SCROLLS)  
+                                                                {  
+                                                                        if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                        chance = Config.ENCHANT_CHANCE_ARMOR_BLESSED;  
+                                                                                break;  
+                                                                }  
+                                                        }  
+                                                        } else if (item.getItem().getType2() == L2Item.TYPE2_ACCESSORY)  
+                                                        {  
+                                                                maxEnchantLevel = Config.ENCHANT_MAX_JEWELRY;  
+                                                        for (int scrollId : ENCHANT_SCROLLS)  
+                                                                {  
+                                                        if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                                chance = Config.ENCHANT_CHANCE_JEWELRY;  
+                                                                                break;  
+                                                                        }  
+                                                                }  
+                                                        for (int scrollId : CRYSTAL_SCROLLS)  
+                                                        {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                                        {  
+                                                                        chance = Config.ENCHANT_CHANCE_JEWELRY_CRYSTAL;  
+                                                               break;  
+                                                                }  
+                                                                }  
+                                                        for (int scrollId : BLESSED_SCROLLS)  
+                                                        {  
+                                                                if (scroll.getItemId() == scrollId)  
+                                                                {  
+                                                                     chance = Config.ENCHANT_CHANCE_JEWELRY_BLESSED;  
+                                                                     break;  
+                                                                }  
+                                                        }  
+                                                        } 

         if (item.getEnchantLevel() < Config.ENCHANT_SAFE_MAX

ine kalo p voi8as new an k pistevw oti 8eli ligo psaksimo aftw :P

Link to comment
Share on other sites

akoma ena dwraki gia esas magkes..

einai kati aplos  alla  ma fou to exw  kai einai gia Interlude  oriste..

 

Index: trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java
===================================================================
--- trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java (revision 52)
+++ trunk/Gameserver/java/net/gp/gameserver/handler/itemhandlers/ScrollOfEscape.java (revision 58)
@@ -84,4 +84,11 @@
             return;
         }
+		
+        if (Config.ALLOW_SOE_IN_PVP && activeChar.getPvpFlag() != 0)
+        {  
+                activeChar.sendMessage("You can't use SOE if you're flagged!");  
+                return;  
+        }  
+

         // Check to see if the player is in a festival.
Index: trunk/Gameserver/java/net/gp/Config.java
===================================================================
--- trunk/Gameserver/java/net/gp/Config.java (revision 57)
+++ trunk/Gameserver/java/net/gp/Config.java (revision 58)
@@ -874,4 +874,5 @@
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
	public static boolean ALLOW_GK_IN_PVP; 
+	public static boolean ALLOW_SOE_IN_PVP;

     
@@ -1924,4 +1925,5 @@
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
				ALLOW_GK_IN_PVP                         = Boolean.parseBoolean(L2JModSettings.getProperty("AllowGkInPvP", "True"));
+				ALLOW_SOE_IN_PVP                        = Boolean.parseBoolean(L2JModSettings.getProperty("AllowSoEInPvP", "True"));


Index: trunk/Gameserver/config/l2jmods.properties
===================================================================
--- trunk/Gameserver/config/l2jmods.properties (revision 57)
+++ trunk/Gameserver/config/l2jmods.properties (revision 58)
@@ -137,2 +137,6 @@
# Default : True
AllowGkInPvP = True
+
+# If is set to False , players can't use SOE when they are flagged!
+# Default : True
+AllowSoEInPvP = True

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • MidnightSell team WTB/WTS GOLD TWW EU/US all servers Cataclysm all servers Payment Visa/Master/Btc/Eth/Trc-20/Erc-20 (all payments within 10 min) For all question pls dm Discord https://discord.gg/h8AN57qJjK Or Telegram @MidnightSell
    • GOSTEI MUITO DO VIASUAL DO SERVE COMO POSSO ADQUIRI ESSA REV PACK   
    • Helly everyone . I use L2jmobius interlude , i did everything , installed the db compiled the Build in eclipse Gameserver seems to lead OK , but it fails to connect to loginserver When i click to start the loginserver it says  "Loginserver terminated abnormally" This is wheat gameserver shows me :    [05/10 17:25:12] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:12] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:17] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:17] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:22] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:22] LoginServerThread: LoginServer not available, trying to reconnect...   And This is my login config file:   # --------------------------------------------------------------------------- # Login 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 # --------------------------------------------------------------------------- # Bind ip of the LoginServer, use 0.0.0.0 to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 0.0.0.0 LoginserverHostname = 0.0.0.0 # Default: 2106 LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 127.0.0.1 LoginHostname = 127.0.0.1 # The port on which login will listen for GameServers # Default: 9014 LoginPort = 9014 # --------------------------------------------------------------------------- # Database # --------------------------------------------------------------------------- # Specify the JDBC driver class for your database. # Default: org.mariadb.jdbc.Driver Driver = org.mariadb.jdbc.Driver # Database URL # Default: jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true URL = jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true # Database user info. Default is "root" but it's not recommended. Login = root # Database user password, leave empty for no password. Password = root # Maximum number of database connections to maintain in the pool. # Default: 5 MaximumDatabaseConnections = 5 # Determine whether database connections should be tested for availability. # Default: False TestDatabaseConnections = False # --------------------------------------------------------------------------- # Automatic Database Backup Settings # --------------------------------------------------------------------------- # Generate database backups when server restarts or shuts down.  BackupDatabase = False # Path to MySQL bin folder. Only necessary on Windows. MySqlBinLocation = C:/xampp/mysql/bin/ # Path where MySQL backups are stored. BackupPath = ../backup/ # Maximum number of days that backups will be kept. # Old files in backup folder will be deleted. # Set to 0 to disable. BackupDays = 30 # --------------------------------------------------------------------------- # Thread Configuration # --------------------------------------------------------------------------- # Defines the number of threads in the scheduled thread pool. # If set to -1, this will be determined by available processors divided by 2. ScheduledThreadPoolSize = 2 # Defines the number of threads in the instant thread pool. # If set to -1, this will be determined by available processors divided by 2. InstantThreadPoolSize = 2 # --------------------------------------------------------------------------- # Security # --------------------------------------------------------------------------- # How many times you can provide an invalid account/pass before the IP gets banned. # Default: 5 LoginTryBeforeBan = 5 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. # Default: 900 (15 minutes) LoginBlockAfterBan = 900 # If set to True any GameServer can register on your login's free slots # Default: True AcceptNewGameServer = True # Flood Protection. All values are in milliseconds. # Default: True EnableFloodProtection = True # Default: 15 FastConnectionLimit = 15 # Default: 700 NormalConnectionTime = 700 # Default: 350 FastConnectionTime = 350 # Default: 50 MaxConnectionPerIP = 50 # --------------------------------------------------------------------------- # Misc Login Settings # --------------------------------------------------------------------------- # If False, the license (after the login) will not be shown. # Default: True ShowLicence = True # Default: True AutoCreateAccounts = True # Datapack root directory. # Defaults to current directory from which the server is started. DatapackRoot = . # --------------------------------------------------------------------------- # Scheduled Login Restart # --------------------------------------------------------------------------- # Enable disable scheduled login restart. # Default: False LoginRestartSchedule = False # Time in hours. # Default: 24 LoginRestartTime = 24    
  • Topics

×
×
  • Create New...