Guest User

buffer.java

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