Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer1
- Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (revision 499)
- +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (working copy)
- @@ -51,7 +51,7 @@
- }
- else if(command.equalsIgnoreCase("deposit"))
- {
- - if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
- + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_DEPOSIT_ID, 0) >= Config.BANKING_SYSTEM_ADENA)
- {
- activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
- activeChar.getInventory().addItem("Goldbar", Config.BANKING_SYSTEM_DEPOSIT_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
- @@ -66,7 +66,7 @@
- }
- else if(command.equalsIgnoreCase("withdraw"))
- {
- - if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
- + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
- {
- activeChar.getInventory().destroyItemByItemId("Adena", Config.BANKING_SYSTEM_WITHDRAW_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
- activeChar.getInventory().addAdena("Adena", Config.BANKING_SYSTEM_ADENA, activeChar, null);
- Index: config/fun/bank.properties
- ===================================================================
- --- config/fun/bank.properties (revision 499)
- +++ config/fun/bank.properties (working copy)
- @@ -8,4 +8,10 @@
- BankingGoldbarCount = 1
- # This is the amount of Adena someone will get when they do the .withdraw command, and also the same amount they will lose when they do .deposit
- -BankingAdenaCount = 500000000
- \ No newline at end of file
- +BankingAdenaCount = 500000000
- +
- +#Now it's configured you can set the id which you want to use instead of exchange adenas to gold bar
- +BankingSystemDepositId = 57
- +
- +#Withdraw id instead of goldbar
- +BankingSystemWithdrawId = 3470
- \ No newline at end of file
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 499)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -1872,6 +1872,8 @@
- //============================================================
- public static boolean BANKING_SYSTEM_ENABLED;
- public static int BANKING_SYSTEM_GOLDBARS;
- + public static int BANKING_SYSTEM_DEPOSIT_ID;
- + public static int BANKING_SYSTEM_WITHDRAW_ID;
- public static int BANKING_SYSTEM_ADENA;
- //============================================================
- @@ -1889,7 +1891,8 @@
- BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(BANKSettings.getProperty("BankingEnabled", "false"));
- BANKING_SYSTEM_GOLDBARS = Integer.parseInt(BANKSettings.getProperty("BankingGoldbarCount", "1"));
- BANKING_SYSTEM_ADENA = Integer.parseInt(BANKSettings.getProperty("BankingAdenaCount", "500000000"));
- -
- + BANKING_SYSTEM_DEPOSIT_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemDepositId", "57"));
- + BANKING_SYSTEM_WITHDRAW_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemWithdrawId", "3470"));
- }
- catch(Exception e)
- {### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer1
- Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (revision 499)
- +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (working copy)
- @@ -51,7 +51,7 @@
- }
- else if(command.equalsIgnoreCase("deposit"))
- {
- - if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
- + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_DEPOSIT_ID, 0) >= Config.BANKING_SYSTEM_ADENA)
- {
- activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
- activeChar.getInventory().addItem("Goldbar", Config.BANKING_SYSTEM_DEPOSIT_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
- @@ -66,7 +66,7 @@
- }
- else if(command.equalsIgnoreCase("withdraw"))
- {
- - if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
- + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
- {
- activeChar.getInventory().destroyItemByItemId("Adena", Config.BANKING_SYSTEM_WITHDRAW_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
- activeChar.getInventory().addAdena("Adena", Config.BANKING_SYSTEM_ADENA, activeChar, null);
- Index: config/fun/bank.properties
- ===================================================================
- --- config/fun/bank.properties (revision 499)
- +++ config/fun/bank.properties (working copy)
- @@ -8,4 +8,10 @@
- BankingGoldbarCount = 1
- # This is the amount of Adena someone will get when they do the .withdraw command, and also the same amount they will lose when they do .deposit
- -BankingAdenaCount = 500000000
- \ No newline at end of file
- +BankingAdenaCount = 500000000
- +
- +#Now it's configured you can set the id which you want to use instead of exchange adenas to gold bar
- +BankingSystemDepositId = 57
- +
- +#Withdraw id instead of goldbar
- +BankingSystemWithdrawId = 3470
- \ No newline at end of file
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 499)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -1872,6 +1872,8 @@
- //============================================================
- public static boolean BANKING_SYSTEM_ENABLED;
- public static int BANKING_SYSTEM_GOLDBARS;
- + public static int BANKING_SYSTEM_DEPOSIT_ID;
- + public static int BANKING_SYSTEM_WITHDRAW_ID;
- public static int BANKING_SYSTEM_ADENA;
- //============================================================
- @@ -1889,7 +1891,8 @@
- BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(BANKSettings.getProperty("BankingEnabled", "false"));
- BANKING_SYSTEM_GOLDBARS = Integer.parseInt(BANKSettings.getProperty("BankingGoldbarCount", "1"));
- BANKING_SYSTEM_ADENA = Integer.parseInt(BANKSettings.getProperty("BankingAdenaCount", "500000000"));
- -
- + BANKING_SYSTEM_DEPOSIT_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemDepositId", "57"));
- + BANKING_SYSTEM_WITHDRAW_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemWithdrawId", "3470"));
- }
- catch(Exception e)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement