Advertisement
Fabbian

Buffer

Nov 15th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 161.88 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P Dream_DataPack
  3. Index: sql/custom/character_buff_profiles.sql
  4. ===================================================================
  5. --- sql/custom/character_buff_profiles.sql (revision 0)
  6. +++ sql/custom/character_buff_profiles.sql (working copy)
  7. @@ -0,0 +1,8 @@
  8. +DROP TABLE IF EXISTS `character_buff_profiles`;
  9. +
  10. +CREATE TABLE `character_buff_profiles` (
  11. + `charId` int(10) unsigned NOT NULL,
  12. + `profileName` varchar(32) NOT NULL,
  13. + `buffGroup` int(10) unsigned NOT NULL,
  14. + PRIMARY KEY (`charId`,`profileName`,`buffGroup`)
  15. +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  16. \ No newline at end of file
  17. Index: sql/custom/custom_npcbuffer.sql
  18. ===================================================================
  19. --- sql/custom/custom_npcbuffer.sql (revision 0)
  20. +++ sql/custom/custom_npcbuffer.sql (working copy)
  21. @@ -0,0 +1,111 @@
  22. +SET FOREIGN_KEY_CHECKS=0;
  23. +-- ----------------------------
  24. +-- Table structure for `custom_npcbuffer`
  25. +-- ----------------------------
  26. +DROP TABLE IF EXISTS `custom_npcbuffer`;
  27. +CREATE TABLE `custom_npcbuffer` (
  28. + `npc_id` int(6) NOT NULL DEFAULT '0',
  29. + `skill_id` int(6) NOT NULL DEFAULT '0',
  30. + `skill_level` int(6) NOT NULL DEFAULT '1',
  31. + `skill_fee_id` int(6) NOT NULL DEFAULT '0',
  32. + `skill_fee_amount` int(6) NOT NULL DEFAULT '0',
  33. + `buff_group` int(6) NOT NULL DEFAULT '0',
  34. + PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`)
  35. +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  36. +
  37. +-- ----------------------------
  38. +-- Records of custom_npcbuffer
  39. +-- ----------------------------
  40. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '264', '1', '57', '20000', '264');
  41. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '265', '1', '57', '20000', '265');
  42. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '266', '1', '57', '20000', '266');
  43. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '267', '1', '57', '20000', '267');
  44. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '268', '1', '57', '20000', '268');
  45. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '269', '1', '57', '20000', '269');
  46. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '270', '1', '57', '20000', '270');
  47. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '271', '1', '57', '20000', '271');
  48. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '272', '1', '57', '20000', '272');
  49. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '273', '1', '57', '20000', '273');
  50. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '274', '1', '57', '20000', '274');
  51. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '275', '1', '57', '20000', '275');
  52. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '276', '1', '57', '20000', '276');
  53. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '277', '1', '57', '20000', '277');
  54. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '304', '1', '57', '20000', '304');
  55. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '305', '1', '57', '20000', '305');
  56. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '306', '1', '57', '20000', '306');
  57. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '307', '1', '57', '20000', '307');
  58. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '308', '1', '57', '20000', '308');
  59. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '309', '1', '57', '20000', '309');
  60. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '310', '1', '57', '20000', '310');
  61. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '311', '1', '57', '20000', '311');
  62. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '349', '1', '57', '20000', '349');
  63. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '363', '1', '57', '20000', '363');
  64. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '364', '1', '57', '20000', '364');
  65. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '365', '1', '57', '20000', '365');
  66. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '366', '1', '57', '20000', '366');
  67. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '367', '1', '57', '20000', '367');
  68. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1032', '3', '57', '20000', '1032');
  69. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1033', '3', '57', '20000', '1033');
  70. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1035', '4', '57', '20000', '1035');
  71. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1036', '2', '57', '20000', '1036');
  72. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1040', '3', '57', '20000', '1040');
  73. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1043', '1', '57', '20000', '1043');
  74. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1044', '3', '57', '20000', '1044');
  75. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1045', '6', '57', '20000', '1045');
  76. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1002', '4', '57', '20000', '1047');
  77. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1048', '6', '57', '20000', '1048');
  78. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1059', '3', '57', '20000', '1059');
  79. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1062', '2', '57', '20000', '1062');
  80. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1068', '3', '57', '20000', '1068');
  81. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1077', '3', '57', '20000', '1077');
  82. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1078', '6', '57', '20000', '1078');
  83. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1085', '3', '57', '20000', '1085');
  84. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1086', '2', '57', '20000', '1086');
  85. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1182', '3', '57', '20000', '1182');
  86. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1189', '3', '57', '20000', '1189');
  87. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1191', '3', '57', '20000', '1191');
  88. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1204', '2', '57', '20000', '1204');
  89. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1240', '3', '57', '20000', '1240');
  90. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1242', '3', '57', '20000', '1242');
  91. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1243', '6', '57', '20000', '1243');
  92. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1268', '4', '57', '20000', '1268');
  93. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1285', '1', '57', '20000', '1285');
  94. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1286', '1', '57', '20000', '1286');
  95. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1287', '1', '57', '20000', '1287');
  96. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1303', '2', '57', '20000', '1303');
  97. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1397', '3', '57', '20000', '1397');
  98. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1007', '3', '57', '20000', '1007');
  99. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1006', '3', '57', '20000', '1006');
  100. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1009', '3', '57', '20000', '1009');
  101. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1229', '18', '57', '20000', '1229');
  102. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1252', '3', '57', '20000', '1252');
  103. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1253', '3', '57', '20000', '1253');
  104. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1310', '4', '57', '20000', '1310');
  105. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1251', '2', '57', '20000', '1251');
  106. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1308', '3', '57', '20000', '1308');
  107. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1309', '3', '57', '20000', '1309');
  108. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1390', '3', '57', '20000', '1390');
  109. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1391', '3', '57', '20000', '1391');
  110. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1362', '1', '57', '20000', '1362');
  111. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1363', '1', '57', '20000', '1363');
  112. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1413', '1', '57', '20000', '1413');
  113. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1259', '4', '57', '20000', '1259');
  114. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4702', '13', '57', '20000', '4702');
  115. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4699', '13', '57', '20000', '4699');
  116. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4703', '13', '57', '20000', '4703');
  117. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4700', '13', '57', '20000', '4700');
  118. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1392', '3', '57', '20000', '1392');
  119. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1352', '1', '57', '20000', '1352');
  120. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1393', '3', '57', '20000', '1393');
  121. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4553', '4', '57', '20000', '4553');
  122. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4554', '4', '57', '20000', '4554');
  123. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1087', '3', '57', '20000', '1087');
  124. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1002', '3', '57', '20000', '1002');
  125. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1357', '1', '57', '20000', '1357');
  126. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1356', '1', '57', '20000', '1356');
  127. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1355', '1', '57', '20000', '1355');
  128. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1388', '3', '57', '20000', '1388');
  129. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1389', '3', '57', '20000', '1389');
  130. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4350', '4', '57', '20000', '4350');
  131. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1353', '1', '57', '20000', '1353');
  132. +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1354', '1', '57', '20000', '1354');
  133. Index: data/html/mods/buffer/Buffer-p1.htm
  134. ===================================================================
  135. --- data/html/mods/buffer/Buffer-p1.htm (revision 1831)
  136. +++ data/html/mods/buffer/Buffer-p1.htm (working copy)
  137. @@ -1,25 +1,35 @@
  138. -<html><head><title>Manager buffs</title></head>
  139. -<body>
  140. -<center>
  141. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  142. -<table width=220><tr>
  143. -<td>Purpose: <font color="LEVEL">%target%</font></td>
  144. -<td>Profile: <font color="LEVEL">%profile%</font></td>
  145. -</tr></table>
  146. -<table width=170>
  147. -<tr>
  148. -<td><edit var="name" width=80 height=15 /></td>
  149. -<td><button action="bypass -h Quest 50000_Buffer CreateProfile $name" value="Create" width=80 height=21 back="sek.cbui94" fore="sek.cbui92"></td>
  150. -</tr>
  151. -</table>
  152. -<font color="FF0000">%err%</font><br>
  153. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  154. -Your profiles
  155. -<table width=220>
  156. -%profilelist%
  157. -</table><br>
  158. -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  159. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  160. -</center>
  161. -</body>
  162. -</html>
  163. +<html><head><title>Менеджер бафов</title></head>
  164. +<body>
  165. +<center><table width=280>
  166. +<tr>
  167. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  168. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  169. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  170. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  171. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  172. +</tr></table>
  173. +<table width=280><tr>
  174. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  175. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  176. +<td><button value="Профили" action="bypass -h Quest 50000_Buffer Profile" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  177. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  178. +</tr></table>
  179. +<br><font color=ffa500>Профили</font><br>
  180. +<table width=170><tr>
  181. +<td><edit var="name" width=80 height=15 /></td>
  182. +<td><button action="bypass -h Quest 50000_Buffer CreateProfile $name" value="Создать" width=60 height=21 back="L2UI_CH3.Btn1_normalDisable" fore="L2buff.Button_BF"></td>
  183. +</tr>
  184. +</table>
  185. +<font color="FF0000">%err%</font><br>
  186. +<img src="l2ui.squaregray" width="295" height="1"><br>
  187. +Ваши профили:
  188. +<table width=220>
  189. +%profilelist%
  190. +</table><br>
  191. +<table width=285><tr>
  192. +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
  193. +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
  194. +</tr></table><br><img src="l2ui.squaregray" width="295" height="1"><br>
  195. +</center>
  196. +</body>
  197. +</html>
  198. Index: data/html/mods/buffer/Buffer-2.htm
  199. ===================================================================
  200. --- data/html/mods/buffer/Buffer-2.htm (revision 1831)
  201. +++ data/html/mods/buffer/Buffer-2.htm (working copy)
  202. @@ -1,90 +1,197 @@
  203. -<html><head><title>Manager buffs</title></head>
  204. -<body>
  205. -<center>
  206. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  207. -<br>
  208. -<table>
  209. -<tr>
  210. -<td><img src=icon.skill1085 width=32 height=32 align=left></td>
  211. -<td><button value="Acumen" action="bypass -h Quest 50000_Buffer Buff 1085" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  212. -<td><img src=icon.skill1062 width=32 height=32 align=left></td>
  213. -<td><button value="Berserk Spirit" action="bypass -h Quest 50000_Buffer Buff 1062" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  214. -</tr>
  215. -<tr>
  216. -<td><img src=icon.skill1243 width=32 height=32 align=left></td>
  217. -<td><button value="Bless Shield" action="bypass -h Quest 50000_Buffer Buff 1243" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  218. -<td><img src=icon.skill1045 width=32 height=32 align=left></td>
  219. -<td><button value="Bless the Body" action="bypass -h Quest 50000_Buffer Buff 1045" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  220. -</tr>
  221. -<tr>
  222. -<td><img src=icon.skill1048 width=32 height=32 align=left></td>
  223. -<td><button value="Bless the Soul" action="bypass -h Quest 50000_Buffer Buff 1048" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  224. -<td><img src=icon.skill1078 width=32 height=32 align=left></td>
  225. -<td><button value="Concentration" action="bypass -h Quest 50000_Buffer Buff 1078" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  226. -</tr>
  227. -<tr>
  228. -<td><img src=icon.skill1397 width=32 height=32 align=left></td>
  229. -<td><button value="Clarity" action="bypass -h Quest 50000_Buffer Buff 1397" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  230. -<td><img src=icon.skill1242 width=32 height=32 align=left></td>
  231. -<td><button value="Death Whisper" action="bypass -h Quest 50000_Buffer Buff 1242" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  232. -</tr>
  233. -<tr>
  234. -<td><img src=icon.skill1059 width=32 height=32 align=left></td>
  235. -<td><button value="Empower" action="bypass -h Quest 50000_Buffer Buff 1059" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  236. -<td><img src=icon.skill1077 width=32 height=32 align=left></td>
  237. -<td><button value="Focus" action="bypass -h Quest 50000_Buffer Buff 1077" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  238. -</tr>
  239. -<tr>
  240. -<td><img src=icon.skill1240 width=32 height=32 align=left></td>
  241. -<td><button value="Guidance" action="bypass -h Quest 50000_Buffer Buff 1240" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  242. -<td><img src=icon.skill1086 width=32 height=32 align=left></td>
  243. -<td><button value="Haste" action="bypass -h Quest 50000_Buffer Buff 1086" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  244. -</tr>
  245. -<tr>
  246. -<td><img src=icon.skill1043 width=32 height=32 align=left></td>
  247. -<td><button value="Holy Weapon" action="bypass -h Quest 50000_Buffer Buff 1043" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  248. -<td><img src=icon.skill1032 width=32 height=32 align=left></td>
  249. -<td><button value="Invigor" action="bypass -h Quest 50000_Buffer Buff 1032" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  250. -</tr>
  251. -<tr>
  252. -<td><img src=icon.skill1036 width=32 height=32 align=left></td>
  253. -<td><button value="Magic Barrier" action="bypass -h Quest 50000_Buffer Buff 1036" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  254. -<td><img src=icon.skill1035 width=32 height=32 align=left></td>
  255. -<td><button value="Mental Shield" action="bypass -h Quest 50000_Buffer Buff 1035" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  256. -</tr>
  257. -<tr>
  258. -<td><img src=icon.skill1068 width=32 height=32 align=left></td>
  259. -<td><button value="Might" action="bypass -h Quest 50000_Buffer Buff 1068" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  260. -<td><img src=icon.skill1044 width=32 height=32 align=left></td>
  261. -<td><button value="Regeneration" action="bypass -h Quest 50000_Buffer Buff 1044" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  262. -</tr>
  263. -<tr>
  264. -<td><img src=icon.skill1182 width=32 height=32 align=left></td>
  265. -<td><button value="Resist Aqua" action="bypass -h Quest 50000_Buffer Buff 1182" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  266. -<td><img src=icon.skill1191 width=32 height=32 align=left></td>
  267. -<td><button value="Resist Fire" action="bypass -h Quest 50000_Buffer Buff 1191" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  268. -</tr>
  269. -<tr>
  270. -<td><img src=icon.skill1033 width=32 height=32 align=left></td>
  271. -<td><button value="Resist Poison" action="bypass -h Quest 50000_Buffer Buff 1033" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  272. -<td><img src=icon.skill1189 width=32 height=32 align=left></td>
  273. -<td><button value="Resist Wind" action="bypass -h Quest 50000_Buffer Buff 1189" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  274. -</tr>
  275. -<tr>
  276. -<td><img src=icon.skill1040 width=32 height=32 align=left></td>
  277. -<td><button value="Shield" action="bypass -h Quest 50000_Buffer Buff 1040" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  278. -<td><img src=icon.skill1303 width=32 height=32 align=left></td>
  279. -<td><button value="Wild Magic" action="bypass -h Quest 50000_Buffer Buff 1303" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  280. -</tr>
  281. -<tr>
  282. -<td><img src=icon.skill1204 width=32 height=32 align=left></td>
  283. -<td><button value="Wind Walk" action="bypass -h Quest 50000_Buffer Buff 1204" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  284. -</tr>
  285. -</table>
  286. -<br>
  287. -<br>
  288. -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  289. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  290. -</center>
  291. -</body>
  292. -</html>
  293. +<html><head><title>Баффы</title></head><body>
  294. +<table width=280>
  295. +<tr>
  296. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  297. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  298. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  299. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  300. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  301. +</tr></table>
  302. +<table width=280><tr>
  303. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  304. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  305. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  306. +</tr></table>
  307. +<table bgcolor=000000>
  308. +<tr>
  309. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1040" width=32 height=32 back="icon.skill1040" fore="icon.skill1040"></td>
  310. +<td width=105>
  311. +<table>
  312. +<tr><td><font color="LEVEL">Shield</td></tr>
  313. +<tr><td><font color="ae9977">+ защита.</font></td></tr>
  314. +</table>
  315. +</td>
  316. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1068" width=32 height=32 back="icon.skill1068" fore="icon.skill1068"></td>
  317. +<td width=105>
  318. +<table>
  319. +<tr><td><font color="LEVEL">Might</td></tr>
  320. +<tr><td><font color="ae9977">+ атака.</font></td></tr>
  321. +</table>
  322. +</td>
  323. +</tr>
  324. +</table>
  325. +<table>
  326. +<tr>
  327. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1086" width=32 height=32 back="icon.skill1065" fore="icon.skill1065"></td>
  328. +<td width=105>
  329. +<table>
  330. +<tr><td><font color="FFFFFF">Haste </td></tr>
  331. +<tr><td><font color="ae9977">+ �коро�ть атаки.</font></td></tr>
  332. +</table>
  333. +</td>
  334. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1085" width=32 height=32 back="icon.skill1085" fore="icon.skill1085"></td>
  335. +<td width=105>
  336. +<table>
  337. +<tr><td><font color="FFFFFF">Acumen </td></tr>
  338. +<tr><td><font color="ae9977">+ �коро�ть ка�та</font></td></tr>
  339. +</table>
  340. +</td>
  341. +</tr>
  342. +</table>
  343. +<table bgcolor=000000>
  344. +<tr>
  345. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1045" width=32 height=32 back="icon.skill1045" fore="icon.skill1045"></td>
  346. +<td width=105>
  347. +<table>
  348. +<tr><td><font color="LEVEL">Blessed body</td></tr>
  349. +<tr><td><font color="ae9977">+ кол-во жизни. </font></td></tr>
  350. +</table>
  351. +</td>
  352. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1048" width=32 height=32 back="icon.skill1048" fore="icon.skill1048"></td>
  353. +<td width=105>
  354. +<table>
  355. +<tr><td><font color="LEVEL">Blessed soul</td></tr>
  356. +<tr><td><font color="ae9977">+ кол-во маны. </font></td></tr>
  357. +</table>
  358. +</td>
  359. +</tr>
  360. +</table>
  361. +<table>
  362. +<tr>
  363. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1077" width=32 height=32 back="icon.skill1077" fore="icon.skill1077"></td>
  364. +<td width=105>
  365. +<table>
  366. +<tr><td><font color="FFFFFF">Focus</td></tr>
  367. +<tr><td><font color="ae9977">+ шан� крита.</font></td></tr>
  368. +</table>
  369. +</td>
  370. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1242" width=32 height=32 back="icon.skill1242" fore="icon.skill1242"></td>
  371. +<td width=106>
  372. +<table>
  373. +<tr><td><font color="FFFFFF">Death whisper</td></tr>
  374. +<tr><td><font color="ae9977">+ �ила крита.</font></td></tr>
  375. +</table>
  376. +</td>
  377. +</tr>
  378. +</table>
  379. +<table bgcolor=000000>
  380. +<tr>
  381. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1240" width=32 height=32 back="icon.skill1240" fore="icon.skill1240"></td>
  382. +<td width=105>
  383. +<table>
  384. +<tr><td><font color="LEVEL">Guidance </td></tr>
  385. +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
  386. +</table>
  387. +</td>
  388. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1062" width=32 height=32 back="icon.skill1062" fore="icon.skill1062"></td>
  389. +<td width=109>
  390. +<table>
  391. +<tr><td><font color="LEVEL">Beserker Spirit </td></tr>
  392. +<tr><td><font color="ae9977">+ ат/�кор, - защ.</font></td></tr>
  393. +</table>
  394. +</td>
  395. +</tr>
  396. +</table>
  397. +<table>
  398. +<tr>
  399. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1036" width=32 height=32 back="icon.skill1036" fore="icon.skill1036"></td>
  400. +<td width=105>
  401. +<table>
  402. +<tr><td><font color="FFFFFF">Magic Barrier</td></tr>
  403. +<tr><td><font color="ae9977">+ маг. защита. </font></td></tr>
  404. +</table>
  405. +</td>
  406. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1059" width=32 height=32 back="icon.skill1059" fore="icon.skill1059"></td>
  407. +<td width=105>
  408. +<table>
  409. +<tr><td><font color="FFFFFF">Empower </td></tr>
  410. +<tr><td><font color="ae9977">+ маг. атака. </font></td></tr>
  411. +</table>
  412. +</td>
  413. +</tr>
  414. +</table>
  415. +<table bgcolor=000000>
  416. +<tr>
  417. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1204" width=32 height=32 back="icon.skill1204" fore="icon.skill1204"></td>
  418. +<td width=105>
  419. +<table>
  420. +<tr><td><font color="LEVEL">Wind Walk </td></tr>
  421. +<tr><td><font color="ae9977">+ �коро�ть. </font></td></tr>
  422. +</table>
  423. +</td>
  424. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1087" width=32 height=32 back="icon.skill4093" fore="icon.skill4093"></td>
  425. +<td width=105>
  426. +<table>
  427. +<tr><td><font color="LEVEL">Agility </td></tr>
  428. +<tr><td><font color="ae9977">+ ловко�ть. </font></td></tr>
  429. +</table>
  430. +</td>
  431. +</tr>
  432. +</table>
  433. +<table>
  434. +<tr>
  435. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1044" width=32 height=32 back="icon.skill1044" fore="icon.skill1044"></td>
  436. +<td width=105>
  437. +<table>
  438. +<tr><td><font color="FFFFFF">Regenaration </td></tr>
  439. +<tr><td><font color="ae9977">+ во��т. жизни. </font></td></tr>
  440. +</table>
  441. +</td>
  442. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1268" width=32 height=32 back="icon.skill1268" fore="icon.skill1268"></td>
  443. +<td width=105>
  444. +<table>
  445. +<tr><td><font color="FFFFFF">Vampiric Rage </td></tr>
  446. +<tr><td><font color="ae9977">+ ХП от атаки. </font></td></tr>
  447. +</table>
  448. +</td>
  449. +</tr>
  450. +</table>
  451. +<table bgcolor=000000>
  452. +<tr>
  453. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1303" width=32 height=32 back="icon.skill1303" fore="icon.skill1303"></td>
  454. +<td width=105>
  455. +<table>
  456. +<tr><td><font color="LEVEL">Wild Magic </td></tr>
  457. +<tr><td><font color="ae9977">+ шан� маг крита.</font></td></tr>
  458. +</table>
  459. +</td>
  460. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1078" width=32 height=32 back="icon.skill1078" fore="icon.skill1078"></td>
  461. +<td width=105>
  462. +<table>
  463. +<tr><td><font color="LEVEL">Concentration </td></tr>
  464. +<tr><td><font color="ae9977">+ чтение закл.</font></td></tr>
  465. +</table>
  466. +</td>
  467. +</tr>
  468. +</table>
  469. +<table>
  470. +<tr>
  471. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1243" width=32 height=32 back="icon.skill1243" fore="icon.skill1243"></td>
  472. +<td width=105>
  473. +<table>
  474. +<tr><td><font color="FFFFFF">Bless Shield </td></tr>
  475. +<tr><td><font color="ae9977">+ защита щитом. </font></td></tr>
  476. +</table>
  477. +</td>
  478. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1397" width=32 height=32 back="icon.skill1397" fore="icon.skill1397"></td>
  479. +<td width=105>
  480. +<table>
  481. +<tr><td><font color="FFFFFF">Clarity</td></tr>
  482. +<tr><td><font color="ae9977">- потребл. МП</font></td></tr>
  483. +</table>
  484. +</td>
  485. +</tr>
  486. +</table>
  487. +<br>
  488. +</body>
  489. +</html>
  490. Index: data/html/mods/buffer/Buffer-pet-4.htm
  491. ===================================================================
  492. --- data/html/mods/buffer/Buffer-pet-4.htm (revision 1831)
  493. +++ data/html/mods/buffer/Buffer-pet-4.htm (working copy)
  494. @@ -1,10 +1,20 @@
  495. -<html>
  496. -<html><head><title>Manager buffs</title></head>
  497. -<body>
  498. -<center>
  499. -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  500. -<center>
  501. -No need to struggle with the pet such brutal bafami
  502. -</center>
  503. -</body>
  504. +<html><head><title>Баффер</title></head>
  505. +<body><center>
  506. +<table width=280><tr>
  507. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  508. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  509. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  510. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  511. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  512. +</tr></table>
  513. +<table width=280><tr>
  514. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  515. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  516. +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  517. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  518. +</tr></table><br><br>
  519. +�е надо мучать животное такими звер�кими бафами
  520. +<br><br>
  521. +</center>
  522. +</body>
  523. </html>
  524. \ No newline at end of file
  525. Index: data/html/mods/buffer/Buffer-6.htm
  526. ===================================================================
  527. --- data/html/mods/buffer/Buffer-6.htm (revision 0)
  528. +++ data/html/mods/buffer/Buffer-6.htm (working copy)
  529. @@ -0,0 +1,18 @@
  530. +<html><title>Что �то</title><body><center>
  531. +<table width=280><tr>
  532. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  533. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  534. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  535. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  536. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  537. +</tr></table>
  538. +<table width=280><tr>
  539. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  540. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  541. +<td><button value="About" action="bypass -h Quest 50000_Buffer Chat 6" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  542. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  543. +</tr></table>
  544. +<img src="l2buff.ABOUT" width="256" height="256"><br>
  545. +XaB4uK 2014</center>
  546. +</body>
  547. +</html>
  548. \ No newline at end of file
  549. Index: data/html/mods/buffer/Buffer-p2.htm
  550. ===================================================================
  551. --- data/html/mods/buffer/Buffer-p2.htm (revision 1831)
  552. +++ data/html/mods/buffer/Buffer-p2.htm (working copy)
  553. @@ -1,17 +1,18 @@
  554. -<html><head><title>Manager buffs</title></head>
  555. -<body>
  556. -<center>
  557. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  558. -Profile <font color="LEVEL">%profile%</font><br1>
  559. -Purpose: <font color="LEVEL">%target%</font>
  560. -<table width=200>
  561. -%buflist%
  562. -</table><br>
  563. -<button action="bypass -h Quest 50000_Buffer UseProfile" value="Use" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
  564. -<button action="bypass -h Quest 50000_Buffer ClearProfile" value="Clear" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
  565. -<button action="bypass -h Quest 50000_Buffer DeleteProfile" value="Delete" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
  566. -<button action="bypass -h Quest 50000_Buffer Profile" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  567. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  568. -</center>
  569. -</body>
  570. -</html>
  571. +<html><head><title>Менеджер бафов</title></head>
  572. +<body>
  573. +<center><table width=285><tr>
  574. +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
  575. +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
  576. +</tr></table><img src="l2ui.squaregray" width="295" height="1"><br1>
  577. +<table width=285><tr>
  578. +<td align=center><button action="bypass -h Quest 50000_Buffer UseProfile" value="И�п. профиль" width=112 height=23 back="L2buff.Button_DB_Down" fore="L2buff.Button_DB"></td>
  579. +<td align=center><button action="bypass -h Quest 50000_Buffer ClearProfile" value="Очи�тить" width=64 height=23 back="L2buff.Button_DF_Down" fore="L2buff.Button_DF"></td>
  580. +<td align=center><button action="bypass -h Quest 50000_Buffer DeleteProfile" value="Удалить" width=64 height=23 back="L2buff.Button_DF_Down" fore="L2buff.Button_DF"></td>
  581. +</tr></table><br1><img src="l2ui.squaregray" width="295" height="1"><br1>
  582. +<table width="300"><tr><td align=center><button value="�азад" action="bypass -h Quest 50000_Buffer Profile" width=64 height=23 back="L2buff.Button_DF_Down" fore="L2buff.Button_DF"></td></table><br>
  583. +<table width=200>
  584. +%buflist%
  585. +</table>
  586. +</center>
  587. +</body>
  588. +</html>
  589. Index: data/html/mods/buffer/Buffer-not.htm
  590. ===================================================================
  591. --- data/html/mods/buffer/Buffer-not.htm (revision 1831)
  592. +++ data/html/mods/buffer/Buffer-not.htm (working copy)
  593. @@ -1,10 +1,9 @@
  594. -<html>
  595. -<html><head><title>Manager Buffs</title></head>
  596. -<body>
  597. -<center>
  598. -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  599. -<center>
  600. -Bafer is unavailable at this time
  601. -</center>
  602. -</body>
  603. +<html><head><title>Баффер</title></head>
  604. +<body>
  605. +<center>
  606. +<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  607. +<center>
  608. +Бафер недо�тупен в данный момент
  609. +</center>
  610. +</body>
  611. </html>
  612. \ No newline at end of file
  613. Index: data/html/mods/buffer/Buffer-1.htm
  614. ===================================================================
  615. --- data/html/mods/buffer/Buffer-1.htm (revision 1831)
  616. +++ data/html/mods/buffer/Buffer-1.htm (working copy)
  617. @@ -1,50 +1,98 @@
  618. -<html><head><title>Manager buffs</title></head>
  619. -<body>
  620. -<center>
  621. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  622. -<br>
  623. -<table>
  624. +<html><head><title>Танцы</title></head><body><center>
  625. +<table width=280>
  626. <tr>
  627. -<td><img src=icon.skill0271 width=32 height=32 align=left></td>
  628. -<td><button value="Warrior" action="bypass -h Quest 50000_Buffer Buff 271" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  629. -<td><img src=icon.skill0307 width=32 height=32 align=left></td>
  630. -<td><button value="Aqua Guard" action="bypass -h Quest 50000_Buffer Buff 307" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  631. -</tr>
  632. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  633. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  634. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  635. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  636. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  637. +</tr></table>
  638. +<table width=280><tr>
  639. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  640. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  641. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  642. +</tr></table>
  643. +<table bgcolor=000000>
  644. <tr>
  645. -<td><img src=icon.skill0276 width=32 height=32 align=left></td>
  646. -<td><button value="Concentration" action="bypass -h Quest 50000_Buffer Buff 276" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  647. -<td><img src=icon.skill0309 width=32 height=32 align=left></td>
  648. -<td><button value="Earth Guard" action="bypass -h Quest 50000_Buffer Buff 309" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  649. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 271" width=32 height=32 back="icon.skill0271" fore="icon.skill0271"></td>
  650. +<td width=105>
  651. +<table>
  652. +<tr><td><font color="LEVEL">Warrior</td></tr>
  653. +<tr><td><font color="ae9977">+ атака.</font></td></tr>
  654. +</table>
  655. +</td>
  656. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 272" width=32 height=32 back="icon.skill0272" fore="icon.skill0272"></td>
  657. +<td width=105>
  658. +<table>
  659. +<tr><td><font color="LEVEL">Inspiration</td></tr>
  660. +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
  661. +</table>
  662. +</td>
  663. </tr>
  664. +</table>
  665. +<table>
  666. <tr>
  667. -<td><img src=icon.skill0274 width=32 height=32 align=left></td>
  668. -<td><button value="Fire" action="bypass -h Quest 50000_Buffer Buff 274" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  669. -<td><img src=icon.skill0275 width=32 height=32 align=left></td>
  670. -<td><button value="Fury" action="bypass -h Quest 50000_Buffer Buff 275" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  671. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 273" width=32 height=32 back="icon.skill0273" fore="icon.skill0273"></td>
  672. +<td width=105>
  673. +<table>
  674. +<tr><td><font color="FFFFFF">Mystic</td></tr>
  675. +<tr><td><font color="ae9977">+ маг. атака. </font></td></tr>
  676. +</table>
  677. +</td>
  678. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 276" width=32 height=32 back="icon.skill0276" fore="icon.skill0276"></td>
  679. +<td width=105>
  680. +<table>
  681. +<tr><td><font color="FFFFFF">Concentration</td></tr>
  682. +<tr><td><font color="ae9977">+ чтение закл.</font></td></tr>
  683. +</table>
  684. +</td>
  685. </tr>
  686. +</table>
  687. +<table bgcolor=000000>
  688. <tr>
  689. -<td><img src=icon.skill0272 width=32 height=32 align=left></td>
  690. -<td><button value="Inspiration" action="bypass -h Quest 50000_Buffer Buff 272" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  691. -<td><img src=icon.skill0277 width=32 height=32 align=left></td>
  692. -<td><button value="Light" action="bypass -h Quest 50000_Buffer Buff 277" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  693. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 274" width=32 height=32 back="icon.skill0274" fore="icon.skill0274"></td>
  694. +<td width=105>
  695. +<table>
  696. +<tr><td><font color="LEVEL">Fire</td></tr>
  697. +<tr><td><font color="ae9977">+ крит дамаг. </font></td></tr>
  698. +</table>
  699. +</td>
  700. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 275" width=32 height=32 back="icon.skill0275" fore="icon.skill0275"></td>
  701. +<td width=105>
  702. +<table>
  703. +<tr><td><font color="LEVEL">Fury</td></tr>
  704. +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
  705. +</table>
  706. +</td>
  707. </tr>
  708. +</table>
  709. +<table>
  710. <tr>
  711. -<td><img src=icon.skill0311 width=32 height=32 align=left></td>
  712. -<td><button value="Protection" action="bypass -h Quest 50000_Buffer Buff 311" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  713. -<td><img src=icon.skill0366 width=32 height=32 align=left></td>
  714. -<td><button value="Shadows" action="bypass -h Quest 50000_Buffer Buff 366" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  715. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 277" width=32 height=32 back="icon.skill0277" fore="icon.skill0277"></td>
  716. +<td width=105>
  717. +<table>
  718. +<tr><td><font color="FFFFFF">Light</td></tr>
  719. +<tr><td><font color="ae9977">+ �в�т.атака</font></td></tr>
  720. +</table>
  721. +</td>
  722. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 310" width=32 height=32 back="icon.skill0310" fore="icon.skill0310"></td>
  723. +<td width=105>
  724. +<table>
  725. +<tr><td><font color="FFFFFF">Vampire</td></tr>
  726. +<tr><td><font color="ae9977">+ ХП от атаки.</font></td></tr>
  727. +</table>
  728. +</td>
  729. </tr>
  730. +</table>
  731. +<table bgcolor=000000>
  732. <tr>
  733. -<td><img src=icon.skill0273 width=32 height=32 align=left></td>
  734. -<td><button value="Mystic" action="bypass -h Quest 50000_Buffer Buff 273" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  735. -<td><img src=icon.skill0310 width=32 height=32 align=left></td>
  736. -<td><button value="Vampire" action="bypass -h Quest 50000_Buffer Buff 310" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  737. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 365" width=32 height=32 back="icon.skill0365" fore="icon.skill0365"></td>
  738. +<td width=105>
  739. +<table>
  740. +<tr><td><font color="LEVEL">Siren</td></tr>
  741. +<tr><td><font color="ae9977">+ шан� маг крита</font></td></tr>
  742. +</table>
  743. +</td>
  744. </tr>
  745. -</table>
  746. -<br>
  747. -<br>
  748. -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  749. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  750. -</center>
  751. -</body>
  752. -</html>
  753. +</table><br>
  754. +</center></body></html>
  755. \ No newline at end of file
  756. Index: data/html/mods/buffer/Buffer-pet-3.htm
  757. ===================================================================
  758. --- data/html/mods/buffer/Buffer-pet-3.htm (revision 1831)
  759. +++ data/html/mods/buffer/Buffer-pet-3.htm (working copy)
  760. @@ -1,10 +1,20 @@
  761. -<html>
  762. -<html><head><title>Manager buffs</title></head>
  763. -<body>
  764. -<center>
  765. -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  766. -<center>
  767. -No need to struggle with the pet such brutal bafami
  768. -</center>
  769. -</body>
  770. +<html><head><title>Баффер</title></head>
  771. +<body><center>
  772. +<table width=280><tr>
  773. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  774. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  775. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  776. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  777. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  778. +</tr></table>
  779. +<table width=280><tr>
  780. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  781. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  782. +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  783. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  784. +</tr></table><br><br>
  785. +�е надо мучать животное такими звер�кими бафами
  786. +<br><br>
  787. +</center>
  788. +</body>
  789. </html>
  790. \ No newline at end of file
  791. Index: data/html/mods/buffer/Buffer-5.htm
  792. ===================================================================
  793. --- data/html/mods/buffer/Buffer-5.htm (revision 0)
  794. +++ data/html/mods/buffer/Buffer-5.htm (working copy)
  795. @@ -0,0 +1,104 @@
  796. +<html>
  797. +<center><title>О�обые</title>
  798. +<body>
  799. +<table width=280>
  800. +<tr>
  801. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  802. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  803. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  804. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  805. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  806. +</tr></table>
  807. +<table width=280><tr>
  808. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  809. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  810. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  811. +</tr></table>
  812. +
  813. +<table bgcolor=000000>
  814. +<tr>
  815. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1357" width=32 height=32 back="icon.skill1357" fore="icon.skill1357"></td>
  816. +<td width=105>
  817. +<table>
  818. +<tr><td><font color="LEVEL">Wind</td></tr>
  819. +<tr><td><font color="ae9977">дух ветра.</font></td></tr>
  820. +</table>
  821. +</td>
  822. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1356" width=32 height=32 back="icon.skill1356" fore="icon.skill1356"></td>
  823. +<td width=105>
  824. +<table>
  825. +<tr><td><font color="LEVEL">Fire</td></tr>
  826. +<tr><td><font color="ae9977">дух огн�.</font></td></tr>
  827. +</table>
  828. +</td>
  829. +</tr>
  830. +</table>
  831. +<table>
  832. +<tr>
  833. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1363" width=32 height=32 back="icon.skill1363" fore="icon.skill1363"></td>
  834. +<td width=105>
  835. +<table>
  836. +<tr><td><font color="FFFFFF">Victory</td></tr>
  837. +<tr><td><font color="ae9977">дух геро�.</font></td></tr>
  838. +</table>
  839. +</td>
  840. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1413" width=32 height=32 back="icon.skill1413" fore="icon.skill1413"></td>
  841. +<td width=105>
  842. +<table>
  843. +<tr><td><font color="FFFFFF">Magnus</td></tr>
  844. +<tr><td><font color="ae9977">дух магну�а.</font></td></tr>
  845. +</table>
  846. +</td>
  847. +</tr>
  848. +</table>
  849. +
  850. +<table bgcolor=000000>
  851. +<tr>
  852. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1389" width=32 height=32 back="icon.skill1389" fore="icon.skill1389"></td>
  853. +<td width=105>
  854. +<table>
  855. +<tr><td><font color="LEVEL">Gr. Shield</td></tr>
  856. +<tr><td><font color="ae9977">+ защита.</font></td></tr>
  857. +</table>
  858. +</td>
  859. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1388" width=32 height=32 back="icon.skill1388" fore="icon.skill1388"></td>
  860. +<td width=105>
  861. +<table>
  862. +<tr><td><font color="LEVEL">Gr. Might</td></tr>
  863. +<tr><td><font color="ae9977">+ атака.</font></td></tr>
  864. +</table>
  865. +</td>
  866. +</tr>
  867. +</table>
  868. +<table>
  869. +<tr>
  870. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 4554" width=32 height=32 back="icon.skill1164" fore="icon.skill1164"></td>
  871. +<td width=105>
  872. +<table>
  873. +<tr><td><font color="LEVEL">Malaria</td></tr>
  874. +<tr><td><font color="ae9977">+ ка�т.</font></td></tr>
  875. +</table>
  876. +</td>
  877. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 4553" width=32 height=32 back="icon.skill1164" fore="icon.skill1164"></td>
  878. +<td width=105>
  879. +<table>
  880. +<tr><td><font color="LEVEL">Flu</td></tr>
  881. +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
  882. +</table>
  883. +</td>
  884. +</tr>
  885. +</table>
  886. +<table bgcolor=000000>
  887. +<tr>
  888. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1355" width=32 height=32 back="icon.skill11355" fore="icon.skill1355"></td>
  889. +<td width=105>
  890. +<table>
  891. +<tr><td><font color="FFFFFF">Water</td></tr>
  892. +<tr><td><font color="ae9977">дух воды.</font></td></tr>
  893. +</table>
  894. +</td>
  895. +</tr>
  896. +</table>
  897. +</center>
  898. +</body>
  899. +</html>
  900. Index: data/html/mods/buffer/Buffer-4.htm
  901. ===================================================================
  902. --- data/html/mods/buffer/Buffer-4.htm (revision 1831)
  903. +++ data/html/mods/buffer/Buffer-4.htm (working copy)
  904. @@ -1,60 +1,122 @@
  905. -<html><head><title>Manager buffs</title></head>
  906. -<body>
  907. -<center>
  908. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  909. -<br>
  910. -<table>
  911. -<tr>
  912. -<td><img src=icon.skill1007 width=32 height=32 align=left></td>
  913. -<td><button value="Battle" action="bypass -h Quest 50000_Buffer Buff 1007" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  914. -<td><img src=icon.skill1006 width=32 height=32 align=left></td>
  915. -<td><button value="Fire" action="bypass -h Quest 50000_Buffer Buff 1006" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  916. -</tr>
  917. -<tr>
  918. -<td><img src=icon.skill1009 width=32 height=32 align=left></td>
  919. -<td><button value="Shielding" action="bypass -h Quest 50000_Buffer Buff 1009" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  920. -<td><img src=icon.skill1229 width=32 height=32 align=left></td>
  921. -<td><button value="Life" action="bypass -h Quest 50000_Buffer Buff 1229" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  922. -</tr>
  923. -<tr>
  924. -<td><img src=icon.skill1252 width=32 height=32 align=left></td>
  925. -<td><button value="Evasion" action="bypass -h Quest 50000_Buffer Buff 1252" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  926. -<td><img src=icon.skill1253 width=32 height=32 align=left></td>
  927. -<td><button value="Rage" action="bypass -h Quest 50000_Buffer Buff 1253" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  928. -</tr>
  929. -<tr>
  930. -<td><img src=icon.skill1310 width=32 height=32 align=left></td>
  931. -<td><button value="Vampire" action="bypass -h Quest 50000_Buffer Buff 1310" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  932. -<td><img src=icon.skill1251 width=32 height=32 align=left></td>
  933. -<td><button value="Fury" action="bypass -h Quest 50000_Buffer Buff 1251" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  934. -</tr>
  935. -<tr>
  936. -<td><img src=icon.skill1308 width=32 height=32 align=left></td>
  937. -<td><button value="Predator" action="bypass -h Quest 50000_Buffer Buff 1308" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  938. -<td><img src=icon.skill1309 width=32 height=32 align=left></td>
  939. -<td><button value="Eagle" action="bypass -h Quest 50000_Buffer Buff 1309" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  940. -</tr>
  941. -<tr>
  942. -<td><img src=icon.skill1390 width=32 height=32 align=left></td>
  943. -<td><button value="War" action="bypass -h Quest 50000_Buffer Buff 1390" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  944. -<td><img src=icon.skill1391 width=32 height=32 align=left></td>
  945. -<td><button value="Earth" action="bypass -h Quest 50000_Buffer Buff 1391" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  946. -</tr>
  947. -<tr>
  948. -<td><img src=icon.skill1362 width=32 height=32 align=left></td>
  949. -<td><button value="Spirit" action="bypass -h Quest 50000_Buffer Buff 1362" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  950. -<td><img src=icon.skill1363 width=32 height=32 align=left></td>
  951. -<td><button value="Victory" action="bypass -h Quest 50000_Buffer Buff 1363" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  952. -</tr>
  953. -<tr>
  954. -<td><img src=icon.skill1413 width=32 height=32 align=left></td>
  955. -<td><button value="Magnus" action="bypass -h Quest 50000_Buffer Buff 1413" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  956. -</tr>
  957. -</table>
  958. -<br>
  959. -<br>
  960. -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  961. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  962. -</center>
  963. -</body>
  964. -</html>
  965. \ No newline at end of file
  966. +<html><head><title>Чанты</title></head><body>
  967. +<table width=280>
  968. +<tr>
  969. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  970. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  971. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  972. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  973. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  974. +</tr></table>
  975. +<table width=280><tr>
  976. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  977. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  978. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  979. +</tr></table>
  980. +<table bgcolor=000000>
  981. +<tr>
  982. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1007" width=32 height=32 back="icon.skill1007" fore="icon.skill1007"></td>
  983. +<td width=105>
  984. +<table>
  985. +<tr><td><font color="LEVEL">Battle</td></tr>
  986. +<tr><td><font color="ae9977">+ атака.</font></td></tr>
  987. +</table>
  988. +</td>
  989. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1009" width=32 height=32 back="icon.skill1009" fore="icon.skill1009"></td>
  990. +<td width=105>
  991. +<table>
  992. +<tr><td><font color="LEVEL">Shielding</td></tr>
  993. +<tr><td><font color="ae9977">+ защита.</font></td></tr>
  994. +</table>
  995. +</td>
  996. +</tr>
  997. +</table>
  998. +<table>
  999. +<tr>
  1000. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1002" width=32 height=32 back="icon.skill1002" fore="icon.skill1002"></td>
  1001. +<td width=105>
  1002. +<table>
  1003. +<tr><td><font color="FFFFFF">Flame</td></tr>
  1004. +<tr><td><font color="ae9977">+ ка�т.</font></td></tr>
  1005. +</table>
  1006. +</td>
  1007. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1006" width=32 height=32 back="icon.skill1006" fore="icon.skill1006"></td>
  1008. +<td width=105>
  1009. +<table>
  1010. +<tr><td><font color="FFFFFF">Fire</td></tr>
  1011. +<tr><td><font color="ae9977">+ маг защита.</font></td></tr>
  1012. +</table>
  1013. +</td>
  1014. +</tr>
  1015. +</table>
  1016. +<table bgcolor=000000>
  1017. +<tr>
  1018. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1251" width=32 height=32 back="icon.skill1251" fore="icon.skill1251"></td>
  1019. +<td width=105>
  1020. +<table>
  1021. +<tr><td><font color="LEVEL">Fury</td></tr>
  1022. +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
  1023. +</table>
  1024. +</td>
  1025. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1252" width=32 height=32 back="icon.skill1252" fore="icon.skill1252"></td>
  1026. +<td width=105>
  1027. +<table>
  1028. +<tr><td><font color="LEVEL">Evasion</td></tr>
  1029. +<tr><td><font color="ae9977">+ ловко�ть.</font></td></tr>
  1030. +</table>
  1031. +</td>
  1032. +</tr>
  1033. +</table>
  1034. +<table>
  1035. +<tr>
  1036. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1253" width=32 height=32 back="icon.skill1253" fore="icon.skill1253"></td>
  1037. +<td width=105><table>
  1038. +<tr><td><font color="FFFFFF">Rage</td></tr>
  1039. +<tr><td><font color="ae9977">+ �ила крита.</font></td></tr></table>
  1040. +</td>
  1041. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1310" width=32 height=32 back="icon.skill1310" fore="icon.skill1310"></td>
  1042. +<td width=105>
  1043. +<table>
  1044. +<tr><td><font color="FFFFFF">Vampiric</td></tr>
  1045. +<tr><td><font color="ae9977">+ хп от атаки. </font></td></tr>
  1046. +</table>
  1047. +</td>
  1048. +</tr>
  1049. +</table>
  1050. +<table bgcolor=000000>
  1051. +<tr>
  1052. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1309" width=32 height=32 back="icon.skill1309" fore="icon.skill1309"></td>
  1053. +<td width=105>
  1054. +<table>
  1055. +<tr><td><font color="LEVEL">Eagle</td></tr>
  1056. +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
  1057. +</table>
  1058. +</td>
  1059. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1308" width=32 height=32 back="icon.skill1308" fore="icon.skill1308"></td>
  1060. +<td width=105>
  1061. +<table>
  1062. +<tr><td><font color="LEVEL">Predator</td></tr>
  1063. +<tr><td><font color="ae9977">+ крит атака. </font></td></tr>
  1064. +</table>
  1065. +</td>
  1066. +</tr>
  1067. +</table>
  1068. +<table>
  1069. +<tr>
  1070. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1390" width=32 height=32 back="icon.skill1390" fore="icon.skill1390"></td>
  1071. +<td width=105>
  1072. +<table>
  1073. +<tr><td><font color="FFFFFF">War</td></tr>
  1074. +<tr><td><font color="ae9977">+ атака.</font></td></tr>
  1075. +</table>
  1076. +</td>
  1077. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1391" width=32 height=32 back="icon.skill1391" fore="icon.skill1391"></td>
  1078. +<td width=105>
  1079. +<table>
  1080. +<tr><td><font color="FFFFFF">Earth</td></tr>
  1081. +<tr><td><font color="ae9977">+ защита.</font></td></tr>
  1082. +</table>
  1083. +</td>
  1084. +</tr>
  1085. +</table>
  1086. +<br>
  1087. +</body></html>
  1088. \ No newline at end of file
  1089. Index: quests/com/dream/game/model/quest/pack/custom/Buffer.java
  1090. ===================================================================
  1091. --- quests/com/dream/game/model/quest/pack/custom/Buffer.java (revision 0)
  1092. +++ quests/com/dream/game/model/quest/pack/custom/Buffer.java (working copy)
  1093. @@ -0,0 +1,774 @@
  1094. +package dream.game.model.quest.pack.custom;
  1095. +
  1096. +import java.sql.Connection;
  1097. +import java.sql.PreparedStatement;
  1098. +import java.sql.ResultSet;
  1099. +import java.sql.SQLException;
  1100. +import java.util.List;
  1101. +import java.util.Map;
  1102. +import java.util.concurrent.ScheduledFuture;
  1103. +
  1104. +import javolution.util.FastList;
  1105. +import javolution.util.FastMap;
  1106. +
  1107. +import org.apache.log4j.Logger;
  1108. +
  1109. +import com.dream.Config;
  1110. +import com.dream.L2DatabaseFactory;
  1111. +import com.dream.game.Shutdown;
  1112. +import com.dream.game.cache.HtmCache;
  1113. +import com.dream.game.datatables.SkillTable;
  1114. +import com.dream.game.datatables.sql.NpcBufferTable;
  1115. +import com.dream.game.model.L2Skill;
  1116. +import com.dream.game.model.actor.L2Character;
  1117. +import com.dream.game.model.actor.instance.L2ItemInstance;
  1118. +import com.dream.game.model.actor.instance.L2MonsterInstance;
  1119. +import com.dream.game.model.actor.instance.L2NpcInstance;
  1120. +import com.dream.game.model.actor.instance.L2PcInstance;
  1121. +import com.dream.game.model.quest.Quest;
  1122. +import com.dream.game.model.quest.QuestState;
  1123. +import com.dream.game.model.world.L2World;
  1124. +import com.dream.game.model.zone.L2Zone;
  1125. +import com.dream.game.network.SystemMessageId;
  1126. +import com.dream.game.network.serverpackets.SystemMessage;
  1127. +
  1128. +public class Buffer extends Quest
  1129. +{
  1130. + private static final Logger _logs = Logger.getLogger(Buffer.class.getName());
  1131. + public static String qn = "50000_Buffer";
  1132. + private static String htmlBase = "data/html/mods/buffer/Buffer";
  1133. + private final Map<Integer, String> _lastPage;
  1134. + private final Map<Integer, Boolean> _isPetTarget = new FastMap<>();
  1135. + private String _err = "";
  1136. +
  1137. + public class BuffProfile
  1138. + {
  1139. + public List<Integer> _buffs = new FastList<>();
  1140. + }
  1141. +
  1142. + public Map<Integer, Map<String, BuffProfile>> _buffprofiles = new FastMap<>();
  1143. + private final Map<Integer, Long> _restoreDelays = new FastMap<>();
  1144. +
  1145. + public Buffer()
  1146. + {
  1147. + super(-1, qn, "custom");
  1148. + NpcBufferTable.getInstance();
  1149. + _lastPage = new FastMap<>();
  1150. + Shutdown.getInstance().registerShutdownHandler(saveProfiles);
  1151. + Shutdown.getInstance().registerShutdownHandler(stopBuffTask);
  1152. + }
  1153. +
  1154. + private final Runnable saveProfiles = new Runnable()
  1155. + {
  1156. +
  1157. + @Override
  1158. + public void run()
  1159. + {
  1160. + try
  1161. + {
  1162. + Connection con = L2DatabaseFactory.getInstance().getConnection();
  1163. + for (int playerId : _buffprofiles.keySet())
  1164. + {
  1165. + PreparedStatement stm = con.prepareStatement("delete from character_buff_profiles where charId=?");
  1166. + stm.setInt(1, playerId);
  1167. + stm.execute();
  1168. + stm.close();
  1169. + stm = con.prepareStatement("insert into character_buff_profiles values (?,?,?)");
  1170. + stm.setInt(1, playerId);
  1171. + Map<String, BuffProfile> profiles = _buffprofiles.get(playerId);
  1172. + for (String s : profiles.keySet())
  1173. + {
  1174. + stm.setString(2, s);
  1175. + for (int buffs : profiles.get(s)._buffs)
  1176. + {
  1177. + stm.setInt(3, buffs);
  1178. + stm.execute();
  1179. + }
  1180. + }
  1181. + stm.close();
  1182. + }
  1183. + con.close();
  1184. + }
  1185. + catch (SQLException e)
  1186. + {
  1187. + System.out.println("Buffer: Can't save profiles " + e);
  1188. + }
  1189. + }
  1190. +
  1191. + };
  1192. +
  1193. + private final Runnable stopBuffTask = new Runnable()
  1194. + {
  1195. + @Override
  1196. + public void run()
  1197. + {
  1198. + try
  1199. + {
  1200. + if (autoBuffTask != null)
  1201. + {
  1202. + autoBuffTask.Shutdown();
  1203. + }
  1204. + }
  1205. + catch (Exception e)
  1206. + {
  1207. + System.out.println("Buffer: Can't stopBuffTask " + e);
  1208. + }
  1209. + }
  1210. + };
  1211. +
  1212. + public String onFirstTalk(L2NpcInstance npc, L2PcInstance player)
  1213. + {
  1214. + return onTalk(npc, player);
  1215. + }
  1216. +
  1217. + public String onTalk(L2NpcInstance npc, L2PcInstance talker)
  1218. + {
  1219. + if (talker.getQuestState(qn) == null)
  1220. + {
  1221. + newQuestState(talker);
  1222. + }
  1223. + getActiveProfile(talker);
  1224. + _lastPage.put(talker.getObjectId(), htmlBase + ".htm");
  1225. + _isPetTarget.put(talker.getObjectId(), false);
  1226. + createBuffProfiles(talker);
  1227. + String html = HtmCache.getInstance().getHtm(htmlBase + ".htm", talker);
  1228. + return fillHtml(talker, html);
  1229. + }
  1230. +
  1231. + private String ShowLastPage(int playerId)
  1232. + {
  1233. + if (_lastPage.containsKey(playerId))
  1234. + {
  1235. + String html = HtmCache.getInstance().getHtm(_lastPage.get(playerId), L2World.getInstance().getPlayer(playerId));
  1236. + return fillHtml(L2World.getInstance().getPlayer(playerId), html);
  1237. + }
  1238. + return null;
  1239. + }
  1240. +
  1241. + private static boolean isValidTalker(L2PcInstance player)
  1242. + {
  1243. + if (checkMagicCondition(player))
  1244. + {
  1245. + return true;
  1246. + }
  1247. + return false;
  1248. + }
  1249. +
  1250. + private static boolean checkMagicCondition(L2PcInstance player)
  1251. + {
  1252. + boolean ok = true;
  1253. + if (player.isInJail() && Config.BUFFER_RESTRICTION.contains("JAIL"))
  1254. + {
  1255. + ok = false;
  1256. + }
  1257. + if ((player.getOlympiadGameId() >= 0) && Config.BUFFER_RESTRICTION.contains("OLY"))
  1258. + {
  1259. + ok = false;
  1260. + }
  1261. + if (player.isInCombat() && Config.BUFFER_RESTRICTION.contains("COMBAT"))
  1262. + {
  1263. + ok = false;
  1264. + }
  1265. + if ((player.getKarma() > 0) && Config.BUFFER_RESTRICTION.contains("KARMA"))
  1266. + {
  1267. + ok = false;
  1268. + }
  1269. + if ((player.getPvpFlag() > 0) && Config.BUFFER_RESTRICTION.contains("PVP"))
  1270. + {
  1271. + ok = false;
  1272. + }
  1273. + if (player.isInsideZone(L2Zone.FLAG_SIEGE) && Config.BUFFER_RESTRICTION.contains("SIEGE"))
  1274. + {
  1275. + ok = false;
  1276. + }
  1277. + if (player.isInsideZone(L2Zone.FLAG_NOSUMMON) && Config.BUFFER_RESTRICTION.contains("RB"))
  1278. + {
  1279. + ok = false;
  1280. + }
  1281. + if (player.isInsideZone(L2Zone.FLAG_PVP) && Config.BUFFER_RESTRICTION.contains("ARENA"))
  1282. + {
  1283. + ok = false;
  1284. + }
  1285. + return ok;
  1286. + }
  1287. +
  1288. + public boolean restoreCheck(L2PcInstance player)
  1289. + {
  1290. + Long lastRestore = _restoreDelays.get(player.getObjectId());
  1291. + if (Config.BUFFER_RESTORE_DELAY <= 0)
  1292. + {
  1293. + return true;
  1294. + }
  1295. + if (lastRestore == null)
  1296. + {
  1297. + _restoreDelays.put(player.getObjectId(), System.currentTimeMillis());
  1298. + return true;
  1299. + }
  1300. + if ((System.currentTimeMillis() + (Config.BUFFER_RESTORE_DELAY * 1000)) < lastRestore)
  1301. + {
  1302. + _restoreDelays.put(player.getObjectId(), System.currentTimeMillis());
  1303. + return true;
  1304. + }
  1305. + return true;
  1306. + }
  1307. +
  1308. + @Override
  1309. + public String onEvent(String event, QuestState qs)
  1310. + {
  1311. + try
  1312. + {
  1313. + L2PcInstance player = qs.getPlayer();
  1314. + if (player == null)
  1315. + {
  1316. + return null;
  1317. + }
  1318. + if ((player.isAlikeDead() || player.isAfraid() || player.isImmobilized()) && !event.startsWith("Chat"))
  1319. + {
  1320. + return null;
  1321. + }
  1322. + if (!checkMagicCondition(player))
  1323. + {
  1324. + String htm = htmlBase + "-not.htm";
  1325. + String html = HtmCache.getInstance().getHtm(htm, player);
  1326. + return fillHtml(player, html);
  1327. + }
  1328. +
  1329. + L2Character target = player;
  1330. + if (_isPetTarget.get(player.getObjectId()) && (player.getPet() != null))
  1331. + {
  1332. + target = player.getPet();
  1333. + }
  1334. +
  1335. + if (event.startsWith("Chat"))
  1336. + {
  1337. + if (!checkMagicCondition(player))
  1338. + {
  1339. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1340. + return ShowLastPage(player.getObjectId());
  1341. + }
  1342. + String chatId = "";
  1343. + String htm = htmlBase + ".htm";
  1344. + if (event.indexOf(" ") != -1)
  1345. + {
  1346. + chatId = event.substring(event.indexOf(" ") + 1);
  1347. + }
  1348. + if (!chatId.equals("0"))
  1349. + {
  1350. + chatId = "-" + chatId;
  1351. + if (_isPetTarget.get(player.getObjectId()))
  1352. + {
  1353. + if (HtmCache.getInstance().pathExists(htmlBase + "-pet" + chatId + ".htm"))
  1354. + {
  1355. + htm = htmlBase + "-pet" + chatId + ".htm";
  1356. + }
  1357. + else
  1358. + {
  1359. + htm = htmlBase + chatId + ".htm";
  1360. + }
  1361. + }
  1362. + else
  1363. + {
  1364. + htm = htmlBase + chatId + ".htm";
  1365. + }
  1366. + }
  1367. + _lastPage.put(player.getObjectId(), htm);
  1368. + String html = HtmCache.getInstance().getHtm(htm, player);
  1369. + return fillHtml(player, html);
  1370. + }
  1371. + else if (event.startsWith("SelectProfile"))
  1372. + {
  1373. + if (!checkMagicCondition(player))
  1374. + {
  1375. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1376. + return ShowLastPage(player.getObjectId());
  1377. + }
  1378. + String[] args = event.split(" ");
  1379. + player.getCharacterData().set("BuffProfile", args[1]);
  1380. + String html = HtmCache.getInstance().getHtm(htmlBase + "-p2.htm", player);
  1381. + _lastPage.put(player.getObjectId(), htmlBase + "-p2.htm");
  1382. + html = fillHtml(player, html);
  1383. + return html;
  1384. + }
  1385. + else if (event.startsWith("Profile"))
  1386. + {
  1387. + if (!checkMagicCondition(player))
  1388. + {
  1389. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1390. + return ShowLastPage(player.getObjectId());
  1391. + }
  1392. + String html = HtmCache.getInstance().getHtm(htmlBase + "-p1.htm", player);
  1393. + _lastPage.put(player.getObjectId(), htmlBase + "-p1.htm");
  1394. + return fillHtml(player, html);
  1395. + }
  1396. + else if (event.startsWith("ClearProfile"))
  1397. + {
  1398. + BuffProfile profile = getActiveProfile(player);
  1399. + profile._buffs.clear();
  1400. + return onEvent("Profile", qs);
  1401. + }
  1402. + else if (event.startsWith("DeleteProfile"))
  1403. + {
  1404. + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
  1405. + if (getActiveProfile(player) != null)
  1406. + {
  1407. + _profiles.remove(getActiveProfileName(player));
  1408. + }
  1409. + player.getCharacterData().set("BuffProfile", (String) null);
  1410. + return onEvent("Profile", qs);
  1411. + }
  1412. + else if (event.startsWith("CreateProfile"))
  1413. + {
  1414. + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
  1415. + if (_profiles == null)
  1416. + {
  1417. + _buffprofiles.put(player.getObjectId(), new FastMap<String, BuffProfile>());
  1418. + _profiles = _buffprofiles.get(player.getObjectId());
  1419. + }
  1420. + String[] args = event.split(" ");
  1421. + if (args.length > 2)
  1422. + {
  1423. + _err = "Им� профил� не должно �одержать пробелы";
  1424. + return onEvent("Profile", qs);
  1425. + }
  1426. + if (!_profiles.containsKey(args[1]))
  1427. + {
  1428. + _profiles.put(args[1], new BuffProfile());
  1429. + }
  1430. + player.getCharacterData().set("BuffProfile", args[1]);
  1431. + return onEvent("Profile", qs);
  1432. + }
  1433. + else if (event.startsWith("UseProfile") && checkMagicCondition(player))
  1434. + {
  1435. + BuffProfile profile = getActiveProfile(player);
  1436. + target = player;
  1437. + if (profile != null)
  1438. + {
  1439. + for (int buff : profile._buffs)
  1440. + {
  1441. + int[] group = NpcBufferTable.getInstance().getSkillInfo(50000, buff);
  1442. + useBuff(buff, group, player, target);
  1443. + }
  1444. + }
  1445. + }
  1446. + else if (event.startsWith("RemBuff"))
  1447. + {
  1448. + if (isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
  1449. + {
  1450. + target.stopAllEffects();
  1451. + }
  1452. + }
  1453. + else if (event.startsWith("WarriorBuff"))
  1454. + {
  1455. + if (_isPetTarget.get(player.getObjectId()))
  1456. + {
  1457. + player.sendMessage("Дл� питомца неканает,или �оздаем набор дл� пета, ме�то �тих �трок.");
  1458. + return ShowLastPage(player.getObjectId());
  1459. + }
  1460. + if (isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
  1461. + {
  1462. + SkillTable.getInstance().getInfo(1068, 3).getEffects(target, target);
  1463. + SkillTable.getInstance().getInfo(1040, 3).getEffects(target, target);
  1464. + SkillTable.getInstance().getInfo(1086, 2).getEffects(target, target);
  1465. + SkillTable.getInstance().getInfo(1204, 2).getEffects(target, target);
  1466. + SkillTable.getInstance().getInfo(1077, 3).getEffects(target, target);
  1467. + SkillTable.getInstance().getInfo(1242, 2).getEffects(target, target);
  1468. + SkillTable.getInstance().getInfo(1268, 4).getEffects(target, target);
  1469. + SkillTable.getInstance().getInfo(1035, 4).getEffects(target, target);
  1470. + SkillTable.getInstance().getInfo(1036, 2).getEffects(target, target);
  1471. + SkillTable.getInstance().getInfo(1045, 6).getEffects(target, target);
  1472. + SkillTable.getInstance().getInfo(1388, 3).getEffects(target, target);
  1473. + SkillTable.getInstance().getInfo(1363, 1).getEffects(target, target);
  1474. + SkillTable.getInstance().getInfo(271, 1).getEffects(target, target);
  1475. + SkillTable.getInstance().getInfo(275, 1).getEffects(target, target);
  1476. + SkillTable.getInstance().getInfo(274, 1).getEffects(target, target);
  1477. + SkillTable.getInstance().getInfo(268, 1).getEffects(target, target);
  1478. + SkillTable.getInstance().getInfo(269, 1).getEffects(target, target);
  1479. + SkillTable.getInstance().getInfo(264, 1).getEffects(target, target);
  1480. + SkillTable.getInstance().getInfo(304, 1).getEffects(target, target);
  1481. + SkillTable.getInstance().getInfo(364, 1).getEffects(target, target);
  1482. + }
  1483. + }
  1484. + else if (event.startsWith("MageBuff"))
  1485. + {
  1486. + if (_isPetTarget.get(player.getObjectId()))
  1487. + {
  1488. + player.sendMessage("Дл� питомца неканает,или �оздаем набор дл� пета, ме�то �тих �трок.");
  1489. + return ShowLastPage(player.getObjectId());
  1490. + }
  1491. + if (isValidTalker(player) && target.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
  1492. + {
  1493. + SkillTable.getInstance().getInfo(1085, 3).getEffects(target, target);
  1494. + SkillTable.getInstance().getInfo(1059, 3).getEffects(target, target);
  1495. + SkillTable.getInstance().getInfo(1078, 6).getEffects(target, target);
  1496. + SkillTable.getInstance().getInfo(1204, 2).getEffects(target, target);
  1497. + SkillTable.getInstance().getInfo(1048, 6).getEffects(target, target);
  1498. + SkillTable.getInstance().getInfo(1397, 3).getEffects(target, target);
  1499. + SkillTable.getInstance().getInfo(1303, 2).getEffects(target, target);
  1500. + SkillTable.getInstance().getInfo(1040, 3).getEffects(target, target);
  1501. + SkillTable.getInstance().getInfo(1035, 4).getEffects(target, target);
  1502. + SkillTable.getInstance().getInfo(1062, 2).getEffects(target, target);
  1503. + SkillTable.getInstance().getInfo(273, 1).getEffects(target, target);
  1504. + SkillTable.getInstance().getInfo(276, 1).getEffects(target, target);
  1505. + SkillTable.getInstance().getInfo(268, 1).getEffects(target, target);
  1506. + SkillTable.getInstance().getInfo(1045, 6).getEffects(target, target);
  1507. + SkillTable.getInstance().getInfo(349, 1).getEffects(target, target);
  1508. + SkillTable.getInstance().getInfo(363, 1).getEffects(target, target);
  1509. + SkillTable.getInstance().getInfo(365, 1).getEffects(target, target);
  1510. + SkillTable.getInstance().getInfo(1413, 1).getEffects(target, target);
  1511. + SkillTable.getInstance().getInfo(1036, 2).getEffects(target, target);
  1512. + SkillTable.getInstance().getInfo(1389, 3).getEffects(target, target);
  1513. + }
  1514. + }
  1515. + else if (event.startsWith("recHp"))
  1516. + {
  1517. + if (!checkMagicCondition(player))
  1518. + {
  1519. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1520. + return ShowLastPage(player.getObjectId());
  1521. + }
  1522. + if (restoreCheck(player) && isValidTalker(player))
  1523. + {
  1524. + if (target.getStatus().getCurrentCp() < target.getMaxCp())
  1525. + {
  1526. + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_CP_ITEM_ID, Config.BUFFER_CP_PRICE, player, true))
  1527. + {
  1528. + target.getStatus().setCurrentCp(target.getMaxCp());
  1529. + }
  1530. + else
  1531. + {
  1532. + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� CP.");
  1533. + }
  1534. + }
  1535. + if ((target.getStatus().getCurrentHp() < target.getMaxHp()) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_HP_ITEM_ID, Config.BUFFER_HP_PRICE, player, true))
  1536. + {
  1537. + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_HP_ITEM_ID, Config.BUFFER_HP_PRICE, player, true))
  1538. + {
  1539. + target.getStatus().setCurrentHp(target.getMaxHp());
  1540. + }
  1541. + else
  1542. + {
  1543. + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� HP.");
  1544. + }
  1545. + }
  1546. + if (target.getStatus().getCurrentMp() < target.getMaxMp())
  1547. + {
  1548. + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_MP_ITEM_ID, Config.BUFFER_MP_PRICE, player, true))
  1549. + {
  1550. + target.getStatus().setCurrentMp(target.getMaxMp());
  1551. + }
  1552. + else
  1553. + {
  1554. + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� MP.");
  1555. + }
  1556. + }
  1557. + }
  1558. + }
  1559. + else if (event.startsWith("recCp"))
  1560. + {
  1561. + if (!checkMagicCondition(player))
  1562. + {
  1563. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1564. + return ShowLastPage(player.getObjectId());
  1565. + }
  1566. + if (restoreCheck(player) && isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_CP_ITEM_ID, Config.BUFFER_CP_PRICE, player, true))
  1567. + {
  1568. + target.getStatus().setCurrentCp(target.getMaxCp());
  1569. + }
  1570. + }
  1571. + else if (event.startsWith("recMp"))
  1572. + {
  1573. + if (!checkMagicCondition(player))
  1574. + {
  1575. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1576. + return ShowLastPage(player.getObjectId());
  1577. + }
  1578. + if (restoreCheck(player) && isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_MP_ITEM_ID, Config.BUFFER_MP_PRICE, player, true))
  1579. + {
  1580. + target.getStatus().setCurrentMp(target.getMaxMp());
  1581. + }
  1582. + }
  1583. + else if (event.startsWith("Target"))
  1584. + {
  1585. + _isPetTarget.put(player.getObjectId(), !_isPetTarget.get(player.getObjectId()));
  1586. + }
  1587. + else if (event.startsWith("Buff"))
  1588. + {
  1589. + if (!checkMagicCondition(player))
  1590. + {
  1591. + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
  1592. + return ShowLastPage(player.getObjectId());
  1593. + }
  1594. + if (!isValidTalker(player))
  1595. + {
  1596. + return ShowLastPage(player.getObjectId());
  1597. + }
  1598. +
  1599. + String[] buffGroupArray;
  1600. + if (event.startsWith("BuffPet"))
  1601. + {
  1602. + buffGroupArray = event.substring(8).split(" ");
  1603. + }
  1604. + else
  1605. + {
  1606. + buffGroupArray = event.substring(5).split(" ");
  1607. + }
  1608. +
  1609. + for (String buffGroupList : buffGroupArray)
  1610. + {
  1611. + if (buffGroupList == null)
  1612. + {
  1613. + _logs.warn("NPC Buffer Warning: buffer has no buffGroup set in the bypass for the buff selected.");
  1614. + return ShowLastPage(player.getObjectId());
  1615. + }
  1616. +
  1617. + int buffGroup = Integer.parseInt(buffGroupList);
  1618. + int[] npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(50000, buffGroup);
  1619. +
  1620. + if (npcBuffGroupInfo == null)
  1621. + {
  1622. + _logs.warn("NPC Buffer Warning: Player: " + player.getName() + " has tried to use skill group (" + buffGroup + ") not assigned to the NPC Buffer!");
  1623. + return ShowLastPage(player.getObjectId());
  1624. + }
  1625. + useBuff(buffGroup, npcBuffGroupInfo, player, target);
  1626. +
  1627. + }
  1628. + }
  1629. + return ShowLastPage(player.getObjectId());
  1630. + }
  1631. + catch (Exception e)
  1632. + {
  1633. + return htmlBase + ".htm";
  1634. + }
  1635. + }
  1636. +
  1637. + private static String getActiveProfileName(L2PcInstance player)
  1638. + {
  1639. + try
  1640. + {
  1641. + return player.getCharacterData().getString("BuffProfile");
  1642. + }
  1643. + catch (IllegalArgumentException e)
  1644. + {
  1645. + return "�ет";
  1646. + }
  1647. +
  1648. + }
  1649. +
  1650. + private BuffProfile getActiveProfile(L2PcInstance player)
  1651. + {
  1652. + String profileName = null;
  1653. + try
  1654. + {
  1655. + profileName = player.getCharacterData().getString("BuffProfile");
  1656. + }
  1657. + catch (IllegalArgumentException e)
  1658. + {
  1659. + return null;
  1660. + }
  1661. +
  1662. + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
  1663. +
  1664. + if ((profileName != null) && (_profiles != null))
  1665. + {
  1666. + return _profiles.get(profileName);
  1667. + }
  1668. + return null;
  1669. + }
  1670. +
  1671. + private synchronized String fillHtml(L2PcInstance player, String html)
  1672. + {
  1673. + try
  1674. + {
  1675. + html = html.replace("%target%", _isPetTarget.get(player.getObjectId()) ? "Слуга" : "Пер�онаж");
  1676. + html = html.replace("%profile%", getActiveProfileName(player));
  1677. + html = html.replace("%err%", _err);
  1678. + _err = "";
  1679. + String profiles = "";
  1680. + try
  1681. + {
  1682. + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
  1683. + if (_profiles != null)
  1684. + {
  1685. + for (String profileName : _profiles.keySet())
  1686. + {
  1687. + profiles += "<tr><td><center><a action=\"bypass -h Quest 50000_Buffer SelectProfile " + profileName + "\">" + profileName + "</a></center></td></tr>";
  1688. + }
  1689. + }
  1690. + if (profiles.length() == 0)
  1691. + {
  1692. + profiles = "<tr><td><center>От�ут�твуют</center></td></tr>";
  1693. + }
  1694. + html = html.replace("%profilelist%", profiles);
  1695. + BuffProfile profile = getActiveProfile(player);
  1696. + if ((profile != null) && (profile._buffs != null) && (profile._buffs.size() > 0))
  1697. + {
  1698. + html = html.replace("%useprofile%", "<button action=\"bypass -h Quest 50000_Buffer UseProfile\" value=\"И�п. профиль\" width=112 height=23 back=\"L2buff.Button_DB_Down\" fore=\"L2buff.Button_DB\">");
  1699. + String buffs = "";
  1700. + int npcid = 50000;
  1701. + for (Integer buff : profile._buffs)
  1702. + {
  1703. + if ((player.getTarget() != null) && ((player.getTarget() instanceof L2NpcInstance) && !(player.getTarget() instanceof L2MonsterInstance)))
  1704. + {
  1705. + npcid = ((L2NpcInstance) player.getTarget()).getNpcId();
  1706. + }
  1707. + int[] group = NpcBufferTable.getInstance().getSkillInfo(npcid, buff);
  1708. + buffs += "<tr><td><center>" + SkillTable.getInstance().getSkillName(group[0]) + "</center></td></tr>";
  1709. + }
  1710. + html = html.replace("%buflist%", buffs);
  1711. + }
  1712. + else
  1713. + {
  1714. + html = html.replace("%useprofile%", "");
  1715. + }
  1716. + }
  1717. + catch (Exception e)
  1718. + {
  1719. + html = html.replace("%useprofile%", "");
  1720. + _buffprofiles.remove(player.getObjectId());
  1721. + _log.error("Error getting profiles for " + player.getName() + ", cleaning");
  1722. + }
  1723. + return html;
  1724. + }
  1725. + catch (Exception e)
  1726. + {
  1727. + return "<html><body><br><center>Произошла ошибка при обрашении к баферу, попробуйте позже</center></body></html>";
  1728. + }
  1729. + }
  1730. +
  1731. + private boolean useBuff(int grpid, int[] npcBuffGroupInfo, L2PcInstance player, L2Character target)
  1732. + {
  1733. + for (int i = 0; i < npcBuffGroupInfo.length; i += 4)
  1734. + {
  1735. + int skillId = npcBuffGroupInfo[i];
  1736. + int skillLevel = npcBuffGroupInfo[i + 1];
  1737. + int skillFeeId = npcBuffGroupInfo[i + 2];
  1738. + int skillFeeAmount = npcBuffGroupInfo[i + 3];
  1739. + if (!Config.LIST_BUFFER_BUFF_ALLOW.containsKey(skillId))
  1740. + {
  1741. + player.sendMessage("�едопу�тимый �ффект!");
  1742. + return false;
  1743. + }
  1744. + if (skillFeeId != 0)
  1745. + {
  1746. + L2ItemInstance itemInstance = player.getInventory().getItemByItemId(skillFeeId);
  1747. + if ((itemInstance == null) || (!itemInstance.isStackable() && (player.getInventory().getInventoryItemCount(skillFeeId, -1) < skillFeeAmount)))
  1748. + {
  1749. + SystemMessage sm = new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS);
  1750. + player.sendPacket(sm);
  1751. + return false;
  1752. + }
  1753. + if (itemInstance.isStackable())
  1754. + {
  1755. + if (!player.destroyItemByItemId("Npc Buffer", skillFeeId, skillFeeAmount, player.getTarget(), true))
  1756. + {
  1757. + player.sendPacket(SystemMessageId.NOT_ENOUGH_ITEMS);
  1758. + return false;
  1759. + }
  1760. + }
  1761. + else
  1762. + {
  1763. + for (int k = 0; k < skillFeeAmount; ++k)
  1764. + {
  1765. + player.destroyItemByItemId("Npc Buffer", skillFeeId, 1, player.getTarget(), true);
  1766. + }
  1767. + }
  1768. + }
  1769. + L2Skill skill;
  1770. + skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
  1771. +
  1772. + if (skill != null)
  1773. + {
  1774. + skill.getEffects(target, target);
  1775. + BuffProfile profile = getActiveProfile(player);
  1776. + if (profile != null)
  1777. + {
  1778. + if (!profile._buffs.contains(grpid))
  1779. + {
  1780. + profile._buffs.add(grpid);
  1781. + }
  1782. + }
  1783. + }
  1784. + }
  1785. + return true;
  1786. + }
  1787. +
  1788. + private Map<String, BuffProfile> createBuffProfiles(L2PcInstance player)
  1789. + {
  1790. + Map<String, BuffProfile> result;
  1791. + result = _buffprofiles.get(player.getObjectId());
  1792. + if (result == null)
  1793. + {
  1794. + result = new FastMap<>();
  1795. + _buffprofiles.put(player.getObjectId(), result);
  1796. + try
  1797. + {
  1798. + Connection con = L2DatabaseFactory.getInstance().getConnection();
  1799. + PreparedStatement stm = con.prepareStatement("select * from character_buff_profiles where charId=? order by profileName");
  1800. + stm.setInt(1, player.getObjectId());
  1801. + ResultSet rs = stm.executeQuery();
  1802. + String profileName = "";
  1803. + profile = null;
  1804. + while (rs.next())
  1805. + {
  1806. + if (!rs.getString("profileName").equals(profileName))
  1807. + {
  1808. + profileName = rs.getString("profileName");
  1809. + profile = new BuffProfile();
  1810. + result.put(profileName, profile);
  1811. + }
  1812. + profile._buffs.add(rs.getInt("buffGroup"));
  1813. + }
  1814. + rs.close();
  1815. + stm.close();
  1816. + con.close();
  1817. + }
  1818. + catch (SQLException e)
  1819. + {
  1820. + _log.error("Buffer: Can't load buf profiles", e);
  1821. + }
  1822. + }
  1823. +
  1824. + return result;
  1825. + }
  1826. +
  1827. + public class buffTasks
  1828. + {
  1829. + private ScheduledFuture<?> buffTask = null;
  1830. +
  1831. + public void Shutdown()
  1832. + {
  1833. + stopBuffTask(false);
  1834. + }
  1835. +
  1836. + private void stopBuffTask(final boolean mayInterruptIfRunning)
  1837. + {
  1838. + if (buffTask != null)
  1839. + {
  1840. + buffTask.cancel(mayInterruptIfRunning);
  1841. + buffTask = null;
  1842. + }
  1843. + }
  1844. + }
  1845. +
  1846. + public buffTasks autoBuffTask = null;
  1847. + private BuffProfile profile;
  1848. +
  1849. + public static void main(String[] args)
  1850. + {
  1851. + if (Config.BUFFER_ENABLED)
  1852. + {
  1853. + getInstance();
  1854. + }
  1855. + }
  1856. +
  1857. + public static Buffer getInstance()
  1858. + {
  1859. + return SingletonHolder._instance;
  1860. + }
  1861. +
  1862. + private static class SingletonHolder
  1863. + {
  1864. + protected static final Buffer _instance = new Buffer();
  1865. + }
  1866. +
  1867. +}
  1868. \ No newline at end of file
  1869. Index: data/html/mods/buffer/Buffer-pet-1.htm
  1870. ===================================================================
  1871. --- data/html/mods/buffer/Buffer-pet-1.htm (revision 1831)
  1872. +++ data/html/mods/buffer/Buffer-pet-1.htm (working copy)
  1873. @@ -1,10 +1,20 @@
  1874. -<html>
  1875. -<html><head><title>Manager buffs</title></head>
  1876. -<body>
  1877. -<center>
  1878. -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  1879. -<center>
  1880. -No need to struggle with the pet such brutal bafami
  1881. -</center>
  1882. -</body>
  1883. +<html><head><title>Баффер</title></head>
  1884. +<body><center>
  1885. +<table width=280><tr>
  1886. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1887. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1888. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1889. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1890. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  1891. +</tr></table>
  1892. +<table width=280><tr>
  1893. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1894. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1895. +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  1896. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  1897. +</tr></table><br><br>
  1898. +�е надо мучать животное такими звер�кими бафами
  1899. +<br><br>
  1900. +</center>
  1901. +</body>
  1902. </html>
  1903. \ No newline at end of file
  1904. Index: data/html/mods/buffer/Buffer.htm
  1905. ===================================================================
  1906. --- data/html/mods/buffer/Buffer.htm (revision 1831)
  1907. +++ data/html/mods/buffer/Buffer.htm (working copy)
  1908. @@ -1,47 +1,47 @@
  1909. -<html><head><title>Manager Buffs<</title></head>
  1910. -<body>
  1911. -<center>
  1912. -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
  1913. -<center>
  1914. -<table border="0" cellspacing="0">
  1915. - <tr>
  1916. - <td valign=top><img src=icon.skill1240 width=32 height=32 align=left></td>
  1917. - <td valign=top><img src=icon.skill1087 width=32 height=32 align=left></td>
  1918. - <td valign=top><img src=icon.skill1010 width=32 height=32 align=left></td>
  1919. - <td valign=top><img src=icon.skill1036 width=32 height=32 align=left></td>
  1920. - <td valign=top><img src=icon.skill1243 width=32 height=32 align=left></td>
  1921. - <td valign=top><img src=icon.skill1033 width=32 height=32 align=left></td>
  1922. - <td valign=top><img src=icon.skill1303 width=32 height=32 align=left></td>
  1923. - <td valign=top><img src=icon.skill1035 width=32 height=32 align=left></td>
  1924. - </tr>
  1925. - <tr>
  1926. - <td valign=top><img src=icon.skill1032 width=32 height=32 align=left></td>
  1927. - <td valign=top><img src=icon.skill1048 width=32 height=32 align=left></td>
  1928. - <td valign=top><img src=icon.skill1078 width=32 height=32 align=left></td>
  1929. - <td valign=top><img src=icon.skill1085 width=32 height=32 align=left></td>
  1930. - <td valign=top><img src=icon.skill1059 width=32 height=32 align=left></td>
  1931. - <td valign=top><img src=icon.skill1352 width=32 height=32 align=left></td>
  1932. - <td valign=top><img src=icon.skill1259 width=32 height=32 align=left></td>
  1933. - <td valign=top><img src=icon.skill1393 width=32 height=32 align=left></td>
  1934. - </tr>
  1935. -</table>
  1936. -
  1937. -<br><center>
  1938. -<br><br>
  1939. -<table width=220><tr>
  1940. -<td><button action="bypass -h Quest 50000_Buffer RemBuff" value="Delete all buffers" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1941. -<td><button action="bypass -h Quest 50000_Buffer recHp" value="Restore HP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1942. -</tr><tr>
  1943. -<td><button action="bypass -h Quest 50000_Buffer recCp" value="Restore CP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1944. -<td><button action="bypass -h Quest 50000_Buffer recMp" value="Restore MP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1945. -</tr><tr>
  1946. -<td><button action="bypass -h Quest 50000_Buffer Chat 1" value="Dance" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1947. -<td><button action="bypass -h Quest 50000_Buffer Chat 3" value="Songs" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1948. -</tr><tr>
  1949. -<td><button action="bypass -h Quest 50000_Buffer Chat 2" value="Buffs" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1950. -<td><button action="bypass -h Quest 50000_Buffer Chat 4" value="Chants" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
  1951. -</tr>
  1952. -</table>
  1953. -</center>
  1954. -</body>
  1955. -</html>
  1956. +<html><title>Баффер</title><body><center>
  1957. +<table width=280>
  1958. +<tr>
  1959. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1960. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1961. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1962. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1963. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  1964. +</tr></table>
  1965. +<table width=280><tr>
  1966. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  1967. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  1968. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  1969. +</tr></table>
  1970. +<table width=260 bgcolor=000000><tr>
  1971. +<td align=center><font color=996666>Да прибудет � тобой �ила!!!</font></td>
  1972. +</tr></table>
  1973. +<img src="l2ui.squaregray" width="295" height="1">
  1974. +<table width=280><tr>
  1975. +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
  1976. +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
  1977. +</tr></table>
  1978. +<table width=260 bgcolor=000000><tr>
  1979. +<td align=center><button action="bypass -h Quest 50000_Buffer Target" value="Цель" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1980. +<td align=center><font color=ff6600>Профили</font></td>
  1981. +<td align=center><button value="Профили" action="bypass -h Quest 50000_Buffer Profile" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1982. +</tr></table><br>
  1983. +%useprofile%
  1984. +<img src="l2ui.squaregray" width="295" height="1">
  1985. +<img src="l2buff.Buffer" width="255" height="75">
  1986. +<img src="l2ui.squaregray" width="295" height="1">
  1987. +<table width="260" bgcolor=000000><tr>
  1988. +<td align=center><button value="Воин" action="bypass -h Quest 50000_Buffer WarriorBuff" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1989. +<td width=60 align=center><font color=ffa500>�аборы</font></td>
  1990. +<td align=center><button value="Маг" action="bypass -h Quest 50000_Buffer MageBuff" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1991. +</tr></table><img src="l2ui.squaregray" width="256" height="10">
  1992. +<table width="260" bgcolor=000000><tr>
  1993. +<td align=center><button value="HP/CP/MP" action="bypass -h Quest 50000_Buffer recHp" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1994. +<td align=center><button value="-=VIP=-" action="bypass -h Quest 50000_Buffer addpremium" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1995. +<td align=center><button value="Очи�тить" action="bypass -h Quest 50000_Buffer RemBuff" width=60 height=21 back="L2buff.Button_BF_Down" fore="L2buff.Button_BF"></td>
  1996. +</tr></table><img src="l2ui.squaregray" width="295" height="1">
  1997. +<br><br>
  1998. +<a action="bypass -h Quest 50000_Buffer Chat 6"><font color=339933>.About.</font></a>
  1999. +
  2000. +</center>
  2001. +</body>
  2002. +</html>
  2003. \ No newline at end of file
  2004. Index: data/html/mods/buffer/Buffer-pet-5.htm
  2005. ===================================================================
  2006. --- data/html/mods/buffer/Buffer-pet-5.htm (revision 0)
  2007. +++ data/html/mods/buffer/Buffer-pet-5.htm (working copy)
  2008. @@ -0,0 +1,20 @@
  2009. +<html><head><title>Баффер</title></head>
  2010. +<body><center>
  2011. +<table width=280><tr>
  2012. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2013. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2014. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2015. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2016. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  2017. +</tr></table>
  2018. +<table width=280><tr>
  2019. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2020. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2021. +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  2022. +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
  2023. +</tr></table><br><br>
  2024. +�е надо мучать животное такими звер�кими бафами
  2025. +<br><br>
  2026. +</center>
  2027. +</body>
  2028. +</html>
  2029. \ No newline at end of file
  2030. Index: data/html/mods/buffer/Buffer-3.htm
  2031. ===================================================================
  2032. --- data/html/mods/buffer/Buffer-3.htm (revision 1831)
  2033. +++ data/html/mods/buffer/Buffer-3.htm (working copy)
  2034. @@ -1,56 +1,108 @@
  2035. -<html><head><title>Manager buffs</title></head>
  2036. -<body>
  2037. -<center>
  2038. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
  2039. -<br>
  2040. -<table>
  2041. -<tr>
  2042. -<td><img src=icon.skill0364 width=32 height=32 align=left></td>
  2043. -<td><button value="Champion" action="bypass -h Quest 50000_Buffer Buff 364" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2044. -<td><img src=icon.skill0264 width=32 height=32 align=left></td>
  2045. -<td><button value="Earth" action="bypass -h Quest 50000_Buffer Buff 264" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2046. -</tr>
  2047. -<tr>
  2048. -<td><img src=icon.skill0268 width=32 height=32 align=left></td>
  2049. -<td><button value="Wind" action="bypass -h Quest 50000_Buffer Buff 268" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2050. -<td><img src=icon.skill0306 width=32 height=32 align=left></td>
  2051. -<td><button value="Flame Guard" action="bypass -h Quest 50000_Buffer Buff 306" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2052. -</tr>
  2053. -<tr>
  2054. -<td><img src=icon.skill0269 width=32 height=32 align=left></td>
  2055. -<td><button value="Hunter" action="bypass -h Quest 50000_Buffer Buff 269" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2056. -<td><img src=icon.skill0270 width=32 height=32 align=left></td>
  2057. -<td><button value="Invocation" action="bypass -h Quest 50000_Buffer Buff 270" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2058. -</tr>
  2059. -<tr>
  2060. -<td><img src=icon.skill0265 width=32 height=32 align=left></td>
  2061. -<td><button value="Life" action="bypass -h Quest 50000_Buffer Buff 265" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2062. -<td><img src=icon.skill0363 width=32 height=32 align=left></td>
  2063. -<td><button value="Meditation" action="bypass -h Quest 50000_Buffer Buff 363" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2064. -</tr>
  2065. -<tr>
  2066. -<td><img src=icon.skill0349 width=32 height=32 align=left></td>
  2067. -<td><button value="Renewal" action="bypass -h Quest 50000_Buffer Buff 349" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2068. -<td><img src=icon.skill0308 width=32 height=32 align=left></td>
  2069. -<td><button value="Storm Guard" action="bypass -h Quest 50000_Buffer Buff 308" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2070. -</tr>
  2071. -<tr>
  2072. -<td><img src=icon.skill0305 width=32 height=32 align=left></td>
  2073. -<td><button value="Vengeance" action="bypass -h Quest 50000_Buffer Buff 305" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2074. -<td><img src=icon.skill0304 width=32 height=32 align=left></td>
  2075. -<td><button value="Vitality" action="bypass -h Quest 50000_Buffer Buff 304" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2076. -</tr>
  2077. -<tr>
  2078. -<td><img src=icon.skill0267 width=32 height=32 align=left></td>
  2079. -<td><button value="Warding" action="bypass -h Quest 50000_Buffer Buff 267" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2080. -<td><img src=icon.skill0266 width=32 height=32 align=left></td>
  2081. -<td><button value="Water" action="bypass -h Quest 50000_Buffer Buff 266" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
  2082. -</tr>
  2083. -</table>
  2084. -<br>
  2085. -<br>
  2086. -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
  2087. -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
  2088. -</center>
  2089. -</body>
  2090. -</html>
  2091. +<html><head><title>Пе�ни</title></head><body><center>
  2092. +<table width=280>
  2093. +<tr>
  2094. +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2095. +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2096. +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
  2097. +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2098. +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
  2099. +</tr></table>
  2100. +<table width=280><tr>
  2101. +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2102. +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
  2103. +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
  2104. +</tr></table>
  2105. +<table bgcolor=000000>
  2106. +<tr>
  2107. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 264" width=32 height=32 back="icon.skill0264" fore="icon.skill0264"></td>
  2108. +<td width=105>
  2109. +<table>
  2110. +<tr><td><font color="LEVEL">Hearth</td></tr>
  2111. +<tr><td><font color="ae9977">+ защита.</font></td></tr>
  2112. +</table>
  2113. +</td>
  2114. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 265" width=32 height=32 back="icon.skill0265" fore="icon.skill0265"></td>
  2115. +<td width=105>
  2116. +<table>
  2117. +<tr><td><font color="LEVEL">Life</td></tr>
  2118. +<tr><td><font color="ae9977">+ реген жизни. </font></td></tr>
  2119. +</table>
  2120. +</td>
  2121. +</tr>
  2122. +</table>
  2123. +<table>
  2124. +<tr>
  2125. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 266" width=32 height=32 back="icon.skill0266" fore="icon.skill0266"></td>
  2126. +<td width=105>
  2127. +<table>
  2128. +<tr><td><font color="FFFFFF">Water</td></tr>
  2129. +<tr><td><font color="ae9977">+ уворот.</font></td></tr>
  2130. +</table>
  2131. +</td>
  2132. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 267" width=32 height=32 back="icon.skill0267" fore="icon.skill0267"></td>
  2133. +<td width=105>
  2134. +<table>
  2135. +<tr><td><font color="FFFFFF">Warding</td></tr>
  2136. +<tr><td><font color="ae9977">+ маг защита. </font></td></tr>
  2137. +</table>
  2138. +</td>
  2139. +</tr>
  2140. +</table>
  2141. +<table bgcolor=000000>
  2142. +<tr>
  2143. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 268" width=32 height=32 back="icon.skill0268" fore="icon.skill0268"></td>
  2144. +<td width=105>
  2145. +<table>
  2146. +<tr><td><font color="LEVEL">Wind</td></tr>
  2147. +<tr><td><font color="ae9977">+ �коро�ть.</font></td></tr>
  2148. +</table>
  2149. +</td>
  2150. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 269" width=32 height=32 back="icon.skill0269" fore="icon.skill0269"></td>
  2151. +<td width=105>
  2152. +<table>
  2153. +<tr><td><font color="LEVEL">Hunter</td></tr>
  2154. +<tr><td><font color="ae9977">+ шан� крита.</font></td></tr>
  2155. +</table>
  2156. +</td>
  2157. +</tr>
  2158. +</table>
  2159. +<table>
  2160. +<tr>
  2161. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 304" width=32 height=32 back="icon.skill0304" fore="icon.skill0304"></td>
  2162. +<td width=105>
  2163. +<table>
  2164. +<tr><td><font color="FFFFFF">Vitality</td></tr>
  2165. +<tr><td><font color="ae9977">+ кол-во ХП.</font></td></tr>
  2166. +</table>
  2167. +</td>
  2168. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 363" width=32 height=32 back="icon.skill0363" fore="icon.skill0363"></td>
  2169. +<td width=105>
  2170. +<table>
  2171. +<tr><td><font color="FFFFFF">Meditation</td></tr>
  2172. +<tr><td><font color="ae9977">+ реген маны.</font></td></tr>
  2173. +</table>
  2174. +</td>
  2175. +</tr>
  2176. +</table>
  2177. +<table bgcolor=000000>
  2178. +<tr>
  2179. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 364" width=32 height=32 back="icon.skill0364" fore="icon.skill0364"></td>
  2180. +<td width=105>
  2181. +<table>
  2182. +<tr><td><font color="LEVEL">Champion</td></tr>
  2183. +<tr><td><font color="ae9977">- откат �киллов.</font></td></tr>
  2184. +</table>
  2185. +</td>
  2186. +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 349" width=32 height=32 back="icon.skill0349" fore="icon.skill0349"></td>
  2187. +<td width=105>
  2188. +<table>
  2189. +<tr><td><font color="LEVEL">Renewal</td></tr>
  2190. +<tr><td><font color="ae9977">- откат �киллов. </font></td></tr>
  2191. +</table>
  2192. +</td>
  2193. +</tr>
  2194. +</table>
  2195. +<br>
  2196. +</center>
  2197. +</body>
  2198. +</html>
  2199. \ No newline at end of file
  2200. #P Dream_GameServer
  2201. Index: src/com/dream/game/datatables/sql/NpcBufferTable.java
  2202. ===================================================================
  2203. --- src/com/dream/game/datatables/sql/NpcBufferTable.java (revision 0)
  2204. +++ src/com/dream/game/datatables/sql/NpcBufferTable.java (working copy)
  2205. @@ -0,0 +1,180 @@
  2206. +/*
  2207. + * This program is free software: you can redistribute it and/or modify it under
  2208. + * the terms of the GNU General Public License as published by the Free Software
  2209. + * Foundation, either version 3 of the License, or (at your option) any later
  2210. + * version.
  2211. + *
  2212. + * This program is distributed in the hope that it will be useful, but WITHOUT
  2213. + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  2214. + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  2215. + * details.
  2216. + *
  2217. + * You should have received a copy of the GNU General Public License along with
  2218. + * this program. If not, see <http://www.gnu.org/licenses/>.
  2219. + */
  2220. +package com.dream.game.datatables.sql;
  2221. +
  2222. +import java.sql.Connection;
  2223. +import java.sql.PreparedStatement;
  2224. +import java.sql.ResultSet;
  2225. +import java.util.List;
  2226. +import java.util.Map;
  2227. +
  2228. +import javolution.util.FastList;
  2229. +import javolution.util.FastMap;
  2230. +
  2231. +import org.apache.commons.lang.ArrayUtils;
  2232. +import org.apache.log4j.Logger;
  2233. +
  2234. +import com.dream.L2DatabaseFactory;
  2235. +
  2236. +public class NpcBufferTable
  2237. +{
  2238. + protected static Logger _log = Logger.getLogger(NpcBufferTable.class);
  2239. +
  2240. + private class NpcBufferSkills
  2241. + {
  2242. + private int _npcId = 0;
  2243. + private final Map<Integer, List<Integer>> _skillId = new FastMap<>();
  2244. + private final Map<Integer, List<Integer>> _skillLevels = new FastMap<>();
  2245. + private final Map<Integer, List<Integer>> _skillFeeIds = new FastMap<>();
  2246. + private final Map<Integer, List<Integer>> _skillFeeAmounts = new FastMap<>();
  2247. +
  2248. + public NpcBufferSkills(int npcId)
  2249. + {
  2250. + _npcId = npcId;
  2251. + }
  2252. +
  2253. + public void addSkill(int skillId, int skillLevel, int skillFeeId, int skillFeeAmount, int buffGroup)
  2254. + {
  2255. + if (_skillId.get(buffGroup) == null)
  2256. + {
  2257. + _skillId.put(buffGroup, new FastList<Integer>());
  2258. + _skillLevels.put(buffGroup, new FastList<Integer>());
  2259. + _skillFeeIds.put(buffGroup, new FastList<Integer>());
  2260. + _skillFeeAmounts.put(buffGroup, new FastList<Integer>());
  2261. +
  2262. + }
  2263. + _skillId.get(buffGroup).add(skillId);
  2264. + _skillLevels.get(buffGroup).add(skillLevel);
  2265. + _skillFeeIds.get(buffGroup).add(skillFeeId);
  2266. + _skillFeeAmounts.get(buffGroup).add(skillFeeAmount);
  2267. + }
  2268. +
  2269. + public int[] getSkillGroupInfo(int buffGroup)
  2270. + {
  2271. + int[] result = null;
  2272. + if (_skillId.get(buffGroup) == null)
  2273. + {
  2274. + return null;
  2275. + }
  2276. + for (int i = 0; i < _skillId.get(buffGroup).size(); i++)
  2277. + {
  2278. + result = ArrayUtils.add(result, _skillId.get(buffGroup).get(i));
  2279. + result = ArrayUtils.add(result, _skillLevels.get(buffGroup).get(i));
  2280. + result = ArrayUtils.add(result, _skillFeeIds.get(buffGroup).get(i));
  2281. + result = ArrayUtils.add(result, _skillFeeAmounts.get(buffGroup).get(i));
  2282. + }
  2283. + return result;
  2284. + }
  2285. +
  2286. + @SuppressWarnings("unused")
  2287. + public int getNpcId()
  2288. + {
  2289. + return _npcId;
  2290. + }
  2291. + }
  2292. +
  2293. + private static NpcBufferTable _instance = null;
  2294. + private final Map<Integer, NpcBufferSkills> _buffers = new FastMap<>();
  2295. + private NpcBufferSkills skills;
  2296. + private Connection con;
  2297. +
  2298. + private NpcBufferTable()
  2299. + {
  2300. + con = null;
  2301. + int skillCount = 0;
  2302. +
  2303. + try
  2304. + {
  2305. + con = L2DatabaseFactory.getInstance().getConnection();
  2306. +
  2307. + PreparedStatement statement = con.prepareStatement("SELECT `npc_id`,`skill_id`,`skill_level`,`skill_fee_id`,`skill_fee_amount`,`buff_group` FROM `custom_npcbuffer` ORDER BY `npc_id` ASC");
  2308. + ResultSet rset = statement.executeQuery();
  2309. +
  2310. + int lastNpcId = 0;
  2311. + skills = null;
  2312. +
  2313. + while (rset.next())
  2314. + {
  2315. + int npcId = rset.getInt("npc_id");
  2316. + int skillId = rset.getInt("skill_id");
  2317. + int skillLevel = rset.getInt("skill_level");
  2318. + int skillFeeId = rset.getInt("skill_fee_id");
  2319. + int skillFeeAmount = rset.getInt("skill_fee_amount");
  2320. + int buffGroup = rset.getInt("buff_group");
  2321. +
  2322. + if (npcId != lastNpcId)
  2323. + {
  2324. + if (lastNpcId != 0)
  2325. + {
  2326. + _buffers.put(lastNpcId, skills);
  2327. + }
  2328. +
  2329. + skills = new NpcBufferSkills(npcId);
  2330. + skills.addSkill(skillId, skillLevel, skillFeeId, skillFeeAmount, buffGroup);
  2331. + }
  2332. + else
  2333. + {
  2334. + skills.addSkill(skillId, skillLevel, skillFeeId, skillFeeAmount, buffGroup);
  2335. + }
  2336. +
  2337. + lastNpcId = npcId;
  2338. + skillCount++;
  2339. + }
  2340. +
  2341. + _buffers.put(lastNpcId, skills);
  2342. + rset.close();
  2343. + statement.close();
  2344. + }
  2345. + catch (Exception e)
  2346. + {
  2347. + _log.error("NpcBufferSkillIdsTable: Error reading custom_npcbuffer table: " + e.getMessage(), e);
  2348. + }
  2349. + finally
  2350. + {
  2351. + try
  2352. + {
  2353. + con.close();
  2354. + }
  2355. + catch (Exception e)
  2356. + {
  2357. + }
  2358. + }
  2359. +
  2360. + _log.info("NpcBufferSkillIdsTable: Loaded " + _buffers.size() + " buffers and " + skillCount + " skills.");
  2361. + }
  2362. +
  2363. + public static NpcBufferTable getInstance()
  2364. + {
  2365. + if (_instance == null)
  2366. + {
  2367. + _instance = new NpcBufferTable();
  2368. + }
  2369. +
  2370. + return _instance;
  2371. + }
  2372. +
  2373. + public int[] getSkillInfo(int npcId, int buffGroup)
  2374. + {
  2375. + NpcBufferSkills skills = _buffers.get(npcId);
  2376. +
  2377. + if (skills == null)
  2378. + {
  2379. + return null;
  2380. + }
  2381. +
  2382. + return skills.getSkillGroupInfo(buffGroup);
  2383. + }
  2384. +
  2385. +}
  2386. \ No newline at end of file
  2387. Index: src/com/dream/Config.java
  2388. ===================================================================
  2389. --- src/com/dream/Config.java (revision 1831)
  2390. +++ src/com/dream/Config.java (working copy)
  2391. @@ -35,7 +35,7 @@
  2392. public class Config extends L2Config
  2393. {
  2394. protected static Logger _log = Logger.getLogger(Config.class.getName());
  2395. -
  2396. +
  2397. public static final String ALT_FILE = "./config/main/altgame.properties";
  2398. public static int MIN_NPC_ANIMATION;
  2399. public static int MAX_NPC_ANIMATION;
  2400. @@ -96,7 +96,7 @@
  2401. public static Pattern PET_NAME_PATTERN;
  2402. public static Pattern CLAN_ALLY_NAME_PATTERN;
  2403. public static Pattern TITLE_PATTERN;
  2404. -
  2405. +
  2406. public static int ALT_PERFECT_SHLD_BLOCK;
  2407. public static int ALT_BUFFER_HATE;
  2408. public static int ALT_BUFFER_TIME;
  2409. @@ -155,15 +155,15 @@
  2410. public static boolean USE_CHAR_LEVEL_MOD;
  2411. public static boolean DISABLE_SKILLS_ON_LEVEL_LOST;
  2412. public static boolean OLD_CANCEL_MODE;
  2413. -
  2414. +
  2415. public static boolean JAIL_IS_PVP;
  2416. -
  2417. +
  2418. public static void loadAltConfig()
  2419. {
  2420. try
  2421. {
  2422. Properties altSettings = new L2Properties("./" + ALT_FILE);
  2423. -
  2424. +
  2425. MANAGER_CRYSTAL_COUNT = Integer.parseInt(altSettings.getProperty("ManagerCrystalCount", "25"));
  2426. ALT_URN_TEMP_FAIL = Integer.parseInt(altSettings.getProperty("UrnTempFail", "10"));
  2427. ALLOW_EXCHANGE = Boolean.parseBoolean(altSettings.getProperty("AllowExchange", "true"));
  2428. @@ -211,13 +211,13 @@
  2429. HERB_AUTO_DESTROY_TIME = Integer.parseInt(altSettings.getProperty("AutoDestroyHerbTime", "15")) * 1000;
  2430. GRID_AUTO_DESTROY_HERB_TIME = Integer.parseInt(altSettings.getProperty("AutoDestroyHerbTime", "15")) * 1000;
  2431. PROTECTED_ITEMS = altSettings.getProperty("ListOfProtectedItems");
  2432. -
  2433. +
  2434. LIST_PROTECTED_ITEMS = new FastList<>();
  2435. for (String id : PROTECTED_ITEMS.trim().split(","))
  2436. {
  2437. LIST_PROTECTED_ITEMS.add(Integer.parseInt(id.trim()));
  2438. }
  2439. -
  2440. +
  2441. DESTROY_DROPPED_PLAYER_ITEM = Boolean.parseBoolean(altSettings.getProperty("DestroyPlayerDroppedItem", "false"));
  2442. DESTROY_EQUIPABLE_PLAYER_ITEM = Boolean.parseBoolean(altSettings.getProperty("DestroyEquipableItem", "false"));
  2443. SAVE_DROPPED_ITEM = Boolean.parseBoolean(altSettings.getProperty("SaveDroppedItem", "false"));
  2444. @@ -269,20 +269,20 @@
  2445. {
  2446. ALLOWED_SKILLS_LIST.add(Integer.parseInt(id.trim()));
  2447. }
  2448. -
  2449. +
  2450. UNAFFECTED_SKILLS = altSettings.getProperty("UnaffectedSkills");
  2451. UNAFFECTED_SKILL_LIST = new FastList<>();
  2452. CONSUME_ON_SUCCESS = Boolean.parseBoolean(altSettings.getProperty("ConsumeOnSuccess", "true"));
  2453. USE_STATIC_REUSE = Boolean.parseBoolean(altSettings.getProperty("EnableSaticReuse", "true"));
  2454. -
  2455. +
  2456. for (String id : UNAFFECTED_SKILLS.trim().split(","))
  2457. {
  2458. UNAFFECTED_SKILL_LIST.add(Integer.parseInt(id.trim()));
  2459. }
  2460. -
  2461. +
  2462. ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(altSettings.getProperty("EnableModifySkillDuration", "false"));
  2463. MCRIT_RATE = Float.parseFloat(altSettings.getProperty("MCritRate", "2"));
  2464. -
  2465. +
  2466. if (ENABLE_MODIFY_SKILL_DURATION)
  2467. {
  2468. SKILL_DURATION_LIST = new FastMap<>();
  2469. @@ -311,7 +311,7 @@
  2470. }
  2471. }
  2472. }
  2473. -
  2474. +
  2475. ALT_ITEM_SKILLS_NOT_INFLUENCED = Boolean.parseBoolean(altSettings.getProperty("AltItemSkillsNotInfluenced", "false"));
  2476. AUTO_LEARN_DIVINE_INSPIRATION = Boolean.parseBoolean(altSettings.getProperty("AutoLearnDivineInspiration", "false"));
  2477. ALT_MINIMUM_FALL_HEIGHT = Integer.parseInt(altSettings.getProperty("AltMinimumFallHeight", "400"));
  2478. @@ -367,7 +367,7 @@
  2479. throw new Error("Failed to Load " + ALT_FILE + " File.");
  2480. }
  2481. }
  2482. -
  2483. +
  2484. public static final String RATES_FILE = "./config/main/rates.properties";
  2485. public static int KARMA_DROP_LIMIT;
  2486. public static int KARMA_RATE_DROP;
  2487. @@ -404,15 +404,15 @@
  2488. public static FastMap<Integer, Integer> NORMAL_WEAPON_ENCHANT_LEVEL = new FastMap<>();
  2489. public static FastMap<Integer, Integer> BLESS_WEAPON_ENCHANT_LEVEL = new FastMap<>();
  2490. public static FastMap<Integer, Integer> CRYTAL_WEAPON_ENCHANT_LEVEL = new FastMap<>();
  2491. -
  2492. +
  2493. public static FastMap<Integer, Integer> NORMAL_ARMOR_ENCHANT_LEVEL = new FastMap<>();
  2494. public static FastMap<Integer, Integer> BLESS_ARMOR_ENCHANT_LEVEL = new FastMap<>();
  2495. public static FastMap<Integer, Integer> CRYSTAL_ARMOR_ENCHANT_LEVEL = new FastMap<>();
  2496. -
  2497. +
  2498. public static FastMap<Integer, Integer> NORMAL_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
  2499. public static FastMap<Integer, Integer> BLESS_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
  2500. public static FastMap<Integer, Integer> CRYSTAL_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
  2501. -
  2502. +
  2503. public static boolean ALLOW_CRYSTAL_SCROLL;
  2504. public static int ENCHANT_MAX_WEAPON;
  2505. public static int ENCHANT_MAX_ARMOR;
  2506. @@ -446,13 +446,13 @@
  2507. public static int ALT_MANOR_SAVE_PERIOD_RATE;
  2508. public static boolean ALLOW_MANOR;
  2509. public static boolean ALT_MANOR_SAVE_ALL_ACTIONS;
  2510. -
  2511. +
  2512. public static int MAX_PVTSTORESELL_SLOTS_DWARF;
  2513. public static int MAX_PVTSTORESELL_SLOTS_OTHER;
  2514. public static int MAX_PVTSTOREBUY_SLOTS_DWARF;
  2515. public static int MAX_PVTSTOREBUY_SLOTS_OTHER;
  2516. public static boolean CHECK_ZONE_ON_PVT;
  2517. -
  2518. +
  2519. public static int WAREHOUSE_SLOTS_NO_DWARF;
  2520. public static int WAREHOUSE_SLOTS_DWARF;
  2521. public static int WAREHOUSE_SLOTS_CLAN;
  2522. @@ -466,7 +466,7 @@
  2523. public static boolean ALLOW_FREIGHT;
  2524. public static boolean WAREHOUSE_CACHE;
  2525. public static int WAREHOUSE_CACHE_TIME;
  2526. -
  2527. +
  2528. public static double NPC_HP_REGEN_MULTIPLIER;
  2529. public static double NPC_MP_REGEN_MULTIPLIER;
  2530. public static double PLAYER_CP_REGEN_MULTIPLIER;
  2531. @@ -478,13 +478,13 @@
  2532. public static double RAID_MDEFENCE_MULTIPLIER;
  2533. public static double PET_HP_REGEN_MULTIPLIER;
  2534. public static double PET_MP_REGEN_MULTIPLIER;
  2535. -
  2536. +
  2537. public static void loadRatesConfig()
  2538. {
  2539. try
  2540. {
  2541. Properties ratesSettings = new L2Properties("./" + RATES_FILE);
  2542. -
  2543. +
  2544. SINEATER_XP_RATE = Float.parseFloat(ratesSettings.getProperty("SinEaterXpRate", "1."));
  2545. RATE_XP = Float.parseFloat(ratesSettings.getProperty("RateXp", "1."));
  2546. RATE_SP = Float.parseFloat(ratesSettings.getProperty("RateSp", "1."));
  2547. @@ -515,7 +515,7 @@
  2548. KARMA_RATE_DROP_ITEM = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropItem", "50"));
  2549. KARMA_RATE_DROP_EQUIP = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropEquip", "40"));
  2550. KARMA_RATE_DROP_EQUIP_WEAPON = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropEquipWeapon", "10"));
  2551. -
  2552. +
  2553. PET_XP_RATE = Float.parseFloat(ratesSettings.getProperty("PetXpRate", "1."));
  2554. PET_FOOD_RATE = Float.parseFloat(ratesSettings.getProperty("PetFoodRate", "1"));
  2555. String[] propertySplit = ratesSettings.getProperty("NormalWeaponEnchantLevel", "").split(";");
  2556. @@ -541,7 +541,7 @@
  2557. }
  2558. }
  2559. }
  2560. -
  2561. +
  2562. propertySplit = ratesSettings.getProperty("BlessWeaponEnchantLevel", "").split(";");
  2563. for (String readData : propertySplit)
  2564. {
  2565. @@ -565,7 +565,7 @@
  2566. }
  2567. }
  2568. }
  2569. -
  2570. +
  2571. propertySplit = ratesSettings.getProperty("CrystalWeaponEnchantLevel", "").split(";");
  2572. for (String readData : propertySplit)
  2573. {
  2574. @@ -589,7 +589,7 @@
  2575. }
  2576. }
  2577. }
  2578. -
  2579. +
  2580. propertySplit = ratesSettings.getProperty("NormalArmorEnchantLevel", "").split(";");
  2581. for (String readData : propertySplit)
  2582. {
  2583. @@ -613,7 +613,7 @@
  2584. }
  2585. }
  2586. }
  2587. -
  2588. +
  2589. propertySplit = ratesSettings.getProperty("BlessArmorEnchantLevel", "").split(";");
  2590. for (String readData : propertySplit)
  2591. {
  2592. @@ -637,7 +637,7 @@
  2593. }
  2594. }
  2595. }
  2596. -
  2597. +
  2598. propertySplit = ratesSettings.getProperty("CrystalArmorEnchantLevel", "").split(";");
  2599. for (String readData : propertySplit)
  2600. {
  2601. @@ -661,7 +661,7 @@
  2602. }
  2603. }
  2604. }
  2605. -
  2606. +
  2607. propertySplit = ratesSettings.getProperty("NormalJewelryEnchantLevel", "").split(";");
  2608. for (String readData : propertySplit)
  2609. {
  2610. @@ -685,7 +685,7 @@
  2611. }
  2612. }
  2613. }
  2614. -
  2615. +
  2616. propertySplit = ratesSettings.getProperty("BlessJewelryEnchantLevel", "").split(";");
  2617. for (String readData : propertySplit)
  2618. {
  2619. @@ -709,7 +709,7 @@
  2620. }
  2621. }
  2622. }
  2623. -
  2624. +
  2625. propertySplit = ratesSettings.getProperty("CrystalJewelryEnchantLevel", "").split(";");
  2626. for (String readData : propertySplit)
  2627. {
  2628. @@ -733,7 +733,7 @@
  2629. }
  2630. }
  2631. }
  2632. -
  2633. +
  2634. ALLOW_CRYSTAL_SCROLL = Boolean.parseBoolean(ratesSettings.getProperty("AllowCrystalScroll", "false"));
  2635. ENCHANT_MAX_WEAPON = Integer.parseInt(ratesSettings.getProperty("EnchantMaxWeapon", "25"));
  2636. ENCHANT_MAX_ARMOR = Integer.parseInt(ratesSettings.getProperty("EnchantMaxArmor", "25"));
  2637. @@ -759,7 +759,7 @@
  2638. AUGMENTATION_BASESTAT_CHANCE = Integer.parseInt(ratesSettings.getProperty("AugmentationBaseStatChance", "1"));
  2639. CHECK_ENCHANT_LEVEL_EQUIP = Boolean.parseBoolean(ratesSettings.getProperty("CheckEnchantLevelEquip", "true"));
  2640. ALT_FAILED_ENC_LEVEL = Boolean.parseBoolean(ratesSettings.getProperty("AltEncLvlAfterFail", "false"));
  2641. -
  2642. +
  2643. ALLOW_MANOR = Boolean.parseBoolean(ratesSettings.getProperty("AllowManor", "false"));
  2644. ALT_MANOR_REFRESH_TIME = Integer.parseInt(ratesSettings.getProperty("AltManorRefreshTime", "20"));
  2645. ALT_MANOR_REFRESH_MIN = Integer.parseInt(ratesSettings.getProperty("AltManorRefreshMin", "00"));
  2646. @@ -768,13 +768,13 @@
  2647. ALT_MANOR_MAINTENANCE_PERIOD = Integer.parseInt(ratesSettings.getProperty("AltManorMaintenancePeriod", "360000"));
  2648. ALT_MANOR_SAVE_ALL_ACTIONS = Boolean.parseBoolean(ratesSettings.getProperty("AltManorSaveAllActions", "false"));
  2649. ALT_MANOR_SAVE_PERIOD_RATE = Integer.parseInt(ratesSettings.getProperty("AltManorSavePeriodRate", "2"));
  2650. -
  2651. +
  2652. MAX_PVTSTORESELL_SLOTS_DWARF = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreSellSlotsDwarf", "4"));
  2653. MAX_PVTSTORESELL_SLOTS_OTHER = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreSellSlotsOther", "3"));
  2654. MAX_PVTSTOREBUY_SLOTS_DWARF = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreBuySlotsDwarf", "5"));
  2655. MAX_PVTSTOREBUY_SLOTS_OTHER = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreBuySlotsOther", "4"));
  2656. CHECK_ZONE_ON_PVT = Boolean.parseBoolean(ratesSettings.getProperty("CheckZoneOnPvt", "false"));
  2657. -
  2658. +
  2659. ALLOW_WAREHOUSE = Boolean.parseBoolean(ratesSettings.getProperty("AllowWarehouse", "true"));
  2660. ALLOW_FREIGHT = Boolean.parseBoolean(ratesSettings.getProperty("AllowFreight", "true"));
  2661. ENABLE_WAREHOUSESORTING_CLAN = Boolean.parseBoolean(ratesSettings.getProperty("EnableWarehouseSortingClan", "false"));
  2662. @@ -806,7 +806,7 @@
  2663. throw new Error("Failed to Load " + RATES_FILE + " File.");
  2664. }
  2665. }
  2666. -
  2667. +
  2668. public static final String GAMESERVER_FILE = "./config/main/gameserver.properties";
  2669. public static int REQUEST_ID;
  2670. public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
  2671. @@ -818,7 +818,7 @@
  2672. public static boolean SERVER_LIST_CLOCK;
  2673. public static boolean SERVER_GMONLY;
  2674. public static File DATAPACK_ROOT;
  2675. -
  2676. +
  2677. public static boolean COMPILE_SCRIPTS = true;
  2678. public static int GENERAL_THREAD_POOL_SIZE = 3;
  2679. public static int PACKET_THREAD_POOL_SIZE = 2;
  2680. @@ -826,15 +826,15 @@
  2681. public static int AI_THREAD_POOL_SIZE = 4;
  2682. public static int THREAD_POOL_SIZE;
  2683. public static String SERVER_NAME;
  2684. -
  2685. +
  2686. public static int MMO_SELECTOR_SLEEP_TIME = 20;
  2687. public static int MMO_MAX_SEND_PER_PASS = 12;
  2688. public static int MMO_MAX_READ_PER_PASS = 12;
  2689. public static int MMO_HELPER_BUFFER_COUNT = 20;
  2690. public static boolean MMO_TCP_NODELAY = false;
  2691. -
  2692. +
  2693. public static boolean ENABLE_DDOS_PROTECTION = true;
  2694. -
  2695. +
  2696. public static boolean BAN_CHAT_LOG;
  2697. public static boolean BAN_ACCOUNT_LOG;
  2698. public static boolean JAIL_LOG;
  2699. @@ -849,7 +849,7 @@
  2700. public static boolean ANNOUNCE_BAN_CHAR;
  2701. public static boolean ANNOUNCE_UNBAN_CHAR;
  2702. public static int GLOBAL_BAN_CHAT_TIME;
  2703. -
  2704. +
  2705. public static boolean DATETIME_SAVECAL = true;
  2706. public static int DATETIME_SUNRISE = 6;
  2707. public static int DATETIME_SUNSET = 0;
  2708. @@ -857,9 +857,9 @@
  2709. public static int DATETIME_MOVE_DELAY = 200;
  2710. public static String TIME_ZONE;
  2711. public static boolean ADVANCED_DIAGONAL_STRATEGY = true;
  2712. -
  2713. +
  2714. public static boolean ONLY_CLANLEADER_CAN_SIT_ON_THRONE;
  2715. -
  2716. +
  2717. public static enum IdFactoryType
  2718. {
  2719. Compaction,
  2720. @@ -868,19 +868,19 @@
  2721. Increment,
  2722. Rebuild
  2723. }
  2724. -
  2725. +
  2726. public static enum ObjectMapType
  2727. {
  2728. L2ObjectHashMap,
  2729. WorldObjectMap
  2730. }
  2731. -
  2732. +
  2733. public static enum ObjectSetType
  2734. {
  2735. L2ObjectHashSet,
  2736. WorldObjectSet
  2737. }
  2738. -
  2739. +
  2740. public static IdFactoryType IDFACTORY_TYPE;
  2741. public static boolean BAD_ID_CHECKING;
  2742. public static boolean ID_FACTORY_CLEANUP;
  2743. @@ -900,7 +900,7 @@
  2744. public static boolean Allow_Same_HWID_On_Events = true;
  2745. public static boolean Allow_Same_IP_On_Events = true;
  2746. public static int ENCHAT_TIME = 3;
  2747. -
  2748. +
  2749. public static int LIT_REGISTRATION_MODE;
  2750. public static int LIT_REGISTRATION_TIME;
  2751. public static int LIT_MIN_PARTY_CNT;
  2752. @@ -958,7 +958,7 @@
  2753. public static int CS_SUPPORT2_FEE;
  2754. public static int CS_SUPPORT3_FEE;
  2755. public static int CS_SUPPORT4_FEE;
  2756. -
  2757. +
  2758. public static long CH_TELE_FEE_RATIO;
  2759. public static int CH_TELE1_FEE;
  2760. public static int CH_TELE2_FEE;
  2761. @@ -1009,27 +1009,27 @@
  2762. public static long CH_FRONT_FEE_RATIO;
  2763. public static int CH_FRONT1_FEE;
  2764. public static int CH_FRONT2_FEE;
  2765. -
  2766. +
  2767. public static long FORT_TELE_FEE_RATIO;
  2768. public static int FORT_TELE1_FEE;
  2769. public static int FORT_TELE2_FEE;
  2770. -
  2771. +
  2772. public static long FORT_MPREG_FEE_RATIO;
  2773. public static int FORT_MPREG1_FEE;
  2774. public static int FORT_MPREG2_FEE;
  2775. -
  2776. +
  2777. public static long FORT_HPREG_FEE_RATIO;
  2778. public static int FORT_HPREG1_FEE;
  2779. public static int FORT_HPREG2_FEE;
  2780. -
  2781. +
  2782. public static long FORT_EXPREG_FEE_RATIO;
  2783. public static int FORT_EXPREG1_FEE;
  2784. public static int FORT_EXPREG2_FEE;
  2785. -
  2786. +
  2787. public static long FORT_SUPPORT_FEE_RATIO;
  2788. public static int FORT_SUPPORT1_FEE;
  2789. public static int FORT_SUPPORT2_FEE;
  2790. -
  2791. +
  2792. /** Class Master */
  2793. public static boolean SPAWN_CLASS_MASTER;
  2794. public static boolean ALLOW_CLASS_MASTERS;
  2795. @@ -1039,7 +1039,7 @@
  2796. public static ClassMasterSettings CLASS_MASTER_SETTINGS;
  2797. public static boolean CLASS_MASTER_STRIDER_UPDATE;
  2798. public static boolean ALLOW_REMOTE_CLASS_MASTERS;
  2799. -
  2800. +
  2801. public static void loadGsConfig()
  2802. {
  2803. try
  2804. @@ -1046,34 +1046,34 @@
  2805. {
  2806. Properties gsSettings = new L2Properties("./" + GAMESERVER_FILE);
  2807. THREAD_POOL_SIZE = GENERAL_THREAD_POOL_SIZE + PACKET_THREAD_POOL_SIZE + EFFECT_THREAD_POOL_SIZE + AI_THREAD_POOL_SIZE;
  2808. -
  2809. +
  2810. REQUEST_ID = Integer.parseInt(gsSettings.getProperty("RequestServerId", "1"));
  2811. if (REQUEST_ID <= 0)
  2812. {
  2813. REQUEST_ID = 1;
  2814. }
  2815. -
  2816. +
  2817. MAXIMUM_ONLINE_USERS = Integer.parseInt(gsSettings.getProperty("MaximumOnlineUsers", "1000"));
  2818. if (MAXIMUM_ONLINE_USERS > 5000)
  2819. {
  2820. MAXIMUM_ONLINE_USERS = 5000;
  2821. }
  2822. -
  2823. +
  2824. MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(gsSettings.getProperty("CharMaxNumber", "7"));
  2825. if (MAX_CHARACTERS_NUMBER_PER_ACCOUNT > 7)
  2826. {
  2827. MAX_CHARACTERS_NUMBER_PER_ACCOUNT = 7;
  2828. }
  2829. -
  2830. +
  2831. ACCEPT_ALTERNATE_ID = Boolean.parseBoolean(gsSettings.getProperty("AcceptAlternateId", "true"));
  2832. DATAPACK_ROOT = new File(gsSettings.getProperty("DatapackRoot", ".")).getCanonicalFile();
  2833. SERVER_NAME = gsSettings.getProperty("ServerName", "L2Dream");
  2834. -
  2835. +
  2836. BAN_CHAT_LOG = Boolean.parseBoolean(gsSettings.getProperty("BanChatLog", "true"));
  2837. BAN_ACCOUNT_LOG = Boolean.parseBoolean(gsSettings.getProperty("BanAccountLog", "true"));
  2838. JAIL_LOG = Boolean.parseBoolean(gsSettings.getProperty("JailLog", "true"));
  2839. BAN_CHAR_LOG = Boolean.parseBoolean(gsSettings.getProperty("PlayerBanLog", "true"));
  2840. -
  2841. +
  2842. CLASSIC_ANNOUNCE_MODE = Boolean.parseBoolean(gsSettings.getProperty("AnnounceBanChat", "true"));
  2843. ANNOUNCE_BAN_CHAT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceBanChat", "true"));
  2844. ANNOUNCE_UNBAN_CHAT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnbanChat", "true"));
  2845. @@ -1081,16 +1081,16 @@
  2846. ANNOUNCE_UNBAN_ACCOUNT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnBanAccount", "true"));
  2847. ANNOUNCE_JAIL = Boolean.parseBoolean(gsSettings.getProperty("AnnounceJail", "true"));
  2848. ANNOUNCE_UNJAIL = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnJail", "true"));
  2849. -
  2850. +
  2851. GLOBAL_BAN_CHAT_TIME = Integer.parseInt(gsSettings.getProperty("GlobalBanTime", "15"));
  2852. -
  2853. +
  2854. TIME_ZONE = gsSettings.getProperty("TimeZone", "America/Sao_Paulo");
  2855. ONLY_CLANLEADER_CAN_SIT_ON_THRONE = Boolean.parseBoolean(gsSettings.getProperty("OnlyClanleaderCanSitOnThrone", "false"));
  2856. -
  2857. +
  2858. IDFACTORY_TYPE = IdFactoryType.valueOf(gsSettings.getProperty("IDFactory", "BitSet"));
  2859. BAD_ID_CHECKING = Boolean.parseBoolean(gsSettings.getProperty("BadIdChecking", "true"));
  2860. ID_FACTORY_CLEANUP = Boolean.parseBoolean(gsSettings.getProperty("CleanBadIDs", "true"));
  2861. -
  2862. +
  2863. SAFE_REBOOT = Boolean.parseBoolean(gsSettings.getProperty("SafeReboot", "true"));
  2864. SAFE_REBOOT_TIME = Integer.parseInt(gsSettings.getProperty("SafeRebootTime", "10"));
  2865. SAFE_REBOOT_DISABLE_ENCHANT = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableEnchant", "false"));
  2866. @@ -1099,7 +1099,7 @@
  2867. SAFE_REBOOT_DISABLE_TRANSACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableTransaction", "false"));
  2868. SAFE_REBOOT_DISABLE_PC_ITERACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisablePcIteraction", "false"));
  2869. SAFE_REBOOT_DISABLE_NPC_ITERACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableNpcIteraction", "false"));
  2870. -
  2871. +
  2872. LIT_REGISTRATION_MODE = Integer.parseInt(gsSettings.getProperty("RegistrationMode", "0"));
  2873. LIT_REGISTRATION_TIME = Integer.parseInt(gsSettings.getProperty("RegistrationTime", "10"));
  2874. LIT_MIN_PARTY_CNT = Integer.parseInt(gsSettings.getProperty("MinPartyCount", "4"));
  2875. @@ -1121,7 +1121,7 @@
  2876. RIFT_BOSS_ROOM_TIME_MUTIPLY = Float.parseFloat(gsSettings.getProperty("BossRoomTimeMultiply", "1.5"));
  2877. HS_DEBUFF_CHANCE = Integer.parseInt(gsSettings.getProperty("HotSpringDebuffChance", "15"));
  2878. FOG_MOBS_CLONE_CHANCE = Integer.parseInt(gsSettings.getProperty("FOGMobsCloneChance", "10"));
  2879. -
  2880. +
  2881. ALT_DEFAULT_RESTARTTOWN = Integer.parseInt(gsSettings.getProperty("AltDefaultRestartTown", "0"));
  2882. RESPAWN_RANDOM_MAX_OFFSET = Integer.parseInt(gsSettings.getProperty("RespawnRandomMaxOffset", "50"));
  2883. RAID_MINION_RESPAWN_TIMER = Integer.parseInt(gsSettings.getProperty("RaidMinionRespawnTime", "300000"));
  2884. @@ -1133,7 +1133,7 @@
  2885. RESPAWN_RESTORE_MP = Double.parseDouble(gsSettings.getProperty("RespawnRestoreMP", "70")) / 100;
  2886. MON_RESPAWN_RANDOM_ENABLED = Boolean.parseBoolean(gsSettings.getProperty("UseMonsterRndSpawn", "true"));
  2887. MON_RESPAWN_RANDOM_ZONE = Integer.parseInt(gsSettings.getProperty("RndSpawnZone", "300"));
  2888. -
  2889. +
  2890. CS_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("CastleTeleportFunctionFeeRatio", "604800000"));
  2891. CS_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("CastleTeleportFunctionFeeLvl1", "7000"));
  2892. CS_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("CastleTeleportFunctionFeeLvl2", "14000"));
  2893. @@ -1158,7 +1158,7 @@
  2894. CS_EXPREG2_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl2", "15000"));
  2895. CS_EXPREG3_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl3", "21000"));
  2896. CS_EXPREG4_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl4", "30000"));
  2897. -
  2898. +
  2899. CH_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("ClanHallTeleportFunctionFeeRatio", "604800000"));
  2900. CH_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallTeleportFunctionFeeLvl1", "7000"));
  2901. CH_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallTeleportFunctionFeeLvl2", "14000"));
  2902. @@ -1209,7 +1209,7 @@
  2903. CH_FRONT_FEE_RATIO = Long.parseLong(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeRatio", "259200000"));
  2904. CH_FRONT1_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeLvl1", "1300"));
  2905. CH_FRONT2_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeLvl2", "4000"));
  2906. -
  2907. +
  2908. FORT_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("FortTeleportFunctionFeeRatio", "604800000"));
  2909. FORT_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("FortTeleportFunctionFeeLvl1", "1000"));
  2910. FORT_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("FortTeleportFunctionFeeLvl2", "10000"));
  2911. @@ -1225,7 +1225,7 @@
  2912. FORT_EXPREG_FEE_RATIO = Long.parseLong(gsSettings.getProperty("FortExpRegenerationFunctionFeeRatio", "86400000"));
  2913. FORT_EXPREG1_FEE = Integer.parseInt(gsSettings.getProperty("FortExpRegenerationFeeLvl1", "9000"));
  2914. FORT_EXPREG2_FEE = Integer.parseInt(gsSettings.getProperty("FortExpRegenerationFeeLvl2", "10000"));
  2915. -
  2916. +
  2917. /** Class Master */
  2918. ALLOW_CLASS_MASTERS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMasters", "False"));
  2919. ALLOW_CLASS_MASTERS_FIRST_CLASS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMastersFirstClass", "True"));
  2920. @@ -1235,7 +1235,7 @@
  2921. CLASS_MASTER_STRIDER_UPDATE = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMastersStriderUpdate", "False"));
  2922. ALLOW_REMOTE_CLASS_MASTERS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowRemoteClassMasters", "False"));
  2923. SPAWN_CLASS_MASTER = Boolean.parseBoolean(gsSettings.getProperty("SpawnClassMaster", "false"));
  2924. -
  2925. +
  2926. }
  2927. catch (Exception e)
  2928. {
  2929. @@ -1243,7 +1243,7 @@
  2930. throw new Error("Failed to Load " + GAMESERVER_FILE + " File.");
  2931. }
  2932. }
  2933. -
  2934. +
  2935. public static final String OPTIONS_FILE = "./config/main/options.properties";
  2936. public static boolean AUTODELETE_INVALID_QUEST_DATA;
  2937. public static boolean LOG_ITEMS;
  2938. @@ -1268,7 +1268,7 @@
  2939. public static int Z_DENSITY;
  2940. public static PathFindingMode PATHFIND_MODE;
  2941. public static String GEOENGINE;
  2942. -
  2943. +
  2944. public static enum CorrectSpawnsZ
  2945. {
  2946. TOWN,
  2947. @@ -1276,9 +1276,9 @@
  2948. ALL,
  2949. NONE
  2950. }
  2951. -
  2952. +
  2953. public static CorrectSpawnsZ GEO_CORRECT_Z;
  2954. -
  2955. +
  2956. public static boolean ALLOW_CURSED_WEAPONS;
  2957. public static boolean ALLOW_WEAR;
  2958. public static boolean ALLOW_LOTTERY;
  2959. @@ -1287,7 +1287,7 @@
  2960. public static boolean ALLOW_GUARDS;
  2961. public static boolean ALLOW_FISHING;
  2962. public static boolean ALLOW_NPC_WALKERS;
  2963. -
  2964. +
  2965. public static int PLAYER_SPAWN_PROTECTION;
  2966. public static int PLAYER_FAKEDEATH_UP_PROTECTION;
  2967. public static int UNSTUCK_INTERVAL;
  2968. @@ -1299,11 +1299,11 @@
  2969. public static FastList<String> LIST_MACRO_RESTRICTED_WORDS = new FastList<>();
  2970. public static boolean CONSUME_SPIRIT_SOUL_SHOTS;
  2971. public static boolean RESET_TO_BASE = true;
  2972. -
  2973. +
  2974. public static boolean ENABLE_RESTART;
  2975. public static String RESTART_TIME;
  2976. public static String RESTART_WARN_TIME;
  2977. -
  2978. +
  2979. public static int INVENTORY_MAXIMUM_NO_DWARF;
  2980. public static int INVENTORY_MAXIMUM_DWARF;
  2981. public static int INVENTORY_MAXIMUM_GM;
  2982. @@ -1316,7 +1316,7 @@
  2983. public static boolean AUTO_LOOT_ADENA;
  2984. public static boolean DESTROY_PLAYER_INVENTORY_DROP;
  2985. public static boolean ALLOW_DISCARDITEM;
  2986. -
  2987. +
  2988. public static float KARMA_RATE;
  2989. public static boolean CURSED_WEAPON_NPC_INTERACT;
  2990. public static int KARMA_MIN_KARMA;
  2991. @@ -1342,7 +1342,7 @@
  2992. public static boolean MULTIPLE_ITEM_DROP;
  2993. public static boolean PRECISE_DROP_CALCULATION;
  2994. public static boolean DEEPBLUE_DROP_RULES;
  2995. -
  2996. +
  2997. /** Community board */
  2998. public static String COMMUNITY_TYPE;
  2999. public static String BBS_DEFAULT;
  3000. @@ -1363,7 +1363,7 @@
  3001. public static boolean SHOW_CLAN_LEADER;
  3002. public static int SHOW_CLAN_LEADER_CLAN_LEVEL;
  3003. public static boolean MAIL_STORE_DELETED_LETTERS;
  3004. -
  3005. +
  3006. public static int MIN_CLAN_LEVEL_FOR_USE_AUCTION;
  3007. public static int ALT_CLAN_MEMBERS_FOR_WAR;
  3008. public static int ALT_CLAN_JOIN_DAYS;
  3009. @@ -1382,7 +1382,7 @@
  3010. public static boolean REMOVE_CASTLE_CIRCLETS;
  3011. public static int ALT_REPUTATION_SCORE_PER_KILL;
  3012. public static String ALT_REPUTATION_SCORE_PER_KILL_SM;
  3013. -
  3014. +
  3015. public static double PARTY_XP_CUTOFF_PERCENT;
  3016. public static int ALT_PARTY_RANGE;
  3017. public static int ALT_PARTY_RANGE2;
  3018. @@ -1390,13 +1390,13 @@
  3019. public static int PARTY_XP_CUTOFF_LEVEL;
  3020. public static boolean NO_PARTY_LEVEL_LIMIT;
  3021. public static String PARTY_XP_CUTOFF_METHOD;
  3022. -
  3023. +
  3024. public static int MAX_PETITIONS_PER_PLAYER;
  3025. public static int MAX_PETITIONS_PENDING;
  3026. public static boolean PETITIONING_ALLOWED;
  3027. public static boolean PETITION_NEED_GM_ONLINE;
  3028. public static boolean SEND_PAGE_ON_PETTITON;
  3029. -
  3030. +
  3031. public static enum ChatMode
  3032. {
  3033. GLOBAL,
  3034. @@ -1404,7 +1404,7 @@
  3035. GM,
  3036. OFF
  3037. }
  3038. -
  3039. +
  3040. public static List<Pattern> FILTER_LIST = new ArrayList<>();
  3041. public static ChatMode DEFAULT_GLOBAL_CHAT;
  3042. public static ChatMode DEFAULT_TRADE_CHAT;
  3043. @@ -1420,13 +1420,13 @@
  3044. public static int HERO_CHAT_TIME;
  3045. public static int SHOUT_CHAT_LEVEL;
  3046. public static int TRADE_CHAT_LEVEL;
  3047. -
  3048. +
  3049. public static void loadOptionsConfig()
  3050. {
  3051. try
  3052. {
  3053. Properties optionsSettings = new L2Properties("./" + OPTIONS_FILE);
  3054. -
  3055. +
  3056. RESTORE_PLAYER_INSTANCE = Boolean.parseBoolean(optionsSettings.getProperty("RestorePlayerInstance", "false"));
  3057. ALLOW_SUMMON_TO_INSTANCE = Boolean.parseBoolean(optionsSettings.getProperty("AllowSummonToInstance", "true"));
  3058. CHAR_STORE_INTERVAL = Integer.parseInt(optionsSettings.getProperty("CharacterDataStoreInterval", "15"));
  3059. @@ -1434,7 +1434,7 @@
  3060. LAZY_ITEMS_UPDATE = Boolean.parseBoolean(optionsSettings.getProperty("LazyItemsUpdate", "false"));
  3061. COORD_SYNCHRONIZE = Integer.parseInt(optionsSettings.getProperty("CoordSynchronize", "-1"));
  3062. SERVER_GMONLY = Boolean.parseBoolean(optionsSettings.getProperty("ServerGMOnly", "false"));
  3063. -
  3064. +
  3065. LOG_ITEMS = Boolean.parseBoolean(optionsSettings.getProperty("LogItems", "false"));
  3066. IGNORE_LOG = optionsSettings.getProperty("IgnoreLogItems", "CONSUME").toUpperCase();
  3067. AUTODELETE_INVALID_QUEST_DATA = Boolean.parseBoolean(optionsSettings.getProperty("AutoDeleteInvalidQuestData", "false"));
  3068. @@ -1458,7 +1458,7 @@
  3069. GEOENGINE = optionsSettings.getProperty("GeoEngine", "dream");
  3070. PATH_LENGTH = Integer.parseInt(optionsSettings.getProperty("MaxPathLength", "3500"));
  3071. Z_DENSITY = Integer.parseInt(optionsSettings.getProperty("ZAxisDensity", "12"));
  3072. -
  3073. +
  3074. ALLOW_NPC_WALKERS = Boolean.parseBoolean(optionsSettings.getProperty("AllowNpcWalkers", "false"));
  3075. ALLOW_GUARDS = Boolean.parseBoolean(optionsSettings.getProperty("AllowGuards", "false"));
  3076. ALLOW_CURSED_WEAPONS = Boolean.parseBoolean(optionsSettings.getProperty("AllowCursedWeapons", "false"));
  3077. @@ -1467,21 +1467,21 @@
  3078. ALLOW_WATER = Boolean.parseBoolean(optionsSettings.getProperty("AllowWater", "true"));
  3079. ALLOW_FISHING = Boolean.parseBoolean(optionsSettings.getProperty("AllowFishing", "true"));
  3080. ALLOW_BOAT = Boolean.parseBoolean(optionsSettings.getProperty("AllowBoat", "false"));
  3081. -
  3082. +
  3083. PET_RENT_NPC = optionsSettings.getProperty("ListPetRentNpc", "30827");
  3084. LIST_PET_RENT_NPC = new FastList<>();
  3085. -
  3086. +
  3087. for (String id : PET_RENT_NPC.split(","))
  3088. {
  3089. LIST_PET_RENT_NPC.add(Integer.parseInt(id));
  3090. }
  3091. -
  3092. +
  3093. UNSTUCK_INTERVAL = Integer.parseInt(optionsSettings.getProperty("PlayerUnstuckInterval", "350"));
  3094. PLAYER_SPAWN_PROTECTION = Integer.parseInt(optionsSettings.getProperty("PlayerSpawnProtection", "5"));
  3095. PLAYER_FAKEDEATH_UP_PROTECTION = Integer.parseInt(optionsSettings.getProperty("PlayerFakeDeathUpProtection", "0"));
  3096. DEATH_PENALTY_CHANCE = Integer.parseInt(optionsSettings.getProperty("DeathPenaltyChance", "20"));
  3097. ALLOW_KEYBOARD_MOVEMENT = Boolean.parseBoolean(optionsSettings.getProperty("AllowKeyboardMovement", "true"));
  3098. -
  3099. +
  3100. CHECK_PLAYER_MACRO = Boolean.parseBoolean(optionsSettings.getProperty("CheckPlayerMacro", "true"));
  3101. LIST_MACRO_RESTRICTED_WORDS = new FastList<>();
  3102. for (String command : optionsSettings.getProperty("MacroRestrictedCommandList", "exit").split(","))
  3103. @@ -1488,14 +1488,14 @@
  3104. {
  3105. LIST_MACRO_RESTRICTED_WORDS.add(command);
  3106. }
  3107. -
  3108. +
  3109. CONSUME_SPIRIT_SOUL_SHOTS = Boolean.parseBoolean(optionsSettings.getProperty("ConsumeSSShot", "true"));
  3110. RESET_TO_BASE = Boolean.parseBoolean(optionsSettings.getProperty("ResetToBaseCalssIfFail", "true"));
  3111. -
  3112. +
  3113. ENABLE_RESTART = Boolean.parseBoolean(optionsSettings.getProperty("EnableRestart", "false"));
  3114. RESTART_TIME = optionsSettings.getProperty("RestartTime", "06:20:00");
  3115. RESTART_WARN_TIME = optionsSettings.getProperty("RestartWarnTime", "600");
  3116. -
  3117. +
  3118. AUTO_LOOT_ADENA = optionsSettings.getProperty("AutoLootAdena").trim().equalsIgnoreCase("true");
  3119. ALLOW_DISCARDITEM = Boolean.parseBoolean(optionsSettings.getProperty("AllowDiscardItem", "true"));
  3120. DESTROY_PLAYER_INVENTORY_DROP = Boolean.parseBoolean(optionsSettings.getProperty("DestroyPlayerInventoryDrop", "false"));
  3121. @@ -1528,23 +1528,23 @@
  3122. ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(optionsSettings.getProperty("AltKarmaPlayerCanUseWareHouse", "true"));
  3123. KARMA_NON_DROPPABLE_PET_ITEMS = optionsSettings.getProperty("ListOfPetItems", "2375,3500,3501,3502,4422,4423,4424,4425,6648,6649,6650,9882");
  3124. KARMA_NON_DROPPABLE_ITEMS = optionsSettings.getProperty("ListOfNonDroppableItems", "57,1147,425,1146,461,10,2368,7,6,2370,2369,6842,6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,8181,5575,7694,9388,9389,9390");
  3125. -
  3126. +
  3127. KARMA_LIST_NONDROPPABLE_PET_ITEMS = new FastList<>();
  3128. for (String id : KARMA_NON_DROPPABLE_PET_ITEMS.trim().split(","))
  3129. {
  3130. KARMA_LIST_NONDROPPABLE_PET_ITEMS.add(Integer.parseInt(id.trim()));
  3131. }
  3132. -
  3133. +
  3134. KARMA_LIST_NONDROPPABLE_ITEMS = new FastList<>();
  3135. for (String id : KARMA_NON_DROPPABLE_ITEMS.trim().split(","))
  3136. {
  3137. KARMA_LIST_NONDROPPABLE_ITEMS.add(Integer.parseInt(id.trim()));
  3138. }
  3139. -
  3140. +
  3141. MULTIPLE_ITEM_DROP = Boolean.parseBoolean(optionsSettings.getProperty("MultipleItemDrop", "true"));
  3142. DEEPBLUE_DROP_RULES = Boolean.parseBoolean(optionsSettings.getProperty("UseDeepBlueDropRules", "true"));
  3143. PRECISE_DROP_CALCULATION = Boolean.parseBoolean(optionsSettings.getProperty("PreciseDropCalculation", "true"));
  3144. -
  3145. +
  3146. SHOW_CLAN_LEADER = Boolean.parseBoolean(optionsSettings.getProperty("ShowClanLeader", "false"));
  3147. SHOW_CLAN_LEADER_CLAN_LEVEL = Integer.parseInt(optionsSettings.getProperty("ShowClanLeaderAtClanLevel", "3"));
  3148. SHOW_LEGEND = Boolean.parseBoolean(optionsSettings.getProperty("ShowLegend", "false"));
  3149. @@ -1589,7 +1589,7 @@
  3150. MEMBER_FOR_LEVEL_EIGHT = Integer.parseInt(optionsSettings.getProperty("MemberForLevel8", "120"));
  3151. ALT_REPUTATION_SCORE_PER_KILL = Integer.parseInt(optionsSettings.getProperty("ReputationScorePerKill", "1"));
  3152. ALT_REPUTATION_SCORE_PER_KILL_SM = optionsSettings.getProperty("ReputationScorePerKill", "1");
  3153. -
  3154. +
  3155. PARTY_XP_CUTOFF_METHOD = optionsSettings.getProperty("PartyXpCutoffMethod", "percentage");
  3156. PARTY_XP_CUTOFF_PERCENT = Double.parseDouble(optionsSettings.getProperty("PartyXpCutoffPercent", "3."));
  3157. PARTY_XP_CUTOFF_LEVEL = Integer.parseInt(optionsSettings.getProperty("PartyXpCutoffLevel", "30"));
  3158. @@ -1597,13 +1597,13 @@
  3159. ALT_PARTY_RANGE2 = Integer.parseInt(optionsSettings.getProperty("AltPartyRange2", "1400"));
  3160. MAX_PARTY_LEVEL_DIFFERENCE = Integer.parseInt(optionsSettings.getProperty("PartyMaxLevelDifference", "0"));
  3161. NO_PARTY_LEVEL_LIMIT = Boolean.parseBoolean(optionsSettings.getProperty("PartLevelLimit", "true"));
  3162. -
  3163. +
  3164. SEND_PAGE_ON_PETTITON = Boolean.parseBoolean(optionsSettings.getProperty("SendPageOnPetition", "false"));
  3165. PETITIONING_ALLOWED = Boolean.parseBoolean(optionsSettings.getProperty("PetitioningAllowed", "true"));
  3166. MAX_PETITIONS_PER_PLAYER = Integer.parseInt(optionsSettings.getProperty("MaxPetitionsPerPlayer", "5"));
  3167. MAX_PETITIONS_PENDING = Integer.parseInt(optionsSettings.getProperty("MaxPetitionsPending", "25"));
  3168. PETITION_NEED_GM_ONLINE = Boolean.parseBoolean(optionsSettings.getProperty("PetitioningNeedGmOnline", "true"));
  3169. -
  3170. +
  3171. DEFAULT_GLOBAL_CHAT = ChatMode.valueOf(optionsSettings.getProperty("GlobalChat", "REGION").toUpperCase());
  3172. DEFAULT_TRADE_CHAT = ChatMode.valueOf(optionsSettings.getProperty("TradeChat", "REGION").toUpperCase());
  3173. REGION_CHAT_ALSO_BLOCKED = Boolean.parseBoolean(optionsSettings.getProperty("RegionChatAlsoBlocked", "false"));
  3174. @@ -1629,7 +1629,7 @@
  3175. throw new Error("Failed to Load " + OPTIONS_FILE + " File.");
  3176. }
  3177. }
  3178. -
  3179. +
  3180. public static final String MAIN_EVENTS = "./config/main/fun_events.properties";
  3181. public static boolean ALT_GAME_CASTLE_DAWN;
  3182. public static boolean ALT_GAME_CASTLE_DUSK;
  3183. @@ -1655,7 +1655,7 @@
  3184. public static double ALT_SIEGE_DUSK_GATES_PDEF_MULT;
  3185. public static double ALT_SIEGE_DAWN_GATES_MDEF_MULT;
  3186. public static double ALT_SIEGE_DUSK_GATES_MDEF_MULT;
  3187. -
  3188. +
  3189. public static boolean PC_CAFFE_ENABLED;
  3190. public static int PC_CAFFE_MIN_LEVEL;
  3191. public static int PC_CAFFE_MAX_LEVEL;
  3192. @@ -1662,7 +1662,7 @@
  3193. public static int PC_CAFFE_MIN_SCORE;
  3194. public static int PC_CAFFE_MAX_SCORE;
  3195. public static int PC_CAFFE_INTERVAL;
  3196. -
  3197. +
  3198. public static int ALT_OLY_START_TIME;
  3199. public static int ALT_OLY_MIN;
  3200. public static int ALT_OLY_CPERIOD;
  3201. @@ -1693,7 +1693,7 @@
  3202. public static String ALT_OLY_DURATION_TYPES;
  3203. public static int ALT_OLY_DURATION;
  3204. public static boolean ALT_OLY_INCLUDE_SUMMON_DAMAGE;
  3205. -
  3206. +
  3207. public static int ALT_LOTTERY_PRIZE;
  3208. public static int ALT_LOTTERY_TICKET_PRICE;
  3209. public static int ALT_LOTTERY_2_AND_1_NUMBER_PRIZE;
  3210. @@ -1700,9 +1700,9 @@
  3211. public static float ALT_LOTTERY_5_NUMBER_RATE;
  3212. public static float ALT_LOTTERY_4_NUMBER_RATE;
  3213. public static float ALT_LOTTERY_3_NUMBER_RATE;
  3214. -
  3215. +
  3216. public static int CHAMPION_FREQUENCY;
  3217. -
  3218. +
  3219. public static int CHAMPION_HP;
  3220. public static boolean CHAMPION_PASSIVE;
  3221. public static String CHAMPION_TITLE;
  3222. @@ -1721,7 +1721,7 @@
  3223. public static boolean CHAMPION_BOSS;
  3224. public static boolean CHAMPION_MINIONS;
  3225. public static boolean CHAMPION_ENABLE;
  3226. -
  3227. +
  3228. public static boolean STAR_DROP;
  3229. public static boolean STAR_SPAWN;
  3230. public static int STAR_CHANCE1;
  3231. @@ -1744,7 +1744,7 @@
  3232. public static String L2DAY_REWARD;
  3233. public static String L2DAY_ACCESSORIE;
  3234. public static String L2DAY_SCROLL;
  3235. -
  3236. +
  3237. public static int BIGSQUASH_CHANCE;
  3238. public static boolean BIGSQUASH_SPAWN;
  3239. public static boolean BIGSQUASH_DROP;
  3240. @@ -1757,7 +1757,7 @@
  3241. public static int FISHERMAN_INTERVAL;
  3242. public static int FISHERMAN_REWARD_ID;
  3243. public static int FISHERMAN_REWARD_COUNT;
  3244. -
  3245. +
  3246. public static int WEDDING_PRICE;
  3247. public static int WEDDING_TELEPORT_PRICE;
  3248. public static int WEDDING_TELEPORT_INTERVAL;
  3249. @@ -1776,13 +1776,13 @@
  3250. public static int WEDDING_NORMAL;
  3251. public static int WEDDING_GAY;
  3252. public static int WEDDING_LESBI;
  3253. -
  3254. +
  3255. public static void loadMainEventsConfig()
  3256. {
  3257. try
  3258. {
  3259. Properties p = new L2Properties("./" + MAIN_EVENTS);
  3260. -
  3261. +
  3262. ALT_DAWN_JOIN_COST = Integer.parseInt(p.getProperty("AltJoinDawnCost", "50000"));
  3263. ALT_GAME_CASTLE_DAWN = Boolean.parseBoolean(p.getProperty("AltCastleForDawn", "true"));
  3264. ALT_GAME_CASTLE_DUSK = Boolean.parseBoolean(p.getProperty("AltCastleForDusk", "true"));
  3265. @@ -1807,7 +1807,7 @@
  3266. ALT_SIEGE_DUSK_GATES_PDEF_MULT = Double.parseDouble(p.getProperty("AltDuskGatesPdefMult", "0.8"));
  3267. ALT_SIEGE_DAWN_GATES_MDEF_MULT = Double.parseDouble(p.getProperty("AltDawnGatesMdefMult", "1.1"));
  3268. ALT_SIEGE_DUSK_GATES_MDEF_MULT = Double.parseDouble(p.getProperty("AltDuskGatesMdefMult", "0.8"));
  3269. -
  3270. +
  3271. PC_CAFFE_ENABLED = Boolean.parseBoolean(p.getProperty("PCCaffeEnabled", "true"));
  3272. PC_CAFFE_INTERVAL = Integer.parseInt(p.getProperty("PCCafeInterval", "10"));
  3273. PC_CAFFE_MIN_LEVEL = Integer.parseInt(p.getProperty("PCCafeMinLevel", "20"));
  3274. @@ -1814,7 +1814,7 @@
  3275. PC_CAFFE_MAX_LEVEL = Integer.parseInt(p.getProperty("PCCafeMaxLevel", "85"));
  3276. PC_CAFFE_MIN_SCORE = Integer.parseInt(p.getProperty("PCCafeMinScore", "0"));
  3277. PC_CAFFE_MAX_SCORE = Integer.parseInt(p.getProperty("PCCafeMaxScore", "10"));
  3278. -
  3279. +
  3280. ALT_OLY_SAME_IP = Boolean.parseBoolean(p.getProperty("AltOlySameIp", "true"));
  3281. ALT_OLY_START_TIME = Integer.parseInt(p.getProperty("AltOlyStartTime", "18"));
  3282. ALT_OLY_MIN = Integer.parseInt(p.getProperty("AltOlyMin", "00"));
  3283. @@ -1853,7 +1853,7 @@
  3284. ALT_OLY_DURATION = Integer.parseInt(p.getProperty("OlympiadDuration", "1"));
  3285. ALT_OLY_REMOVE_POINTS_ON_TIE = Boolean.parseBoolean(p.getProperty("OlympiadRemovePointsOnTie", "true"));
  3286. ALT_OLY_INCLUDE_SUMMON_DAMAGE = Boolean.parseBoolean(p.getProperty("IncludeSummonDamage", "true"));
  3287. -
  3288. +
  3289. ALT_LOTTERY_PRIZE = Integer.parseInt(p.getProperty("AltLotteryPrize", "50000"));
  3290. ALT_LOTTERY_TICKET_PRICE = Integer.parseInt(p.getProperty("AltLotteryTicketPrice", "2000"));
  3291. ALT_LOTTERY_5_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery5NumberRate", "0.6"));
  3292. @@ -1860,7 +1860,7 @@
  3293. ALT_LOTTERY_4_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery4NumberRate", "0.2"));
  3294. ALT_LOTTERY_3_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery3NumberRate", "0.2"));
  3295. ALT_LOTTERY_2_AND_1_NUMBER_PRIZE = Integer.parseInt(p.getProperty("AltLottery2and1NumberPrize", "200"));
  3296. -
  3297. +
  3298. CHAMPION_PASSIVE = Boolean.parseBoolean(p.getProperty("ChampionPassive", "false"));
  3299. CHAMPION_TITLE = p.getProperty("ChampionTitle", "Champion").trim();
  3300. CHAMPION_ENABLE = Boolean.parseBoolean(p.getProperty("ChampionEnable", "false"));
  3301. @@ -1880,7 +1880,7 @@
  3302. CHAMPION_SPCL_ITEM = Integer.parseInt(p.getProperty("ChampionSpecialItemID", "6393"));
  3303. CHAMPION_SPCL_QTY = Integer.parseInt(p.getProperty("ChampionSpecialItemAmount", "1"));
  3304. CHAMPION_SPCL_LVL_DIFF = Integer.parseInt(p.getProperty("ChampionSpecialItemLevelDiff", "0"));
  3305. -
  3306. +
  3307. MEDAL_DROP = Boolean.parseBoolean(p.getProperty("MedalAddDrop", "false"));
  3308. MEDAL_SPAWN = Boolean.parseBoolean(p.getProperty("MedalSpawnMeneger", "false"));
  3309. MEDAL_CHANCE1 = Integer.parseInt(p.getProperty("Medal1DropChance", "10"));
  3310. @@ -1915,7 +1915,7 @@
  3311. FISHERMAN_INTERVAL = Integer.parseInt(p.getProperty("FishermanInterval", "60"));
  3312. FISHERMAN_REWARD_ID = Integer.parseInt(p.getProperty("FishermanRewardId", "57"));
  3313. FISHERMAN_REWARD_COUNT = Integer.parseInt(p.getProperty("FishermanRewardCount", "100"));
  3314. -
  3315. +
  3316. WEDDING_GIVE_CUPID_BOW = Boolean.parseBoolean(p.getProperty("WeddingGiveBow", "true"));
  3317. WEDDING_HONEYMOON_PORT = Boolean.parseBoolean(p.getProperty("WeddingHoneyMoon", "false"));
  3318. ALLOW_WEDDING = Boolean.parseBoolean(p.getProperty("AllowWedding", "false"));
  3319. @@ -1941,7 +1941,7 @@
  3320. throw new Error("Failed to Load " + MAIN_EVENTS + " File.");
  3321. }
  3322. }
  3323. -
  3324. +
  3325. public static final String SIEGE_CONFIGURATION_FILE = "./config/main/entity.properties";
  3326. public static int SIEGE_MAX_ATTACKER;
  3327. public static int SIEGE_MAX_DEFENDER;
  3328. @@ -1963,7 +1963,7 @@
  3329. public static int MAX_GUARD_COUNT_FOR_CASTLE;
  3330. public static int CASTLE_REWARD_ID;
  3331. public static int CASTLE_REWARD_COUNT;
  3332. -
  3333. +
  3334. public static int FORTSIEGE_MAX_ATTACKER;
  3335. public static int FORTSIEGE_FLAG_MAX_COUNT;
  3336. public static int FORTSIEGE_CLAN_MIN_LEVEL;
  3337. @@ -1973,13 +1973,13 @@
  3338. public static int FORTSIEGE_COMBAT_FLAG_ID;
  3339. public static int FORTSIEGE_REWARD_ID;
  3340. public static int FORTSIEGE_REWARD_COUNT;
  3341. -
  3342. +
  3343. public static void loadSiegeConfig()
  3344. {
  3345. try
  3346. {
  3347. Properties siegeSettings = new L2Properties("./" + SIEGE_CONFIGURATION_FILE);
  3348. -
  3349. +
  3350. SIEGE_ONLY_REGISTERED = Boolean.parseBoolean(siegeSettings.getProperty("OnlyRegistered", "true"));
  3351. ALT_FLYING_WYVERN_IN_SIEGE = Boolean.parseBoolean(siegeSettings.getProperty("AltFlyingWyvernInSiege", "false"));
  3352. SPAWN_SIEGE_GUARD = Boolean.parseBoolean(siegeSettings.getProperty("SpawnSiegeGuard", "true"));
  3353. @@ -1992,7 +1992,7 @@
  3354. SIEGE_FLAG_MAX_COUNT = Integer.parseInt(siegeSettings.getProperty("MaxFlags", "1"));
  3355. SIEGE_CLAN_MIN_LEVEL = Integer.parseInt(siegeSettings.getProperty("SiegeClanMinLevel", "5"));
  3356. SIEGE_LENGTH_MINUTES = Integer.parseInt(siegeSettings.getProperty("SiegeLength", "120"));
  3357. -
  3358. +
  3359. CHANGE_SIEGE_TIME_IS_DISABLES = Boolean.parseBoolean(siegeSettings.getProperty("DisableChangeSiegeTime", "false"));
  3360. CORECT_SIEGE_DATE_BY_7S = Boolean.parseBoolean(siegeSettings.getProperty("CorrectDateBy7s", "true"));
  3361. CL_SET_SIEGE_TIME_LIST = new FastList<>();
  3362. @@ -2050,7 +2050,7 @@
  3363. MAX_GUARD_COUNT_FOR_CASTLE = Integer.parseInt(siegeSettings.getProperty("MaxGuardCount", "400"));
  3364. CASTLE_REWARD_ID = Integer.parseInt(siegeSettings.getProperty("RewardID", "0"));
  3365. CASTLE_REWARD_COUNT = Integer.parseInt(siegeSettings.getProperty("RewardCount", "0"));
  3366. -
  3367. +
  3368. FORTSIEGE_MAX_ATTACKER = Integer.parseInt(siegeSettings.getProperty("FortAttackerMaxClans", "500"));
  3369. FORTSIEGE_FLAG_MAX_COUNT = Integer.parseInt(siegeSettings.getProperty("FortMaxFlags", "1"));
  3370. FORTSIEGE_CLAN_MIN_LEVEL = Integer.parseInt(siegeSettings.getProperty("FortSiegeClanMinLevel", "4"));
  3371. @@ -2067,25 +2067,25 @@
  3372. throw new Error("Failed to Load " + SIEGE_CONFIGURATION_FILE + " File.");
  3373. }
  3374. }
  3375. -
  3376. +
  3377. public static final String CUSTOM_FILE = "./config/main/custom.properties";
  3378. -
  3379. +
  3380. public static boolean LOAD_AUTOANNOUNCE_AT_STARTUP;
  3381. -
  3382. +
  3383. public static int WEAR_DELAY;
  3384. public static int WEAR_PRICE;
  3385. -
  3386. +
  3387. public static boolean ALT_PLAYER_CAN_DROP_ADENA;
  3388. public static double ALT_WEIGHT_LIMIT;
  3389. public static boolean SHOW_HTML_WELCOME;
  3390. public static int MAX_SUBCLASS;
  3391. -
  3392. +
  3393. public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS;
  3394. public static boolean ALT_DISABLE_RAIDBOSS_PETRIFICATION;
  3395. public static int MAX_LEVEL_RAID_CURSE;
  3396. public static boolean ALT_RECOMMEND;
  3397. public static boolean ALT_BLACKSMITH_USE_RECIPES;
  3398. -
  3399. +
  3400. public static boolean SUBCLASS_WITH_ITEM_AND_NO_QUEST;
  3401. public static boolean SUBCLASS_WITH_CUSTOM_ITEM;
  3402. public static int SUBCLASS_WITH_CUSTOM_ITEM_ID;
  3403. @@ -2093,47 +2093,65 @@
  3404. public static byte SUBCLASS_INIT_LEVEL;
  3405. public static byte SUBCLASS_MAX_LEVEL_BYTE;
  3406. public static int SUBCLASS_MAX_LEVEL;
  3407. -
  3408. +
  3409. public static boolean ACUMULATIVE_SUBCLASS_SKILLS;
  3410. public static boolean LOAD_CUSTOM_TELEPORTS;
  3411. public static boolean LOAD_CUSTOM_MERCHANT_BUYLISTS;
  3412. public static int PET_TICKET_ID;
  3413. public static int SPECIAL_PET_TICKET_ID;
  3414. -
  3415. +
  3416. public static int PLAYER_RATE_DROP_ADENA;
  3417. public static boolean ALT_MANA_POTIONS;
  3418. public static int MANAHEAL_POWER;
  3419. public static boolean ALT_GAME_FREE_TELEPORT;
  3420. public static boolean FORCE_UPDATE_RAIDBOSS_ON_DB;
  3421. -
  3422. +
  3423. public static boolean ALLOW_NEW_CHAR_CUSTOM_POSITION;
  3424. public static int NEW_CHAR_POSITION_X;
  3425. public static int NEW_CHAR_POSITION_Y;
  3426. public static int NEW_CHAR_POSITION_Z;
  3427. -
  3428. +
  3429. public static boolean ENABLE_STARTUP_LVL;
  3430. public static int ADD_LVL_NEWBIE;
  3431. public static boolean LEVEL_ADD_LOAD;
  3432. public static int STARTING_AA;
  3433. public static int STARTING_ADENA;
  3434. -
  3435. +
  3436. public static boolean ALT_ENCHANT_HP_BONUS;
  3437. public static int AUCTION_ITEM_ID;
  3438. public static int RAID_MIN_MP_TO_CAST;
  3439. public static boolean EPIC_REQUIRE_QUEST;
  3440. -
  3441. +
  3442. public static boolean BANKING_ENABLED;
  3443. public static int BANKING_GOLDBAR_PRICE;
  3444. public static int BANKING_GOLDBAR_ID;
  3445. -
  3446. +
  3447. + public static int BUFF_ITEM;
  3448. + public static int BUFF_REMOVE;
  3449. + public static int BUFF_CP;
  3450. + public static int BUFF_MP;
  3451. + public static String BUFFER_RESTRICTION;
  3452. + public static int BUFFER_RESTORE_DELAY;
  3453. + public static boolean BUFFER_ENABLED;
  3454. + public static boolean BUFFER_ANIMATION;
  3455. + public static int BUFFER_REMOVE_ITEM_ID;
  3456. + public static int BUFFER_REMOVE_PRICE;
  3457. + public static int BUFFER_CP_ITEM_ID;
  3458. + public static int BUFFER_CP_PRICE;
  3459. + public static int BUFFER_HP_ITEM_ID;
  3460. + public static int BUFFER_HP_PRICE;
  3461. + public static int BUFFER_MP_ITEM_ID;
  3462. + public static int BUFFER_MP_PRICE;
  3463. + public static Map<Integer, Integer> LIST_BUFFER_BUFF_ALLOW;
  3464. +
  3465. public static void loadCustomConfig()
  3466. {
  3467. try
  3468. {
  3469. Properties customSettings = new L2Properties("./" + CUSTOM_FILE);
  3470. -
  3471. +
  3472. AUCTION_ITEM_ID = Integer.parseInt(customSettings.getProperty("AuctionBidItemId", "57"));
  3473. -
  3474. +
  3475. PET_TICKET_ID = Integer.parseInt(customSettings.getProperty("PetTicketID", "13273"));
  3476. SPECIAL_PET_TICKET_ID = Integer.parseInt(customSettings.getProperty("SpecialPetTicketID", "0"));
  3477. LOAD_CUSTOM_TELEPORTS = Boolean.parseBoolean(customSettings.getProperty("LoadCustomTeleports", "false"));
  3478. @@ -2142,7 +2160,7 @@
  3479. SUBCLASS_WITH_CUSTOM_ITEM = Boolean.parseBoolean(customSettings.getProperty("SubclassWithCustomItem", "false"));
  3480. SUBCLASS_WITH_CUSTOM_ITEM_ID = Integer.parseInt(customSettings.getProperty("SubclassWithCustomItemID", "4037"));
  3481. SUBCLASS_WITH_CUSTOM_ITEM_COUNT = Integer.parseInt(customSettings.getProperty("SubclassWithCustomItemCount", "1"));
  3482. -
  3483. +
  3484. SUBCLASS_MAX_LEVEL_BYTE = Byte.parseByte(customSettings.getProperty("SubclassMaxLevel", "80"));
  3485. SUBCLASS_MAX_LEVEL = Integer.parseInt(customSettings.getProperty("SubclassMaxLevel", "80"));
  3486. SUBCLASS_INIT_LEVEL = Byte.parseByte(customSettings.getProperty("SublcassInitLevel", "40"));
  3487. @@ -2186,10 +2204,55 @@
  3488. BANKING_ENABLED = Boolean.parseBoolean(customSettings.getProperty("Enabled", "true"));
  3489. BANKING_GOLDBAR_PRICE = Integer.parseInt(customSettings.getProperty("GoldBarPrice", "250000000"));
  3490. BANKING_GOLDBAR_ID = Integer.parseInt(customSettings.getProperty("GoldBarId", "3470"));
  3491. +
  3492. + BUFFER_ENABLED = Boolean.parseBoolean(customSettings.getProperty("Enabled", "true"));
  3493. + BUFF_ITEM = Integer.parseInt(customSettings.getProperty("BufferPriceItem", "57"));
  3494. + BUFF_REMOVE = Integer.parseInt(customSettings.getProperty("BufferRemoveBuffPrice", "100"));
  3495. + BUFF_CP = Integer.parseInt(customSettings.getProperty("BufferRestoreCPHPPrice", "100"));
  3496. + BUFF_MP = Integer.parseInt(customSettings.getProperty("BufferRestoreMPPrice", "100"));
  3497. + BUFFER_RESTRICTION = customSettings.getProperty("BufferRestrictedWhen", "");
  3498. + BUFFER_RESTORE_DELAY = Integer.parseInt(customSettings.getProperty("BufferRestoreDelay", "0"));
  3499. + BUFFER_ANIMATION = Boolean.parseBoolean(customSettings.getProperty("BufferAnimation", "false"));
  3500. + BUFFER_REMOVE_ITEM_ID = Integer.parseInt(customSettings.getProperty("RemoveEffectItemId", "57"));
  3501. + BUFFER_REMOVE_PRICE = Integer.parseInt(customSettings.getProperty("RemoveEffectPrice", "100"));
  3502. + BUFFER_HP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
  3503. + BUFFER_HP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
  3504. + BUFFER_MP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
  3505. + BUFFER_MP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
  3506. + BUFFER_CP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
  3507. + BUFFER_CP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
  3508.  
  3509. + if (BUFFER_ENABLED)
  3510. + {
  3511. + String[] BuffAllowed = customSettings.getProperty("AllowEffect", "").split(";");
  3512. + LIST_BUFFER_BUFF_ALLOW = new FastMap<>(BuffAllowed.length);
  3513. + for (String skill : BuffAllowed)
  3514. + {
  3515. + String[] skillSplit = skill.split(",");
  3516. + if (skillSplit.length != 2)
  3517. + {
  3518. + System.out.println("[Buffer]: invalid config property \"" + skill + "\"");
  3519. + }
  3520. + else
  3521. + {
  3522. + try
  3523. + {
  3524. + LIST_BUFFER_BUFF_ALLOW.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
  3525. + }
  3526. + catch (NumberFormatException nfe)
  3527. + {
  3528. + if (!skill.equals(""))
  3529. + {
  3530. + System.out.println("[Buffer]: invalid config property \"" + skillSplit[0] + "\"" + skillSplit[1]);
  3531. + }
  3532. + }
  3533. + }
  3534. + }
  3535. + }
  3536. +
  3537. L2Properties p = new L2Properties("./config/main/bosses.properties");
  3538. EPIC_REQUIRE_QUEST = Boolean.parseBoolean(p.getProperty("QuestRequired", "true"));
  3539. -
  3540. +
  3541. }
  3542. catch (Exception e)
  3543. {
  3544. @@ -2197,17 +2260,17 @@
  3545. throw new Error("Failed to Load " + CUSTOM_FILE + " File.");
  3546. }
  3547. }
  3548. -
  3549. +
  3550. public static final String HEXID_FILE = "./config/hexid.txt";
  3551. public static byte[] HEX_ID;
  3552. public static int SERVER_ID;
  3553. -
  3554. +
  3555. public static void loadHexidConfig()
  3556. {
  3557. try
  3558. {
  3559. Properties hexidSettings = new L2Properties("./" + HEXID_FILE);
  3560. -
  3561. +
  3562. SERVER_ID = Integer.parseInt(hexidSettings.getProperty("ServerID"));
  3563. HEX_ID = new BigInteger(hexidSettings.getProperty("HexID"), 16).toByteArray();
  3564. }
  3565. @@ -2217,9 +2280,9 @@
  3566. System.exit(1);
  3567. }
  3568. }
  3569. -
  3570. +
  3571. public static final String NETWORK_FILE = "./config/network.properties";
  3572. -
  3573. +
  3574. public static String SUBNETWORKS;
  3575. public static int GAME_SERVER_LOGIN_PORT;
  3576. public static int PORT_GAME;
  3577. @@ -2235,18 +2298,18 @@
  3578. public static String DATABASE_URL;
  3579. public static String DATABASE_LOGIN;
  3580. public static String DATABASE_PASSWORD;
  3581. -
  3582. +
  3583. public static boolean TELNET_ENABLED;
  3584. public static int TELNET_PORT;
  3585. public static int TELNET_MAXIMUM_USERS;
  3586. public static String TELNET_PASSWORD;
  3587. -
  3588. +
  3589. public static void loadNetworkConfig()
  3590. {
  3591. try
  3592. {
  3593. Properties networkSettings = new L2Properties("./" + NETWORK_FILE);
  3594. -
  3595. +
  3596. EXTERNAL_HOSTNAME = networkSettings.getProperty("ExternalHostname", "*");
  3597. INTERNAL_NETWORKS = networkSettings.getProperty("InternalNetworks", "");
  3598. INTERNAL_HOSTNAME = networkSettings.getProperty("InternalHostname", "*");
  3599. @@ -2274,17 +2337,17 @@
  3600. LineNumberReader lnr = null;
  3601. try
  3602. {
  3603. -
  3604. +
  3605. String subnet = null;
  3606. String line = null;
  3607. SUBNETWORKS = "";
  3608. -
  3609. +
  3610. lnr = new LineNumberReader(new InputStreamReader(new FileInputStream(new File(NETWORK_FILE))));
  3611. -
  3612. +
  3613. while ((line = lnr.readLine()) != null)
  3614. {
  3615. line = line.trim().toLowerCase().replace(" ", "");
  3616. -
  3617. +
  3618. if (line.startsWith("subnet"))
  3619. {
  3620. if ((SUBNETWORKS.length() > 0) && !SUBNETWORKS.endsWith(";"))
  3621. @@ -2295,7 +2358,7 @@
  3622. SUBNETWORKS += subnet;
  3623. }
  3624. }
  3625. -
  3626. +
  3627. SUBNETWORKS = SUBNETWORKS.toLowerCase().replaceAll("internal", Config.INTERNAL_HOSTNAME);
  3628. SUBNETWORKS = SUBNETWORKS.toLowerCase().replaceAll("external", Config.EXTERNAL_HOSTNAME);
  3629. }
  3630. @@ -2318,7 +2381,7 @@
  3631. }
  3632. }
  3633. }
  3634. -
  3635. +
  3636. public static boolean ASSERT = false;
  3637. public static boolean DEVELOPER = false;
  3638. public static boolean DEBUG = false;
  3639. @@ -2329,9 +2392,9 @@
  3640. public static int DEADLOCKCHECK_INTERVAL = 10000;
  3641. public static boolean SEND_PACKET_LOG = false;
  3642. public static boolean RECIVE_PACKET_LOG = false;
  3643. -
  3644. +
  3645. public static final String GM_ACCESS_FILE = "./config/admin/access.properties";
  3646. -
  3647. +
  3648. public static boolean GM_STARTUP_INVISIBLE;
  3649. public static boolean GM_STARTUP_INVULNERABLE;
  3650. public static boolean GM_STARTUP_SILENCE;
  3651. @@ -2343,7 +2406,7 @@
  3652. public static boolean GM_AUDIT;
  3653. public static int GM_NAME_COLOR;
  3654. public static int GM_TITLE_COLOR;
  3655. -
  3656. +
  3657. public static void loadGmAccess()
  3658. {
  3659. try
  3660. @@ -2360,7 +2423,7 @@
  3661. GM_AUDIT = Boolean.parseBoolean(gmSettings.getProperty("GMAudit", "false"));
  3662. GM_NAME_COLOR = Integer.decode("0x" + gmSettings.getProperty("GmNameColor", "00FF33"));
  3663. GM_TITLE_COLOR = Integer.decode("0x" + gmSettings.getProperty("GmTitleColor", "FF0000"));
  3664. -
  3665. +
  3666. }
  3667. catch (Exception e)
  3668. {
  3669. @@ -2368,7 +2431,7 @@
  3670. throw new Error("Failed to Load " + GM_ACCESS_FILE + " File.");
  3671. }
  3672. }
  3673. -
  3674. +
  3675. public static void loadAll()
  3676. {
  3677. loadNetworkConfiguration();
  3678. @@ -2376,7 +2439,7 @@
  3679. loadEventsConfig();
  3680. loadAdministrationConfig();
  3681. }
  3682. -
  3683. +
  3684. public static void loadMainConfig()
  3685. {
  3686. loadGsConfig();
  3687. @@ -2389,7 +2452,7 @@
  3688. ReloadHandler.getInstance().registerHandler("config", _reloadAll);
  3689. }
  3690. }
  3691. -
  3692. +
  3693. private static IReloadHandler _reloadAll = new IReloadHandler()
  3694. {
  3695. @Override
  3696. @@ -2397,9 +2460,9 @@
  3697. {
  3698. loadMainConfig();
  3699. }
  3700. -
  3701. +
  3702. };
  3703. -
  3704. +
  3705. public static float LOW_WEIGHT = 0.5f;
  3706. public static float MEDIUM_WEIGHT = 2.0f;
  3707. public static float HIGH_WEIGHT = 3.0f;
  3708. @@ -2412,29 +2475,29 @@
  3709. public static byte WORLD_Y_MAX = 26;
  3710. public static int INTEREST_MAX_THREAD = 10;
  3711. public static long PROTECT_COMPRESSION_WRITEDELAY = 2L;
  3712. -
  3713. +
  3714. public static void loadEventsConfig()
  3715. {
  3716. loadMainEventsConfig();
  3717. loadSiegeConfig();
  3718. }
  3719. -
  3720. +
  3721. public static void loadNetworkConfiguration()
  3722. {
  3723. loadNetworkConfig();
  3724. loadHexidConfig();
  3725. }
  3726. -
  3727. +
  3728. public static void loadFiltersConfig()
  3729. {
  3730. loadFilter();
  3731. }
  3732. -
  3733. +
  3734. public static void loadAdministrationConfig()
  3735. {
  3736. loadGmAccess();
  3737. }
  3738. -
  3739. +
  3740. public static void saveHexid(int serverId, String hexId)
  3741. {
  3742. try
  3743. @@ -2453,7 +2516,7 @@
  3744. _log.warn("Failed to save hex id to " + HEXID_FILE + " File.");
  3745. }
  3746. }
  3747. -
  3748. +
  3749. public static void loadFilter()
  3750. {
  3751. if (!Config.USE_SAY_FILTER)
  3752. @@ -2461,12 +2524,12 @@
  3753. _log.info("Chat Filter: filter disabled.");
  3754. return;
  3755. }
  3756. -
  3757. +
  3758. File file = new File("config/admin/sayfilter.txt");
  3759. try
  3760. {
  3761. BufferedReader fread = new BufferedReader(new FileReader(file));
  3762. -
  3763. +
  3764. String line = null;
  3765. while ((line = fread.readLine()) != null)
  3766. {
  3767. @@ -2490,19 +2553,19 @@
  3768. return;
  3769. }
  3770. }
  3771. -
  3772. +
  3773. public static void unallocateFilterBuffer()
  3774. {
  3775. _log.info("Cleaning Chat Filter..");
  3776. FILTER_LIST.clear();
  3777. }
  3778. -
  3779. +
  3780. public static int MAX_Z_DIFF = 64;
  3781. -
  3782. +
  3783. public static short MIN_LAYER_HEIGHT = 64;
  3784. -
  3785. +
  3786. public static String GEOFILES_PATTERN = "(\\d{2}_\\d{2})\\.l2j";
  3787. -
  3788. +
  3789. public static int CLIENT_PACKET_QUEUE_SIZE = 14;
  3790. public static int CLIENT_PACKET_QUEUE_MAX_BURST_SIZE = 13;
  3791. public static int CLIENT_PACKET_QUEUE_MAX_PACKETS_PER_SECOND = 80;
  3792. Index: dist/config/main/custom.properties
  3793. ===================================================================
  3794. --- dist/config/main/custom.properties (revision 1831)
  3795. +++ dist/config/main/custom.properties (working copy)
  3796. @@ -163,4 +163,26 @@
  3797. # Gold Bars as commun iten
  3798. Enabled = False
  3799. GoldBarPrice = 250000000
  3800. -GoldBarId = 3470
  3801. \ No newline at end of file
  3802. +GoldBarId = 3470
  3803. +
  3804. +Enabled=true
  3805. +BufferPriceItem = 57
  3806. +BufferRemoveBuffPrice = 100
  3807. +BufferRestoreCPHPPrice = 200
  3808. +BufferRestoreMPPrice = 200
  3809. +BufferRestrictedWhen = JAIL COMBAT EVENT OLY KARMA PVP SIEGE RB ARENA
  3810. +BufferRestoreDelay=0
  3811. +RemoveEffectItemId = 57
  3812. +RemoveEffectPrice = 1000
  3813. +RestoreHpItemId = 57
  3814. +RestoreHpPrice = 1000
  3815. +RestoreCpItemId = 57
  3816. +RestoreCpPrice = 1000
  3817. +RestoreMpItemId = 57
  3818. +RestoreMpPrice = 1000
  3819. +AllowEffect = 1085,1240,1036,1087,1035,1303,1048,1045,1078,1059,\
  3820. +1243,1388,1389,1310,1204,1040,1068,1062,1086,1077,1242,1390,\
  3821. +1391,1044,1397,1356,1355,1357,1363,1413,271,272,273,274,\
  3822. +275,276,310,365,264,266,267,268,304,363,364,349,\
  3823. +1259,366,4553,4554,\
  3824. +269,1268,277,265,1007,1002,1009,1006,1251,1252,1253,1309,1308
  3825. \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement