Guest User

Untitled

a guest
Apr 6th, 2015
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 162.34 KB | None | 0 0
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package custom.Buffer;
  16.  
  17. import java.sql.Connection;
  18. import java.sql.PreparedStatement;
  19. import java.sql.ResultSet;
  20. import java.util.HashMap;
  21. import java.util.Map;
  22. import java.util.StringTokenizer;
  23. import java.util.logging.Logger;
  24.  
  25. import net.sf.l2j.gameserver.datatables.SkillTable;
  26. import net.sf.l2j.gameserver.model.actor.L2Npc;
  27. import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
  28. import net.sf.l2j.gameserver.model.quest.Quest;
  29. import net.sf.l2j.gameserver.model.quest.QuestState;
  30. import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
  31. import net.sf.l2j.gameserver.taskmanager.AttackStanceTaskManager;
  32. import net.sf.l2j.gameserver.util.Util;
  33.  
  34.  
  35.  
  36. /**
  37. * @author: Povis111
  38. */
  39. public class Buffer extends Quest
  40. {
  41. private static Logger _log = Logger.getLogger(Buffer.class.getName());
  42. int NPC_BUFF_ID = 30068; //Buffer's id
  43. private static final String qn = "Buffer";
  44. int currentChat = 1;
  45. final Map<String, Integer> h = new HashMap<String, Integer>( 900 /* capacity */, 0.75f /* loadfactor */ );
  46. final Map<String, String> pwhoedit = new HashMap<String, String>( 900 /* capacity */, 0.75f /* loadfactor */ );
  47. final Map<String, Integer> BuffSet = new HashMap<String, Integer>( 900 /* capacity */, 0.75f /* loadfactor */ );
  48. final Map<String, String> CharSet = new HashMap<String, String>( 900 /* capacity */, 0.75f /* loadfactor */ );
  49.  
  50. private static final int[] ChantsDefault = {1363, 1413, 1390, 1391, 1007, 1309, 1252, 1006, 1002, 1251, 1308, 1253, 1009, 1362, 1310}; //used for scheme buffer chants
  51. private static final int[] Chants = {1363, 1413, 1390, 1391, 1007, 1309, 1252, 1006};
  52. private static final int[] Chants2 = {1002, 1251, 1308, 1253, 1009, 1362, 1310};
  53. private static final int[] ProphetSEEE = {1085, 1354, 1045, 1243, 1048, 1078, 1242, 1353, 1352, 1077, 1087, 1059, 1311, 1388, 1389, 1240, 1086, 1392, 1043, 1032, 1073, 1036, 1035, 1068, 1182, 1191, 1033, 1259, 1189, 1040, 1393, 1268, 1303, 1204, 1062};
  54. private static final int[] ProphetSEEEscheme1 = {1085, 1354, 1045, 1243, 1048, 1078, 1242, 1353, 1352, 1077, 1087, 1059, 1311, 1388, 1389, 1240, 1086, 1392}; //used for scheme buffer prp/se/ee
  55. private static final int[] ProphetSEEEscheme2 = {1043, 1032, 1073, 1036, 1035, 1068, 1182, 1191, 1033, 1259, 1189, 1040, 1393, 1268, 1303, 1204, 1062};//used for scheme buffer prp/se/ee
  56. private static final int[] ProphetSEEE1 = {1085, 1354, 1045, 1243, 1048, 1078, 1242, 1353, 1352, 1077, 1087, 1059};
  57. private static final int[] ProphetSEEE2 = {1311, 1388, 1389, 1240, 1086, 1392, 1043, 1032, 1073, 1036, 1035, 1068};
  58. private static final int[] ProphetSEEE3 = {1182, 1191, 1033, 1259, 1189, 1040, 1393, 1268, 1303, 1204, 1062};
  59. private static final int[] Prophecies = {1356, 1355, 1357, 1363, 1413, 1414};
  60. private static final int[] CatorUnicorn = {4699, 4702, 4700, 4703};//used for scheme buffer Cat/unicorn
  61. private static final int[] Dances = {307, 276, 309, 274, 275, 272, 277, 273, 311, 366, 365, 310, 271};//used for scheme buffer dances
  62. private static final int[] Songs = {364, 264, 306, 269, 270, 265, 363, 349, 308, 305, 304, 267, 266, 268};//used for scheme buffer songs
  63.  
  64. /**>--------- Configs ---------<**/
  65. //Can flagged players buff themselves, if false a message will be shown.
  66. boolean flagIsAllowedToBuff = true;
  67.  
  68. //Can flagged players Restore HP/MP/CP, if false a message will be shown.
  69. boolean flagIsAllowedToHealHP = false;
  70. boolean flagIsAllowedToHealCP = false;
  71. boolean flagIsAllowedToHealMP = false;
  72.  
  73. //Can fighting players buff themselves, if false a message will be shown.
  74. boolean fightingPlayerIsAllowedToBuff = false;
  75.  
  76. //Can fighting players Restore HP/MP/CP, if false a message will be shown.
  77. boolean fightingPlayerIsAllowedToHealHP = false;
  78. boolean fightingPlayerIsAllowedToHealCP = false;
  79. boolean fightingPlayerIsAllowedToHealMP = false;
  80.  
  81. //Can player heal while he is dead?
  82. boolean deadPlayerIsAllowedToHeal = false;
  83.  
  84. //Can player buff while he is dead?
  85. boolean deadPlayerIsAllowedToBuff = false;
  86.  
  87. //Can player heal while casting a spell?
  88. boolean castingPlayerIsAllowedToHeal = false;
  89.  
  90. //Can player buff while casting a spell?
  91. boolean castingPlayerIsAllowedToBuff = false;
  92.  
  93. //Buffers html type Default/Modern
  94. String BufferHtmlType = "Default";
  95. /**>--------- ^^^^^^^ ---------<**/
  96.  
  97. @Override
  98. public String onTalk(L2Npc npc, L2PcInstance player)
  99. {
  100. if(BufferHtmlType == "Default"){
  101. return "DefaultMain.htm";}
  102. else if(BufferHtmlType == "Modern"){return "ModernMain.htm";}
  103. return "DefaultMain.htm";
  104. }
  105.  
  106. public Buffer(int questId, String name, String descr)
  107. {
  108. super(questId, name, descr);
  109. addFirstTalkId(NPC_BUFF_ID);
  110. addStartNpc(NPC_BUFF_ID);
  111. addTalkId(NPC_BUFF_ID);
  112. }
  113.  
  114. public String onFirstTalk(L2Npc npc, L2PcInstance player)
  115. {
  116. QuestState st = player.getQuestState(qn);
  117.  
  118. if (st == null){
  119. if(BufferHtmlType == "Default"){
  120. return "Defaultgg.htm";}
  121. else return "Moderngg.htm";
  122. }
  123.  
  124. if(npc == null || player == null)
  125. return null;
  126.  
  127. if(npc.getNpcId() == NPC_BUFF_ID)
  128. {
  129. if(BufferHtmlType == "Default"){
  130. return "DefaultMain.htm";}
  131. else return "ModernMain.htm";
  132. }
  133.  
  134. return null;
  135. }
  136.  
  137. @Override
  138. public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
  139. {
  140. String htmltext = "gg.htm";
  141. if(BufferHtmlType == "Default"){
  142. htmltext = "Defaultgg.htm";}
  143. else htmltext = "Moderngg.htm";
  144.  
  145. QuestState st = player.getQuestState(qn);
  146. if (st == null)
  147. return htmltext;
  148.  
  149.  
  150. StringTokenizer zt = new StringTokenizer(event);
  151. zt.nextToken();
  152.  
  153. if(Util.isDigit(event))
  154. {
  155. htmltext = null;
  156. int action = Integer.parseInt(event);
  157.  
  158. if (action == 1)
  159. {
  160. if(flagIsAllowedToHealHP == false && player.getPvpFlag() > 0){
  161. return "You have a flag, get rid of it now, now, now!";}
  162. else if(fightingPlayerIsAllowedToHealHP == false && AttackStanceTaskManager.getInstance().get(player)){
  163. return "You are not allowed to Heal HP while fighting!";}
  164. else if(deadPlayerIsAllowedToHeal == false && player.isAlikeDead()){
  165. return "You are not allowed to Heal HP while you are dead!";}
  166. else if(castingPlayerIsAllowedToHeal == false && player.isCastingNow()){
  167. return "You are not allowed to Heal HP while you are casting!";}
  168. else{player.setCurrentHp(player.getMaxHp());
  169. if(BufferHtmlType == "Default"){
  170. StringBuilder txtAd = new StringBuilder();
  171. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  172. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  173. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  174. if(pwhoedit.get(player.getName()) != null)
  175. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  176. else
  177. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  178.  
  179. txtAd.append("<table width=115><tr>");
  180. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  181. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  182.  
  183. txtAd.append("</table>");
  184. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  185. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  186. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  187. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 44\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  188. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  189. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  190. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  191. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  192. txtAd.append("</body></html>");
  193. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  194. msg.setHtml(txtAd.toString());
  195. player.sendPacket(msg);}else if(BufferHtmlType == "Modern"){return "ModernMain.htm";}
  196. }
  197. }else if (action == 2){
  198. if(BufferHtmlType == "Default"){
  199. return "DefaultMain.htm";}
  200. else if(BufferHtmlType == "Modern"){return "ModernMain.htm";}
  201. }
  202. else if (action > 2){
  203. if(action == 198){
  204. if(flagIsAllowedToHealMP == false && player.getPvpFlag() > 0){
  205. return "You have a flag, get rid of it now, now, now!";}
  206. else if(fightingPlayerIsAllowedToHealMP == false && AttackStanceTaskManager.getInstance().get(player)){
  207. return "You are not allowed to Heal MP while fighting!";}
  208. else{player.setCurrentMp(player.getMaxMp());
  209. if(BufferHtmlType == "Default"){
  210. StringBuilder txtAd = new StringBuilder();
  211. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  212. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  213. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  214. if(pwhoedit.get(player.getName()) != null)
  215. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  216. else
  217. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  218.  
  219. txtAd.append("<table width=115><tr>");
  220. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  221. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  222.  
  223. txtAd.append("</table>");
  224. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  225. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  226. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  227. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  228. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  229. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  230. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  231. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  232. txtAd.append("</body></html>");
  233. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  234. msg.setHtml(txtAd.toString());
  235. player.sendPacket(msg);}
  236. else if(BufferHtmlType == "Modern"){return "ModernMain.htm";}
  237. }
  238. }else if(action == 199){
  239. if(flagIsAllowedToHealCP == false && player.getPvpFlag() > 0){
  240. return "You have a flag, get rid of it now, now, now!";}
  241. else if(fightingPlayerIsAllowedToHealCP == false && AttackStanceTaskManager.getInstance().get(player)){
  242. return "You are not allowed to Heal CP while fighting!";}
  243. else{player.setCurrentCp(player.getMaxCp());
  244. if(BufferHtmlType == "Default"){
  245. StringBuilder txtAd = new StringBuilder();
  246. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  247. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  248. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  249. if(pwhoedit.get(player.getName()) != null)
  250. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  251. else
  252. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  253.  
  254. txtAd.append("<table width=115><tr>");
  255. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  256. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  257.  
  258. txtAd.append("</table>");
  259. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  260. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  261. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  262. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  263. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  264. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  265. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  266. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  267. txtAd.append("</body></html>");
  268. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  269. msg.setHtml(txtAd.toString());
  270. player.sendPacket(msg);}else if(BufferHtmlType == "Modern"){return "ModernMain.htm";}
  271. }
  272. }else if(action == 197){
  273. player.stopAllEffects();
  274. if(BufferHtmlType == "Default"){
  275. StringBuilder txtAd = new StringBuilder();
  276. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  277. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  278. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  279. if(pwhoedit.get(player.getName()) != null)
  280. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  281. else
  282. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  283.  
  284. txtAd.append("<table width=115><tr>");
  285. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  286. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  287.  
  288. txtAd.append("</table>");
  289. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  290. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  291. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  292. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  293. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  294. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  295. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  296. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  297. txtAd.append("</body></html>");
  298. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  299. msg.setHtml(txtAd.toString());
  300. player.sendPacket(msg);
  301. }else{
  302. return "ModernMain.htm";
  303. }
  304. }
  305. else if(action == 100){
  306. StringBuilder txtAd = new StringBuilder();
  307. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  308. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  309. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  310. if(pwhoedit.get(player.getName()) != null)
  311. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  312. else
  313. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  314.  
  315. txtAd.append("<table width=115><tr>");
  316. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  317. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  318.  
  319. txtAd.append("</table>");
  320. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  321. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  322. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  323. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  324. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  325. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  326. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  327. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  328. txtAd.append("</body></html>");
  329. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  330. msg.setHtml(txtAd.toString());
  331. player.sendPacket(msg);
  332. }else if(action == 101){
  333. StringBuilder txtAd = new StringBuilder();
  334. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  335. for(int buffAdd : Dances)
  336. {
  337. int buffAddd = buffAdd + 10000;
  338. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  339. txtAd.append("<table width=250><tr>");
  340. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  341. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  342. }else{
  343. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  344. }
  345. txtAd.append("");
  346. }
  347. txtAd.append("</table>");
  348. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  349.  
  350. txtAd.append("</body></html>");
  351. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  352. msg.setHtml(txtAd.toString());
  353. player.sendPacket(msg);
  354. setCurChat(player.getName(), 7);
  355. }
  356. if(flagIsAllowedToBuff == false && player.getPvpFlag() > 0){
  357. return "You have a flag, get rid of it now, now, now!";}
  358. else if(fightingPlayerIsAllowedToBuff == false && AttackStanceTaskManager.getInstance().get(player)){
  359. return "You are not allowed to Buff while fighting!";}
  360. else if(deadPlayerIsAllowedToBuff == false && player.isAlikeDead()){
  361. return "You are not allowed to Buff while you are dead!";}
  362. else if(castingPlayerIsAllowedToBuff == false && player.isCastingNow()){
  363. return "You are not allowed to Heal while you are casting!";}
  364. else{
  365. if (action == 3){
  366.  
  367. if(BufferHtmlType == "Default"){
  368. StringBuilder txtAd = new StringBuilder();
  369. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  370. for(int buffAdd : ChantsDefault){
  371. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  372. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  373. int buffAddd = buffAdd + 10000;
  374. txtAd.append("<table width=200><tr>");
  375. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  376. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  377. }else{
  378. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  379. }
  380. txtAd.append("");
  381. }
  382. txtAd.append("</table>");
  383. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  384. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  385. msg.setHtml(txtAd.toString());
  386. player.sendPacket(msg);
  387. setCurChat(player.getName(), 3);
  388. }else if(BufferHtmlType == "Modern"){
  389. StringBuilder txtAd = new StringBuilder();
  390. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  391. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 32\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  392. for(int buffAdd : Chants)
  393. {
  394. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  395. int buffAddd = buffAdd + 10000;
  396. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  397.  
  398. }
  399. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  400. txtAd.append("</center></body></html>");
  401. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  402. msg.setHtml(txtAd.toString());
  403. player.sendPacket(msg);
  404. setCurChat(player.getName(), 31);
  405. }
  406. }
  407. else if(action == 31){
  408. if(BufferHtmlType == "Modern"){
  409. StringBuilder txtAd = new StringBuilder();
  410. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  411. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 32\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  412.  
  413. for(int buffAdd : Chants)
  414. {
  415. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  416. int buffAddd = buffAdd + 10000;
  417. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  418. }
  419. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  420. txtAd.append("</center></body></html>");
  421. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  422. msg.setHtml(txtAd.toString());
  423. player.sendPacket(msg);
  424. }
  425. }
  426. else if(action == 32){
  427. setCurChat(player.getName(), 32);
  428. if(BufferHtmlType == "Modern"){
  429. StringBuilder txtAd = new StringBuilder();
  430. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  431. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 31\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  432. for(int buffAdd : Chants2)
  433. {
  434. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  435. int buffAddd = buffAdd + 10000;
  436. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  437. }
  438. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  439. txtAd.append("</center></body></html>");
  440. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  441. msg.setHtml(txtAd.toString());
  442. player.sendPacket(msg);
  443. }
  444. }else if(action == 44){
  445. setCurChat(player.getName(), 44);
  446. if(BufferHtmlType == "Default"){
  447. StringBuilder txtAd = new StringBuilder();
  448. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  449. for(int buffAdd : ProphetSEEEscheme1){
  450. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  451. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  452. int buffAddd = buffAdd + 10000;
  453. txtAd.append("<table width=200><tr>");
  454. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  455. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  456. }else{
  457. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  458. }
  459. txtAd.append("");
  460. }
  461. txtAd.append("</table>");
  462. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 44\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  463. txtAd.append("</body></html>");
  464. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  465. msg.setHtml(txtAd.toString());
  466. player.sendPacket(msg);
  467. }
  468. }else if(action == 4){
  469. if(BufferHtmlType == "Default"){
  470. StringBuilder txtAd = new StringBuilder();
  471. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  472. for(int buffAdd : ProphetSEEEscheme1){
  473. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  474. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  475. int buffAddd = buffAdd + 10000;
  476. txtAd.append("<table width=200><tr>");
  477. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  478. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  479. }else{
  480. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  481. }
  482. txtAd.append("");
  483. }
  484. txtAd.append("</table>");
  485. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 44\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  486. txtAd.append("</body></html>");
  487. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  488. msg.setHtml(txtAd.toString());
  489. player.sendPacket(msg);
  490. setCurChat(player.getName(), 44);
  491. }else if(BufferHtmlType == "Modern"){
  492. setCurChat(player.getName(), 41);
  493. StringBuilder txtAd = new StringBuilder();
  494. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  495. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  496.  
  497. for(int buffAdd : ProphetSEEE1)
  498. {
  499. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  500. int buffAddd = buffAdd + 10000;
  501. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  502. }
  503. //txtAd.append("<br><center><table width=180><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"<button value=\" 2\" action=\"bypass -h Quest Buffer 42\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"<button value=\" 3\" action=\"bypass -h Quest Buffer 43\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></table>");
  504. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  505. txtAd.append("</center></body></html>");
  506. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  507. msg.setHtml(txtAd.toString());
  508. player.sendPacket(msg);
  509. }
  510. }else if(action == 45){
  511. setCurChat(player.getName(), 45);
  512. if(BufferHtmlType == "Default"){
  513. StringBuilder txtAd = new StringBuilder();
  514. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  515. for(int buffAdd : ProphetSEEEscheme2){
  516. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  517. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  518. int buffAddd = buffAdd + 10000;
  519. txtAd.append("<table width=200><tr>");
  520. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  521. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  522. }else{
  523. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  524. }
  525. txtAd.append("");
  526. }
  527. txtAd.append("</table>");
  528. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 44\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  529. txtAd.append("</body></html>");
  530. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  531. msg.setHtml(txtAd.toString());
  532. player.sendPacket(msg);
  533. }
  534. }
  535. else if(action == 41){
  536. if(BufferHtmlType == "Modern"){
  537. setCurChat(player.getName(), 41);
  538. StringBuilder txtAd = new StringBuilder();
  539. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  540. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  541.  
  542. for(int buffAdd : ProphetSEEE1)
  543. {
  544. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  545. int buffAddd = buffAdd + 10000;
  546. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  547. }
  548. //txtAd.append("<br><center><table width=180><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"<button value=\" 2\" action=\"bypass -h Quest Buffer 42\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"<button value=\" 3\" action=\"bypass -h Quest Buffer 43\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></table>");
  549. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  550. txtAd.append("</center></body></html>");
  551. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  552. msg.setHtml(txtAd.toString());
  553. player.sendPacket(msg);
  554. }
  555. }
  556. else if(action == 42){
  557. if(BufferHtmlType == "Modern"){
  558. setCurChat(player.getName(), 42);
  559. StringBuilder txtAd = new StringBuilder();
  560. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  561. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  562. for(int buffAdd : ProphetSEEE2)
  563. {
  564. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  565. int buffAddd = buffAdd + 10000;
  566. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  567. }
  568. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  569. txtAd.append("</center></body></html>");
  570. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  571. msg.setHtml(txtAd.toString());
  572. player.sendPacket(msg);
  573. }
  574. }
  575. else if(action == 43){
  576. if(BufferHtmlType == "Modern"){
  577. setCurChat(player.getName(), 43);
  578. StringBuilder txtAd = new StringBuilder();
  579. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  580. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  581.  
  582. for(int buffAdd : ProphetSEEE3)
  583. {
  584. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  585. int buffAddd = buffAdd + 10000;
  586. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  587. }
  588. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  589. txtAd.append("</center></body></html>");
  590. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  591. msg.setHtml(txtAd.toString());
  592. player.sendPacket(msg);
  593. }
  594. }
  595. else if(action == 5){
  596. if(BufferHtmlType == "Default"){
  597. StringBuilder txtAd = new StringBuilder();
  598. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  599. for(int buffAdd : Prophecies){
  600. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  601. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  602. int buffAddd = buffAdd + 10000;
  603. txtAd.append("<table width=200><tr>");
  604. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  605. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  606. }else{
  607. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  608. }
  609. txtAd.append("");
  610. }
  611. txtAd.append("</table>");
  612. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  613. txtAd.append("</body></html>");
  614. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  615. msg.setHtml(txtAd.toString());
  616. player.sendPacket(msg);
  617. setCurChat(player.getName(), 5);
  618. }else if(BufferHtmlType == "Modern"){
  619. StringBuilder txtAd = new StringBuilder();
  620. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body>");
  621. for(int buffAdd : Prophecies)
  622. {
  623. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  624. int buffAddd = buffAdd + 10000;
  625. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  626.  
  627. }
  628. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  629. txtAd.append("</center></body></html>");
  630. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  631. msg.setHtml(txtAd.toString());
  632. player.sendPacket(msg);
  633. setCurChat(player.getName(), 5);
  634. }
  635. }
  636. else if(action == 6){
  637. if(BufferHtmlType == "Default"){
  638. StringBuilder txtAd = new StringBuilder();
  639. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  640. for(int buffAdd : CatorUnicorn){
  641. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  642. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  643. int buffAddd = buffAdd + 10000;
  644. txtAd.append("<table width=200><tr>");
  645. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  646. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  647. }else{
  648. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  649. }
  650. txtAd.append("");
  651. }
  652. txtAd.append("</table>");
  653. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  654. txtAd.append("</body></html>");
  655. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  656. msg.setHtml(txtAd.toString());
  657. player.sendPacket(msg);
  658. setCurChat(player.getName(), 6);
  659. }else if(BufferHtmlType == "Modern"){
  660. StringBuilder txtAd = new StringBuilder();
  661. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body>");
  662. for(int buffAdd : CatorUnicorn)
  663. {
  664. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  665. int buffAddd = buffAdd + 10000;
  666. int skId = 0;
  667. if(buffAdd==4700 || buffAdd==4699){skId = 1331;}else if(buffAdd==4702 || buffAdd==4703){skId = 1332;}
  668. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+skId+"\" fore=\"icon.skill"+skId+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  669.  
  670. }
  671. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  672. txtAd.append("</center></body></html>");
  673. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  674. msg.setHtml(txtAd.toString());
  675. player.sendPacket(msg);
  676. setCurChat(player.getName(), 6);
  677. }
  678. }
  679. else if(action == 7){
  680. if(BufferHtmlType == "Default"){
  681. StringBuilder txtAd = new StringBuilder();
  682. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  683. for(int buffAdd : Dances)
  684. {
  685. int buffAddd = buffAdd + 10000;
  686. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  687. txtAd.append("<table width=250><tr>");
  688. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  689. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  690. }else{
  691. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  692. }
  693. txtAd.append("");
  694. }
  695. txtAd.append("</table>");
  696. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  697. txtAd.append("</body></html>");
  698. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  699. msg.setHtml(txtAd.toString());
  700. player.sendPacket(msg);
  701. setCurChat(player.getName(), 7);
  702. }else if(BufferHtmlType == "Modern"){
  703. StringBuilder txtAd = new StringBuilder();
  704. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body>");
  705. for(int buffAdd : Dances)
  706. {
  707. int buffAddd = buffAdd + 10000;
  708. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  709. }
  710. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  711. txtAd.append("</center></body></html>");
  712. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  713. msg.setHtml(txtAd.toString());
  714. player.sendPacket(msg);
  715. setCurChat(player.getName(), 7);
  716. }
  717. }
  718. else if(action == 8){
  719. if(BufferHtmlType == "Default"){
  720. StringBuilder txtAd = new StringBuilder();
  721. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  722. for(int buffAdd : Songs)
  723. {
  724. int buffAddd = buffAdd + 10000;
  725. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  726. txtAd.append("<table width=250><tr>");
  727. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  728. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  729. }else{
  730. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  731. }
  732. txtAd.append("");
  733. }
  734. txtAd.append("</table>");
  735. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  736. txtAd.append("</body></html>");
  737. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  738. msg.setHtml(txtAd.toString());
  739. player.sendPacket(msg);
  740. setCurChat(player.getName(), 8);
  741. }else if(BufferHtmlType == "Modern"){
  742. StringBuilder txtAd = new StringBuilder();
  743. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body>");
  744. for(int buffAdd : Songs)
  745. {
  746. int buffAddd = buffAdd + 10000;
  747. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  748.  
  749. }
  750. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  751. txtAd.append("</center></body></html>");
  752. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  753. msg.setHtml(txtAd.toString());
  754. player.sendPacket(msg);
  755. setCurChat(player.getName(), 8);
  756. }
  757. }
  758. else if(action == 9){//VERY IMPORTANT
  759. if(BufferHtmlType == "Default"){
  760. if(returnChat(player.getName()) == 1){ return "DefaultMain.htm";}else if(returnChat(player.getName())==3){
  761. StringBuilder txtAd = new StringBuilder();
  762. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  763. for(int buffAdd : ChantsDefault){
  764. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  765. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  766. int buffAddd = buffAdd + 10000;
  767. txtAd.append("<table width=200><tr>");
  768. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  769. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  770. }else{
  771. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  772. }
  773. txtAd.append("");
  774. }
  775. txtAd.append("</table>");
  776. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  777. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  778. msg.setHtml(txtAd.toString());
  779. player.sendPacket(msg);
  780. }else if(returnChat(player.getName()) == 4){
  781. StringBuilder txtAd = new StringBuilder();
  782. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body><table width=270><tr><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  783. for(int buffAdd : ProphetSEEE){
  784. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  785. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  786. int buffAddd = buffAdd + 10000;
  787. txtAd.append("<tr><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=33CC66>"+ skName + "</font></a></td><td><font color=006400>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=33CC66>Info</font></a></td></tr>");
  788. }
  789. txtAd.append("</table><br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  790. txtAd.append("</center></body></html>");
  791. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  792. msg.setHtml(txtAd.toString());
  793. player.sendPacket(msg);
  794. }
  795. else if(returnChat(player.getName()) == 44){
  796. StringBuilder txtAd = new StringBuilder();
  797. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  798. for(int buffAdd : ProphetSEEEscheme1){
  799. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  800. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  801. int buffAddd = buffAdd + 10000;
  802. txtAd.append("<table width=200><tr>");
  803. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  804. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  805. }else{
  806. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  807. }
  808. txtAd.append("");
  809. }
  810. txtAd.append("</table>");
  811. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 4\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  812. txtAd.append("</body></html>");
  813. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  814. msg.setHtml(txtAd.toString());
  815. player.sendPacket(msg);
  816. }
  817. else if(returnChat(player.getName()) == 45){
  818. StringBuilder txtAd = new StringBuilder();
  819. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  820. for(int buffAdd : ProphetSEEEscheme2){
  821. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  822. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  823. int buffAddd = buffAdd + 10000;
  824. txtAd.append("<table width=200><tr>");
  825. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  826. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  827. }else{
  828. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  829. }
  830. txtAd.append("");
  831. }
  832. txtAd.append("</table>");
  833. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 4\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  834. txtAd.append("</body></html>");
  835. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  836. msg.setHtml(txtAd.toString());
  837. player.sendPacket(msg);
  838. }
  839. else if(returnChat(player.getName()) == 5){
  840. StringBuilder txtAd = new StringBuilder();
  841. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  842. for(int buffAdd : Prophecies){
  843. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  844. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  845. int buffAddd = buffAdd + 10000;
  846. txtAd.append("<table width=200><tr>");
  847. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  848. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  849. }else{
  850. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  851. }
  852. txtAd.append("");
  853. }
  854. txtAd.append("</table>");
  855. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  856. txtAd.append("</body></html>");
  857. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  858. msg.setHtml(txtAd.toString());
  859. player.sendPacket(msg);
  860. }else if(returnChat(player.getName()) == 6){
  861. StringBuilder txtAd = new StringBuilder();
  862. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  863. for(int buffAdd : CatorUnicorn){
  864. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  865. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  866. int buffAddd = buffAdd + 10000;
  867. txtAd.append("<table width=200><tr>");
  868. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  869. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  870. }else{
  871. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  872. }
  873. txtAd.append("");
  874. }
  875. txtAd.append("</table>");
  876. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  877. txtAd.append("</body></html>");
  878. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  879. msg.setHtml(txtAd.toString());
  880. player.sendPacket(msg);;
  881. }else if(returnChat(player.getName()) == 7){
  882. StringBuilder txtAd = new StringBuilder();
  883. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  884. for(int buffAdd : Dances)
  885. {
  886. int buffAddd = buffAdd + 10000;
  887. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  888. txtAd.append("<table width=250><tr>");
  889. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  890. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  891. }else{
  892. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  893. }
  894. txtAd.append("");
  895. }
  896. txtAd.append("</table>");
  897. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  898.  
  899. txtAd.append("</body></html>");
  900. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  901. msg.setHtml(txtAd.toString());
  902. player.sendPacket(msg);
  903. }else if(returnChat(player.getName()) == 8){
  904. StringBuilder txtAd = new StringBuilder();
  905. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  906. for(int buffAdd : Songs)
  907. {
  908. int buffAddd = buffAdd + 10000;
  909. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  910. txtAd.append("<table width=250><tr>");
  911. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  912. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  913. }else{
  914. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  915. }
  916. txtAd.append("");
  917. }
  918. txtAd.append("</table>");
  919. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  920.  
  921. txtAd.append("</body></html>");
  922. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  923. msg.setHtml(txtAd.toString());
  924. player.sendPacket(msg);}
  925. }else if(BufferHtmlType == "Modern"){
  926. if(returnChat(player.getName()) == 1){ return "ModernMain.htm";
  927. }
  928. else if(returnChat(player.getName()) == 31){
  929. StringBuilder txtAd = new StringBuilder();
  930. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  931. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 32\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  932. for(int buffAdd : Chants)
  933. {
  934. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  935. int buffAddd = buffAdd + 10000;
  936. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  937. }
  938. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  939. txtAd.append("</center></body></html>");
  940. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  941. msg.setHtml(txtAd.toString());
  942. player.sendPacket(msg);
  943. }else if(returnChat(player.getName()) == 32){
  944. StringBuilder txtAd = new StringBuilder();
  945. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  946. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 31\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  947. for(int buffAdd : Chants2)
  948. {
  949. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  950. int buffAddd = buffAdd + 10000;
  951. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  952.  
  953. }
  954. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  955. txtAd.append("</center></body></html>");
  956. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  957. msg.setHtml(txtAd.toString());
  958. player.sendPacket(msg);
  959. }
  960. else if(returnChat(player.getName()) == 41){
  961. StringBuilder txtAd = new StringBuilder();
  962. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  963. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  964. for(int buffAdd : ProphetSEEE1)
  965. {
  966. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  967. int buffAddd = buffAdd + 10000;
  968. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  969. }
  970. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  971. txtAd.append("</center></body></html>");
  972. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  973. msg.setHtml(txtAd.toString());
  974. player.sendPacket(msg);
  975. setCurChat(player.getName(), 41);
  976. }else if(returnChat(player.getName()) == 42){
  977. setCurChat(player.getName(), 42);
  978. StringBuilder txtAd = new StringBuilder();
  979. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  980. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  981. for(int buffAdd : ProphetSEEE2)
  982. {
  983. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  984. int buffAddd = buffAdd + 10000;
  985. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  986. }
  987. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  988. txtAd.append("</center></body></html>");
  989. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  990. msg.setHtml(txtAd.toString());
  991. player.sendPacket(msg);
  992. }else if(returnChat(player.getName()) == 43){
  993. setCurChat(player.getName(), 43);
  994. StringBuilder txtAd = new StringBuilder();
  995. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  996. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  997. for(int buffAdd : ProphetSEEE3)
  998. {
  999. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1000. int buffAddd = buffAdd + 10000;
  1001. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1002. }
  1003. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1004. txtAd.append("</center></body></html>");
  1005. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1006. msg.setHtml(txtAd.toString());
  1007. player.sendPacket(msg);}
  1008. }else if(returnChat(player.getName()) == 5){
  1009. StringBuilder txtAd = new StringBuilder();
  1010. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body>");
  1011. for(int buffAdd : Prophecies)
  1012. {
  1013. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1014. int buffAddd = buffAdd + 10000;
  1015. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1016.  
  1017. }
  1018. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1019. txtAd.append("</center></body></html>");
  1020. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1021. msg.setHtml(txtAd.toString());
  1022. player.sendPacket(msg);
  1023. setCurChat(player.getName(), 5);
  1024. }else if(returnChat(player.getName()) == 6){
  1025. StringBuilder txtAd = new StringBuilder();
  1026. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body>");
  1027. for(int buffAdd : CatorUnicorn)
  1028. {
  1029. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1030. int buffAddd = buffAdd + 10000;
  1031. int skId = 0;
  1032. if(buffAdd==4700 || buffAdd==4699){skId = 1331;}else if(buffAdd==4702 || buffAdd==4703){skId = 1332;}
  1033. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+skId+"\" width=32 height=32 back=\"icon.skill"+skId+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>"); }
  1034. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1035. txtAd.append("</center></body></html>");
  1036. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1037. msg.setHtml(txtAd.toString());
  1038. player.sendPacket(msg);
  1039. setCurChat(player.getName(), 6);
  1040. }else if(returnChat(player.getName()) == 7){
  1041. StringBuilder txtAd = new StringBuilder();
  1042. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body>");
  1043. for(int buffAdd : Dances)
  1044. {
  1045. int buffAddd = buffAdd + 10000;
  1046. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1047. }
  1048. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1049. txtAd.append("</center></body></html>");
  1050. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1051. msg.setHtml(txtAd.toString());
  1052. player.sendPacket(msg);
  1053. setCurChat(player.getName(), 7);
  1054. }else if(returnChat(player.getName()) == 8){
  1055. StringBuilder txtAd = new StringBuilder();
  1056. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body>");
  1057. for(int buffAdd : Songs)
  1058. {
  1059. int buffAddd = buffAdd + 10000;
  1060. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1061. }
  1062. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1063. txtAd.append("</center></body></html>");
  1064. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1065. msg.setHtml(txtAd.toString());
  1066. player.sendPacket(msg);
  1067. setCurChat(player.getName(), 8);
  1068. }
  1069. }else if(action > 200 && action < 5000){
  1070. int maxlv = SkillTable.getInstance().getMaxLevel(action);
  1071. if(maxlv > 1)
  1072. SkillTable.getInstance().getInfo(action,maxlv).getEffects(player,player);
  1073. else
  1074. SkillTable.getInstance().getInfo(action,1).getEffects(player,player);
  1075.  
  1076. if(BufferHtmlType == "Default"){
  1077. if(returnChat(player.getName()) == 1){ return "DefaultMain.htm";}else if(returnChat(player.getName()) == 3){
  1078. StringBuilder txtAd = new StringBuilder();
  1079. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1080. for(int buffAdd : ChantsDefault){
  1081. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1082. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1083. int buffAddd = buffAdd + 10000;
  1084. txtAd.append("<table width=200><tr>");
  1085. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1086. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1087. }else{
  1088. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1089. }
  1090. txtAd.append("");
  1091. }
  1092. txtAd.append("</table>");
  1093. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1094. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1095. msg.setHtml(txtAd.toString());
  1096. player.sendPacket(msg);
  1097. }else if(returnChat(player.getName()) == 4){
  1098. StringBuilder txtAd = new StringBuilder();
  1099. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body><table width=270><tr><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1100. for(int buffAdd : ProphetSEEE){
  1101. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1102. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1103. int buffAddd = buffAdd + 10000;
  1104. txtAd.append("<tr><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=33CC66>"+ skName + "</font></a></td><td><font color=006400>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=33CC66>Info</font></a></td></tr>");
  1105. }
  1106. txtAd.append("</table><br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1107. txtAd.append("</center></body></html>");
  1108. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1109. msg.setHtml(txtAd.toString());
  1110. player.sendPacket(msg);
  1111. }else if(returnChat(player.getName()) == 44){
  1112. StringBuilder txtAd = new StringBuilder();
  1113. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1114. for(int buffAdd : ProphetSEEEscheme1){
  1115. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1116. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1117. int buffAddd = buffAdd + 10000;
  1118. txtAd.append("<table width=200><tr>");
  1119. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1120. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1121. }else{
  1122. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1123. }
  1124. txtAd.append("");
  1125. }
  1126. txtAd.append("</table>");
  1127. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 44\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1128. txtAd.append("</body></html>");
  1129. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1130. msg.setHtml(txtAd.toString());
  1131. player.sendPacket(msg);
  1132. }else if(returnChat(player.getName()) == 45){
  1133. StringBuilder txtAd = new StringBuilder();
  1134. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1135. for(int buffAdd : ProphetSEEEscheme2){
  1136. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1137. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1138. int buffAddd = buffAdd + 10000;
  1139. txtAd.append("<table width=200><tr>");
  1140. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1141. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1142. }else{
  1143. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1144. }
  1145. txtAd.append("");
  1146. }
  1147. txtAd.append("</table>");
  1148. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 44\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1149. txtAd.append("</body></html>");
  1150. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1151. msg.setHtml(txtAd.toString());
  1152. player.sendPacket(msg);
  1153. }else if(returnChat(player.getName()) == 5){
  1154. StringBuilder txtAd = new StringBuilder();
  1155. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1156. for(int buffAdd : Prophecies){
  1157. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1158. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1159. int buffAddd = buffAdd + 10000;
  1160. txtAd.append("<table width=200><tr>");
  1161. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1162. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1163. }else{
  1164. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1165. }
  1166. txtAd.append("");
  1167. }
  1168. txtAd.append("</table>");
  1169. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1170. txtAd.append("</body></html>");
  1171. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1172. msg.setHtml(txtAd.toString());
  1173. player.sendPacket(msg);
  1174. }else if(returnChat(player.getName()) == 6){
  1175. StringBuilder txtAd = new StringBuilder();
  1176. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1177. for(int buffAdd : CatorUnicorn){
  1178. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1179. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1180. int buffAddd = buffAdd + 10000;
  1181. txtAd.append("<table width=200><tr>");
  1182. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1183. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1184. }else{
  1185. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1186. }
  1187. txtAd.append("");
  1188. }
  1189. txtAd.append("</table>");
  1190. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1191. txtAd.append("</body></html>");
  1192. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1193. msg.setHtml(txtAd.toString());
  1194. player.sendPacket(msg);
  1195. }else if(returnChat(player.getName()) == 7){
  1196. StringBuilder txtAd = new StringBuilder();
  1197. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1198. for(int buffAdd : Dances)
  1199. {
  1200. int buffAddd = buffAdd + 10000;
  1201. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1202. txtAd.append("<table width=250><tr>");
  1203. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1204. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1205. }else{
  1206. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1207. }
  1208. txtAd.append("");
  1209. }
  1210. txtAd.append("</table>");
  1211. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1212.  
  1213. txtAd.append("</body></html>");
  1214. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1215. msg.setHtml(txtAd.toString());
  1216. player.sendPacket(msg);
  1217. }else if(returnChat(player.getName()) == 8){
  1218. StringBuilder txtAd = new StringBuilder();
  1219. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1220. for(int buffAdd : Songs)
  1221. {
  1222. int buffAddd = buffAdd + 10000;
  1223. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1224. txtAd.append("<table width=250><tr>");
  1225. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1226. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1227. }else{
  1228. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1229. }
  1230. txtAd.append("");
  1231. }
  1232. txtAd.append("</table>");
  1233. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1234.  
  1235. txtAd.append("</body></html>");
  1236. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1237. msg.setHtml(txtAd.toString());
  1238. player.sendPacket(msg);}
  1239. }else if(BufferHtmlType == "Modern"){
  1240. if(returnChat(player.getName()) == 1){ return "ModernMain.htm";}
  1241. else if(returnChat(player.getName()) == 31){
  1242. StringBuilder txtAd = new StringBuilder();
  1243. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  1244. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 32\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  1245. for(int buffAdd : Chants)
  1246. {
  1247. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1248. int buffAddd = buffAdd + 10000;
  1249. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1250. }
  1251. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  1252. txtAd.append("</center></body></html>");
  1253. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1254. msg.setHtml(txtAd.toString());
  1255. player.sendPacket(msg);
  1256. setCurChat(player.getName(), 31);
  1257. }else if(returnChat(player.getName()) == 32){
  1258. StringBuilder txtAd = new StringBuilder();
  1259. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body>");
  1260. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 31\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  1261. for(int buffAdd : Chants2)
  1262. {
  1263. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1264. int buffAddd = buffAdd + 10000;
  1265. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1266.  
  1267. }
  1268. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  1269. txtAd.append("</center></body></html>");
  1270. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1271. msg.setHtml(txtAd.toString());
  1272. player.sendPacket(msg);
  1273. }
  1274. else if(returnChat(player.getName()) == 41){
  1275. StringBuilder txtAd = new StringBuilder();
  1276. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  1277. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  1278. for(int buffAdd : ProphetSEEE1)
  1279. {
  1280. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1281. int buffAddd = buffAdd + 10000;
  1282. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1283. }
  1284. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1285. txtAd.append("</center></body></html>");
  1286. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1287. msg.setHtml(txtAd.toString());
  1288. player.sendPacket(msg);
  1289. setCurChat(player.getName(), 41);
  1290. }else if(returnChat(player.getName()) == 42){
  1291. setCurChat(player.getName(), 42);
  1292. StringBuilder txtAd = new StringBuilder();
  1293. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  1294. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td><td align=center><button value=\"3\" action=\"bypass -h Quest Buffer 43\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td></tr></table>");
  1295. for(int buffAdd : ProphetSEEE2)
  1296. {
  1297. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1298. int buffAddd = buffAdd + 10000;
  1299. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1300. }
  1301. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1302. txtAd.append("</center></body></html>");
  1303. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1304. msg.setHtml(txtAd.toString());
  1305. player.sendPacket(msg);
  1306. }else if(returnChat(player.getName()) == 43){
  1307. setCurChat(player.getName(), 43);
  1308. StringBuilder txtAd = new StringBuilder();
  1309. txtAd.append("<html><title>Buffer by povis111 o_O Prp/SE/EE</title><body>");
  1310. txtAd.append("<table align=center><tr><td align=center><button value=\"1\" action=\"bypass -h Quest Buffer 41\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"2\" action=\"bypass -h Quest Buffer 42\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab2\"></td><td align=center><button value=\"3\" width=95 height=32 back=\"L2UI_ch3.skill_tab1\" fore=\"L2UI_ch3.skill_tab1\"></td></tr></table>");
  1311. for(int buffAdd : ProphetSEEE3)
  1312. {
  1313. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1314. int buffAddd = buffAdd + 10000;
  1315. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1316. }
  1317. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1318. txtAd.append("</center></body></html>");
  1319. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1320. msg.setHtml(txtAd.toString());
  1321. player.sendPacket(msg);
  1322. }else if(returnChat(player.getName()) == 5){
  1323. setCurChat(player.getName(), 5);
  1324. StringBuilder txtAd = new StringBuilder();
  1325. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body>");
  1326. for(int buffAdd : Prophecies)
  1327. {
  1328. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1329. int buffAddd = buffAdd + 10000;
  1330. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+buffAdd+"\" fore=\"icon.skill"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1331.  
  1332. }
  1333. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1334. txtAd.append("</center></body></html>");
  1335. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1336. msg.setHtml(txtAd.toString());
  1337. player.sendPacket(msg);
  1338. }else if(returnChat(player.getName()) == 6){
  1339. StringBuilder txtAd = new StringBuilder();
  1340. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body>");
  1341. for(int buffAdd : CatorUnicorn)
  1342. {
  1343. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1344. int buffAddd = buffAdd + 10000;
  1345. int skId = 0;
  1346. if(buffAdd==4700 || buffAdd==4699){skId = 1331;}else if(buffAdd==4702 || buffAdd==4703){skId = 1332;}
  1347. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill"+skId+"\" fore=\"icon.skill"+skId+"\"></td><td width=180><table width=230><tr><td>"+skName+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>"); }
  1348. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1349. txtAd.append("</center></body></html>");
  1350. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1351. msg.setHtml(txtAd.toString());
  1352. player.sendPacket(msg);
  1353. setCurChat(player.getName(), 6);
  1354. }else if(returnChat(player.getName()) == 7){
  1355. StringBuilder txtAd = new StringBuilder();
  1356. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body>");
  1357. for(int buffAdd : Dances)
  1358. {
  1359. int buffAddd = buffAdd + 10000;
  1360. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1361. }
  1362. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1363. txtAd.append("</center></body></html>");
  1364. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1365. msg.setHtml(txtAd.toString());
  1366. player.sendPacket(msg);
  1367. setCurChat(player.getName(), 7);
  1368. }else if(returnChat(player.getName()) == 8){
  1369. StringBuilder txtAd = new StringBuilder();
  1370. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body>");
  1371. for(int buffAdd : Songs)
  1372. {
  1373. int buffAddd = buffAdd + 10000;
  1374. txtAd.append("<table><tr><td width=32><button action=\"bypass -h Quest Buffer "+buffAdd+"\" width=32 height=32 back=\"icon.skill0"+buffAdd+"\" fore=\"icon.skill0"+buffAdd+"\"></td><td width=180><table width=230><tr><td>"+returnSkName(buffAdd)+"</td></tr><tr><td><font color=ae9977>"+returnSkInfo(buffAddd)+"</font></td></tr></table></td></tr></table>");
  1375. }
  1376. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 2\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center></html></head></body>");
  1377. txtAd.append("</center></body></html>");
  1378. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1379. msg.setHtml(txtAd.toString());
  1380. player.sendPacket(msg);
  1381. setCurChat(player.getName(), 8);
  1382. }
  1383. }
  1384. }else if(action > 5000){
  1385. StringBuilder txtAd = new StringBuilder();
  1386. txtAd.append("<html><title>Buffer by povis111 o_O Skill Info</title><body>");
  1387. txtAd.append("<center><font color=00FF00> Skill Info: </font></center><br>");
  1388. txtAd.append("<a ><font color=FF66FF>"+returnSkInfo(action)+"</font></a>");
  1389. txtAd.append("<br><center><button value=\"Back\" action=\"bypass -h Quest Buffer 9\" width=75 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>");
  1390. txtAd.append("</center></body></html>");
  1391. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1392. msg.setHtml(txtAd.toString());
  1393. player.sendPacket(msg);
  1394. }
  1395. }
  1396. }
  1397. }
  1398. else{
  1399. if(event.startsWith("scheme")){
  1400. }
  1401. else if(event.startsWith("create")){
  1402. Connection con = null;
  1403. try{
  1404. con = L2DatabaseFactory.getInstance().getConnection();
  1405. String val = null;
  1406. val = zt.nextToken();
  1407. if(val != null){
  1408.  
  1409. PreparedStatement statement;
  1410. statement = con.prepareStatement("INSERT INTO charsets (CharName,setName) VALUES (?,?)");
  1411. player.sendMessage("Made a Scheme for Player: " + player.getName()+" with name: "+val);
  1412. statement.setString(1, player.getName());
  1413. statement.setString(2, val);
  1414. statement.execute();
  1415. statement.close();}
  1416. }catch (Exception e)
  1417. {
  1418. //_log.warning("shit happended "+e);
  1419. }
  1420. finally
  1421. {
  1422. try { con.close(); } catch (Exception e) {}
  1423. }
  1424. StringBuilder txtAd = new StringBuilder();
  1425. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  1426. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  1427. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1428. if(pwhoedit.get(player.getName()) != null)
  1429. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  1430. else
  1431. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  1432.  
  1433. txtAd.append("<table width=115><tr>");
  1434. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  1435. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  1436.  
  1437. txtAd.append("</table>");
  1438. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  1439. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1440. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1441. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1442. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1443. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1444. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1445. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  1446.  
  1447. txtAd.append("</body></html>");
  1448. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1449. msg.setHtml(txtAd.toString());
  1450. player.sendPacket(msg);
  1451. }
  1452. else if(event.startsWith("delete")){
  1453. Connection con = null;
  1454. try{
  1455. con = L2DatabaseFactory.getInstance().getConnection();
  1456. String val = null;
  1457. val = zt.nextToken();
  1458. if(val != null){
  1459. PreparedStatement statement;
  1460. statement = con.prepareStatement("DELETE FROM charsets WHERE CharName='"+player.getName()+"' AND setName='"+val+"'");
  1461. player.sendMessage("Deleted a Scheme for Player: " + player.getName()+" with name: "+val);
  1462. statement.execute();
  1463. statement = con.prepareStatement("DELETE FROM buffsets WHERE setName='"+player.getName()+"-"+val+"'");
  1464. statement.execute();
  1465. statement.close();}
  1466. }catch (Exception e)
  1467. {}
  1468. finally
  1469. {
  1470. try { con.close(); } catch (Exception e) {}
  1471. }
  1472. pwhoedit.remove(player.getName());
  1473. StringBuilder txtAd = new StringBuilder();
  1474. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  1475. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  1476. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1477. if(pwhoedit.get(player.getName()) != null)
  1478. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  1479. else
  1480. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  1481.  
  1482. txtAd.append("<table width=115><tr>");
  1483. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  1484. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  1485.  
  1486. txtAd.append("</table>");
  1487. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  1488. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1489. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1490. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1491. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1492. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1493. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1494. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  1495.  
  1496. txtAd.append("</body></html>");
  1497. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1498. msg.setHtml(txtAd.toString());
  1499. player.sendPacket(msg);
  1500. }
  1501. else if(event.startsWith("edit")){
  1502.  
  1503. String val = null;
  1504. try{
  1505. val = zt.nextToken();
  1506. if(pwhoedit.get(player.getName()) == null){
  1507. pwhoedit.put(player.getName(), val);}
  1508. else{
  1509. pwhoedit.remove(player.getName());
  1510. pwhoedit.put(player.getName(), val);
  1511. }
  1512. }catch (Exception e)
  1513. {}
  1514. finally
  1515. {
  1516. try {} catch (Exception e) {}
  1517. }
  1518. StringBuilder txtAd = new StringBuilder();
  1519. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  1520. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  1521. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1522. if(pwhoedit.get(player.getName()) != null)
  1523. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  1524. else
  1525. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  1526.  
  1527. txtAd.append("<table width=115><tr>");
  1528. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  1529. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  1530.  
  1531. txtAd.append("</table>");
  1532. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  1533. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1534. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1535. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1536. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1537. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1538. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1539. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  1540.  
  1541. txtAd.append("</body></html>");
  1542. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1543. msg.setHtml(txtAd.toString());
  1544. player.sendPacket(msg);
  1545. }
  1546. else if(event.startsWith("add")){
  1547. Connection con = null;
  1548. String val = null;
  1549. int id = 0;
  1550. val = zt.nextToken();
  1551. id = Integer.parseInt(zt.nextToken());
  1552.  
  1553. if(pwhoedit.get(player.getName()) != null){
  1554. if(isAlreadyAdded(player, val, id) == true){
  1555. try{
  1556. con = L2DatabaseFactory.getInstance().getConnection();
  1557. if(val != null){
  1558. PreparedStatement statement;
  1559. statement = con.prepareStatement("DELETE FROM buffsets WHERE setName='"+player.getName()+"-"+val+"' AND id='"+id+"'");
  1560. statement.execute();
  1561. statement.close();}
  1562. }catch (Exception e)
  1563. {_log.warning("shit happended "+e);}
  1564. finally
  1565. {
  1566. try { con.close(); } catch (Exception e) {}
  1567. }
  1568. }else{
  1569. try{
  1570. con = L2DatabaseFactory.getInstance().getConnection();
  1571. PreparedStatement statement;
  1572. if(val != null){
  1573. statement = con.prepareStatement("INSERT INTO buffSets (setName,id) VALUES (?,?)");
  1574. statement.setString(1, player.getName()+"-"+val);
  1575. statement.setInt(2, id);
  1576. statement.execute();
  1577. statement.close();}
  1578. }catch (Exception e)
  1579. {_log.warning("shit happended "+e);}
  1580. finally
  1581. {
  1582. try { con.close(); } catch (Exception e) {}
  1583. }
  1584. }
  1585. }else{
  1586. StringBuilder txtAd = new StringBuilder();
  1587. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  1588. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  1589. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1590. if(pwhoedit.get(player.getName()) != null)
  1591. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  1592. else
  1593. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  1594.  
  1595. txtAd.append("<table width=115><tr>");
  1596. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  1597. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  1598.  
  1599. txtAd.append("</table>");
  1600. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  1601. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1602. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1603. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1604. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1605. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1606. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1607. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  1608.  
  1609. txtAd.append("</body></html>");
  1610. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1611. msg.setHtml(txtAd.toString());
  1612. player.sendPacket(msg);
  1613. player.sendMessage("Please select a scheme to edit!");
  1614. }
  1615.  
  1616. if(returnChat(player.getName()) > 0 && pwhoedit.get(player.getName()) != null && BufferHtmlType == "Default"){
  1617. if(returnChat(player.getName()) == 7){
  1618. StringBuilder txtAd = new StringBuilder();
  1619. txtAd.append("<html><title>Buffer by povis111 o_O Dances</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1620. for(int buffAdd : Dances)
  1621. {
  1622. int buffAddd = buffAdd + 10000;
  1623. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1624. txtAd.append("<table width=250><tr>");
  1625. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1626. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1627. }else{
  1628. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1629. }
  1630. txtAd.append("");
  1631. }
  1632. txtAd.append("</table>");
  1633. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1634.  
  1635. txtAd.append("</body></html>");
  1636. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1637. msg.setHtml(txtAd.toString());
  1638. player.sendPacket(msg);}
  1639. else if(returnChat(player.getName()) == 8){
  1640. StringBuilder txtAd = new StringBuilder();
  1641. txtAd.append("<html><title>Buffer by povis111 o_O Songs</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1642. for(int buffAdd : Songs)
  1643. {
  1644. int buffAddd = buffAdd + 10000;
  1645. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1646. txtAd.append("<table width=250><tr>");
  1647. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1648. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1649. }else{
  1650. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ returnSkName(buffAdd) + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1651. }
  1652. txtAd.append("");
  1653. }
  1654. txtAd.append("</table>");
  1655. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1656.  
  1657. txtAd.append("</body></html>");
  1658. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1659. msg.setHtml(txtAd.toString());
  1660. player.sendPacket(msg);
  1661. }
  1662. else if(returnChat(player.getName()) == 3){
  1663. StringBuilder txtAd = new StringBuilder();
  1664. txtAd.append("<html><title>Buffer by povis111 o_O Chants</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1665. for(int buffAdd : ChantsDefault){
  1666. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1667. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1668. int buffAddd = buffAdd + 10000;
  1669. txtAd.append("<table width=200><tr>");
  1670. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1671. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1672. }else{
  1673. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1674. }
  1675. txtAd.append("");
  1676. }
  1677. txtAd.append("</table>");
  1678. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1679.  
  1680. txtAd.append("</body></html>");
  1681. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1682. msg.setHtml(txtAd.toString());
  1683. player.sendPacket(msg);
  1684. }else if(returnChat(player.getName()) == 45){
  1685. if(BufferHtmlType == "Default"){
  1686. StringBuilder txtAd = new StringBuilder();
  1687. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1688. for(int buffAdd : ProphetSEEEscheme2){
  1689. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1690. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1691. int buffAddd = buffAdd + 10000;
  1692. txtAd.append("<table width=200><tr>");
  1693. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1694. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1695. }else{
  1696. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1697. }
  1698. txtAd.append("");
  1699. }
  1700. txtAd.append("</table>");
  1701. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 4\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1702. txtAd.append("</body></html>");
  1703. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1704. msg.setHtml(txtAd.toString());
  1705. player.sendPacket(msg);
  1706. }
  1707. }else if(returnChat(player.getName()) == 44){
  1708. if(BufferHtmlType == "Default"){
  1709. StringBuilder txtAd = new StringBuilder();
  1710. txtAd.append("<html><title>Buffer by povis111 o_O PRP/SE/EE</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1711. for(int buffAdd : ProphetSEEEscheme1){
  1712. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1713. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1714. int buffAddd = buffAdd + 10000;
  1715. txtAd.append("<table width=200><tr>");
  1716. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1717. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1718. }else{
  1719. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1720. }
  1721. txtAd.append("");
  1722. }
  1723. txtAd.append("</table>");
  1724. txtAd.append("<table><tr><td><button value=\"1\" action=\"bypass -h Quest Buffer 4\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"2\" action=\"bypass -h Quest Buffer 45\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1725. txtAd.append("</body></html>");
  1726. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1727. msg.setHtml(txtAd.toString());
  1728. player.sendPacket(msg);
  1729. }
  1730. }else if(returnChat(player.getName()) == 5){
  1731. StringBuilder txtAd = new StringBuilder();
  1732. txtAd.append("<html><title>Buffer by povis111 o_O Prophecies</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1733. for(int buffAdd : Prophecies){
  1734. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1735. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1736. int buffAddd = buffAdd + 10000;
  1737. txtAd.append("<table width=200><tr>");
  1738. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1739. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1740. }else{
  1741. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1742. }
  1743. txtAd.append("");
  1744. }
  1745. txtAd.append("</table>");
  1746. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1747. txtAd.append("</body></html>");
  1748. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1749. msg.setHtml(txtAd.toString());
  1750. player.sendPacket(msg);
  1751. }else if(returnChat(player.getName()) == 6){
  1752. StringBuilder txtAd = new StringBuilder();
  1753. txtAd.append("<html><title>Buffer by povis111 o_O Cat/Unicorn</title><body><table width=270><tr><td width=15><button value=\"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td>Name</td><td>Level</td><td>Info</td></tr><center>");
  1754. for(int buffAdd : CatorUnicorn){
  1755. String skName = SkillTable.getInstance().getInfo(buffAdd,1).getName();
  1756. int skLevel = SkillTable.getInstance().getMaxLevel(buffAdd);
  1757. int buffAddd = buffAdd + 10000;
  1758. txtAd.append("<table width=200><tr>");
  1759. if(isAlreadyAdded(player, pwhoedit.get(player.getName()), buffAdd)){
  1760. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox\" fore=\"L2UI.CheckBox_checked\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=00FF00>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=FFFF00>Info</font></a></td></tr>");
  1761. }else{
  1762. txtAd.append("<td><button value=\"\" action=\"bypass -h Quest Buffer add "+pwhoedit.get(player.getName())+" "+buffAdd+"\" width=16 height=16 back=\"L2UI.CheckBox_checked\" fore=\"L2UI.CheckBox\"></td><td><a action=\"bypass -h Quest Buffer "+buffAdd+"\"><font color=FF0000>"+ skName + "</font></a></td><td><font color=C0C0C0>" + skLevel + "</font></td><td><a action=\"bypass -h Quest Buffer "+buffAddd+"\"><font color=00FFFF>Info</font></a></td></tr>");
  1763. }
  1764. txtAd.append("");
  1765. }
  1766. txtAd.append("</table>");
  1767. txtAd.append("<center><button value=\"Back\" action=\"bypass -h Quest Buffer 100\" width=90 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</center>"); txtAd.append("</body></html>");
  1768. txtAd.append("</body></html>");
  1769. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1770. msg.setHtml(txtAd.toString());
  1771. player.sendPacket(msg);
  1772. }
  1773. }
  1774. }else if(event.startsWith("buff")){
  1775. Connection con = null;
  1776. String val = null;
  1777. try{
  1778. val = zt.nextToken();
  1779. con = L2DatabaseFactory.getInstance().getConnection();
  1780. PreparedStatement statement;
  1781. statement = con.prepareStatement("Select id FROM buffsets WHERE setName='"+player.getName()+"-"+val+"'");
  1782. ResultSet rset = statement.executeQuery();
  1783. while (rset.next())
  1784. {
  1785. int maxlv = SkillTable.getInstance().getMaxLevel(rset.getInt("id"));
  1786. if(maxlv > 1)
  1787. SkillTable.getInstance().getInfo(rset.getInt("id"),maxlv).getEffects(player,player);
  1788. else
  1789. SkillTable.getInstance().getInfo(rset.getInt("id"),1).getEffects(player,player);
  1790.  
  1791. }
  1792. }catch (Exception e)
  1793. {}
  1794. finally
  1795. {
  1796. try { con.close(); } catch (Exception e) {}
  1797. }
  1798. StringBuilder txtAd = new StringBuilder();
  1799. txtAd.append("<html><title>Buffer by povis111 o_O Schemes</title><body>");
  1800. txtAd.append("<br><br><table width=\"150\"><tr><td><font color=\"LEVEL\">Insert a Name for Scheme</font></td></tr></table>");
  1801. txtAd.append("<table width=\"150\"><tr><td><edit var=\"schemename\" width=150 height=15></td><td><button value=\"Create\" action=\"bypass -h Quest Buffer create $schemename\" width=100 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1802. if(pwhoedit.get(player.getName()) != null)
  1803. txtAd.append("<br><center><font color=\"00FF00\">Currently editing: "+pwhoedit.get(player.getName())+"</font></center>");
  1804. else
  1805. txtAd.append("<br><center><font color=\"FF0000\">No scheme selected for editing!</font></center>");
  1806.  
  1807. txtAd.append("<table width=115><tr>");
  1808. txtAd.append("<td><button value=\"Buff\" action=\"bypass -h Quest Buffer buff $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td>");
  1809. txtAd.append("<td><combobox width=135 height=17 var=\"scheme\" list="+setNamesForChar(player.getName())+"</td><td><button value=\"Delete\" action=\"bypass -h Quest Buffer delete $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></td></tr>");
  1810.  
  1811. txtAd.append("</table>");
  1812. txtAd.append("<center><button value=\"Edit\" action=\"bypass -h Quest Buffer edit $scheme\" width=70 height=17 back=\"sek.cbui94\" fore=\"sek.cbui92\"></center>");
  1813. txtAd.append("<br><table><tr><td><button value=\"Dances\" action=\"bypass -h Quest Buffer 101\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1814. txtAd.append("</td><td><button value=\"Songs\" action=\"bypass -h Quest Buffer 8\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Chants\" action=\"bypass -h Quest Buffer 3\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1815. txtAd.append("<br><table><tr><td><button value=\"PRP/SE/EE\" action=\"bypass -h Quest Buffer 4\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1816. txtAd.append("</td><td><button value=\"Cat/Unicorn\" action=\"bypass -h Quest Buffer 6\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Prophecies\" action=\"bypass -h Quest Buffer 5\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1817. txtAd.append("<br><table><tr><td><button value=\"Heal HP\" action=\"bypass -h Quest Buffer 1\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"");
  1818. txtAd.append("</td><td><button value=\"Heal CP\" action=\"bypass -h Quest Buffer 199\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td><button value=\"Heal MP\" action=\"bypass -h Quest Buffer 198\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td></tr></table>");
  1819. txtAd.append("<br><table width=300><tr><td width=94 height=21></td><td><button value=\"Cancel Buffs\" action=\"bypass -h Quest Buffer 197\" width=94 height=21 back=\"sek.cubi304\" fore=\"sek.cubi304\"</td><td width=94 height=21></td></tr></table>");
  1820.  
  1821. txtAd.append("</body></html>");
  1822. NpcHtmlMessage msg = new NpcHtmlMessage(NPC_BUFF_ID);
  1823. msg.setHtml(txtAd.toString());
  1824. player.sendPacket(msg);
  1825. }
  1826. }
  1827.  
  1828.  
  1829. return "";
  1830. }
  1831.  
  1832. public boolean isAlreadyAdded(L2PcInstance activeChar, String setopav, int bufoid){
  1833. Connection con = null;
  1834. boolean isAdded = false;
  1835. try{
  1836. con = L2DatabaseFactory.getInstance().getConnection();
  1837. PreparedStatement statement;
  1838. statement = con.prepareStatement("Select id FROM buffsets WHERE setName='"+activeChar.getName()+"-"+setopav+"'");
  1839. ResultSet rset = statement.executeQuery();
  1840. while (rset.next())
  1841. {
  1842. if(rset.getInt("id")==bufoid)
  1843. isAdded = true;
  1844. }
  1845. statement.close();
  1846. }catch (Exception e)
  1847. {
  1848. _log.warning("shit happended "+e);
  1849. }
  1850. finally
  1851. {
  1852. try { con.close(); } catch (Exception e) {}
  1853. }
  1854. return isAdded;
  1855. }
  1856.  
  1857. public String getSetName(String charname){
  1858. String setName = CharSet.get(charname);
  1859. return setName;
  1860. }
  1861.  
  1862. public String setNamesForChar(String name){
  1863. Connection con = null;
  1864. String setName = "";
  1865. try{
  1866. con = L2DatabaseFactory.getInstance().getConnection();
  1867. PreparedStatement statement;
  1868. statement = con.prepareStatement("Select setName FROM charsets WHERE CharName='"+name+"'");
  1869. ResultSet rset = statement.executeQuery();
  1870. while (rset.next())
  1871. {
  1872. if(setName.equals(""))
  1873. setName = rset.getString("setName");
  1874. else
  1875. setName = setName+";"+rset.getString("setName");
  1876. }
  1877. rset.close();
  1878. statement.close();
  1879. }catch (Exception e)
  1880. {
  1881. _log.warning("shit happended "+e);
  1882. }
  1883. finally
  1884. {
  1885. try { con.close(); } catch (Exception e) {}
  1886. }
  1887. return setName;
  1888. }
  1889.  
  1890. private String returnSkName(int id){
  1891. if(id == 307){ return "Dance of Aqua Guard"; }else if(id == 276){ return "Dance of Concentration"; }else if(id == 309){ return "Dance of Earth Guard"; }else if(id == 274){ return "Dance of Fire"; }else if(id == 275){ return "Dance of Fury"; }else if(id == 272){ return "Dance of Inspiration";
  1892. }else if(id == 277){ return "Dance of Light"; }else if(id == 273){ return "Dance of Mystic"; }else if(id == 311){ return "Dance of Protection"; }else if(id == 366){ return "Dance of Shadow"; }else if(id == 365){ return "Dance of Siren"; }else if(id == 310){ return "Dance of Vampire"; }else if(id == 271){ return "Dance of Warrior"; }else if(id == 364){ return "Song of Champion";
  1893. }else if(id == 264){ return "Song of Earth"; }else if(id == 306){ return "Song of Flame Guard"; }else if(id == 269){ return "Song of Hunter"; }else if(id == 270){ return "Song of Invocation"; }else if(id == 265){ return "Song of Life"; }else if(id == 363){ return "Song of Meditation"; }else if(id == 349){ return "Song of Renewal"; }else if(id == 308){ return "Song of Storm Guard"; }else if(id == 305){ return "Song of Vengeance";
  1894. }else if(id == 304){ return "Song of Vitality"; }else if(id == 267){ return "Song of Warding"; }else if(id == 266){ return "Song of Water"; }else if(id == 268){ return "Song of Wind"; }
  1895. return ("Unkown Name for skill: "+id);
  1896. }
  1897. private String returnSkInfo(int id){
  1898. //dance/song
  1899. if(id == 307+10000){ return "Water Resistance +30%"; }else if(id == 276+10000){ return "Casting Spd +30%, Chance of casting interruption -30%"; }else if(id == 309+10000){ return "Earth Resistance +30%"; }else if(id == 274+10000){ return "Critical Damage +50%"; }else if(id == 275+10000){ return "Atk Spd +15%"; }else if(id == 272+10000){ return "Accuracy +4";
  1900. }else if(id == 277+10000){ return "Enhances Holy attribute to P. Atk."; }else if(id == 273+10000){ return "M. Atk. +20%"; }else if(id == 311+10000){ return "Fall Damage -30%"; }else if(id == 366+10000){ return "Speed -50%, Avoid MOBs preemptive attack"; }else if(id == 365+10000){ return "Magic Critical Rate +200%"; }else if(id == 310+10000){ return "Recover 8% of melee physical attack as HP"; }else if(id == 271+10000){ return "P. Atk. +12%"; }else if(id == 364+10000){ return "Physical Skill Re-use delay -30% and MP cost for physical skills -5%";
  1901. }else if(id == 264+10000){ return "P. Def. +25%"; }else if(id == 306+10000){ return "Guard Fire Resistance +30%"; }else if(id == 269+10000){ return "Critical Rate +100%"; }else if(id == 270+10000){ return "Darkness Resistance +20%"; }else if(id == 265+10000){ return "HP regeneration +20%"; }else if(id == 363+10000){ return "MP regeneration +20% and MP cost -10%"; }else if(id == 349+10000){ return "Skills Re-use delay -30% and MP cost for skills -10%"; }else if(id == 308+10000){ return "Guard Wind Resistance +30%"; }else if(id == 305+10000){ return "Reflect 20% of melee received damage";
  1902. }else if(id == 304+10000){ return "HP +30%"; }else if(id == 267+10000){ return "M. Def. +30%"; }else if(id == 266+10000){ return "Evasion +3"; }else if(id == 268+10000){ return "Speed +20"; }
  1903. //prp/se/ee
  1904. else if(id == 1085+10000){ return "Casting Spd +30%"; }else if(id == 1304+10000){ return "Shield P. Def +100%"; }else if(id == 1087+10000){ return "Evasion +4"; }else if(id == 1354+10000){ return "Cancel Resistance +30% and Debuff Resistance +20%"; }else if(id == 1045+10000){ return "HP +35%, CP +35%"; }else if(id == 1243+10000){ return "Shield Def Rate +90%"; }else if(id == 1048+10000){ return "MP +35%"; }else if(id == 1311+10000){ return "HP +35%, CP +35%, Restore HP added"; }else if(id == 1397+10000){ return "MP consupmition for Magical Skills -10%"; }else if(id == 1078+10000){ return "Chance of casting interruption -53%"; }else if(id == 1242+10000){ return "Critical Damage +50%"; }else if(id == 1353+10000){ return "Darkness Resistance +30%"; }else if(id == 1352+10000){ return "Fire Resistance +30%, Water, Wind and Earth Resistance +20%"; }else if(id == 1059+10000){ return "M. Atk. +75%"; }else if(id == 1077+10000){ return "Critical Rate +30%"; }
  1905. else if(id == 1388+10000){ return "P. Atk. +10%"; }else if(id == 1389+10000){ return "P. Def. +15%"; }else if(id == 1240+10000){ return "Acurracy +4"; }else if(id == 1086+10000){ return "Atk. Spd. +33%"; }else if(id == 1392+10000){ return "Sacred Resistance +30%"; }else if(id == 1043+10000){ return "Enhances Holy [means sacred] attribute to P. Atk."; }else if(id == 1032+10000){ return "Bleed Resistance +50%"; }else if(id == 1073+10000){ return "Breath Gauge +600%"; }else if(id == 1036+10000){ return "M. Def. +30%"; }else if(id == 1035+10000){ return "Hold, Sleep and Derragement Resistance +80%"; }else if(id == 1068+10000){ return "P. Atk. +15%"; }else if(id == 1356+10000){ return "HP +20%, restore HP added, P.Atk. +10%, P.Def. +20%, Accuracy +4, Speed -10%, Atk. Spd. +20%, Debuff Resistance +10%"; }else if(id == 1355+10000){ return "MP regen per tick +20%, M.Atk. +20%, M.Def. +20%, Speed -20%, Casting Spd. +20%, Magic Critical Rate +100%, Debuff Resistance +10%"; }else if(id == 1357+10000){ return "Accuracy +4, Atk Speed +20%, Recover 5% of melee physical damage as HP, Critical +20% from behind, Critical Damage from behind +20%, Debuff Resistance +10%"; }
  1906. else if(id == 1182+10000){ return "Aqua Resistance +30%"; }else if(id == 1191+10000){ return "Fire Resistance +30%"; }else if(id == 1033+10000){ return "Poison Resistance +50%"; }else if(id == 1259+10000){ return "Stun Resistance +40%"; }else if(id == 1189+10000){ return "Wind Resistance +30%"; }else if(id == 1040+10000){ return "P. Def. +15%"; }else if(id == 1393+10000){ return "Darkness Resistance +30%"; }else if(id == 1268+10000){ return "Recover 9% of melee physical attack as HP"; }else if(id == 1303+10000){ return "Magic Critical Rate +300%"; }else if(id == 1204+10000){ return "Speed +33"; }else if(id == 1062+10000){ return "P. Atk. +8%, M. Atk. +16%, P. Def. -8%, M. Def. -16%, Speed +8, Atk. Spd +8%, Casting Spd. +8%"; }//else if(id == 1){ return ""; }
  1907. //chants
  1908. else if(id == 1005+10000){ return "P. Def. +15%"; }else if(id == 1007+10000){ return "P. Atk. +15%"; }else if(id == 1309+10000){ return "Accuracy +4"; }else if(id == 1252+10000){ return "Evasion +4"; }else if(id == 1006+10000){ return "M. Def. +30%"; }else if(id == 1002+10000){ return "Casting Spd +30%"; }else if(id == 1251+10000){ return "Atk. Spd. +33%"; }else if(id == 1229+10000){ return "Gradually restores HP"; }else if(id == 1308+10000){ return "Critical Rate +30%"; }else if(id == 1461+10000){ return "Received Critical Damage -30%"; }else if(id == 1253+10000){ return "Critical Damage +50%"; }else if(id == 1009+10000){ return "P. Def. +15%"; }else if(id == 1362+10000){ return "Cancel Resistance +30% and Debuff Resistance +20%"; }else if(id == 1310+10000){ return "Recover 9% of melee physical attack as HP"; }else if(id == 1391+10000){ return "Recover 9% of melee physical attack as HP"; }else if(id == 1413+10000){ return "Max MP +20%, M. Atk +30%, M. Def. +30%, Casting Speed +20%, MP Regeneration +50%, MP Consupmition -20%, Magic Critical Chance +85%"; }else if(id == 1003+10000){ return "P. Atk. +15%"; }
  1909. else if(id == 1282+10000){ return "Speed +33"; }else if(id == 1415+10000){ return "Cancel Resistance +30% and Debuff Resistance +20%"; }else if(id == 1364+10000){ return "Critical Damage +50%"; }else if(id == 1008+10000){ return "M. Def. +30%"; }else if(id == 1365+10000){ return "M. Atk. +75%"; }else if(id == 1260+10000){ return "Evasion +4"; }else if(id == 1249+10000){ return "Accuracy +4"; }else if(id == 1004+10000){ return "Casting Spd +30%"; }else if(id == 1414+10000){ return "HP +20%, restores the HP added, Speed -20%, Accuracy +4, P.Def. +20%, P.Atk. +10%, Atk. Spd. +20%, Critical +20%, Critical Damage +20%, M.Def. +20%, M. Atk. +10%, Casting Spd. +20%, Debuff Resistance +20%"; }else if(id == 1390+10000){ return "P. Atk. +10%"; }else if(id == 1363+10000){ return "HP +20%, restores the HP added, Speed -20%, Accuracy +4, P.Def. +20%, P.Atk. +10%, Atk. Spd. +20%, Critical +20%, Critical Damage +20%, M.Def. +20%, M. Atk. +10%, Casting Spd. +20%, Debuff Resistance +20%"; }
  1910. //cat/unicorn
  1911. else if(id == 4699+10000){ return "Critical Rate +30%, Critical Damage +25%"; }else if(id == 4702+10000){ return "MP Regeneration +35%"; }else if(id == 4700+10000){ return "P. Atk. +10%, Accuracy +2"; }else if(id == 4703+10000){ return "Magical Skill Re-use delay -35%"; }//else if(id == 1){ return ""; }
  1912. return ("Unknown Info for skill: "+id);
  1913. }
  1914.  
  1915. public int returnChat(String name){
  1916. if(h.get(name) > 0)
  1917. return h.get(name);
  1918.  
  1919. return 1;
  1920. }
  1921.  
  1922. public void setCurChat(String name, int currChat){
  1923. h.remove(name);
  1924. h.put(name, currChat);
  1925. }
  1926.  
  1927. public static void main(String args[])
  1928. {
  1929. new Buffer(-1, qn, "custom");
  1930. }
  1931. }
Advertisement
Add Comment
Please, Sign In to add comment