Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2jFrozen_GameServer1
  3. Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java
  4. ===================================================================
  5. --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (revision 499)
  6. +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (working copy)
  7. @@ -51,7 +51,7 @@
  8. }
  9. else if(command.equalsIgnoreCase("deposit"))
  10. {
  11. - if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
  12. + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_DEPOSIT_ID, 0) >= Config.BANKING_SYSTEM_ADENA)
  13. {
  14. activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
  15. activeChar.getInventory().addItem("Goldbar", Config.BANKING_SYSTEM_DEPOSIT_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
  16. @@ -66,7 +66,7 @@
  17. }
  18. else if(command.equalsIgnoreCase("withdraw"))
  19. {
  20. - if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
  21. + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
  22. {
  23. activeChar.getInventory().destroyItemByItemId("Adena", Config.BANKING_SYSTEM_WITHDRAW_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
  24. activeChar.getInventory().addAdena("Adena", Config.BANKING_SYSTEM_ADENA, activeChar, null);
  25. Index: config/fun/bank.properties
  26. ===================================================================
  27. --- config/fun/bank.properties (revision 499)
  28. +++ config/fun/bank.properties (working copy)
  29. @@ -8,4 +8,10 @@
  30. BankingGoldbarCount = 1
  31.  
  32. # 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
  33. -BankingAdenaCount = 500000000
  34. \ No newline at end of file
  35. +BankingAdenaCount = 500000000
  36. +
  37. +#Now it's configured you can set the id which you want to use instead of exchange adenas to gold bar
  38. +BankingSystemDepositId = 57
  39. +
  40. +#Withdraw id instead of goldbar
  41. +BankingSystemWithdrawId = 3470
  42. \ No newline at end of file
  43. Index: head-src/com/l2jfrozen/Config.java
  44. ===================================================================
  45. --- head-src/com/l2jfrozen/Config.java (revision 499)
  46. +++ head-src/com/l2jfrozen/Config.java (working copy)
  47. @@ -1872,6 +1872,8 @@
  48. //============================================================
  49. public static boolean BANKING_SYSTEM_ENABLED;
  50. public static int BANKING_SYSTEM_GOLDBARS;
  51. + public static int BANKING_SYSTEM_DEPOSIT_ID;
  52. + public static int BANKING_SYSTEM_WITHDRAW_ID;
  53. public static int BANKING_SYSTEM_ADENA;
  54.  
  55. //============================================================
  56. @@ -1889,7 +1891,8 @@
  57. BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(BANKSettings.getProperty("BankingEnabled", "false"));
  58. BANKING_SYSTEM_GOLDBARS = Integer.parseInt(BANKSettings.getProperty("BankingGoldbarCount", "1"));
  59. BANKING_SYSTEM_ADENA = Integer.parseInt(BANKSettings.getProperty("BankingAdenaCount", "500000000"));
  60. -
  61. + BANKING_SYSTEM_DEPOSIT_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemDepositId", "57"));
  62. + BANKING_SYSTEM_WITHDRAW_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemWithdrawId", "3470"));
  63. }
  64. catch(Exception e)
  65. {### Eclipse Workspace Patch 1.0
  66. #P L2jFrozen_GameServer1
  67. Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java
  68. ===================================================================
  69. --- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (revision 499)
  70. +++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/BankingCmd.java (working copy)
  71. @@ -51,7 +51,7 @@
  72. }
  73. else if(command.equalsIgnoreCase("deposit"))
  74. {
  75. - if(activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.BANKING_SYSTEM_ADENA)
  76. + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_DEPOSIT_ID, 0) >= Config.BANKING_SYSTEM_ADENA)
  77. {
  78. activeChar.getInventory().reduceAdena("Goldbar", Config.BANKING_SYSTEM_ADENA, activeChar, null);
  79. activeChar.getInventory().addItem("Goldbar", Config.BANKING_SYSTEM_DEPOSIT_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
  80. @@ -66,7 +66,7 @@
  81. }
  82. else if(command.equalsIgnoreCase("withdraw"))
  83. {
  84. - if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
  85. + if(activeChar.getInventory().getInventoryItemCount(Config.BANKING_SYSTEM_WITHDRAW_ID, 0) >= Config.BANKING_SYSTEM_GOLDBARS)
  86. {
  87. activeChar.getInventory().destroyItemByItemId("Adena", Config.BANKING_SYSTEM_WITHDRAW_ID, Config.BANKING_SYSTEM_GOLDBARS, activeChar, null);
  88. activeChar.getInventory().addAdena("Adena", Config.BANKING_SYSTEM_ADENA, activeChar, null);
  89. Index: config/fun/bank.properties
  90. ===================================================================
  91. --- config/fun/bank.properties (revision 499)
  92. +++ config/fun/bank.properties (working copy)
  93. @@ -8,4 +8,10 @@
  94. BankingGoldbarCount = 1
  95.  
  96. # 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
  97. -BankingAdenaCount = 500000000
  98. \ No newline at end of file
  99. +BankingAdenaCount = 500000000
  100. +
  101. +#Now it's configured you can set the id which you want to use instead of exchange adenas to gold bar
  102. +BankingSystemDepositId = 57
  103. +
  104. +#Withdraw id instead of goldbar
  105. +BankingSystemWithdrawId = 3470
  106. \ No newline at end of file
  107. Index: head-src/com/l2jfrozen/Config.java
  108. ===================================================================
  109. --- head-src/com/l2jfrozen/Config.java (revision 499)
  110. +++ head-src/com/l2jfrozen/Config.java (working copy)
  111. @@ -1872,6 +1872,8 @@
  112. //============================================================
  113. public static boolean BANKING_SYSTEM_ENABLED;
  114. public static int BANKING_SYSTEM_GOLDBARS;
  115. + public static int BANKING_SYSTEM_DEPOSIT_ID;
  116. + public static int BANKING_SYSTEM_WITHDRAW_ID;
  117. public static int BANKING_SYSTEM_ADENA;
  118.  
  119. //============================================================
  120. @@ -1889,7 +1891,8 @@
  121. BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(BANKSettings.getProperty("BankingEnabled", "false"));
  122. BANKING_SYSTEM_GOLDBARS = Integer.parseInt(BANKSettings.getProperty("BankingGoldbarCount", "1"));
  123. BANKING_SYSTEM_ADENA = Integer.parseInt(BANKSettings.getProperty("BankingAdenaCount", "500000000"));
  124. -
  125. + BANKING_SYSTEM_DEPOSIT_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemDepositId", "57"));
  126. + BANKING_SYSTEM_WITHDRAW_ID = Integer.parseInt(BANKSettings.getProperty("BankingSystemWithdrawId", "3470"));
  127. }
  128. catch(Exception e)
  129. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement