Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DP
- [spoiler]
- [code]
- ### Eclipse Workspace Patch 1.0
- #P Dream_DataPack
- Index: sql/custom/character_buff_profiles.sql
- ===================================================================
- --- sql/custom/character_buff_profiles.sql (revision 0)
- +++ sql/custom/character_buff_profiles.sql (working copy)
- @@ -0,0 +1,8 @@
- +DROP TABLE IF EXISTS `character_buff_profiles`;
- +
- +CREATE TABLE `character_buff_profiles` (
- + `charId` int(10) unsigned NOT NULL,
- + `profileName` varchar(32) NOT NULL,
- + `buffGroup` int(10) unsigned NOT NULL,
- + PRIMARY KEY (`charId`,`profileName`,`buffGroup`)
- +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- \ No newline at end of file
- Index: sql/custom/custom_npcbuffer.sql
- ===================================================================
- --- sql/custom/custom_npcbuffer.sql (revision 0)
- +++ sql/custom/custom_npcbuffer.sql (working copy)
- @@ -0,0 +1,111 @@
- +SET FOREIGN_KEY_CHECKS=0;
- +-- ----------------------------
- +-- Table structure for `custom_npcbuffer`
- +-- ----------------------------
- +DROP TABLE IF EXISTS `custom_npcbuffer`;
- +CREATE TABLE `custom_npcbuffer` (
- + `npc_id` int(6) NOT NULL DEFAULT '0',
- + `skill_id` int(6) NOT NULL DEFAULT '0',
- + `skill_level` int(6) NOT NULL DEFAULT '1',
- + `skill_fee_id` int(6) NOT NULL DEFAULT '0',
- + `skill_fee_amount` int(6) NOT NULL DEFAULT '0',
- + `buff_group` int(6) NOT NULL DEFAULT '0',
- + PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`)
- +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- +
- +-- ----------------------------
- +-- Records of custom_npcbuffer
- +-- ----------------------------
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '264', '1', '57', '20000', '264');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '265', '1', '57', '20000', '265');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '266', '1', '57', '20000', '266');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '267', '1', '57', '20000', '267');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '268', '1', '57', '20000', '268');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '269', '1', '57', '20000', '269');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '270', '1', '57', '20000', '270');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '271', '1', '57', '20000', '271');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '272', '1', '57', '20000', '272');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '273', '1', '57', '20000', '273');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '274', '1', '57', '20000', '274');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '275', '1', '57', '20000', '275');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '276', '1', '57', '20000', '276');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '277', '1', '57', '20000', '277');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '304', '1', '57', '20000', '304');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '305', '1', '57', '20000', '305');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '306', '1', '57', '20000', '306');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '307', '1', '57', '20000', '307');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '308', '1', '57', '20000', '308');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '309', '1', '57', '20000', '309');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '310', '1', '57', '20000', '310');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '311', '1', '57', '20000', '311');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '349', '1', '57', '20000', '349');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '363', '1', '57', '20000', '363');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '364', '1', '57', '20000', '364');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '365', '1', '57', '20000', '365');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '366', '1', '57', '20000', '366');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '367', '1', '57', '20000', '367');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1032', '3', '57', '20000', '1032');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1033', '3', '57', '20000', '1033');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1035', '4', '57', '20000', '1035');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1036', '2', '57', '20000', '1036');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1040', '3', '57', '20000', '1040');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1043', '1', '57', '20000', '1043');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1044', '3', '57', '20000', '1044');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1045', '6', '57', '20000', '1045');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1002', '4', '57', '20000', '1047');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1048', '6', '57', '20000', '1048');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1059', '3', '57', '20000', '1059');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1062', '2', '57', '20000', '1062');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1068', '3', '57', '20000', '1068');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1077', '3', '57', '20000', '1077');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1078', '6', '57', '20000', '1078');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1085', '3', '57', '20000', '1085');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1086', '2', '57', '20000', '1086');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1182', '3', '57', '20000', '1182');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1189', '3', '57', '20000', '1189');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1191', '3', '57', '20000', '1191');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1204', '2', '57', '20000', '1204');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1240', '3', '57', '20000', '1240');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1242', '3', '57', '20000', '1242');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1243', '6', '57', '20000', '1243');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1268', '4', '57', '20000', '1268');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1285', '1', '57', '20000', '1285');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1286', '1', '57', '20000', '1286');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1287', '1', '57', '20000', '1287');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1303', '2', '57', '20000', '1303');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1397', '3', '57', '20000', '1397');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1007', '3', '57', '20000', '1007');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1006', '3', '57', '20000', '1006');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1009', '3', '57', '20000', '1009');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1229', '18', '57', '20000', '1229');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1252', '3', '57', '20000', '1252');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1253', '3', '57', '20000', '1253');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1310', '4', '57', '20000', '1310');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1251', '2', '57', '20000', '1251');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1308', '3', '57', '20000', '1308');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1309', '3', '57', '20000', '1309');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1390', '3', '57', '20000', '1390');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1391', '3', '57', '20000', '1391');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1362', '1', '57', '20000', '1362');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1363', '1', '57', '20000', '1363');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1413', '1', '57', '20000', '1413');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1259', '4', '57', '20000', '1259');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4702', '13', '57', '20000', '4702');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4699', '13', '57', '20000', '4699');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4703', '13', '57', '20000', '4703');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4700', '13', '57', '20000', '4700');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1392', '3', '57', '20000', '1392');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1352', '1', '57', '20000', '1352');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1393', '3', '57', '20000', '1393');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4553', '4', '57', '20000', '4553');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4554', '4', '57', '20000', '4554');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1087', '3', '57', '20000', '1087');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1002', '3', '57', '20000', '1002');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1357', '1', '57', '20000', '1357');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1356', '1', '57', '20000', '1356');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1355', '1', '57', '20000', '1355');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1388', '3', '57', '20000', '1388');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1389', '3', '57', '20000', '1389');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '4350', '4', '57', '20000', '4350');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1353', '1', '57', '20000', '1353');
- +INSERT INTO `custom_npcbuffer` VALUES ('50000', '1354', '1', '57', '20000', '1354');
- Index: data/html/mods/buffer/Buffer-p1.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-p1.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-p1.htm (working copy)
- @@ -1,25 +1,35 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -<table width=220><tr>
- -<td>Purpose: <font color="LEVEL">%target%</font></td>
- -<td>Profile: <font color="LEVEL">%profile%</font></td>
- -</tr></table>
- -<table width=170>
- -<tr>
- -<td><edit var="name" width=80 height=15 /></td>
- -<td><button action="bypass -h Quest 50000_Buffer CreateProfile $name" value="Create" width=80 height=21 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -</table>
- -<font color="FF0000">%err%</font><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -Your profiles
- -<table width=220>
- -%profilelist%
- -</table><br>
- -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- +<html><head><title>Менеджер бафов</title></head>
- +<body>
- +<center><table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Профили" action="bypass -h Quest 50000_Buffer Profile" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table>
- +<br><font color=ffa500>Профили</font><br>
- +<table width=170><tr>
- +<td><edit var="name" width=80 height=15 /></td>
- +<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>
- +</tr>
- +</table>
- +<font color="FF0000">%err%</font><br>
- +<img src="l2ui.squaregray" width="295" height="1"><br>
- +Ваши профили:
- +<table width=220>
- +%profilelist%
- +</table><br>
- +<table width=285><tr>
- +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
- +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
- +</tr></table><br><img src="l2ui.squaregray" width="295" height="1"><br>
- +</center>
- +</body>
- +</html>
- Index: data/html/mods/buffer/Buffer-2.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-2.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-2.htm (working copy)
- @@ -1,90 +1,197 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -<br>
- -<table>
- -<tr>
- -<td><img src=icon.skill1085 width=32 height=32 align=left></td>
- -<td><button value="Acumen" action="bypass -h Quest 50000_Buffer Buff 1085" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1062 width=32 height=32 align=left></td>
- -<td><button value="Berserk Spirit" action="bypass -h Quest 50000_Buffer Buff 1062" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1243 width=32 height=32 align=left></td>
- -<td><button value="Bless Shield" action="bypass -h Quest 50000_Buffer Buff 1243" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1045 width=32 height=32 align=left></td>
- -<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>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1048 width=32 height=32 align=left></td>
- -<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>
- -<td><img src=icon.skill1078 width=32 height=32 align=left></td>
- -<td><button value="Concentration" action="bypass -h Quest 50000_Buffer Buff 1078" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1397 width=32 height=32 align=left></td>
- -<td><button value="Clarity" action="bypass -h Quest 50000_Buffer Buff 1397" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1242 width=32 height=32 align=left></td>
- -<td><button value="Death Whisper" action="bypass -h Quest 50000_Buffer Buff 1242" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1059 width=32 height=32 align=left></td>
- -<td><button value="Empower" action="bypass -h Quest 50000_Buffer Buff 1059" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1077 width=32 height=32 align=left></td>
- -<td><button value="Focus" action="bypass -h Quest 50000_Buffer Buff 1077" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1240 width=32 height=32 align=left></td>
- -<td><button value="Guidance" action="bypass -h Quest 50000_Buffer Buff 1240" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1086 width=32 height=32 align=left></td>
- -<td><button value="Haste" action="bypass -h Quest 50000_Buffer Buff 1086" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1043 width=32 height=32 align=left></td>
- -<td><button value="Holy Weapon" action="bypass -h Quest 50000_Buffer Buff 1043" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1032 width=32 height=32 align=left></td>
- -<td><button value="Invigor" action="bypass -h Quest 50000_Buffer Buff 1032" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1036 width=32 height=32 align=left></td>
- -<td><button value="Magic Barrier" action="bypass -h Quest 50000_Buffer Buff 1036" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1035 width=32 height=32 align=left></td>
- -<td><button value="Mental Shield" action="bypass -h Quest 50000_Buffer Buff 1035" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1068 width=32 height=32 align=left></td>
- -<td><button value="Might" action="bypass -h Quest 50000_Buffer Buff 1068" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1044 width=32 height=32 align=left></td>
- -<td><button value="Regeneration" action="bypass -h Quest 50000_Buffer Buff 1044" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1182 width=32 height=32 align=left></td>
- -<td><button value="Resist Aqua" action="bypass -h Quest 50000_Buffer Buff 1182" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1191 width=32 height=32 align=left></td>
- -<td><button value="Resist Fire" action="bypass -h Quest 50000_Buffer Buff 1191" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1033 width=32 height=32 align=left></td>
- -<td><button value="Resist Poison" action="bypass -h Quest 50000_Buffer Buff 1033" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1189 width=32 height=32 align=left></td>
- -<td><button value="Resist Wind" action="bypass -h Quest 50000_Buffer Buff 1189" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1040 width=32 height=32 align=left></td>
- -<td><button value="Shield" action="bypass -h Quest 50000_Buffer Buff 1040" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1303 width=32 height=32 align=left></td>
- -<td><button value="Wild Magic" action="bypass -h Quest 50000_Buffer Buff 1303" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1204 width=32 height=32 align=left></td>
- -<td><button value="Wind Walk" action="bypass -h Quest 50000_Buffer Buff 1204" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -</table>
- -<br>
- -<br>
- -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- +<html><head><title>Баффы</title></head><body>
- +<table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1040" width=32 height=32 back="icon.skill1040" fore="icon.skill1040"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Shield</td></tr>
- +<tr><td><font color="ae9977">+ защита.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1068" width=32 height=32 back="icon.skill1068" fore="icon.skill1068"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Might</td></tr>
- +<tr><td><font color="ae9977">+ атака.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1086" width=32 height=32 back="icon.skill1065" fore="icon.skill1065"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Haste </td></tr>
- +<tr><td><font color="ae9977">+ �коро�ть атаки.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1085" width=32 height=32 back="icon.skill1085" fore="icon.skill1085"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Acumen </td></tr>
- +<tr><td><font color="ae9977">+ �коро�ть ка�та</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1045" width=32 height=32 back="icon.skill1045" fore="icon.skill1045"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Blessed body</td></tr>
- +<tr><td><font color="ae9977">+ кол-во жизни. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1048" width=32 height=32 back="icon.skill1048" fore="icon.skill1048"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Blessed soul</td></tr>
- +<tr><td><font color="ae9977">+ кол-во маны. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1077" width=32 height=32 back="icon.skill1077" fore="icon.skill1077"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Focus</td></tr>
- +<tr><td><font color="ae9977">+ шан� крита.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1242" width=32 height=32 back="icon.skill1242" fore="icon.skill1242"></td>
- +<td width=106>
- +<table>
- +<tr><td><font color="FFFFFF">Death whisper</td></tr>
- +<tr><td><font color="ae9977">+ �ила крита.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1240" width=32 height=32 back="icon.skill1240" fore="icon.skill1240"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Guidance </td></tr>
- +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1062" width=32 height=32 back="icon.skill1062" fore="icon.skill1062"></td>
- +<td width=109>
- +<table>
- +<tr><td><font color="LEVEL">Beserker Spirit </td></tr>
- +<tr><td><font color="ae9977">+ ат/�кор, - защ.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1036" width=32 height=32 back="icon.skill1036" fore="icon.skill1036"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Magic Barrier</td></tr>
- +<tr><td><font color="ae9977">+ маг. защита. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1059" width=32 height=32 back="icon.skill1059" fore="icon.skill1059"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Empower </td></tr>
- +<tr><td><font color="ae9977">+ маг. атака. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1204" width=32 height=32 back="icon.skill1204" fore="icon.skill1204"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Wind Walk </td></tr>
- +<tr><td><font color="ae9977">+ �коро�ть. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1087" width=32 height=32 back="icon.skill4093" fore="icon.skill4093"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Agility </td></tr>
- +<tr><td><font color="ae9977">+ ловко�ть. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1044" width=32 height=32 back="icon.skill1044" fore="icon.skill1044"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Regenaration </td></tr>
- +<tr><td><font color="ae9977">+ во��т. жизни. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1268" width=32 height=32 back="icon.skill1268" fore="icon.skill1268"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Vampiric Rage </td></tr>
- +<tr><td><font color="ae9977">+ ХП от атаки. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1303" width=32 height=32 back="icon.skill1303" fore="icon.skill1303"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Wild Magic </td></tr>
- +<tr><td><font color="ae9977">+ шан� маг крита.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1078" width=32 height=32 back="icon.skill1078" fore="icon.skill1078"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Concentration </td></tr>
- +<tr><td><font color="ae9977">+ чтение закл.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1243" width=32 height=32 back="icon.skill1243" fore="icon.skill1243"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Bless Shield </td></tr>
- +<tr><td><font color="ae9977">+ защита щитом. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1397" width=32 height=32 back="icon.skill1397" fore="icon.skill1397"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Clarity</td></tr>
- +<tr><td><font color="ae9977">- потребл. МП</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<br>
- +</body>
- +</html>
- Index: data/html/mods/buffer/Buffer-pet-4.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-pet-4.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-pet-4.htm (working copy)
- @@ -1,10 +1,20 @@
- -<html>
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- -<center>
- -No need to struggle with the pet such brutal bafami
- -</center>
- -</body>
- +<html><head><title>Баффер</title></head>
- +<body><center>
- +<table width=280><tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table><br><br>
- +�е надо мучать животное такими звер�кими бафами
- +<br><br>
- +</center>
- +</body>
- </html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-6.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-6.htm (revision 0)
- +++ data/html/mods/buffer/Buffer-6.htm (working copy)
- @@ -0,0 +1,18 @@
- +<html><title>Что �то</title><body><center>
- +<table width=280><tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<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>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table>
- +<img src="l2buff.ABOUT" width="256" height="256"><br>
- +XaB4uK 2014</center>
- +</body>
- +</html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-p2.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-p2.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-p2.htm (working copy)
- @@ -1,17 +1,18 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -Profile <font color="LEVEL">%profile%</font><br1>
- -Purpose: <font color="LEVEL">%target%</font>
- -<table width=200>
- -%buflist%
- -</table><br>
- -<button action="bypass -h Quest 50000_Buffer UseProfile" value="Use" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
- -<button action="bypass -h Quest 50000_Buffer ClearProfile" value="Clear" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
- -<button action="bypass -h Quest 50000_Buffer DeleteProfile" value="Delete" width=100 height=21 back="sek.cbui94" fore="sek.cbui92">
- -<button action="bypass -h Quest 50000_Buffer Profile" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- +<html><head><title>Менеджер бафов</title></head>
- +<body>
- +<center><table width=285><tr>
- +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
- +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
- +</tr></table><img src="l2ui.squaregray" width="295" height="1"><br1>
- +<table width=285><tr>
- +<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>
- +<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>
- +<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>
- +</tr></table><br1><img src="l2ui.squaregray" width="295" height="1"><br1>
- +<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>
- +<table width=200>
- +%buflist%
- +</table>
- +</center>
- +</body>
- +</html>
- Index: data/html/mods/buffer/Buffer-not.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-not.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-not.htm (working copy)
- @@ -1,10 +1,9 @@
- -<html>
- -<html><head><title>Manager Buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- -<center>
- -Bafer is unavailable at this time
- -</center>
- -</body>
- +<html><head><title>Баффер</title></head>
- +<body>
- +<center>
- +<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- +<center>
- +Бафер недо�тупен в данный момент
- +</center>
- +</body>
- </html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-1.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-1.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-1.htm (working copy)
- @@ -1,50 +1,98 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -<br>
- -<table>
- +<html><head><title>Танцы</title></head><body><center>
- +<table width=280>
- <tr>
- -<td><img src=icon.skill0271 width=32 height=32 align=left></td>
- -<td><button value="Warrior" action="bypass -h Quest 50000_Buffer Buff 271" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0307 width=32 height=32 align=left></td>
- -<td><button value="Aqua Guard" action="bypass -h Quest 50000_Buffer Buff 307" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +<table bgcolor=000000>
- <tr>
- -<td><img src=icon.skill0276 width=32 height=32 align=left></td>
- -<td><button value="Concentration" action="bypass -h Quest 50000_Buffer Buff 276" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0309 width=32 height=32 align=left></td>
- -<td><button value="Earth Guard" action="bypass -h Quest 50000_Buffer Buff 309" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 271" width=32 height=32 back="icon.skill0271" fore="icon.skill0271"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Warrior</td></tr>
- +<tr><td><font color="ae9977">+ атака.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 272" width=32 height=32 back="icon.skill0272" fore="icon.skill0272"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Inspiration</td></tr>
- +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
- +</table>
- +</td>
- </tr>
- +</table>
- +<table>
- <tr>
- -<td><img src=icon.skill0274 width=32 height=32 align=left></td>
- -<td><button value="Fire" action="bypass -h Quest 50000_Buffer Buff 274" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0275 width=32 height=32 align=left></td>
- -<td><button value="Fury" action="bypass -h Quest 50000_Buffer Buff 275" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 273" width=32 height=32 back="icon.skill0273" fore="icon.skill0273"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Mystic</td></tr>
- +<tr><td><font color="ae9977">+ маг. атака. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 276" width=32 height=32 back="icon.skill0276" fore="icon.skill0276"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Concentration</td></tr>
- +<tr><td><font color="ae9977">+ чтение закл.</font></td></tr>
- +</table>
- +</td>
- </tr>
- +</table>
- +<table bgcolor=000000>
- <tr>
- -<td><img src=icon.skill0272 width=32 height=32 align=left></td>
- -<td><button value="Inspiration" action="bypass -h Quest 50000_Buffer Buff 272" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0277 width=32 height=32 align=left></td>
- -<td><button value="Light" action="bypass -h Quest 50000_Buffer Buff 277" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 274" width=32 height=32 back="icon.skill0274" fore="icon.skill0274"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Fire</td></tr>
- +<tr><td><font color="ae9977">+ крит дамаг. </font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 275" width=32 height=32 back="icon.skill0275" fore="icon.skill0275"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Fury</td></tr>
- +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
- +</table>
- +</td>
- </tr>
- +</table>
- +<table>
- <tr>
- -<td><img src=icon.skill0311 width=32 height=32 align=left></td>
- -<td><button value="Protection" action="bypass -h Quest 50000_Buffer Buff 311" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0366 width=32 height=32 align=left></td>
- -<td><button value="Shadows" action="bypass -h Quest 50000_Buffer Buff 366" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 277" width=32 height=32 back="icon.skill0277" fore="icon.skill0277"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Light</td></tr>
- +<tr><td><font color="ae9977">+ �в�т.атака</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 310" width=32 height=32 back="icon.skill0310" fore="icon.skill0310"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Vampire</td></tr>
- +<tr><td><font color="ae9977">+ ХП от атаки.</font></td></tr>
- +</table>
- +</td>
- </tr>
- +</table>
- +<table bgcolor=000000>
- <tr>
- -<td><img src=icon.skill0273 width=32 height=32 align=left></td>
- -<td><button value="Mystic" action="bypass -h Quest 50000_Buffer Buff 273" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0310 width=32 height=32 align=left></td>
- -<td><button value="Vampire" action="bypass -h Quest 50000_Buffer Buff 310" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 365" width=32 height=32 back="icon.skill0365" fore="icon.skill0365"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Siren</td></tr>
- +<tr><td><font color="ae9977">+ шан� маг крита</font></td></tr>
- +</table>
- +</td>
- </tr>
- -</table>
- -<br>
- -<br>
- -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- +</table><br>
- +</center></body></html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-pet-3.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-pet-3.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-pet-3.htm (working copy)
- @@ -1,10 +1,20 @@
- -<html>
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- -<center>
- -No need to struggle with the pet such brutal bafami
- -</center>
- -</body>
- +<html><head><title>Баффер</title></head>
- +<body><center>
- +<table width=280><tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table><br><br>
- +�е надо мучать животное такими звер�кими бафами
- +<br><br>
- +</center>
- +</body>
- </html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-5.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-5.htm (revision 0)
- +++ data/html/mods/buffer/Buffer-5.htm (working copy)
- @@ -0,0 +1,104 @@
- +<html>
- +<center><title>О�обые</title>
- +<body>
- +<table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1357" width=32 height=32 back="icon.skill1357" fore="icon.skill1357"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Wind</td></tr>
- +<tr><td><font color="ae9977">дух ветра.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1356" width=32 height=32 back="icon.skill1356" fore="icon.skill1356"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Fire</td></tr>
- +<tr><td><font color="ae9977">дух огн�.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1363" width=32 height=32 back="icon.skill1363" fore="icon.skill1363"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Victory</td></tr>
- +<tr><td><font color="ae9977">дух геро�.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1413" width=32 height=32 back="icon.skill1413" fore="icon.skill1413"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Magnus</td></tr>
- +<tr><td><font color="ae9977">дух магну�а.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1389" width=32 height=32 back="icon.skill1389" fore="icon.skill1389"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Gr. Shield</td></tr>
- +<tr><td><font color="ae9977">+ защита.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1388" width=32 height=32 back="icon.skill1388" fore="icon.skill1388"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Gr. Might</td></tr>
- +<tr><td><font color="ae9977">+ атака.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 4554" width=32 height=32 back="icon.skill1164" fore="icon.skill1164"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Malaria</td></tr>
- +<tr><td><font color="ae9977">+ ка�т.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 4553" width=32 height=32 back="icon.skill1164" fore="icon.skill1164"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Flu</td></tr>
- +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1355" width=32 height=32 back="icon.skill11355" fore="icon.skill1355"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Water</td></tr>
- +<tr><td><font color="ae9977">дух воды.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +</center>
- +</body>
- +</html>
- Index: data/html/mods/buffer/Buffer-4.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-4.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-4.htm (working copy)
- @@ -1,60 +1,122 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -<br>
- -<table>
- -<tr>
- -<td><img src=icon.skill1007 width=32 height=32 align=left></td>
- -<td><button value="Battle" action="bypass -h Quest 50000_Buffer Buff 1007" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1006 width=32 height=32 align=left></td>
- -<td><button value="Fire" action="bypass -h Quest 50000_Buffer Buff 1006" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1009 width=32 height=32 align=left></td>
- -<td><button value="Shielding" action="bypass -h Quest 50000_Buffer Buff 1009" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1229 width=32 height=32 align=left></td>
- -<td><button value="Life" action="bypass -h Quest 50000_Buffer Buff 1229" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1252 width=32 height=32 align=left></td>
- -<td><button value="Evasion" action="bypass -h Quest 50000_Buffer Buff 1252" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1253 width=32 height=32 align=left></td>
- -<td><button value="Rage" action="bypass -h Quest 50000_Buffer Buff 1253" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1310 width=32 height=32 align=left></td>
- -<td><button value="Vampire" action="bypass -h Quest 50000_Buffer Buff 1310" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1251 width=32 height=32 align=left></td>
- -<td><button value="Fury" action="bypass -h Quest 50000_Buffer Buff 1251" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1308 width=32 height=32 align=left></td>
- -<td><button value="Predator" action="bypass -h Quest 50000_Buffer Buff 1308" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1309 width=32 height=32 align=left></td>
- -<td><button value="Eagle" action="bypass -h Quest 50000_Buffer Buff 1309" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1390 width=32 height=32 align=left></td>
- -<td><button value="War" action="bypass -h Quest 50000_Buffer Buff 1390" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1391 width=32 height=32 align=left></td>
- -<td><button value="Earth" action="bypass -h Quest 50000_Buffer Buff 1391" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1362 width=32 height=32 align=left></td>
- -<td><button value="Spirit" action="bypass -h Quest 50000_Buffer Buff 1362" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill1363 width=32 height=32 align=left></td>
- -<td><button value="Victory" action="bypass -h Quest 50000_Buffer Buff 1363" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill1413 width=32 height=32 align=left></td>
- -<td><button value="Magnus" action="bypass -h Quest 50000_Buffer Buff 1413" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -</table>
- -<br>
- -<br>
- -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- \ No newline at end of file
- +<html><head><title>Чанты</title></head><body>
- +<table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1007" width=32 height=32 back="icon.skill1007" fore="icon.skill1007"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Battle</td></tr>
- +<tr><td><font color="ae9977">+ атака.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1009" width=32 height=32 back="icon.skill1009" fore="icon.skill1009"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Shielding</td></tr>
- +<tr><td><font color="ae9977">+ защита.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1002" width=32 height=32 back="icon.skill1002" fore="icon.skill1002"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Flame</td></tr>
- +<tr><td><font color="ae9977">+ ка�т.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1006" width=32 height=32 back="icon.skill1006" fore="icon.skill1006"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Fire</td></tr>
- +<tr><td><font color="ae9977">+ маг защита.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1251" width=32 height=32 back="icon.skill1251" fore="icon.skill1251"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Fury</td></tr>
- +<tr><td><font color="ae9977">+ �кор атаки.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1252" width=32 height=32 back="icon.skill1252" fore="icon.skill1252"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Evasion</td></tr>
- +<tr><td><font color="ae9977">+ ловко�ть.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1253" width=32 height=32 back="icon.skill1253" fore="icon.skill1253"></td>
- +<td width=105><table>
- +<tr><td><font color="FFFFFF">Rage</td></tr>
- +<tr><td><font color="ae9977">+ �ила крита.</font></td></tr></table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1310" width=32 height=32 back="icon.skill1310" fore="icon.skill1310"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Vampiric</td></tr>
- +<tr><td><font color="ae9977">+ хп от атаки. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1309" width=32 height=32 back="icon.skill1309" fore="icon.skill1309"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Eagle</td></tr>
- +<tr><td><font color="ae9977">+ точно�ть.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1308" width=32 height=32 back="icon.skill1308" fore="icon.skill1308"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Predator</td></tr>
- +<tr><td><font color="ae9977">+ крит атака. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1390" width=32 height=32 back="icon.skill1390" fore="icon.skill1390"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">War</td></tr>
- +<tr><td><font color="ae9977">+ атака.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 1391" width=32 height=32 back="icon.skill1391" fore="icon.skill1391"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Earth</td></tr>
- +<tr><td><font color="ae9977">+ защита.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<br>
- +</body></html>
- \ No newline at end of file
- Index: quests/com/dream/game/model/quest/pack/custom/Buffer.java
- ===================================================================
- --- quests/com/dream/game/model/quest/pack/custom/Buffer.java (revision 0)
- +++ quests/com/dream/game/model/quest/pack/custom/Buffer.java (working copy)
- @@ -0,0 +1,774 @@
- +package dream.game.model.quest.pack.custom;
- +
- +import java.sql.Connection;
- +import java.sql.PreparedStatement;
- +import java.sql.ResultSet;
- +import java.sql.SQLException;
- +import java.util.List;
- +import java.util.Map;
- +import java.util.concurrent.ScheduledFuture;
- +
- +import javolution.util.FastList;
- +import javolution.util.FastMap;
- +
- +import org.apache.log4j.Logger;
- +
- +import com.dream.Config;
- +import com.dream.L2DatabaseFactory;
- +import com.dream.game.Shutdown;
- +import com.dream.game.cache.HtmCache;
- +import com.dream.game.datatables.SkillTable;
- +import com.dream.game.datatables.sql.NpcBufferTable;
- +import com.dream.game.model.L2Skill;
- +import com.dream.game.model.actor.L2Character;
- +import com.dream.game.model.actor.instance.L2ItemInstance;
- +import com.dream.game.model.actor.instance.L2MonsterInstance;
- +import com.dream.game.model.actor.instance.L2NpcInstance;
- +import com.dream.game.model.actor.instance.L2PcInstance;
- +import com.dream.game.model.quest.Quest;
- +import com.dream.game.model.quest.QuestState;
- +import com.dream.game.model.world.L2World;
- +import com.dream.game.model.zone.L2Zone;
- +import com.dream.game.network.SystemMessageId;
- +import com.dream.game.network.serverpackets.SystemMessage;
- +
- +public class Buffer extends Quest
- +{
- + private static final Logger _logs = Logger.getLogger(Buffer.class.getName());
- + public static String qn = "50000_Buffer";
- + private static String htmlBase = "data/html/mods/buffer/Buffer";
- + private final Map<Integer, String> _lastPage;
- + private final Map<Integer, Boolean> _isPetTarget = new FastMap<>();
- + private String _err = "";
- +
- + public class BuffProfile
- + {
- + public List<Integer> _buffs = new FastList<>();
- + }
- +
- + public Map<Integer, Map<String, BuffProfile>> _buffprofiles = new FastMap<>();
- + private final Map<Integer, Long> _restoreDelays = new FastMap<>();
- +
- + public Buffer()
- + {
- + super(-1, qn, "custom");
- + NpcBufferTable.getInstance();
- + _lastPage = new FastMap<>();
- + Shutdown.getInstance().registerShutdownHandler(saveProfiles);
- + Shutdown.getInstance().registerShutdownHandler(stopBuffTask);
- + }
- +
- + private final Runnable saveProfiles = new Runnable()
- + {
- +
- + @Override
- + public void run()
- + {
- + try
- + {
- + Connection con = L2DatabaseFactory.getInstance().getConnection();
- + for (int playerId : _buffprofiles.keySet())
- + {
- + PreparedStatement stm = con.prepareStatement("delete from character_buff_profiles where charId=?");
- + stm.setInt(1, playerId);
- + stm.execute();
- + stm.close();
- + stm = con.prepareStatement("insert into character_buff_profiles values (?,?,?)");
- + stm.setInt(1, playerId);
- + Map<String, BuffProfile> profiles = _buffprofiles.get(playerId);
- + for (String s : profiles.keySet())
- + {
- + stm.setString(2, s);
- + for (int buffs : profiles.get(s)._buffs)
- + {
- + stm.setInt(3, buffs);
- + stm.execute();
- + }
- + }
- + stm.close();
- + }
- + con.close();
- + }
- + catch (SQLException e)
- + {
- + System.out.println("Buffer: Can't save profiles " + e);
- + }
- + }
- +
- + };
- +
- + private final Runnable stopBuffTask = new Runnable()
- + {
- + @Override
- + public void run()
- + {
- + try
- + {
- + if (autoBuffTask != null)
- + {
- + autoBuffTask.Shutdown();
- + }
- + }
- + catch (Exception e)
- + {
- + System.out.println("Buffer: Can't stopBuffTask " + e);
- + }
- + }
- + };
- +
- + public String onFirstTalk(L2NpcInstance npc, L2PcInstance player)
- + {
- + return onTalk(npc, player);
- + }
- +
- + public String onTalk(L2NpcInstance npc, L2PcInstance talker)
- + {
- + if (talker.getQuestState(qn) == null)
- + {
- + newQuestState(talker);
- + }
- + getActiveProfile(talker);
- + _lastPage.put(talker.getObjectId(), htmlBase + ".htm");
- + _isPetTarget.put(talker.getObjectId(), false);
- + createBuffProfiles(talker);
- + String html = HtmCache.getInstance().getHtm(htmlBase + ".htm", talker);
- + return fillHtml(talker, html);
- + }
- +
- + private String ShowLastPage(int playerId)
- + {
- + if (_lastPage.containsKey(playerId))
- + {
- + String html = HtmCache.getInstance().getHtm(_lastPage.get(playerId), L2World.getInstance().getPlayer(playerId));
- + return fillHtml(L2World.getInstance().getPlayer(playerId), html);
- + }
- + return null;
- + }
- +
- + private static boolean isValidTalker(L2PcInstance player)
- + {
- + if (checkMagicCondition(player))
- + {
- + return true;
- + }
- + return false;
- + }
- +
- + private static boolean checkMagicCondition(L2PcInstance player)
- + {
- + boolean ok = true;
- + if (player.isInJail() && Config.BUFFER_RESTRICTION.contains("JAIL"))
- + {
- + ok = false;
- + }
- + if ((player.getOlympiadGameId() >= 0) && Config.BUFFER_RESTRICTION.contains("OLY"))
- + {
- + ok = false;
- + }
- + if (player.isInCombat() && Config.BUFFER_RESTRICTION.contains("COMBAT"))
- + {
- + ok = false;
- + }
- + if ((player.getKarma() > 0) && Config.BUFFER_RESTRICTION.contains("KARMA"))
- + {
- + ok = false;
- + }
- + if ((player.getPvpFlag() > 0) && Config.BUFFER_RESTRICTION.contains("PVP"))
- + {
- + ok = false;
- + }
- + if (player.isInsideZone(L2Zone.FLAG_SIEGE) && Config.BUFFER_RESTRICTION.contains("SIEGE"))
- + {
- + ok = false;
- + }
- + if (player.isInsideZone(L2Zone.FLAG_NOSUMMON) && Config.BUFFER_RESTRICTION.contains("RB"))
- + {
- + ok = false;
- + }
- + if (player.isInsideZone(L2Zone.FLAG_PVP) && Config.BUFFER_RESTRICTION.contains("ARENA"))
- + {
- + ok = false;
- + }
- + return ok;
- + }
- +
- + public boolean restoreCheck(L2PcInstance player)
- + {
- + Long lastRestore = _restoreDelays.get(player.getObjectId());
- + if (Config.BUFFER_RESTORE_DELAY <= 0)
- + {
- + return true;
- + }
- + if (lastRestore == null)
- + {
- + _restoreDelays.put(player.getObjectId(), System.currentTimeMillis());
- + return true;
- + }
- + if ((System.currentTimeMillis() + (Config.BUFFER_RESTORE_DELAY * 1000)) < lastRestore)
- + {
- + _restoreDelays.put(player.getObjectId(), System.currentTimeMillis());
- + return true;
- + }
- + return true;
- + }
- +
- + @Override
- + public String onEvent(String event, QuestState qs)
- + {
- + try
- + {
- + L2PcInstance player = qs.getPlayer();
- + if (player == null)
- + {
- + return null;
- + }
- + if ((player.isAlikeDead() || player.isAfraid() || player.isImmobilized()) && !event.startsWith("Chat"))
- + {
- + return null;
- + }
- + if (!checkMagicCondition(player))
- + {
- + String htm = htmlBase + "-not.htm";
- + String html = HtmCache.getInstance().getHtm(htm, player);
- + return fillHtml(player, html);
- + }
- +
- + L2Character target = player;
- + if (_isPetTarget.get(player.getObjectId()) && (player.getPet() != null))
- + {
- + target = player.getPet();
- + }
- +
- + if (event.startsWith("Chat"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + String chatId = "";
- + String htm = htmlBase + ".htm";
- + if (event.indexOf(" ") != -1)
- + {
- + chatId = event.substring(event.indexOf(" ") + 1);
- + }
- + if (!chatId.equals("0"))
- + {
- + chatId = "-" + chatId;
- + if (_isPetTarget.get(player.getObjectId()))
- + {
- + if (HtmCache.getInstance().pathExists(htmlBase + "-pet" + chatId + ".htm"))
- + {
- + htm = htmlBase + "-pet" + chatId + ".htm";
- + }
- + else
- + {
- + htm = htmlBase + chatId + ".htm";
- + }
- + }
- + else
- + {
- + htm = htmlBase + chatId + ".htm";
- + }
- + }
- + _lastPage.put(player.getObjectId(), htm);
- + String html = HtmCache.getInstance().getHtm(htm, player);
- + return fillHtml(player, html);
- + }
- + else if (event.startsWith("SelectProfile"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + String[] args = event.split(" ");
- + player.getCharacterData().set("BuffProfile", args[1]);
- + String html = HtmCache.getInstance().getHtm(htmlBase + "-p2.htm", player);
- + _lastPage.put(player.getObjectId(), htmlBase + "-p2.htm");
- + html = fillHtml(player, html);
- + return html;
- + }
- + else if (event.startsWith("Profile"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + String html = HtmCache.getInstance().getHtm(htmlBase + "-p1.htm", player);
- + _lastPage.put(player.getObjectId(), htmlBase + "-p1.htm");
- + return fillHtml(player, html);
- + }
- + else if (event.startsWith("ClearProfile"))
- + {
- + BuffProfile profile = getActiveProfile(player);
- + profile._buffs.clear();
- + return onEvent("Profile", qs);
- + }
- + else if (event.startsWith("DeleteProfile"))
- + {
- + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
- + if (getActiveProfile(player) != null)
- + {
- + _profiles.remove(getActiveProfileName(player));
- + }
- + player.getCharacterData().set("BuffProfile", (String) null);
- + return onEvent("Profile", qs);
- + }
- + else if (event.startsWith("CreateProfile"))
- + {
- + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
- + if (_profiles == null)
- + {
- + _buffprofiles.put(player.getObjectId(), new FastMap<String, BuffProfile>());
- + _profiles = _buffprofiles.get(player.getObjectId());
- + }
- + String[] args = event.split(" ");
- + if (args.length > 2)
- + {
- + _err = "Им� профил� не должно �одержать пробелы";
- + return onEvent("Profile", qs);
- + }
- + if (!_profiles.containsKey(args[1]))
- + {
- + _profiles.put(args[1], new BuffProfile());
- + }
- + player.getCharacterData().set("BuffProfile", args[1]);
- + return onEvent("Profile", qs);
- + }
- + else if (event.startsWith("UseProfile") && checkMagicCondition(player))
- + {
- + BuffProfile profile = getActiveProfile(player);
- + target = player;
- + if (profile != null)
- + {
- + for (int buff : profile._buffs)
- + {
- + int[] group = NpcBufferTable.getInstance().getSkillInfo(50000, buff);
- + useBuff(buff, group, player, target);
- + }
- + }
- + }
- + else if (event.startsWith("RemBuff"))
- + {
- + if (isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
- + {
- + target.stopAllEffects();
- + }
- + }
- + else if (event.startsWith("WarriorBuff"))
- + {
- + if (_isPetTarget.get(player.getObjectId()))
- + {
- + player.sendMessage("Дл� питомца неканает,или �оздаем набор дл� пета, ме�то �тих �трок.");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
- + {
- + SkillTable.getInstance().getInfo(1068, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1040, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1086, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1204, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1077, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1242, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1268, 4).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1035, 4).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1036, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1045, 6).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1388, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1363, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(271, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(275, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(274, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(268, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(269, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(264, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(304, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(364, 1).getEffects(target, target);
- + }
- + }
- + else if (event.startsWith("MageBuff"))
- + {
- + if (_isPetTarget.get(player.getObjectId()))
- + {
- + player.sendMessage("Дл� питомца неканает,или �оздаем набор дл� пета, ме�то �тих �трок.");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (isValidTalker(player) && target.destroyItemByItemId("GM Buffer", Config.BUFFER_REMOVE_ITEM_ID, Config.BUFFER_REMOVE_PRICE, player, true))
- + {
- + SkillTable.getInstance().getInfo(1085, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1059, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1078, 6).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1204, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1048, 6).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1397, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1303, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1040, 3).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1035, 4).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1062, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(273, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(276, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(268, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1045, 6).getEffects(target, target);
- + SkillTable.getInstance().getInfo(349, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(363, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(365, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1413, 1).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1036, 2).getEffects(target, target);
- + SkillTable.getInstance().getInfo(1389, 3).getEffects(target, target);
- + }
- + }
- + else if (event.startsWith("recHp"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (restoreCheck(player) && isValidTalker(player))
- + {
- + if (target.getStatus().getCurrentCp() < target.getMaxCp())
- + {
- + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_CP_ITEM_ID, Config.BUFFER_CP_PRICE, player, true))
- + {
- + target.getStatus().setCurrentCp(target.getMaxCp());
- + }
- + else
- + {
- + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� CP.");
- + }
- + }
- + if ((target.getStatus().getCurrentHp() < target.getMaxHp()) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_HP_ITEM_ID, Config.BUFFER_HP_PRICE, player, true))
- + {
- + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_HP_ITEM_ID, Config.BUFFER_HP_PRICE, player, true))
- + {
- + target.getStatus().setCurrentHp(target.getMaxHp());
- + }
- + else
- + {
- + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� HP.");
- + }
- + }
- + if (target.getStatus().getCurrentMp() < target.getMaxMp())
- + {
- + if (player.destroyItemByItemId("GM Buffer", Config.BUFFER_MP_ITEM_ID, Config.BUFFER_MP_PRICE, player, true))
- + {
- + target.getStatus().setCurrentMp(target.getMaxMp());
- + }
- + else
- + {
- + player.sendMessage("�едо�таточно �ред�тв дл� во��тановлени� MP.");
- + }
- + }
- + }
- + }
- + else if (event.startsWith("recCp"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (restoreCheck(player) && isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_CP_ITEM_ID, Config.BUFFER_CP_PRICE, player, true))
- + {
- + target.getStatus().setCurrentCp(target.getMaxCp());
- + }
- + }
- + else if (event.startsWith("recMp"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (restoreCheck(player) && isValidTalker(player) && player.destroyItemByItemId("GM Buffer", Config.BUFFER_MP_ITEM_ID, Config.BUFFER_MP_PRICE, player, true))
- + {
- + target.getStatus().setCurrentMp(target.getMaxMp());
- + }
- + }
- + else if (event.startsWith("Target"))
- + {
- + _isPetTarget.put(player.getObjectId(), !_isPetTarget.get(player.getObjectId()));
- + }
- + else if (event.startsWith("Buff"))
- + {
- + if (!checkMagicCondition(player))
- + {
- + _lastPage.put(player.getObjectId(), htmlBase + "-not.htm");
- + return ShowLastPage(player.getObjectId());
- + }
- + if (!isValidTalker(player))
- + {
- + return ShowLastPage(player.getObjectId());
- + }
- +
- + String[] buffGroupArray;
- + if (event.startsWith("BuffPet"))
- + {
- + buffGroupArray = event.substring(8).split(" ");
- + }
- + else
- + {
- + buffGroupArray = event.substring(5).split(" ");
- + }
- +
- + for (String buffGroupList : buffGroupArray)
- + {
- + if (buffGroupList == null)
- + {
- + _logs.warn("NPC Buffer Warning: buffer has no buffGroup set in the bypass for the buff selected.");
- + return ShowLastPage(player.getObjectId());
- + }
- +
- + int buffGroup = Integer.parseInt(buffGroupList);
- + int[] npcBuffGroupInfo = NpcBufferTable.getInstance().getSkillInfo(50000, buffGroup);
- +
- + if (npcBuffGroupInfo == null)
- + {
- + _logs.warn("NPC Buffer Warning: Player: " + player.getName() + " has tried to use skill group (" + buffGroup + ") not assigned to the NPC Buffer!");
- + return ShowLastPage(player.getObjectId());
- + }
- + useBuff(buffGroup, npcBuffGroupInfo, player, target);
- +
- + }
- + }
- + return ShowLastPage(player.getObjectId());
- + }
- + catch (Exception e)
- + {
- + return htmlBase + ".htm";
- + }
- + }
- +
- + private static String getActiveProfileName(L2PcInstance player)
- + {
- + try
- + {
- + return player.getCharacterData().getString("BuffProfile");
- + }
- + catch (IllegalArgumentException e)
- + {
- + return "�ет";
- + }
- +
- + }
- +
- + private BuffProfile getActiveProfile(L2PcInstance player)
- + {
- + String profileName = null;
- + try
- + {
- + profileName = player.getCharacterData().getString("BuffProfile");
- + }
- + catch (IllegalArgumentException e)
- + {
- + return null;
- + }
- +
- + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
- +
- + if ((profileName != null) && (_profiles != null))
- + {
- + return _profiles.get(profileName);
- + }
- + return null;
- + }
- +
- + private synchronized String fillHtml(L2PcInstance player, String html)
- + {
- + try
- + {
- + html = html.replace("%target%", _isPetTarget.get(player.getObjectId()) ? "Слуга" : "Пер�онаж");
- + html = html.replace("%profile%", getActiveProfileName(player));
- + html = html.replace("%err%", _err);
- + _err = "";
- + String profiles = "";
- + try
- + {
- + Map<String, BuffProfile> _profiles = _buffprofiles.get(player.getObjectId());
- + if (_profiles != null)
- + {
- + for (String profileName : _profiles.keySet())
- + {
- + profiles += "<tr><td><center><a action=\"bypass -h Quest 50000_Buffer SelectProfile " + profileName + "\">" + profileName + "</a></center></td></tr>";
- + }
- + }
- + if (profiles.length() == 0)
- + {
- + profiles = "<tr><td><center>От�ут�твуют</center></td></tr>";
- + }
- + html = html.replace("%profilelist%", profiles);
- + BuffProfile profile = getActiveProfile(player);
- + if ((profile != null) && (profile._buffs != null) && (profile._buffs.size() > 0))
- + {
- + 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\">");
- + String buffs = "";
- + int npcid = 50000;
- + for (Integer buff : profile._buffs)
- + {
- + if ((player.getTarget() != null) && ((player.getTarget() instanceof L2NpcInstance) && !(player.getTarget() instanceof L2MonsterInstance)))
- + {
- + npcid = ((L2NpcInstance) player.getTarget()).getNpcId();
- + }
- + int[] group = NpcBufferTable.getInstance().getSkillInfo(npcid, buff);
- + buffs += "<tr><td><center>" + SkillTable.getInstance().getSkillName(group[0]) + "</center></td></tr>";
- + }
- + html = html.replace("%buflist%", buffs);
- + }
- + else
- + {
- + html = html.replace("%useprofile%", "");
- + }
- + }
- + catch (Exception e)
- + {
- + html = html.replace("%useprofile%", "");
- + _buffprofiles.remove(player.getObjectId());
- + _log.error("Error getting profiles for " + player.getName() + ", cleaning");
- + }
- + return html;
- + }
- + catch (Exception e)
- + {
- + return "<html><body><br><center>Произошла ошибка при обрашении к баферу, попробуйте позже</center></body></html>";
- + }
- + }
- +
- + private boolean useBuff(int grpid, int[] npcBuffGroupInfo, L2PcInstance player, L2Character target)
- + {
- + for (int i = 0; i < npcBuffGroupInfo.length; i += 4)
- + {
- + int skillId = npcBuffGroupInfo[i];
- + int skillLevel = npcBuffGroupInfo[i + 1];
- + int skillFeeId = npcBuffGroupInfo[i + 2];
- + int skillFeeAmount = npcBuffGroupInfo[i + 3];
- + if (!Config.LIST_BUFFER_BUFF_ALLOW.containsKey(skillId))
- + {
- + player.sendMessage("�едопу�тимый �ффект!");
- + return false;
- + }
- + if (skillFeeId != 0)
- + {
- + L2ItemInstance itemInstance = player.getInventory().getItemByItemId(skillFeeId);
- + if ((itemInstance == null) || (!itemInstance.isStackable() && (player.getInventory().getInventoryItemCount(skillFeeId, -1) < skillFeeAmount)))
- + {
- + SystemMessage sm = new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS);
- + player.sendPacket(sm);
- + return false;
- + }
- + if (itemInstance.isStackable())
- + {
- + if (!player.destroyItemByItemId("Npc Buffer", skillFeeId, skillFeeAmount, player.getTarget(), true))
- + {
- + player.sendPacket(SystemMessageId.NOT_ENOUGH_ITEMS);
- + return false;
- + }
- + }
- + else
- + {
- + for (int k = 0; k < skillFeeAmount; ++k)
- + {
- + player.destroyItemByItemId("Npc Buffer", skillFeeId, 1, player.getTarget(), true);
- + }
- + }
- + }
- + L2Skill skill;
- + skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
- +
- + if (skill != null)
- + {
- + skill.getEffects(target, target);
- + BuffProfile profile = getActiveProfile(player);
- + if (profile != null)
- + {
- + if (!profile._buffs.contains(grpid))
- + {
- + profile._buffs.add(grpid);
- + }
- + }
- + }
- + }
- + return true;
- + }
- +
- + private Map<String, BuffProfile> createBuffProfiles(L2PcInstance player)
- + {
- + Map<String, BuffProfile> result;
- + result = _buffprofiles.get(player.getObjectId());
- + if (result == null)
- + {
- + result = new FastMap<>();
- + _buffprofiles.put(player.getObjectId(), result);
- + try
- + {
- + Connection con = L2DatabaseFactory.getInstance().getConnection();
- + PreparedStatement stm = con.prepareStatement("select * from character_buff_profiles where charId=? order by profileName");
- + stm.setInt(1, player.getObjectId());
- + ResultSet rs = stm.executeQuery();
- + String profileName = "";
- + profile = null;
- + while (rs.next())
- + {
- + if (!rs.getString("profileName").equals(profileName))
- + {
- + profileName = rs.getString("profileName");
- + profile = new BuffProfile();
- + result.put(profileName, profile);
- + }
- + profile._buffs.add(rs.getInt("buffGroup"));
- + }
- + rs.close();
- + stm.close();
- + con.close();
- + }
- + catch (SQLException e)
- + {
- + _log.error("Buffer: Can't load buf profiles", e);
- + }
- + }
- +
- + return result;
- + }
- +
- + public class buffTasks
- + {
- + private ScheduledFuture<?> buffTask = null;
- +
- + public void Shutdown()
- + {
- + stopBuffTask(false);
- + }
- +
- + private void stopBuffTask(final boolean mayInterruptIfRunning)
- + {
- + if (buffTask != null)
- + {
- + buffTask.cancel(mayInterruptIfRunning);
- + buffTask = null;
- + }
- + }
- + }
- +
- + public buffTasks autoBuffTask = null;
- + private BuffProfile profile;
- +
- + public static void main(String[] args)
- + {
- + if (Config.BUFFER_ENABLED)
- + {
- + getInstance();
- + }
- + }
- +
- + public static Buffer getInstance()
- + {
- + return SingletonHolder._instance;
- + }
- +
- + private static class SingletonHolder
- + {
- + protected static final Buffer _instance = new Buffer();
- + }
- +
- +}
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-pet-1.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-pet-1.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-pet-1.htm (working copy)
- @@ -1,10 +1,20 @@
- -<html>
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- -<center>
- -No need to struggle with the pet such brutal bafami
- -</center>
- -</body>
- +<html><head><title>Баффер</title></head>
- +<body><center>
- +<table width=280><tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table><br><br>
- +�е надо мучать животное такими звер�кими бафами
- +<br><br>
- +</center>
- +</body>
- </html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer.htm (working copy)
- @@ -1,47 +1,47 @@
- -<html><head><title>Manager Buffs<</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.onscrmsg_pattern01_1" width=300 height=32 align=left>
- -<center>
- -<table border="0" cellspacing="0">
- - <tr>
- - <td valign=top><img src=icon.skill1240 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1087 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1010 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1036 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1243 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1033 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1303 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1035 width=32 height=32 align=left></td>
- - </tr>
- - <tr>
- - <td valign=top><img src=icon.skill1032 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1048 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1078 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1085 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1059 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1352 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1259 width=32 height=32 align=left></td>
- - <td valign=top><img src=icon.skill1393 width=32 height=32 align=left></td>
- - </tr>
- -</table>
- -
- -<br><center>
- -<br><br>
- -<table width=220><tr>
- -<td><button action="bypass -h Quest 50000_Buffer RemBuff" value="Delete all buffers" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><button action="bypass -h Quest 50000_Buffer recHp" value="Restore HP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr><tr>
- -<td><button action="bypass -h Quest 50000_Buffer recCp" value="Restore CP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><button action="bypass -h Quest 50000_Buffer recMp" value="Restore MP" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr><tr>
- -<td><button action="bypass -h Quest 50000_Buffer Chat 1" value="Dance" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><button action="bypass -h Quest 50000_Buffer Chat 3" value="Songs" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr><tr>
- -<td><button action="bypass -h Quest 50000_Buffer Chat 2" value="Buffs" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><button action="bypass -h Quest 50000_Buffer Chat 4" value="Chants" width=110 height=19 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -</table>
- -</center>
- -</body>
- -</html>
- +<html><title>Баффер</title><body><center>
- +<table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +<table width=260 bgcolor=000000><tr>
- +<td align=center><font color=996666>Да прибудет � тобой �ила!!!</font></td>
- +</tr></table>
- +<img src="l2ui.squaregray" width="295" height="1">
- +<table width=280><tr>
- +<td align=center>Цель: <font color="LEVEL">%target%</font></td>
- +<td align=center>Профиль: <font color="LEVEL">%profile%</font></td>
- +</tr></table>
- +<table width=260 bgcolor=000000><tr>
- +<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>
- +<td align=center><font color=ff6600>Профили</font></td>
- +<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>
- +</tr></table><br>
- +%useprofile%
- +<img src="l2ui.squaregray" width="295" height="1">
- +<img src="l2buff.Buffer" width="255" height="75">
- +<img src="l2ui.squaregray" width="295" height="1">
- +<table width="260" bgcolor=000000><tr>
- +<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>
- +<td width=60 align=center><font color=ffa500>�аборы</font></td>
- +<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>
- +</tr></table><img src="l2ui.squaregray" width="256" height="10">
- +<table width="260" bgcolor=000000><tr>
- +<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>
- +<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>
- +<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>
- +</tr></table><img src="l2ui.squaregray" width="295" height="1">
- +<br><br>
- +<a action="bypass -h Quest 50000_Buffer Chat 6"><font color=339933>.About.</font></a>
- +
- +</center>
- +</body>
- +</html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-pet-5.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-pet-5.htm (revision 0)
- +++ data/html/mods/buffer/Buffer-pet-5.htm (working copy)
- @@ -0,0 +1,20 @@
- +<html><head><title>Баффер</title></head>
- +<body><center>
- +<table width=280><tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Ошибка" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><img src="l2buff.Line_BF3" width="120" height="20"></td>
- +</tr></table><br><br>
- +�е надо мучать животное такими звер�кими бафами
- +<br><br>
- +</center>
- +</body>
- +</html>
- \ No newline at end of file
- Index: data/html/mods/buffer/Buffer-3.htm
- ===================================================================
- --- data/html/mods/buffer/Buffer-3.htm (revision 1831)
- +++ data/html/mods/buffer/Buffer-3.htm (working copy)
- @@ -1,56 +1,108 @@
- -<html><head><title>Manager buffs</title></head>
- -<body>
- -<center>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br><br>
- -<br>
- -<table>
- -<tr>
- -<td><img src=icon.skill0364 width=32 height=32 align=left></td>
- -<td><button value="Champion" action="bypass -h Quest 50000_Buffer Buff 364" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0264 width=32 height=32 align=left></td>
- -<td><button value="Earth" action="bypass -h Quest 50000_Buffer Buff 264" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0268 width=32 height=32 align=left></td>
- -<td><button value="Wind" action="bypass -h Quest 50000_Buffer Buff 268" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0306 width=32 height=32 align=left></td>
- -<td><button value="Flame Guard" action="bypass -h Quest 50000_Buffer Buff 306" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0269 width=32 height=32 align=left></td>
- -<td><button value="Hunter" action="bypass -h Quest 50000_Buffer Buff 269" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0270 width=32 height=32 align=left></td>
- -<td><button value="Invocation" action="bypass -h Quest 50000_Buffer Buff 270" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0265 width=32 height=32 align=left></td>
- -<td><button value="Life" action="bypass -h Quest 50000_Buffer Buff 265" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0363 width=32 height=32 align=left></td>
- -<td><button value="Meditation" action="bypass -h Quest 50000_Buffer Buff 363" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0349 width=32 height=32 align=left></td>
- -<td><button value="Renewal" action="bypass -h Quest 50000_Buffer Buff 349" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0308 width=32 height=32 align=left></td>
- -<td><button value="Storm Guard" action="bypass -h Quest 50000_Buffer Buff 308" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0305 width=32 height=32 align=left></td>
- -<td><button value="Vengeance" action="bypass -h Quest 50000_Buffer Buff 305" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0304 width=32 height=32 align=left></td>
- -<td><button value="Vitality" action="bypass -h Quest 50000_Buffer Buff 304" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -<tr>
- -<td><img src=icon.skill0267 width=32 height=32 align=left></td>
- -<td><button value="Warding" action="bypass -h Quest 50000_Buffer Buff 267" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -<td><img src=icon.skill0266 width=32 height=32 align=left></td>
- -<td><button value="Water" action="bypass -h Quest 50000_Buffer Buff 266" width=80 height=20 back="sek.cbui94" fore="sek.cbui92"></td>
- -</tr>
- -</table>
- -<br>
- -<br>
- -<button action="bypass -h Quest 50000_Buffer Chat 0" value="Back" width=100 height=21 back="sek.cbui94" fore="sek.cbui92"><br><br>
- -<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
- -</center>
- -</body>
- -</html>
- +<html><head><title>Пе�ни</title></head><body><center>
- +<table width=280>
- +<tr>
- +<td><button value="Баффы" action="bypass -h Quest 50000_Buffer Chat 2" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Танцы" action="bypass -h Quest 50000_Buffer Chat 1" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="Пе�ни" action="bypass -h Quest 50000_Buffer Chat 3" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Sel"></td>
- +<td><button value="Чанты" action="bypass -h Quest 50000_Buffer Chat 4" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="40" height="20"></td>
- +</tr></table>
- +<table width=280><tr>
- +<td><button value="Главна�" action="bypass -h Quest 50000_Buffer Chat 0" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><button value="О�обые" action="bypass -h Quest 50000_Buffer Chat 5" width=60 height=20 back="L2buff.Tab_Uns" fore="L2buff.Tab_Uns"></td>
- +<td><img src="l2buff.Line_BF3" width="160" height="20"></td>
- +</tr></table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 264" width=32 height=32 back="icon.skill0264" fore="icon.skill0264"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Hearth</td></tr>
- +<tr><td><font color="ae9977">+ защита.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 265" width=32 height=32 back="icon.skill0265" fore="icon.skill0265"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Life</td></tr>
- +<tr><td><font color="ae9977">+ реген жизни. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 266" width=32 height=32 back="icon.skill0266" fore="icon.skill0266"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Water</td></tr>
- +<tr><td><font color="ae9977">+ уворот.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 267" width=32 height=32 back="icon.skill0267" fore="icon.skill0267"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Warding</td></tr>
- +<tr><td><font color="ae9977">+ маг защита. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 268" width=32 height=32 back="icon.skill0268" fore="icon.skill0268"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Wind</td></tr>
- +<tr><td><font color="ae9977">+ �коро�ть.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 269" width=32 height=32 back="icon.skill0269" fore="icon.skill0269"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Hunter</td></tr>
- +<tr><td><font color="ae9977">+ шан� крита.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 304" width=32 height=32 back="icon.skill0304" fore="icon.skill0304"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Vitality</td></tr>
- +<tr><td><font color="ae9977">+ кол-во ХП.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 363" width=32 height=32 back="icon.skill0363" fore="icon.skill0363"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="FFFFFF">Meditation</td></tr>
- +<tr><td><font color="ae9977">+ реген маны.</font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<table bgcolor=000000>
- +<tr>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 364" width=32 height=32 back="icon.skill0364" fore="icon.skill0364"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Champion</td></tr>
- +<tr><td><font color="ae9977">- откат �киллов.</font></td></tr>
- +</table>
- +</td>
- +<td width=32><button action="bypass -h Quest 50000_Buffer Buff 349" width=32 height=32 back="icon.skill0349" fore="icon.skill0349"></td>
- +<td width=105>
- +<table>
- +<tr><td><font color="LEVEL">Renewal</td></tr>
- +<tr><td><font color="ae9977">- откат �киллов. </font></td></tr>
- +</table>
- +</td>
- +</tr>
- +</table>
- +<br>
- +</center>
- +</body>
- +</html>
- \ No newline at end of file
- [/code]
- [/spoiler]
- GS
- [spoiler]
- [code]
- ### Eclipse Workspace Patch 1.0
- #P Dream_GameServer
- Index: src/com/dream/Config.java
- ===================================================================
- --- src/com/dream/Config.java (revision 1831)
- +++ src/com/dream/Config.java (working copy)
- @@ -35,7 +35,7 @@
- public class Config extends L2Config
- {
- protected static Logger _log = Logger.getLogger(Config.class.getName());
- -
- +
- public static final String ALT_FILE = "./config/main/altgame.properties";
- public static int MIN_NPC_ANIMATION;
- public static int MAX_NPC_ANIMATION;
- @@ -96,7 +96,7 @@
- public static Pattern PET_NAME_PATTERN;
- public static Pattern CLAN_ALLY_NAME_PATTERN;
- public static Pattern TITLE_PATTERN;
- -
- +
- public static int ALT_PERFECT_SHLD_BLOCK;
- public static int ALT_BUFFER_HATE;
- public static int ALT_BUFFER_TIME;
- @@ -155,15 +155,15 @@
- public static boolean USE_CHAR_LEVEL_MOD;
- public static boolean DISABLE_SKILLS_ON_LEVEL_LOST;
- public static boolean OLD_CANCEL_MODE;
- -
- +
- public static boolean JAIL_IS_PVP;
- -
- +
- public static void loadAltConfig()
- {
- try
- {
- Properties altSettings = new L2Properties("./" + ALT_FILE);
- -
- +
- MANAGER_CRYSTAL_COUNT = Integer.parseInt(altSettings.getProperty("ManagerCrystalCount", "25"));
- ALT_URN_TEMP_FAIL = Integer.parseInt(altSettings.getProperty("UrnTempFail", "10"));
- ALLOW_EXCHANGE = Boolean.parseBoolean(altSettings.getProperty("AllowExchange", "true"));
- @@ -211,13 +211,13 @@
- HERB_AUTO_DESTROY_TIME = Integer.parseInt(altSettings.getProperty("AutoDestroyHerbTime", "15")) * 1000;
- GRID_AUTO_DESTROY_HERB_TIME = Integer.parseInt(altSettings.getProperty("AutoDestroyHerbTime", "15")) * 1000;
- PROTECTED_ITEMS = altSettings.getProperty("ListOfProtectedItems");
- -
- +
- LIST_PROTECTED_ITEMS = new FastList<>();
- for (String id : PROTECTED_ITEMS.trim().split(","))
- {
- LIST_PROTECTED_ITEMS.add(Integer.parseInt(id.trim()));
- }
- -
- +
- DESTROY_DROPPED_PLAYER_ITEM = Boolean.parseBoolean(altSettings.getProperty("DestroyPlayerDroppedItem", "false"));
- DESTROY_EQUIPABLE_PLAYER_ITEM = Boolean.parseBoolean(altSettings.getProperty("DestroyEquipableItem", "false"));
- SAVE_DROPPED_ITEM = Boolean.parseBoolean(altSettings.getProperty("SaveDroppedItem", "false"));
- @@ -269,20 +269,20 @@
- {
- ALLOWED_SKILLS_LIST.add(Integer.parseInt(id.trim()));
- }
- -
- +
- UNAFFECTED_SKILLS = altSettings.getProperty("UnaffectedSkills");
- UNAFFECTED_SKILL_LIST = new FastList<>();
- CONSUME_ON_SUCCESS = Boolean.parseBoolean(altSettings.getProperty("ConsumeOnSuccess", "true"));
- USE_STATIC_REUSE = Boolean.parseBoolean(altSettings.getProperty("EnableSaticReuse", "true"));
- -
- +
- for (String id : UNAFFECTED_SKILLS.trim().split(","))
- {
- UNAFFECTED_SKILL_LIST.add(Integer.parseInt(id.trim()));
- }
- -
- +
- ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(altSettings.getProperty("EnableModifySkillDuration", "false"));
- MCRIT_RATE = Float.parseFloat(altSettings.getProperty("MCritRate", "2"));
- -
- +
- if (ENABLE_MODIFY_SKILL_DURATION)
- {
- SKILL_DURATION_LIST = new FastMap<>();
- @@ -311,7 +311,7 @@
- }
- }
- }
- -
- +
- ALT_ITEM_SKILLS_NOT_INFLUENCED = Boolean.parseBoolean(altSettings.getProperty("AltItemSkillsNotInfluenced", "false"));
- AUTO_LEARN_DIVINE_INSPIRATION = Boolean.parseBoolean(altSettings.getProperty("AutoLearnDivineInspiration", "false"));
- ALT_MINIMUM_FALL_HEIGHT = Integer.parseInt(altSettings.getProperty("AltMinimumFallHeight", "400"));
- @@ -367,7 +367,7 @@
- throw new Error("Failed to Load " + ALT_FILE + " File.");
- }
- }
- -
- +
- public static final String RATES_FILE = "./config/main/rates.properties";
- public static int KARMA_DROP_LIMIT;
- public static int KARMA_RATE_DROP;
- @@ -404,15 +404,15 @@
- public static FastMap<Integer, Integer> NORMAL_WEAPON_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> BLESS_WEAPON_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> CRYTAL_WEAPON_ENCHANT_LEVEL = new FastMap<>();
- -
- +
- public static FastMap<Integer, Integer> NORMAL_ARMOR_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> BLESS_ARMOR_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> CRYSTAL_ARMOR_ENCHANT_LEVEL = new FastMap<>();
- -
- +
- public static FastMap<Integer, Integer> NORMAL_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> BLESS_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
- public static FastMap<Integer, Integer> CRYSTAL_JEWELRY_ENCHANT_LEVEL = new FastMap<>();
- -
- +
- public static boolean ALLOW_CRYSTAL_SCROLL;
- public static int ENCHANT_MAX_WEAPON;
- public static int ENCHANT_MAX_ARMOR;
- @@ -446,13 +446,13 @@
- public static int ALT_MANOR_SAVE_PERIOD_RATE;
- public static boolean ALLOW_MANOR;
- public static boolean ALT_MANOR_SAVE_ALL_ACTIONS;
- -
- +
- public static int MAX_PVTSTORESELL_SLOTS_DWARF;
- public static int MAX_PVTSTORESELL_SLOTS_OTHER;
- public static int MAX_PVTSTOREBUY_SLOTS_DWARF;
- public static int MAX_PVTSTOREBUY_SLOTS_OTHER;
- public static boolean CHECK_ZONE_ON_PVT;
- -
- +
- public static int WAREHOUSE_SLOTS_NO_DWARF;
- public static int WAREHOUSE_SLOTS_DWARF;
- public static int WAREHOUSE_SLOTS_CLAN;
- @@ -466,7 +466,7 @@
- public static boolean ALLOW_FREIGHT;
- public static boolean WAREHOUSE_CACHE;
- public static int WAREHOUSE_CACHE_TIME;
- -
- +
- public static double NPC_HP_REGEN_MULTIPLIER;
- public static double NPC_MP_REGEN_MULTIPLIER;
- public static double PLAYER_CP_REGEN_MULTIPLIER;
- @@ -478,13 +478,13 @@
- public static double RAID_MDEFENCE_MULTIPLIER;
- public static double PET_HP_REGEN_MULTIPLIER;
- public static double PET_MP_REGEN_MULTIPLIER;
- -
- +
- public static void loadRatesConfig()
- {
- try
- {
- Properties ratesSettings = new L2Properties("./" + RATES_FILE);
- -
- +
- SINEATER_XP_RATE = Float.parseFloat(ratesSettings.getProperty("SinEaterXpRate", "1."));
- RATE_XP = Float.parseFloat(ratesSettings.getProperty("RateXp", "1."));
- RATE_SP = Float.parseFloat(ratesSettings.getProperty("RateSp", "1."));
- @@ -515,7 +515,7 @@
- KARMA_RATE_DROP_ITEM = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropItem", "50"));
- KARMA_RATE_DROP_EQUIP = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropEquip", "40"));
- KARMA_RATE_DROP_EQUIP_WEAPON = Integer.parseInt(ratesSettings.getProperty("KarmaRateDropEquipWeapon", "10"));
- -
- +
- PET_XP_RATE = Float.parseFloat(ratesSettings.getProperty("PetXpRate", "1."));
- PET_FOOD_RATE = Float.parseFloat(ratesSettings.getProperty("PetFoodRate", "1"));
- String[] propertySplit = ratesSettings.getProperty("NormalWeaponEnchantLevel", "").split(";");
- @@ -541,7 +541,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("BlessWeaponEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -565,7 +565,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("CrystalWeaponEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -589,7 +589,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("NormalArmorEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -613,7 +613,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("BlessArmorEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -637,7 +637,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("CrystalArmorEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -661,7 +661,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("NormalJewelryEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -685,7 +685,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("BlessJewelryEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -709,7 +709,7 @@
- }
- }
- }
- -
- +
- propertySplit = ratesSettings.getProperty("CrystalJewelryEnchantLevel", "").split(";");
- for (String readData : propertySplit)
- {
- @@ -733,7 +733,7 @@
- }
- }
- }
- -
- +
- ALLOW_CRYSTAL_SCROLL = Boolean.parseBoolean(ratesSettings.getProperty("AllowCrystalScroll", "false"));
- ENCHANT_MAX_WEAPON = Integer.parseInt(ratesSettings.getProperty("EnchantMaxWeapon", "25"));
- ENCHANT_MAX_ARMOR = Integer.parseInt(ratesSettings.getProperty("EnchantMaxArmor", "25"));
- @@ -759,7 +759,7 @@
- AUGMENTATION_BASESTAT_CHANCE = Integer.parseInt(ratesSettings.getProperty("AugmentationBaseStatChance", "1"));
- CHECK_ENCHANT_LEVEL_EQUIP = Boolean.parseBoolean(ratesSettings.getProperty("CheckEnchantLevelEquip", "true"));
- ALT_FAILED_ENC_LEVEL = Boolean.parseBoolean(ratesSettings.getProperty("AltEncLvlAfterFail", "false"));
- -
- +
- ALLOW_MANOR = Boolean.parseBoolean(ratesSettings.getProperty("AllowManor", "false"));
- ALT_MANOR_REFRESH_TIME = Integer.parseInt(ratesSettings.getProperty("AltManorRefreshTime", "20"));
- ALT_MANOR_REFRESH_MIN = Integer.parseInt(ratesSettings.getProperty("AltManorRefreshMin", "00"));
- @@ -768,13 +768,13 @@
- ALT_MANOR_MAINTENANCE_PERIOD = Integer.parseInt(ratesSettings.getProperty("AltManorMaintenancePeriod", "360000"));
- ALT_MANOR_SAVE_ALL_ACTIONS = Boolean.parseBoolean(ratesSettings.getProperty("AltManorSaveAllActions", "false"));
- ALT_MANOR_SAVE_PERIOD_RATE = Integer.parseInt(ratesSettings.getProperty("AltManorSavePeriodRate", "2"));
- -
- +
- MAX_PVTSTORESELL_SLOTS_DWARF = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreSellSlotsDwarf", "4"));
- MAX_PVTSTORESELL_SLOTS_OTHER = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreSellSlotsOther", "3"));
- MAX_PVTSTOREBUY_SLOTS_DWARF = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreBuySlotsDwarf", "5"));
- MAX_PVTSTOREBUY_SLOTS_OTHER = Integer.parseInt(ratesSettings.getProperty("MaxPvtStoreBuySlotsOther", "4"));
- CHECK_ZONE_ON_PVT = Boolean.parseBoolean(ratesSettings.getProperty("CheckZoneOnPvt", "false"));
- -
- +
- ALLOW_WAREHOUSE = Boolean.parseBoolean(ratesSettings.getProperty("AllowWarehouse", "true"));
- ALLOW_FREIGHT = Boolean.parseBoolean(ratesSettings.getProperty("AllowFreight", "true"));
- ENABLE_WAREHOUSESORTING_CLAN = Boolean.parseBoolean(ratesSettings.getProperty("EnableWarehouseSortingClan", "false"));
- @@ -806,7 +806,7 @@
- throw new Error("Failed to Load " + RATES_FILE + " File.");
- }
- }
- -
- +
- public static final String GAMESERVER_FILE = "./config/main/gameserver.properties";
- public static int REQUEST_ID;
- public static int MAX_CHARACTERS_NUMBER_PER_ACCOUNT;
- @@ -818,7 +818,7 @@
- public static boolean SERVER_LIST_CLOCK;
- public static boolean SERVER_GMONLY;
- public static File DATAPACK_ROOT;
- -
- +
- public static boolean COMPILE_SCRIPTS = true;
- public static int GENERAL_THREAD_POOL_SIZE = 3;
- public static int PACKET_THREAD_POOL_SIZE = 2;
- @@ -826,15 +826,15 @@
- public static int AI_THREAD_POOL_SIZE = 4;
- public static int THREAD_POOL_SIZE;
- public static String SERVER_NAME;
- -
- +
- public static int MMO_SELECTOR_SLEEP_TIME = 20;
- public static int MMO_MAX_SEND_PER_PASS = 12;
- public static int MMO_MAX_READ_PER_PASS = 12;
- public static int MMO_HELPER_BUFFER_COUNT = 20;
- public static boolean MMO_TCP_NODELAY = false;
- -
- +
- public static boolean ENABLE_DDOS_PROTECTION = true;
- -
- +
- public static boolean BAN_CHAT_LOG;
- public static boolean BAN_ACCOUNT_LOG;
- public static boolean JAIL_LOG;
- @@ -849,7 +849,7 @@
- public static boolean ANNOUNCE_BAN_CHAR;
- public static boolean ANNOUNCE_UNBAN_CHAR;
- public static int GLOBAL_BAN_CHAT_TIME;
- -
- +
- public static boolean DATETIME_SAVECAL = true;
- public static int DATETIME_SUNRISE = 6;
- public static int DATETIME_SUNSET = 0;
- @@ -857,9 +857,9 @@
- public static int DATETIME_MOVE_DELAY = 200;
- public static String TIME_ZONE;
- public static boolean ADVANCED_DIAGONAL_STRATEGY = true;
- -
- +
- public static boolean ONLY_CLANLEADER_CAN_SIT_ON_THRONE;
- -
- +
- public static enum IdFactoryType
- {
- Compaction,
- @@ -868,19 +868,19 @@
- Increment,
- Rebuild
- }
- -
- +
- public static enum ObjectMapType
- {
- L2ObjectHashMap,
- WorldObjectMap
- }
- -
- +
- public static enum ObjectSetType
- {
- L2ObjectHashSet,
- WorldObjectSet
- }
- -
- +
- public static IdFactoryType IDFACTORY_TYPE;
- public static boolean BAD_ID_CHECKING;
- public static boolean ID_FACTORY_CLEANUP;
- @@ -900,7 +900,7 @@
- public static boolean Allow_Same_HWID_On_Events = true;
- public static boolean Allow_Same_IP_On_Events = true;
- public static int ENCHAT_TIME = 3;
- -
- +
- public static int LIT_REGISTRATION_MODE;
- public static int LIT_REGISTRATION_TIME;
- public static int LIT_MIN_PARTY_CNT;
- @@ -958,7 +958,7 @@
- public static int CS_SUPPORT2_FEE;
- public static int CS_SUPPORT3_FEE;
- public static int CS_SUPPORT4_FEE;
- -
- +
- public static long CH_TELE_FEE_RATIO;
- public static int CH_TELE1_FEE;
- public static int CH_TELE2_FEE;
- @@ -1009,27 +1009,27 @@
- public static long CH_FRONT_FEE_RATIO;
- public static int CH_FRONT1_FEE;
- public static int CH_FRONT2_FEE;
- -
- +
- public static long FORT_TELE_FEE_RATIO;
- public static int FORT_TELE1_FEE;
- public static int FORT_TELE2_FEE;
- -
- +
- public static long FORT_MPREG_FEE_RATIO;
- public static int FORT_MPREG1_FEE;
- public static int FORT_MPREG2_FEE;
- -
- +
- public static long FORT_HPREG_FEE_RATIO;
- public static int FORT_HPREG1_FEE;
- public static int FORT_HPREG2_FEE;
- -
- +
- public static long FORT_EXPREG_FEE_RATIO;
- public static int FORT_EXPREG1_FEE;
- public static int FORT_EXPREG2_FEE;
- -
- +
- public static long FORT_SUPPORT_FEE_RATIO;
- public static int FORT_SUPPORT1_FEE;
- public static int FORT_SUPPORT2_FEE;
- -
- +
- /** Class Master */
- public static boolean SPAWN_CLASS_MASTER;
- public static boolean ALLOW_CLASS_MASTERS;
- @@ -1039,7 +1039,7 @@
- public static ClassMasterSettings CLASS_MASTER_SETTINGS;
- public static boolean CLASS_MASTER_STRIDER_UPDATE;
- public static boolean ALLOW_REMOTE_CLASS_MASTERS;
- -
- +
- public static void loadGsConfig()
- {
- try
- @@ -1046,34 +1046,34 @@
- {
- Properties gsSettings = new L2Properties("./" + GAMESERVER_FILE);
- THREAD_POOL_SIZE = GENERAL_THREAD_POOL_SIZE + PACKET_THREAD_POOL_SIZE + EFFECT_THREAD_POOL_SIZE + AI_THREAD_POOL_SIZE;
- -
- +
- REQUEST_ID = Integer.parseInt(gsSettings.getProperty("RequestServerId", "1"));
- if (REQUEST_ID <= 0)
- {
- REQUEST_ID = 1;
- }
- -
- +
- MAXIMUM_ONLINE_USERS = Integer.parseInt(gsSettings.getProperty("MaximumOnlineUsers", "1000"));
- if (MAXIMUM_ONLINE_USERS > 5000)
- {
- MAXIMUM_ONLINE_USERS = 5000;
- }
- -
- +
- MAX_CHARACTERS_NUMBER_PER_ACCOUNT = Integer.parseInt(gsSettings.getProperty("CharMaxNumber", "7"));
- if (MAX_CHARACTERS_NUMBER_PER_ACCOUNT > 7)
- {
- MAX_CHARACTERS_NUMBER_PER_ACCOUNT = 7;
- }
- -
- +
- ACCEPT_ALTERNATE_ID = Boolean.parseBoolean(gsSettings.getProperty("AcceptAlternateId", "true"));
- DATAPACK_ROOT = new File(gsSettings.getProperty("DatapackRoot", ".")).getCanonicalFile();
- SERVER_NAME = gsSettings.getProperty("ServerName", "L2Dream");
- -
- +
- BAN_CHAT_LOG = Boolean.parseBoolean(gsSettings.getProperty("BanChatLog", "true"));
- BAN_ACCOUNT_LOG = Boolean.parseBoolean(gsSettings.getProperty("BanAccountLog", "true"));
- JAIL_LOG = Boolean.parseBoolean(gsSettings.getProperty("JailLog", "true"));
- BAN_CHAR_LOG = Boolean.parseBoolean(gsSettings.getProperty("PlayerBanLog", "true"));
- -
- +
- CLASSIC_ANNOUNCE_MODE = Boolean.parseBoolean(gsSettings.getProperty("AnnounceBanChat", "true"));
- ANNOUNCE_BAN_CHAT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceBanChat", "true"));
- ANNOUNCE_UNBAN_CHAT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnbanChat", "true"));
- @@ -1081,16 +1081,16 @@
- ANNOUNCE_UNBAN_ACCOUNT = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnBanAccount", "true"));
- ANNOUNCE_JAIL = Boolean.parseBoolean(gsSettings.getProperty("AnnounceJail", "true"));
- ANNOUNCE_UNJAIL = Boolean.parseBoolean(gsSettings.getProperty("AnnounceUnJail", "true"));
- -
- +
- GLOBAL_BAN_CHAT_TIME = Integer.parseInt(gsSettings.getProperty("GlobalBanTime", "15"));
- -
- +
- TIME_ZONE = gsSettings.getProperty("TimeZone", "America/Sao_Paulo");
- ONLY_CLANLEADER_CAN_SIT_ON_THRONE = Boolean.parseBoolean(gsSettings.getProperty("OnlyClanleaderCanSitOnThrone", "false"));
- -
- +
- IDFACTORY_TYPE = IdFactoryType.valueOf(gsSettings.getProperty("IDFactory", "BitSet"));
- BAD_ID_CHECKING = Boolean.parseBoolean(gsSettings.getProperty("BadIdChecking", "true"));
- ID_FACTORY_CLEANUP = Boolean.parseBoolean(gsSettings.getProperty("CleanBadIDs", "true"));
- -
- +
- SAFE_REBOOT = Boolean.parseBoolean(gsSettings.getProperty("SafeReboot", "true"));
- SAFE_REBOOT_TIME = Integer.parseInt(gsSettings.getProperty("SafeRebootTime", "10"));
- SAFE_REBOOT_DISABLE_ENCHANT = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableEnchant", "false"));
- @@ -1099,7 +1099,7 @@
- SAFE_REBOOT_DISABLE_TRANSACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableTransaction", "false"));
- SAFE_REBOOT_DISABLE_PC_ITERACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisablePcIteraction", "false"));
- SAFE_REBOOT_DISABLE_NPC_ITERACTION = Boolean.parseBoolean(gsSettings.getProperty("SafeRebootDisableNpcIteraction", "false"));
- -
- +
- LIT_REGISTRATION_MODE = Integer.parseInt(gsSettings.getProperty("RegistrationMode", "0"));
- LIT_REGISTRATION_TIME = Integer.parseInt(gsSettings.getProperty("RegistrationTime", "10"));
- LIT_MIN_PARTY_CNT = Integer.parseInt(gsSettings.getProperty("MinPartyCount", "4"));
- @@ -1121,7 +1121,7 @@
- RIFT_BOSS_ROOM_TIME_MUTIPLY = Float.parseFloat(gsSettings.getProperty("BossRoomTimeMultiply", "1.5"));
- HS_DEBUFF_CHANCE = Integer.parseInt(gsSettings.getProperty("HotSpringDebuffChance", "15"));
- FOG_MOBS_CLONE_CHANCE = Integer.parseInt(gsSettings.getProperty("FOGMobsCloneChance", "10"));
- -
- +
- ALT_DEFAULT_RESTARTTOWN = Integer.parseInt(gsSettings.getProperty("AltDefaultRestartTown", "0"));
- RESPAWN_RANDOM_MAX_OFFSET = Integer.parseInt(gsSettings.getProperty("RespawnRandomMaxOffset", "50"));
- RAID_MINION_RESPAWN_TIMER = Integer.parseInt(gsSettings.getProperty("RaidMinionRespawnTime", "300000"));
- @@ -1133,7 +1133,7 @@
- RESPAWN_RESTORE_MP = Double.parseDouble(gsSettings.getProperty("RespawnRestoreMP", "70")) / 100;
- MON_RESPAWN_RANDOM_ENABLED = Boolean.parseBoolean(gsSettings.getProperty("UseMonsterRndSpawn", "true"));
- MON_RESPAWN_RANDOM_ZONE = Integer.parseInt(gsSettings.getProperty("RndSpawnZone", "300"));
- -
- +
- CS_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("CastleTeleportFunctionFeeRatio", "604800000"));
- CS_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("CastleTeleportFunctionFeeLvl1", "7000"));
- CS_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("CastleTeleportFunctionFeeLvl2", "14000"));
- @@ -1158,7 +1158,7 @@
- CS_EXPREG2_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl2", "15000"));
- CS_EXPREG3_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl3", "21000"));
- CS_EXPREG4_FEE = Integer.parseInt(gsSettings.getProperty("CastleExpRegenerationFeeLvl4", "30000"));
- -
- +
- CH_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("ClanHallTeleportFunctionFeeRatio", "604800000"));
- CH_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallTeleportFunctionFeeLvl1", "7000"));
- CH_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallTeleportFunctionFeeLvl2", "14000"));
- @@ -1209,7 +1209,7 @@
- CH_FRONT_FEE_RATIO = Long.parseLong(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeRatio", "259200000"));
- CH_FRONT1_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeLvl1", "1300"));
- CH_FRONT2_FEE = Integer.parseInt(gsSettings.getProperty("ClanHallFrontPlatformFunctionFeeLvl2", "4000"));
- -
- +
- FORT_TELE_FEE_RATIO = Long.parseLong(gsSettings.getProperty("FortTeleportFunctionFeeRatio", "604800000"));
- FORT_TELE1_FEE = Integer.parseInt(gsSettings.getProperty("FortTeleportFunctionFeeLvl1", "1000"));
- FORT_TELE2_FEE = Integer.parseInt(gsSettings.getProperty("FortTeleportFunctionFeeLvl2", "10000"));
- @@ -1225,7 +1225,7 @@
- FORT_EXPREG_FEE_RATIO = Long.parseLong(gsSettings.getProperty("FortExpRegenerationFunctionFeeRatio", "86400000"));
- FORT_EXPREG1_FEE = Integer.parseInt(gsSettings.getProperty("FortExpRegenerationFeeLvl1", "9000"));
- FORT_EXPREG2_FEE = Integer.parseInt(gsSettings.getProperty("FortExpRegenerationFeeLvl2", "10000"));
- -
- +
- /** Class Master */
- ALLOW_CLASS_MASTERS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMasters", "False"));
- ALLOW_CLASS_MASTERS_FIRST_CLASS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMastersFirstClass", "True"));
- @@ -1235,7 +1235,7 @@
- CLASS_MASTER_STRIDER_UPDATE = TypeFormat.parseBoolean(gsSettings.getProperty("AllowClassMastersStriderUpdate", "False"));
- ALLOW_REMOTE_CLASS_MASTERS = TypeFormat.parseBoolean(gsSettings.getProperty("AllowRemoteClassMasters", "False"));
- SPAWN_CLASS_MASTER = Boolean.parseBoolean(gsSettings.getProperty("SpawnClassMaster", "false"));
- -
- +
- }
- catch (Exception e)
- {
- @@ -1243,7 +1243,7 @@
- throw new Error("Failed to Load " + GAMESERVER_FILE + " File.");
- }
- }
- -
- +
- public static final String OPTIONS_FILE = "./config/main/options.properties";
- public static boolean AUTODELETE_INVALID_QUEST_DATA;
- public static boolean LOG_ITEMS;
- @@ -1268,7 +1268,7 @@
- public static int Z_DENSITY;
- public static PathFindingMode PATHFIND_MODE;
- public static String GEOENGINE;
- -
- +
- public static enum CorrectSpawnsZ
- {
- TOWN,
- @@ -1276,9 +1276,9 @@
- ALL,
- NONE
- }
- -
- +
- public static CorrectSpawnsZ GEO_CORRECT_Z;
- -
- +
- public static boolean ALLOW_CURSED_WEAPONS;
- public static boolean ALLOW_WEAR;
- public static boolean ALLOW_LOTTERY;
- @@ -1287,7 +1287,7 @@
- public static boolean ALLOW_GUARDS;
- public static boolean ALLOW_FISHING;
- public static boolean ALLOW_NPC_WALKERS;
- -
- +
- public static int PLAYER_SPAWN_PROTECTION;
- public static int PLAYER_FAKEDEATH_UP_PROTECTION;
- public static int UNSTUCK_INTERVAL;
- @@ -1299,11 +1299,11 @@
- public static FastList<String> LIST_MACRO_RESTRICTED_WORDS = new FastList<>();
- public static boolean CONSUME_SPIRIT_SOUL_SHOTS;
- public static boolean RESET_TO_BASE = true;
- -
- +
- public static boolean ENABLE_RESTART;
- public static String RESTART_TIME;
- public static String RESTART_WARN_TIME;
- -
- +
- public static int INVENTORY_MAXIMUM_NO_DWARF;
- public static int INVENTORY_MAXIMUM_DWARF;
- public static int INVENTORY_MAXIMUM_GM;
- @@ -1316,7 +1316,7 @@
- public static boolean AUTO_LOOT_ADENA;
- public static boolean DESTROY_PLAYER_INVENTORY_DROP;
- public static boolean ALLOW_DISCARDITEM;
- -
- +
- public static float KARMA_RATE;
- public static boolean CURSED_WEAPON_NPC_INTERACT;
- public static int KARMA_MIN_KARMA;
- @@ -1342,7 +1342,7 @@
- public static boolean MULTIPLE_ITEM_DROP;
- public static boolean PRECISE_DROP_CALCULATION;
- public static boolean DEEPBLUE_DROP_RULES;
- -
- +
- /** Community board */
- public static String COMMUNITY_TYPE;
- public static String BBS_DEFAULT;
- @@ -1363,7 +1363,7 @@
- public static boolean SHOW_CLAN_LEADER;
- public static int SHOW_CLAN_LEADER_CLAN_LEVEL;
- public static boolean MAIL_STORE_DELETED_LETTERS;
- -
- +
- public static int MIN_CLAN_LEVEL_FOR_USE_AUCTION;
- public static int ALT_CLAN_MEMBERS_FOR_WAR;
- public static int ALT_CLAN_JOIN_DAYS;
- @@ -1382,7 +1382,7 @@
- public static boolean REMOVE_CASTLE_CIRCLETS;
- public static int ALT_REPUTATION_SCORE_PER_KILL;
- public static String ALT_REPUTATION_SCORE_PER_KILL_SM;
- -
- +
- public static double PARTY_XP_CUTOFF_PERCENT;
- public static int ALT_PARTY_RANGE;
- public static int ALT_PARTY_RANGE2;
- @@ -1390,13 +1390,13 @@
- public static int PARTY_XP_CUTOFF_LEVEL;
- public static boolean NO_PARTY_LEVEL_LIMIT;
- public static String PARTY_XP_CUTOFF_METHOD;
- -
- +
- public static int MAX_PETITIONS_PER_PLAYER;
- public static int MAX_PETITIONS_PENDING;
- public static boolean PETITIONING_ALLOWED;
- public static boolean PETITION_NEED_GM_ONLINE;
- public static boolean SEND_PAGE_ON_PETTITON;
- -
- +
- public static enum ChatMode
- {
- GLOBAL,
- @@ -1404,7 +1404,7 @@
- GM,
- OFF
- }
- -
- +
- public static List<Pattern> FILTER_LIST = new ArrayList<>();
- public static ChatMode DEFAULT_GLOBAL_CHAT;
- public static ChatMode DEFAULT_TRADE_CHAT;
- @@ -1420,13 +1420,13 @@
- public static int HERO_CHAT_TIME;
- public static int SHOUT_CHAT_LEVEL;
- public static int TRADE_CHAT_LEVEL;
- -
- +
- public static void loadOptionsConfig()
- {
- try
- {
- Properties optionsSettings = new L2Properties("./" + OPTIONS_FILE);
- -
- +
- RESTORE_PLAYER_INSTANCE = Boolean.parseBoolean(optionsSettings.getProperty("RestorePlayerInstance", "false"));
- ALLOW_SUMMON_TO_INSTANCE = Boolean.parseBoolean(optionsSettings.getProperty("AllowSummonToInstance", "true"));
- CHAR_STORE_INTERVAL = Integer.parseInt(optionsSettings.getProperty("CharacterDataStoreInterval", "15"));
- @@ -1434,7 +1434,7 @@
- LAZY_ITEMS_UPDATE = Boolean.parseBoolean(optionsSettings.getProperty("LazyItemsUpdate", "false"));
- COORD_SYNCHRONIZE = Integer.parseInt(optionsSettings.getProperty("CoordSynchronize", "-1"));
- SERVER_GMONLY = Boolean.parseBoolean(optionsSettings.getProperty("ServerGMOnly", "false"));
- -
- +
- LOG_ITEMS = Boolean.parseBoolean(optionsSettings.getProperty("LogItems", "false"));
- IGNORE_LOG = optionsSettings.getProperty("IgnoreLogItems", "CONSUME").toUpperCase();
- AUTODELETE_INVALID_QUEST_DATA = Boolean.parseBoolean(optionsSettings.getProperty("AutoDeleteInvalidQuestData", "false"));
- @@ -1458,7 +1458,7 @@
- GEOENGINE = optionsSettings.getProperty("GeoEngine", "dream");
- PATH_LENGTH = Integer.parseInt(optionsSettings.getProperty("MaxPathLength", "3500"));
- Z_DENSITY = Integer.parseInt(optionsSettings.getProperty("ZAxisDensity", "12"));
- -
- +
- ALLOW_NPC_WALKERS = Boolean.parseBoolean(optionsSettings.getProperty("AllowNpcWalkers", "false"));
- ALLOW_GUARDS = Boolean.parseBoolean(optionsSettings.getProperty("AllowGuards", "false"));
- ALLOW_CURSED_WEAPONS = Boolean.parseBoolean(optionsSettings.getProperty("AllowCursedWeapons", "false"));
- @@ -1467,21 +1467,21 @@
- ALLOW_WATER = Boolean.parseBoolean(optionsSettings.getProperty("AllowWater", "true"));
- ALLOW_FISHING = Boolean.parseBoolean(optionsSettings.getProperty("AllowFishing", "true"));
- ALLOW_BOAT = Boolean.parseBoolean(optionsSettings.getProperty("AllowBoat", "false"));
- -
- +
- PET_RENT_NPC = optionsSettings.getProperty("ListPetRentNpc", "30827");
- LIST_PET_RENT_NPC = new FastList<>();
- -
- +
- for (String id : PET_RENT_NPC.split(","))
- {
- LIST_PET_RENT_NPC.add(Integer.parseInt(id));
- }
- -
- +
- UNSTUCK_INTERVAL = Integer.parseInt(optionsSettings.getProperty("PlayerUnstuckInterval", "350"));
- PLAYER_SPAWN_PROTECTION = Integer.parseInt(optionsSettings.getProperty("PlayerSpawnProtection", "5"));
- PLAYER_FAKEDEATH_UP_PROTECTION = Integer.parseInt(optionsSettings.getProperty("PlayerFakeDeathUpProtection", "0"));
- DEATH_PENALTY_CHANCE = Integer.parseInt(optionsSettings.getProperty("DeathPenaltyChance", "20"));
- ALLOW_KEYBOARD_MOVEMENT = Boolean.parseBoolean(optionsSettings.getProperty("AllowKeyboardMovement", "true"));
- -
- +
- CHECK_PLAYER_MACRO = Boolean.parseBoolean(optionsSettings.getProperty("CheckPlayerMacro", "true"));
- LIST_MACRO_RESTRICTED_WORDS = new FastList<>();
- for (String command : optionsSettings.getProperty("MacroRestrictedCommandList", "exit").split(","))
- @@ -1488,14 +1488,14 @@
- {
- LIST_MACRO_RESTRICTED_WORDS.add(command);
- }
- -
- +
- CONSUME_SPIRIT_SOUL_SHOTS = Boolean.parseBoolean(optionsSettings.getProperty("ConsumeSSShot", "true"));
- RESET_TO_BASE = Boolean.parseBoolean(optionsSettings.getProperty("ResetToBaseCalssIfFail", "true"));
- -
- +
- ENABLE_RESTART = Boolean.parseBoolean(optionsSettings.getProperty("EnableRestart", "false"));
- RESTART_TIME = optionsSettings.getProperty("RestartTime", "06:20:00");
- RESTART_WARN_TIME = optionsSettings.getProperty("RestartWarnTime", "600");
- -
- +
- AUTO_LOOT_ADENA = optionsSettings.getProperty("AutoLootAdena").trim().equalsIgnoreCase("true");
- ALLOW_DISCARDITEM = Boolean.parseBoolean(optionsSettings.getProperty("AllowDiscardItem", "true"));
- DESTROY_PLAYER_INVENTORY_DROP = Boolean.parseBoolean(optionsSettings.getProperty("DestroyPlayerInventoryDrop", "false"));
- @@ -1528,23 +1528,23 @@
- ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(optionsSettings.getProperty("AltKarmaPlayerCanUseWareHouse", "true"));
- KARMA_NON_DROPPABLE_PET_ITEMS = optionsSettings.getProperty("ListOfPetItems", "2375,3500,3501,3502,4422,4423,4424,4425,6648,6649,6650,9882");
- 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");
- -
- +
- KARMA_LIST_NONDROPPABLE_PET_ITEMS = new FastList<>();
- for (String id : KARMA_NON_DROPPABLE_PET_ITEMS.trim().split(","))
- {
- KARMA_LIST_NONDROPPABLE_PET_ITEMS.add(Integer.parseInt(id.trim()));
- }
- -
- +
- KARMA_LIST_NONDROPPABLE_ITEMS = new FastList<>();
- for (String id : KARMA_NON_DROPPABLE_ITEMS.trim().split(","))
- {
- KARMA_LIST_NONDROPPABLE_ITEMS.add(Integer.parseInt(id.trim()));
- }
- -
- +
- MULTIPLE_ITEM_DROP = Boolean.parseBoolean(optionsSettings.getProperty("MultipleItemDrop", "true"));
- DEEPBLUE_DROP_RULES = Boolean.parseBoolean(optionsSettings.getProperty("UseDeepBlueDropRules", "true"));
- PRECISE_DROP_CALCULATION = Boolean.parseBoolean(optionsSettings.getProperty("PreciseDropCalculation", "true"));
- -
- +
- SHOW_CLAN_LEADER = Boolean.parseBoolean(optionsSettings.getProperty("ShowClanLeader", "false"));
- SHOW_CLAN_LEADER_CLAN_LEVEL = Integer.parseInt(optionsSettings.getProperty("ShowClanLeaderAtClanLevel", "3"));
- SHOW_LEGEND = Boolean.parseBoolean(optionsSettings.getProperty("ShowLegend", "false"));
- @@ -1589,7 +1589,7 @@
- MEMBER_FOR_LEVEL_EIGHT = Integer.parseInt(optionsSettings.getProperty("MemberForLevel8", "120"));
- ALT_REPUTATION_SCORE_PER_KILL = Integer.parseInt(optionsSettings.getProperty("ReputationScorePerKill", "1"));
- ALT_REPUTATION_SCORE_PER_KILL_SM = optionsSettings.getProperty("ReputationScorePerKill", "1");
- -
- +
- PARTY_XP_CUTOFF_METHOD = optionsSettings.getProperty("PartyXpCutoffMethod", "percentage");
- PARTY_XP_CUTOFF_PERCENT = Double.parseDouble(optionsSettings.getProperty("PartyXpCutoffPercent", "3."));
- PARTY_XP_CUTOFF_LEVEL = Integer.parseInt(optionsSettings.getProperty("PartyXpCutoffLevel", "30"));
- @@ -1597,13 +1597,13 @@
- ALT_PARTY_RANGE2 = Integer.parseInt(optionsSettings.getProperty("AltPartyRange2", "1400"));
- MAX_PARTY_LEVEL_DIFFERENCE = Integer.parseInt(optionsSettings.getProperty("PartyMaxLevelDifference", "0"));
- NO_PARTY_LEVEL_LIMIT = Boolean.parseBoolean(optionsSettings.getProperty("PartLevelLimit", "true"));
- -
- +
- SEND_PAGE_ON_PETTITON = Boolean.parseBoolean(optionsSettings.getProperty("SendPageOnPetition", "false"));
- PETITIONING_ALLOWED = Boolean.parseBoolean(optionsSettings.getProperty("PetitioningAllowed", "true"));
- MAX_PETITIONS_PER_PLAYER = Integer.parseInt(optionsSettings.getProperty("MaxPetitionsPerPlayer", "5"));
- MAX_PETITIONS_PENDING = Integer.parseInt(optionsSettings.getProperty("MaxPetitionsPending", "25"));
- PETITION_NEED_GM_ONLINE = Boolean.parseBoolean(optionsSettings.getProperty("PetitioningNeedGmOnline", "true"));
- -
- +
- DEFAULT_GLOBAL_CHAT = ChatMode.valueOf(optionsSettings.getProperty("GlobalChat", "REGION").toUpperCase());
- DEFAULT_TRADE_CHAT = ChatMode.valueOf(optionsSettings.getProperty("TradeChat", "REGION").toUpperCase());
- REGION_CHAT_ALSO_BLOCKED = Boolean.parseBoolean(optionsSettings.getProperty("RegionChatAlsoBlocked", "false"));
- @@ -1629,7 +1629,7 @@
- throw new Error("Failed to Load " + OPTIONS_FILE + " File.");
- }
- }
- -
- +
- public static final String MAIN_EVENTS = "./config/main/fun_events.properties";
- public static boolean ALT_GAME_CASTLE_DAWN;
- public static boolean ALT_GAME_CASTLE_DUSK;
- @@ -1655,7 +1655,7 @@
- public static double ALT_SIEGE_DUSK_GATES_PDEF_MULT;
- public static double ALT_SIEGE_DAWN_GATES_MDEF_MULT;
- public static double ALT_SIEGE_DUSK_GATES_MDEF_MULT;
- -
- +
- public static boolean PC_CAFFE_ENABLED;
- public static int PC_CAFFE_MIN_LEVEL;
- public static int PC_CAFFE_MAX_LEVEL;
- @@ -1662,7 +1662,7 @@
- public static int PC_CAFFE_MIN_SCORE;
- public static int PC_CAFFE_MAX_SCORE;
- public static int PC_CAFFE_INTERVAL;
- -
- +
- public static int ALT_OLY_START_TIME;
- public static int ALT_OLY_MIN;
- public static int ALT_OLY_CPERIOD;
- @@ -1693,7 +1693,7 @@
- public static String ALT_OLY_DURATION_TYPES;
- public static int ALT_OLY_DURATION;
- public static boolean ALT_OLY_INCLUDE_SUMMON_DAMAGE;
- -
- +
- public static int ALT_LOTTERY_PRIZE;
- public static int ALT_LOTTERY_TICKET_PRICE;
- public static int ALT_LOTTERY_2_AND_1_NUMBER_PRIZE;
- @@ -1700,9 +1700,9 @@
- public static float ALT_LOTTERY_5_NUMBER_RATE;
- public static float ALT_LOTTERY_4_NUMBER_RATE;
- public static float ALT_LOTTERY_3_NUMBER_RATE;
- -
- +
- public static int CHAMPION_FREQUENCY;
- -
- +
- public static int CHAMPION_HP;
- public static boolean CHAMPION_PASSIVE;
- public static String CHAMPION_TITLE;
- @@ -1721,7 +1721,7 @@
- public static boolean CHAMPION_BOSS;
- public static boolean CHAMPION_MINIONS;
- public static boolean CHAMPION_ENABLE;
- -
- +
- public static boolean STAR_DROP;
- public static boolean STAR_SPAWN;
- public static int STAR_CHANCE1;
- @@ -1744,7 +1744,7 @@
- public static String L2DAY_REWARD;
- public static String L2DAY_ACCESSORIE;
- public static String L2DAY_SCROLL;
- -
- +
- public static int BIGSQUASH_CHANCE;
- public static boolean BIGSQUASH_SPAWN;
- public static boolean BIGSQUASH_DROP;
- @@ -1757,7 +1757,7 @@
- public static int FISHERMAN_INTERVAL;
- public static int FISHERMAN_REWARD_ID;
- public static int FISHERMAN_REWARD_COUNT;
- -
- +
- public static int WEDDING_PRICE;
- public static int WEDDING_TELEPORT_PRICE;
- public static int WEDDING_TELEPORT_INTERVAL;
- @@ -1776,13 +1776,13 @@
- public static int WEDDING_NORMAL;
- public static int WEDDING_GAY;
- public static int WEDDING_LESBI;
- -
- +
- public static void loadMainEventsConfig()
- {
- try
- {
- Properties p = new L2Properties("./" + MAIN_EVENTS);
- -
- +
- ALT_DAWN_JOIN_COST = Integer.parseInt(p.getProperty("AltJoinDawnCost", "50000"));
- ALT_GAME_CASTLE_DAWN = Boolean.parseBoolean(p.getProperty("AltCastleForDawn", "true"));
- ALT_GAME_CASTLE_DUSK = Boolean.parseBoolean(p.getProperty("AltCastleForDusk", "true"));
- @@ -1807,7 +1807,7 @@
- ALT_SIEGE_DUSK_GATES_PDEF_MULT = Double.parseDouble(p.getProperty("AltDuskGatesPdefMult", "0.8"));
- ALT_SIEGE_DAWN_GATES_MDEF_MULT = Double.parseDouble(p.getProperty("AltDawnGatesMdefMult", "1.1"));
- ALT_SIEGE_DUSK_GATES_MDEF_MULT = Double.parseDouble(p.getProperty("AltDuskGatesMdefMult", "0.8"));
- -
- +
- PC_CAFFE_ENABLED = Boolean.parseBoolean(p.getProperty("PCCaffeEnabled", "true"));
- PC_CAFFE_INTERVAL = Integer.parseInt(p.getProperty("PCCafeInterval", "10"));
- PC_CAFFE_MIN_LEVEL = Integer.parseInt(p.getProperty("PCCafeMinLevel", "20"));
- @@ -1814,7 +1814,7 @@
- PC_CAFFE_MAX_LEVEL = Integer.parseInt(p.getProperty("PCCafeMaxLevel", "85"));
- PC_CAFFE_MIN_SCORE = Integer.parseInt(p.getProperty("PCCafeMinScore", "0"));
- PC_CAFFE_MAX_SCORE = Integer.parseInt(p.getProperty("PCCafeMaxScore", "10"));
- -
- +
- ALT_OLY_SAME_IP = Boolean.parseBoolean(p.getProperty("AltOlySameIp", "true"));
- ALT_OLY_START_TIME = Integer.parseInt(p.getProperty("AltOlyStartTime", "18"));
- ALT_OLY_MIN = Integer.parseInt(p.getProperty("AltOlyMin", "00"));
- @@ -1853,7 +1853,7 @@
- ALT_OLY_DURATION = Integer.parseInt(p.getProperty("OlympiadDuration", "1"));
- ALT_OLY_REMOVE_POINTS_ON_TIE = Boolean.parseBoolean(p.getProperty("OlympiadRemovePointsOnTie", "true"));
- ALT_OLY_INCLUDE_SUMMON_DAMAGE = Boolean.parseBoolean(p.getProperty("IncludeSummonDamage", "true"));
- -
- +
- ALT_LOTTERY_PRIZE = Integer.parseInt(p.getProperty("AltLotteryPrize", "50000"));
- ALT_LOTTERY_TICKET_PRICE = Integer.parseInt(p.getProperty("AltLotteryTicketPrice", "2000"));
- ALT_LOTTERY_5_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery5NumberRate", "0.6"));
- @@ -1860,7 +1860,7 @@
- ALT_LOTTERY_4_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery4NumberRate", "0.2"));
- ALT_LOTTERY_3_NUMBER_RATE = Float.parseFloat(p.getProperty("AltLottery3NumberRate", "0.2"));
- ALT_LOTTERY_2_AND_1_NUMBER_PRIZE = Integer.parseInt(p.getProperty("AltLottery2and1NumberPrize", "200"));
- -
- +
- CHAMPION_PASSIVE = Boolean.parseBoolean(p.getProperty("ChampionPassive", "false"));
- CHAMPION_TITLE = p.getProperty("ChampionTitle", "Champion").trim();
- CHAMPION_ENABLE = Boolean.parseBoolean(p.getProperty("ChampionEnable", "false"));
- @@ -1880,7 +1880,7 @@
- CHAMPION_SPCL_ITEM = Integer.parseInt(p.getProperty("ChampionSpecialItemID", "6393"));
- CHAMPION_SPCL_QTY = Integer.parseInt(p.getProperty("ChampionSpecialItemAmount", "1"));
- CHAMPION_SPCL_LVL_DIFF = Integer.parseInt(p.getProperty("ChampionSpecialItemLevelDiff", "0"));
- -
- +
- MEDAL_DROP = Boolean.parseBoolean(p.getProperty("MedalAddDrop", "false"));
- MEDAL_SPAWN = Boolean.parseBoolean(p.getProperty("MedalSpawnMeneger", "false"));
- MEDAL_CHANCE1 = Integer.parseInt(p.getProperty("Medal1DropChance", "10"));
- @@ -1915,7 +1915,7 @@
- FISHERMAN_INTERVAL = Integer.parseInt(p.getProperty("FishermanInterval", "60"));
- FISHERMAN_REWARD_ID = Integer.parseInt(p.getProperty("FishermanRewardId", "57"));
- FISHERMAN_REWARD_COUNT = Integer.parseInt(p.getProperty("FishermanRewardCount", "100"));
- -
- +
- WEDDING_GIVE_CUPID_BOW = Boolean.parseBoolean(p.getProperty("WeddingGiveBow", "true"));
- WEDDING_HONEYMOON_PORT = Boolean.parseBoolean(p.getProperty("WeddingHoneyMoon", "false"));
- ALLOW_WEDDING = Boolean.parseBoolean(p.getProperty("AllowWedding", "false"));
- @@ -1941,7 +1941,7 @@
- throw new Error("Failed to Load " + MAIN_EVENTS + " File.");
- }
- }
- -
- +
- public static final String SIEGE_CONFIGURATION_FILE = "./config/main/entity.properties";
- public static int SIEGE_MAX_ATTACKER;
- public static int SIEGE_MAX_DEFENDER;
- @@ -1963,7 +1963,7 @@
- public static int MAX_GUARD_COUNT_FOR_CASTLE;
- public static int CASTLE_REWARD_ID;
- public static int CASTLE_REWARD_COUNT;
- -
- +
- public static int FORTSIEGE_MAX_ATTACKER;
- public static int FORTSIEGE_FLAG_MAX_COUNT;
- public static int FORTSIEGE_CLAN_MIN_LEVEL;
- @@ -1973,13 +1973,13 @@
- public static int FORTSIEGE_COMBAT_FLAG_ID;
- public static int FORTSIEGE_REWARD_ID;
- public static int FORTSIEGE_REWARD_COUNT;
- -
- +
- public static void loadSiegeConfig()
- {
- try
- {
- Properties siegeSettings = new L2Properties("./" + SIEGE_CONFIGURATION_FILE);
- -
- +
- SIEGE_ONLY_REGISTERED = Boolean.parseBoolean(siegeSettings.getProperty("OnlyRegistered", "true"));
- ALT_FLYING_WYVERN_IN_SIEGE = Boolean.parseBoolean(siegeSettings.getProperty("AltFlyingWyvernInSiege", "false"));
- SPAWN_SIEGE_GUARD = Boolean.parseBoolean(siegeSettings.getProperty("SpawnSiegeGuard", "true"));
- @@ -1992,7 +1992,7 @@
- SIEGE_FLAG_MAX_COUNT = Integer.parseInt(siegeSettings.getProperty("MaxFlags", "1"));
- SIEGE_CLAN_MIN_LEVEL = Integer.parseInt(siegeSettings.getProperty("SiegeClanMinLevel", "5"));
- SIEGE_LENGTH_MINUTES = Integer.parseInt(siegeSettings.getProperty("SiegeLength", "120"));
- -
- +
- CHANGE_SIEGE_TIME_IS_DISABLES = Boolean.parseBoolean(siegeSettings.getProperty("DisableChangeSiegeTime", "false"));
- CORECT_SIEGE_DATE_BY_7S = Boolean.parseBoolean(siegeSettings.getProperty("CorrectDateBy7s", "true"));
- CL_SET_SIEGE_TIME_LIST = new FastList<>();
- @@ -2050,7 +2050,7 @@
- MAX_GUARD_COUNT_FOR_CASTLE = Integer.parseInt(siegeSettings.getProperty("MaxGuardCount", "400"));
- CASTLE_REWARD_ID = Integer.parseInt(siegeSettings.getProperty("RewardID", "0"));
- CASTLE_REWARD_COUNT = Integer.parseInt(siegeSettings.getProperty("RewardCount", "0"));
- -
- +
- FORTSIEGE_MAX_ATTACKER = Integer.parseInt(siegeSettings.getProperty("FortAttackerMaxClans", "500"));
- FORTSIEGE_FLAG_MAX_COUNT = Integer.parseInt(siegeSettings.getProperty("FortMaxFlags", "1"));
- FORTSIEGE_CLAN_MIN_LEVEL = Integer.parseInt(siegeSettings.getProperty("FortSiegeClanMinLevel", "4"));
- @@ -2067,25 +2067,25 @@
- throw new Error("Failed to Load " + SIEGE_CONFIGURATION_FILE + " File.");
- }
- }
- -
- +
- public static final String CUSTOM_FILE = "./config/main/custom.properties";
- -
- +
- public static boolean LOAD_AUTOANNOUNCE_AT_STARTUP;
- -
- +
- public static int WEAR_DELAY;
- public static int WEAR_PRICE;
- -
- +
- public static boolean ALT_PLAYER_CAN_DROP_ADENA;
- public static double ALT_WEIGHT_LIMIT;
- public static boolean SHOW_HTML_WELCOME;
- public static int MAX_SUBCLASS;
- -
- +
- public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS;
- public static boolean ALT_DISABLE_RAIDBOSS_PETRIFICATION;
- public static int MAX_LEVEL_RAID_CURSE;
- public static boolean ALT_RECOMMEND;
- public static boolean ALT_BLACKSMITH_USE_RECIPES;
- -
- +
- public static boolean SUBCLASS_WITH_ITEM_AND_NO_QUEST;
- public static boolean SUBCLASS_WITH_CUSTOM_ITEM;
- public static int SUBCLASS_WITH_CUSTOM_ITEM_ID;
- @@ -2093,47 +2093,65 @@
- public static byte SUBCLASS_INIT_LEVEL;
- public static byte SUBCLASS_MAX_LEVEL_BYTE;
- public static int SUBCLASS_MAX_LEVEL;
- -
- +
- public static boolean ACUMULATIVE_SUBCLASS_SKILLS;
- public static boolean LOAD_CUSTOM_TELEPORTS;
- public static boolean LOAD_CUSTOM_MERCHANT_BUYLISTS;
- public static int PET_TICKET_ID;
- public static int SPECIAL_PET_TICKET_ID;
- -
- +
- public static int PLAYER_RATE_DROP_ADENA;
- public static boolean ALT_MANA_POTIONS;
- public static int MANAHEAL_POWER;
- public static boolean ALT_GAME_FREE_TELEPORT;
- public static boolean FORCE_UPDATE_RAIDBOSS_ON_DB;
- -
- +
- public static boolean ALLOW_NEW_CHAR_CUSTOM_POSITION;
- public static int NEW_CHAR_POSITION_X;
- public static int NEW_CHAR_POSITION_Y;
- public static int NEW_CHAR_POSITION_Z;
- -
- +
- public static boolean ENABLE_STARTUP_LVL;
- public static int ADD_LVL_NEWBIE;
- public static boolean LEVEL_ADD_LOAD;
- public static int STARTING_AA;
- public static int STARTING_ADENA;
- -
- +
- public static boolean ALT_ENCHANT_HP_BONUS;
- public static int AUCTION_ITEM_ID;
- public static int RAID_MIN_MP_TO_CAST;
- public static boolean EPIC_REQUIRE_QUEST;
- -
- +
- public static boolean BANKING_ENABLED;
- public static int BANKING_GOLDBAR_PRICE;
- public static int BANKING_GOLDBAR_ID;
- -
- +
- + public static int BUFF_ITEM;
- + public static int BUFF_REMOVE;
- + public static int BUFF_CP;
- + public static int BUFF_MP;
- + public static String BUFFER_RESTRICTION;
- + public static int BUFFER_RESTORE_DELAY;
- + public static boolean BUFFER_ENABLED;
- + public static boolean BUFFER_ANIMATION;
- + public static int BUFFER_REMOVE_ITEM_ID;
- + public static int BUFFER_REMOVE_PRICE;
- + public static int BUFFER_CP_ITEM_ID;
- + public static int BUFFER_CP_PRICE;
- + public static int BUFFER_HP_ITEM_ID;
- + public static int BUFFER_HP_PRICE;
- + public static int BUFFER_MP_ITEM_ID;
- + public static int BUFFER_MP_PRICE;
- + public static Map<Integer, Integer> LIST_BUFFER_BUFF_ALLOW;
- +
- public static void loadCustomConfig()
- {
- try
- {
- Properties customSettings = new L2Properties("./" + CUSTOM_FILE);
- -
- +
- AUCTION_ITEM_ID = Integer.parseInt(customSettings.getProperty("AuctionBidItemId", "57"));
- -
- +
- PET_TICKET_ID = Integer.parseInt(customSettings.getProperty("PetTicketID", "13273"));
- SPECIAL_PET_TICKET_ID = Integer.parseInt(customSettings.getProperty("SpecialPetTicketID", "0"));
- LOAD_CUSTOM_TELEPORTS = Boolean.parseBoolean(customSettings.getProperty("LoadCustomTeleports", "false"));
- @@ -2142,7 +2160,7 @@
- SUBCLASS_WITH_CUSTOM_ITEM = Boolean.parseBoolean(customSettings.getProperty("SubclassWithCustomItem", "false"));
- SUBCLASS_WITH_CUSTOM_ITEM_ID = Integer.parseInt(customSettings.getProperty("SubclassWithCustomItemID", "4037"));
- SUBCLASS_WITH_CUSTOM_ITEM_COUNT = Integer.parseInt(customSettings.getProperty("SubclassWithCustomItemCount", "1"));
- -
- +
- SUBCLASS_MAX_LEVEL_BYTE = Byte.parseByte(customSettings.getProperty("SubclassMaxLevel", "80"));
- SUBCLASS_MAX_LEVEL = Integer.parseInt(customSettings.getProperty("SubclassMaxLevel", "80"));
- SUBCLASS_INIT_LEVEL = Byte.parseByte(customSettings.getProperty("SublcassInitLevel", "40"));
- @@ -2186,10 +2204,55 @@
- BANKING_ENABLED = Boolean.parseBoolean(customSettings.getProperty("Enabled", "true"));
- BANKING_GOLDBAR_PRICE = Integer.parseInt(customSettings.getProperty("GoldBarPrice", "250000000"));
- BANKING_GOLDBAR_ID = Integer.parseInt(customSettings.getProperty("GoldBarId", "3470"));
- +
- + BUFFER_ENABLED = Boolean.parseBoolean(customSettings.getProperty("Enabled", "true"));
- + BUFF_ITEM = Integer.parseInt(customSettings.getProperty("BufferPriceItem", "57"));
- + BUFF_REMOVE = Integer.parseInt(customSettings.getProperty("BufferRemoveBuffPrice", "100"));
- + BUFF_CP = Integer.parseInt(customSettings.getProperty("BufferRestoreCPHPPrice", "100"));
- + BUFF_MP = Integer.parseInt(customSettings.getProperty("BufferRestoreMPPrice", "100"));
- + BUFFER_RESTRICTION = customSettings.getProperty("BufferRestrictedWhen", "");
- + BUFFER_RESTORE_DELAY = Integer.parseInt(customSettings.getProperty("BufferRestoreDelay", "0"));
- + BUFFER_ANIMATION = Boolean.parseBoolean(customSettings.getProperty("BufferAnimation", "false"));
- + BUFFER_REMOVE_ITEM_ID = Integer.parseInt(customSettings.getProperty("RemoveEffectItemId", "57"));
- + BUFFER_REMOVE_PRICE = Integer.parseInt(customSettings.getProperty("RemoveEffectPrice", "100"));
- + BUFFER_HP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
- + BUFFER_HP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
- + BUFFER_MP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
- + BUFFER_MP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
- + BUFFER_CP_ITEM_ID = Integer.parseInt(customSettings.getProperty("RestoreHpItemId", "57"));
- + BUFFER_CP_PRICE = Integer.parseInt(customSettings.getProperty("RestoreHpPrice", "100"));
- + if (BUFFER_ENABLED)
- + {
- + String[] BuffAllowed = customSettings.getProperty("AllowEffect", "").split(";");
- + LIST_BUFFER_BUFF_ALLOW = new FastMap<>(BuffAllowed.length);
- + for (String skill : BuffAllowed)
- + {
- + String[] skillSplit = skill.split(",");
- + if (skillSplit.length != 2)
- + {
- + System.out.println("[Buffer]: invalid config property \"" + skill + "\"");
- + }
- + else
- + {
- + try
- + {
- + LIST_BUFFER_BUFF_ALLOW.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
- + }
- + catch (NumberFormatException nfe)
- + {
- + if (!skill.equals(""))
- + {
- + System.out.println("[Buffer]: invalid config property \"" + skillSplit[0] + "\"" + skillSplit[1]);
- + }
- + }
- + }
- + }
- + }
- +
- L2Properties p = new L2Properties("./config/main/bosses.properties");
- EPIC_REQUIRE_QUEST = Boolean.parseBoolean(p.getProperty("QuestRequired", "true"));
- -
- +
- }
- catch (Exception e)
- {
- @@ -2197,17 +2260,17 @@
- throw new Error("Failed to Load " + CUSTOM_FILE + " File.");
- }
- }
- -
- +
- public static final String HEXID_FILE = "./config/hexid.txt";
- public static byte[] HEX_ID;
- public static int SERVER_ID;
- -
- +
- public static void loadHexidConfig()
- {
- try
- {
- Properties hexidSettings = new L2Properties("./" + HEXID_FILE);
- -
- +
- SERVER_ID = Integer.parseInt(hexidSettings.getProperty("ServerID"));
- HEX_ID = new BigInteger(hexidSettings.getProperty("HexID"), 16).toByteArray();
- }
- @@ -2217,9 +2280,9 @@
- System.exit(1);
- }
- }
- -
- +
- public static final String NETWORK_FILE = "./config/network.properties";
- -
- +
- public static String SUBNETWORKS;
- public static int GAME_SERVER_LOGIN_PORT;
- public static int PORT_GAME;
- @@ -2235,18 +2298,18 @@
- public static String DATABASE_URL;
- public static String DATABASE_LOGIN;
- public static String DATABASE_PASSWORD;
- -
- +
- public static boolean TELNET_ENABLED;
- public static int TELNET_PORT;
- public static int TELNET_MAXIMUM_USERS;
- public static String TELNET_PASSWORD;
- -
- +
- public static void loadNetworkConfig()
- {
- try
- {
- Properties networkSettings = new L2Properties("./" + NETWORK_FILE);
- -
- +
- EXTERNAL_HOSTNAME = networkSettings.getProperty("ExternalHostname", "*");
- INTERNAL_NETWORKS = networkSettings.getProperty("InternalNetworks", "");
- INTERNAL_HOSTNAME = networkSettings.getProperty("InternalHostname", "*");
- @@ -2274,17 +2337,17 @@
- LineNumberReader lnr = null;
- try
- {
- -
- +
- String subnet = null;
- String line = null;
- SUBNETWORKS = "";
- -
- +
- lnr = new LineNumberReader(new InputStreamReader(new FileInputStream(new File(NETWORK_FILE))));
- -
- +
- while ((line = lnr.readLine()) != null)
- {
- line = line.trim().toLowerCase().replace(" ", "");
- -
- +
- if (line.startsWith("subnet"))
- {
- if ((SUBNETWORKS.length() > 0) && !SUBNETWORKS.endsWith(";"))
- @@ -2295,7 +2358,7 @@
- SUBNETWORKS += subnet;
- }
- }
- -
- +
- SUBNETWORKS = SUBNETWORKS.toLowerCase().replaceAll("internal", Config.INTERNAL_HOSTNAME);
- SUBNETWORKS = SUBNETWORKS.toLowerCase().replaceAll("external", Config.EXTERNAL_HOSTNAME);
- }
- @@ -2318,7 +2381,7 @@
- }
- }
- }
- -
- +
- public static boolean ASSERT = false;
- public static boolean DEVELOPER = false;
- public static boolean DEBUG = false;
- @@ -2329,9 +2392,9 @@
- public static int DEADLOCKCHECK_INTERVAL = 10000;
- public static boolean SEND_PACKET_LOG = false;
- public static boolean RECIVE_PACKET_LOG = false;
- -
- +
- public static final String GM_ACCESS_FILE = "./config/admin/access.properties";
- -
- +
- public static boolean GM_STARTUP_INVISIBLE;
- public static boolean GM_STARTUP_INVULNERABLE;
- public static boolean GM_STARTUP_SILENCE;
- @@ -2343,7 +2406,7 @@
- public static boolean GM_AUDIT;
- public static int GM_NAME_COLOR;
- public static int GM_TITLE_COLOR;
- -
- +
- public static void loadGmAccess()
- {
- try
- @@ -2360,7 +2423,7 @@
- GM_AUDIT = Boolean.parseBoolean(gmSettings.getProperty("GMAudit", "false"));
- GM_NAME_COLOR = Integer.decode("0x" + gmSettings.getProperty("GmNameColor", "00FF33"));
- GM_TITLE_COLOR = Integer.decode("0x" + gmSettings.getProperty("GmTitleColor", "FF0000"));
- -
- +
- }
- catch (Exception e)
- {
- @@ -2368,7 +2431,7 @@
- throw new Error("Failed to Load " + GM_ACCESS_FILE + " File.");
- }
- }
- -
- +
- public static void loadAll()
- {
- loadNetworkConfiguration();
- @@ -2376,7 +2439,7 @@
- loadEventsConfig();
- loadAdministrationConfig();
- }
- -
- +
- public static void loadMainConfig()
- {
- loadGsConfig();
- @@ -2389,7 +2452,7 @@
- ReloadHandler.getInstance().registerHandler("config", _reloadAll);
- }
- }
- -
- +
- private static IReloadHandler _reloadAll = new IReloadHandler()
- {
- @Override
- @@ -2397,9 +2460,9 @@
- {
- loadMainConfig();
- }
- -
- +
- };
- -
- +
- public static float LOW_WEIGHT = 0.5f;
- public static float MEDIUM_WEIGHT = 2.0f;
- public static float HIGH_WEIGHT = 3.0f;
- @@ -2412,29 +2475,29 @@
- public static byte WORLD_Y_MAX = 26;
- public static int INTEREST_MAX_THREAD = 10;
- public static long PROTECT_COMPRESSION_WRITEDELAY = 2L;
- -
- +
- public static void loadEventsConfig()
- {
- loadMainEventsConfig();
- loadSiegeConfig();
- }
- -
- +
- public static void loadNetworkConfiguration()
- {
- loadNetworkConfig();
- loadHexidConfig();
- }
- -
- +
- public static void loadFiltersConfig()
- {
- loadFilter();
- }
- -
- +
- public static void loadAdministrationConfig()
- {
- loadGmAccess();
- }
- -
- +
- public static void saveHexid(int serverId, String hexId)
- {
- try
- @@ -2453,7 +2516,7 @@
- _log.warn("Failed to save hex id to " + HEXID_FILE + " File.");
- }
- }
- -
- +
- public static void loadFilter()
- {
- if (!Config.USE_SAY_FILTER)
- @@ -2461,12 +2524,12 @@
- _log.info("Chat Filter: filter disabled.");
- return;
- }
- -
- +
- File file = new File("config/admin/sayfilter.txt");
- try
- {
- BufferedReader fread = new BufferedReader(new FileReader(file));
- -
- +
- String line = null;
- while ((line = fread.readLine()) != null)
- {
- @@ -2490,19 +2553,19 @@
- return;
- }
- }
- -
- +
- public static void unallocateFilterBuffer()
- {
- _log.info("Cleaning Chat Filter..");
- FILTER_LIST.clear();
- }
- -
- +
- public static int MAX_Z_DIFF = 64;
- -
- +
- public static short MIN_LAYER_HEIGHT = 64;
- -
- +
- public static String GEOFILES_PATTERN = "(\\d{2}_\\d{2})\\.l2j";
- -
- +
- public static int CLIENT_PACKET_QUEUE_SIZE = 14;
- public static int CLIENT_PACKET_QUEUE_MAX_BURST_SIZE = 13;
- public static int CLIENT_PACKET_QUEUE_MAX_PACKETS_PER_SECOND = 80;
- Index: src/com/dream/game/datatables/sql/NpcBufferTable.java
- ===================================================================
- --- src/com/dream/game/datatables/sql/NpcBufferTable.java (revision 0)
- +++ src/com/dream/game/datatables/sql/NpcBufferTable.java (working copy)
- @@ -0,0 +1,180 @@
- +/*
- + * This program is free software: you can redistribute it and/or modify it under
- + * the terms of the GNU General Public License as published by the Free Software
- + * Foundation, either version 3 of the License, or (at your option) any later
- + * version.
- + *
- + * This program is distributed in the hope that it will be useful, but WITHOUT
- + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- + * details.
- + *
- + * You should have received a copy of the GNU General Public License along with
- + * this program. If not, see <http://www.gnu.org/licenses/>.
- + */
- +package com.dream.game.datatables.sql;
- +
- +import java.sql.Connection;
- +import java.sql.PreparedStatement;
- +import java.sql.ResultSet;
- +import java.util.List;
- +import java.util.Map;
- +
- +import javolution.util.FastList;
- +import javolution.util.FastMap;
- +
- +import org.apache.commons.lang.ArrayUtils;
- +import org.apache.log4j.Logger;
- +
- +import com.dream.L2DatabaseFactory;
- +
- +public class NpcBufferTable
- +{
- + protected static Logger _log = Logger.getLogger(NpcBufferTable.class);
- +
- + private class NpcBufferSkills
- + {
- + private int _npcId = 0;
- + private final Map<Integer, List<Integer>> _skillId = new FastMap<>();
- + private final Map<Integer, List<Integer>> _skillLevels = new FastMap<>();
- + private final Map<Integer, List<Integer>> _skillFeeIds = new FastMap<>();
- + private final Map<Integer, List<Integer>> _skillFeeAmounts = new FastMap<>();
- +
- + public NpcBufferSkills(int npcId)
- + {
- + _npcId = npcId;
- + }
- +
- + public void addSkill(int skillId, int skillLevel, int skillFeeId, int skillFeeAmount, int buffGroup)
- + {
- + if (_skillId.get(buffGroup) == null)
- + {
- + _skillId.put(buffGroup, new FastList<Integer>());
- + _skillLevels.put(buffGroup, new FastList<Integer>());
- + _skillFeeIds.put(buffGroup, new FastList<Integer>());
- + _skillFeeAmounts.put(buffGroup, new FastList<Integer>());
- +
- + }
- + _skillId.get(buffGroup).add(skillId);
- + _skillLevels.get(buffGroup).add(skillLevel);
- + _skillFeeIds.get(buffGroup).add(skillFeeId);
- + _skillFeeAmounts.get(buffGroup).add(skillFeeAmount);
- + }
- +
- + public int[] getSkillGroupInfo(int buffGroup)
- + {
- + int[] result = null;
- + if (_skillId.get(buffGroup) == null)
- + {
- + return null;
- + }
- + for (int i = 0; i < _skillId.get(buffGroup).size(); i++)
- + {
- + result = ArrayUtils.add(result, _skillId.get(buffGroup).get(i));
- + result = ArrayUtils.add(result, _skillLevels.get(buffGroup).get(i));
- + result = ArrayUtils.add(result, _skillFeeIds.get(buffGroup).get(i));
- + result = ArrayUtils.add(result, _skillFeeAmounts.get(buffGroup).get(i));
- + }
- + return result;
- + }
- +
- + @SuppressWarnings("unused")
- + public int getNpcId()
- + {
- + return _npcId;
- + }
- + }
- +
- + private static NpcBufferTable _instance = null;
- + private final Map<Integer, NpcBufferSkills> _buffers = new FastMap<>();
- + private NpcBufferSkills skills;
- + private Connection con;
- +
- + private NpcBufferTable()
- + {
- + con = null;
- + int skillCount = 0;
- +
- + try
- + {
- + con = L2DatabaseFactory.getInstance().getConnection();
- +
- + 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");
- + ResultSet rset = statement.executeQuery();
- +
- + int lastNpcId = 0;
- + skills = null;
- +
- + while (rset.next())
- + {
- + int npcId = rset.getInt("npc_id");
- + int skillId = rset.getInt("skill_id");
- + int skillLevel = rset.getInt("skill_level");
- + int skillFeeId = rset.getInt("skill_fee_id");
- + int skillFeeAmount = rset.getInt("skill_fee_amount");
- + int buffGroup = rset.getInt("buff_group");
- +
- + if (npcId != lastNpcId)
- + {
- + if (lastNpcId != 0)
- + {
- + _buffers.put(lastNpcId, skills);
- + }
- +
- + skills = new NpcBufferSkills(npcId);
- + skills.addSkill(skillId, skillLevel, skillFeeId, skillFeeAmount, buffGroup);
- + }
- + else
- + {
- + skills.addSkill(skillId, skillLevel, skillFeeId, skillFeeAmount, buffGroup);
- + }
- +
- + lastNpcId = npcId;
- + skillCount++;
- + }
- +
- + _buffers.put(lastNpcId, skills);
- + rset.close();
- + statement.close();
- + }
- + catch (Exception e)
- + {
- + _log.error("NpcBufferSkillIdsTable: Error reading custom_npcbuffer table: " + e.getMessage(), e);
- + }
- + finally
- + {
- + try
- + {
- + con.close();
- + }
- + catch (Exception e)
- + {
- + }
- + }
- +
- + _log.info("NpcBufferSkillIdsTable: Loaded " + _buffers.size() + " buffers and " + skillCount + " skills.");
- + }
- +
- + public static NpcBufferTable getInstance()
- + {
- + if (_instance == null)
- + {
- + _instance = new NpcBufferTable();
- + }
- +
- + return _instance;
- + }
- +
- + public int[] getSkillInfo(int npcId, int buffGroup)
- + {
- + NpcBufferSkills skills = _buffers.get(npcId);
- +
- + if (skills == null)
- + {
- + return null;
- + }
- +
- + return skills.getSkillGroupInfo(buffGroup);
- + }
- +
- +}
- \ No newline at end of file
- Index: dist/config/main/custom.properties
- ===================================================================
- --- dist/config/main/custom.properties (revision 1831)
- +++ dist/config/main/custom.properties (working copy)
- @@ -163,4 +163,26 @@
- # Gold Bars as commun iten
- Enabled = False
- GoldBarPrice = 250000000
- -GoldBarId = 3470
- \ No newline at end of file
- +GoldBarId = 3470
- +
- +Enabled=true
- +BufferPriceItem = 57
- +BufferRemoveBuffPrice = 100
- +BufferRestoreCPHPPrice = 200
- +BufferRestoreMPPrice = 200
- +BufferRestrictedWhen = JAIL COMBAT EVENT OLY KARMA PVP SIEGE RB ARENA
- +BufferRestoreDelay=0
- +RemoveEffectItemId = 57
- +RemoveEffectPrice = 1000
- +RestoreHpItemId = 57
- +RestoreHpPrice = 1000
- +RestoreCpItemId = 57
- +RestoreCpPrice = 1000
- +RestoreMpItemId = 57
- +RestoreMpPrice = 1000
- +AllowEffect = 1085,1240,1036,1087,1035,1303,1048,1045,1078,1059,\
- +1243,1388,1389,1310,1204,1040,1068,1062,1086,1077,1242,1390,\
- +1391,1044,1397,1356,1355,1357,1363,1413,271,272,273,274,\
- +275,276,310,365,264,266,267,268,304,363,364,349,\
- +1259,366,4553,4554,\
- +269,1268,277,265,1007,1002,1009,1006,1251,1252,1253,1309,1308
- \ No newline at end of file
- [/code]
- [/spoiler]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement