» Find Revision
L2J Revision: 4524
L2JDP Revision: 7832
I know it has been talked over and over, but pls read

This is the function in python:
Code: Select all
def buildConfigList(section): # getting all available configs HTML_MESSAGE = HEADER conn=L2DatabaseFactory.getInstance().getConnection() getCount = conn.prepareStatement("SELECT COUNT(*) FROM buffer_configuration WHERE section_id=?") getCount.setString(1,str(section)) act=getCount.executeQuery() if act : act.next() try : configCount = act.getString("COUNT(*)") except : configCount = "0" else : configCount = "0" getName = conn.prepareStatement("SELECT section_name FROM buffer_config_sections WHERE section_id=?") getName.setString(1,str(section)) act=getName.executeQuery() if act : act.next() try : sectionName = act.getString("section_name") except : sectionName = "0" else : sectionName = "0" HTML_MESSAGE += sectionName + " Configuration - <font color=\"LEVEL\">"+configCount+"</font> configs<br>" getList = conn.prepareStatement("SELECT configDesc,configName,configValue FROM buffer_configuration WHERE section_id=? ORDER BY configDesc ASC") getList.setString(1,str(section)) getConfigList = getList.executeQuery() while (getConfigList.next()) : try : desc = getConfigList.getString("configDesc") name = getConfigList.getString("configName") HTML_MESSAGE += "<button value=\""+desc+"\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " viewSelectedConfig "+name+" "+str(section)+" 0\" width=200 height=22 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\">" except : HTML_MESSAGE += "Error loading configuration list...<br>" conn.close() try : conn.close() except : pass HTML_MESSAGE += "<br><button value=\"Back\" action=\"bypass -h Quest " + QUEST_LOADING_INFO + " redirect selectConfigSections 0 0\" width=150 height=22 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\">" HTML_MESSAGE += FOOTER return HTML_MESSAGE