This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Gallagher
i have a problem i am use Subclass manager allen for Hi5 but somethings wrong
functions are fully running, but it was so image 0 0 0 0 I do not know why they'd appreciate it if you help thanks code is below - Sory for english -
____________________________
I think that on some
def generateRace(st,raceclass) : HTML = StringIO() if raceclass == "0": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">HUMAN</font></td></tr>") if raceclass == "1": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">ELF</font></td></tr>") if raceclass == "2": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">DARK ELF</font></td></tr>") if raceclass == "3": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">ORC</font></td></tr>") if raceclass == "4": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">DWARF</font></td></tr>") if raceclass == "5": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">KAMAEL</font></td></tr>") HTML.write("<tr><td></td></tr></table><br><img src=\"L2UI.SquareGray\" width=250 height=1><br>") if raceclass == "5": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Man Woman</font></td></tr>") elif raceclass == "4": HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Figther</font></td></tr>") else: HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Figther Mage</font></td></tr>") HTML.write("<tr><td width=250 align=\"center\"><table width=240 border=0 bgcolor=444444><tr><td width=240 align=\"center\"><table width=235 border=0 bgcolor=444444><tr>") if raceclass == "0": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 92\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td>" % (getclassname(getparentclass(92)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 93\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td>" % (getclassname(getparentclass(93)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 98\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(98)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 97\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(97)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 88\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td>" % (getclassname(getparentclass(88)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 96\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(96)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 89\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td>" % (getclassname(getparentclass(89)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 95\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(95)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 90\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td>" % (getclassname(getparentclass(90)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 94\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(94)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 91\" width=130 height=28 back=\"L2UI_ct1.button_df_down\" fore=\"L2UI_ct1.button_df\"></td></tr>" % (getclassname(getparentclass(91)),QI)) if raceclass == "1": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 102\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(102)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 105\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(105)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 101\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(101)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 103\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(103)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 100\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(100)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 104\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(104)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 99\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(99)),QI)) if raceclass == "2": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 109\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(109)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 112\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(112)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 108\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(108)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 110\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(110)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 107\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(107)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 111\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(111)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 106\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(106)),QI)) if raceclass == "3": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 114\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(114)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 116\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(116)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 113\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(113)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 115\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(115)),QI)) if raceclass == "4": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 118\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(118)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 117\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(117)),QI)) if raceclass == "5": HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 131\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(131)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 134\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(134)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 132\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td>" % (getclassname(getparentclass(132)),QI)) HTML.write("<td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 133\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(133)),QI)) HTML.write("<tr><td align=\"center\"><button value=\"%s\" action=\"bypass -h Quest %s confirm 136\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr>" % (getclassname(getparentclass(136)),QI)) HTML.write("</table></td></tr></table></td></tr>") return HTML.getvalue()Full Code
import sys #------------------------------------------------------------------------------------------------------------------------------------- def MainHtml(st) : xsubsamount=getsubsammount(st) if xsubsamount >= 0 : HTML = StringIO() HTML.write("<html><head><title>StackSub Manager</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br>") HTML.write("<table width=250 border=0 bgcolor=444444>") HTML.write("<tr><td></td></tr>") HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Before taking any action, make sure you</font></td></tr>") HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> are using the Main Class or the proper</font></td></tr>") HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Subclass, which requested the changes.</font></td></tr>") if ReqItems == True: HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Besides you need the required items.</font></td></tr>") HTML.write("<tr><td><br></td></tr>") if xsubsamount < SubsNumber and Item2_Num >= 1: HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Choose Sub: <font color=\"LEVEL\">%s %s</font></td></tr>" % (Item2_Num,getitemname(Item2_Req))) if Item3_Num >= 1: HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Delete Sub: <font color=\"LEVEL\">%s %s</font></td></tr>" % (Item3_Num,getitemname(Item3_Req))) if Item1_Num >= 1: HTML.write("<tr><td align=\"left\"><font color=\"0088EE\"> Switch Sub: <font color=\"LEVEL\">%s %s</font></td></tr>" % (Item1_Num,getitemname(Item1_Req))) HTML.write("<tr><td></td></tr></table><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br>") HTML.write("<tr><td width=90 align=\"center\"><table width=90 border=0 bgcolor=444444><tr><td width=90 align=\"center\"><table width=85 border=0 bgcolor=444444>") if xsubsamount < SubsNumber : HTML.write("<tr><td><button value=\"Choose Sub\" action=\"bypass -h Quest %s gethtml 1\" width=80 height=24 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br1>" % QI) HTML.write("<tr><td><button value=\"Delete Sub\" action=\"bypass -h Quest %s gethtml 3\" width=80 height=24 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br1>" % QI) HTML.write("<tr><td><button value=\"Switch Sub\" action=\"bypass -h Quest %s gethtml 2\" width=80 height=24 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br1>" % QI) HTML.write("</table></td></tr></table></td></tr>") HTML.write("</center></body></html>") return HTML.getvalue() else: if st.getQuestItemsCount(Item2_Req) < Item2_Num and ReqItems == True: return comunerrors(st,"0") if st.player.getRace().ordinal() == 5 and AllowAllSubsToKamael == False : return MainHtmlIV(st,"5") if AllowAllSubs == False : if AllowMutantRetail == False and st.player.isSubClassActive(): return MainHtmlIV(st,`st.player.getTemplate().race.ordinal()`) else: return MainHtmlIV(st,`st.player.getRace().ordinal()`) else: return MainHtmlI(st) def MainHtmlI(st) : HTML = StringIO() HTML.write("<html><head><title>StackSub Manager</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br>") HTML.write("<table width=250 border=0 bgcolor=444444>") HTML.write("<tr><td></td></tr>") HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Choose a Race</font></td></tr>") HTML.write("<tr><td></td></tr></table><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br><br>") HTML.write("<tr><td width=110 align=\"center\"><table width=110 border=0 bgcolor=444444><tr><td width=110 align=\"center\"><table width=105 border=0 bgcolor=444444>") HTML.write("<tr><td><button value=\"Human\" action=\"bypass -h Quest %s escraza 0\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) if AllowDElfvsElfSubs or st.player.getRace().ordinal() != 2: HTML.write("<tr><td><button value=\"Elf\" action=\"bypass -h Quest %s escraza 1\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) if AllowDElfvsElfSubs or st.player.getRace().ordinal() != 1: HTML.write("<tr><td><button value=\"Dark Elf\" action=\"bypass -h Quest %s escraza 2\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) HTML.write("<tr><td><button value=\"Orc\" action=\"bypass -h Quest %s escraza 3\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) HTML.write("<tr><td><button value=\"Dwarf\" action=\"bypass -h Quest %s escraza 4\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) if AllowKamaelSubs or st.player.getRace().ordinal() == 5: HTML.write("<tr><td><button value=\"Kamael\" action=\"bypass -h Quest %s escraza 5\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" % QI) HTML.write("</table></td></tr></table></td></tr>") HTML.write("</center></body></html>") return HTML.getvalue() def MainHtmlII(st) : HTML = StringIO() HTML.write("<html><head><title>StackSub Manager</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br>") HTML.write("<table width=250 border=0 bgcolor=444444>") HTML.write("<tr><td></td></tr>") HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Choose a subclass to Switch</font></td></tr>") HTML.write("<tr><td></td></tr></table><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br><br>") HTML.write("<tr><td width=110 align=\"center\"><table width=110 border=0 bgcolor=444444><tr><td width=110 align=\"center\"><table width=105 border=0 bgcolor=444444>") temp = getVar(st,"currentsub"); j=-1 for i in range(maxsubsindb + 1): var = getVar(st,"subclassid%s" % i) if int(var) >= 0 and int(var) <= 136: j+=1 if temp != `i` and SubsNumber >= j: HTML.write("<tr><td><button value=\"%s\" action=\"bypass -h Quest %s camb %s\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" %(getclassname(var),QI,i)) HTML.write("</table></td></tr></table></td></tr>") HTML.write("</center></body></html>") return HTML.getvalue() def MainHtmlIII(st) : HTML = StringIO() HTML.write("<html><head><title>StackSub Manager</title></head><body><center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br>") HTML.write("<table width=250 border=0 bgcolor=444444>") HTML.write("<tr><td></td></tr>") HTML.write("<tr><td align=\"center\"><font color=\"0088EE\">Choose the class you want to delete</font></td></tr>") HTML.write("<tr><td></td></tr></table><br>") HTML.write("<img src=\"L2UI.SquareGray\" width=250 height=1><br><br>") HTML.write("<tr><td width=110 align=\"center\"><table width=110 border=0 bgcolor=444444><tr><td width=100 align=\"center\"><table width=105 border=0 bgcolor=444444>") j=-1 for i in range(maxsubsindb + 1): var = getVar(st,"subclassid%s" % i) if int(var) >= 0 and int(var) <= 136: if i == 0 and AllowDelMainClass == False: pass else: j+=1 if SubsNumber >= j: HTML.write("<tr><td><button value=\"%s\" action=\"bypass -h Quest %s confirm %s\" width=130 height=28 back=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\" fore=\"L2UI_CT1.Windows_DF_Drawer_Bg_Darker\"></td></tr><br>" %(getclassname(var),QI,i)) HTML.write("</table></td></tr></table></td></tr>") HTML.write("</center></body></html>") return HTML.getvalue() def MainHtmlIV(st,case) :0 answers to this question
Recommended Posts