Jump to content

Williams

Members
  • Posts

    248
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Williams

  1. Does anyone know this error? I get into my serving perfectly but I get it over and over. Att: Removi c3p0 and added HikariCP-3.3.1
  2. Solved topic may close please
  3. Hello removed c3p0 from my acis and having problems I'm using these calls package net.sf.l2j; import java.sql.Connection; import java.util.logging.Logger; import com.zaxxer.hikari.HikariDataSource; public class L2DatabaseFactory { private static final Logger LOGGER = Logger.getLogger(L2DatabaseFactory.class.getName()); private static final HikariDataSource _hds = new HikariDataSource(); public static void init() { _hds.setDriverClassName("com.mysql.cj.jdbc.Driver"); _hds.setJdbcUrl(Config.DATABASE_URL); _hds.setUsername(Config.DATABASE_LOGIN); _hds.setPassword(Config.DATABASE_PASSWORD); _hds.setMaximumPoolSize(Config.DATABASE_MAX_CONNECTIONS); _hds.setConnectionTimeout(600000); _hds.setIdleTimeout(1200000); _hds.setMaxLifetime(1200000); // Test if connection is valid. try { _hds.getConnection().close(); LOGGER.info("Database: Initialized."); } catch (Exception e) { e.printStackTrace(); } } public static Connection getConnection() { Connection con = null; while (con == null) { try { con = _hds.getConnection(); } catch (Exception e) { LOGGER.severe("DatabaseFactory: Cound not get a connection. " + e); } } return con; } public static void shutdown() { try { _hds.close(); } catch (Exception e) { LOGGER.severe("DatabaseFactory: There was a problem closing the data source. " + e); } } }
  4. What do I have to do to work this out?
  5. Hi I'm trying to put in to add the pin code when selecting the character, I removed EnterWorld code and added in CharacterSelect Code : https://pastebin.com/raw/gzC3FMBG CharacterSelect.java + + if (!cha.getPincheck()) + { + final NpcHtmlMessage html = new NpcHtmlMessage(0); + html.setFile("data/html/pin.htm"); + html.replace("%player%", cha.getName()); + cha.setIsSubmitingPin(true); + sendPacket(html); + return; + } + cha.setClient(client); I get the html from the pin code but when I enter a password it does not release me to enter the character I removed java HTML and wrote this way. <html><head><title>Character Pin Panel</title></head>" <body> <center> <table width="250" cellpadding="5" bgcolor="000000"> <tr> <td width="45" valign="top" align="center"><img src="L2ui_ch3.menubutton4" width="38" height="38"></td> <td valign="top"><font color="FF6600">Pin Panel</font> <br1><font color="00FF00"> %player% </font>, use this interface to enable pin secirity.</td></tr></table></center> <center> <img src="l2ui_ch3.herotower_deco" width=256 height=32 align=center><br> </center> <table width="350" cellpadding="5" bgcolor="000000"> <tr> <td width="45" valign="top" align="center"><img src="Icon.etc_old_key_i02" width="32" height="32"></td> <td valign="top">Please enter your PIN:<edit var="dapin" width=80 height=15> <br1>info or something (can delete)</td> </tr> </table> <br>" <center> <button value="Submit" action="bypass -h enterpin $dapin" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"> </center> <center> <img src="l2ui_ch3.herotower_deco" width=256 height=32 align=center> <font color="FF6600">By Elfocrash</font> </center> </body></html>
  6. private com.lameguard.crypt.GameCrypt _lameCrypt;
  7. This source is for frozen and the lib is missing.
  8. Event Demo Procure por commandname-e em seu sistema e adicione no final dele 115 114 register 116 115 unregister /** restrictions for event */ * Cannot Potion in Event. * Cannot Summon in Event. * Cannot Restart in Event. * Cannot Logout in Event. * Cannot attack same team. code v1 : https://pastebin.com/YRaCbU9T code v2 : * added event prize name announcement. Thank you @StinkyMadness * CopyOnWriteArrayList moved to ConcurrentHashMap.newKeySet, for better performance. Thank you @Tryskell * TVT_DOOR_LIST moved to getProperty and removed arrays. Thank you @Tryskell * Removed useless calls * added weather message for next event when coming into play. Thank you @ edusz93 for the idea Código v2 : https://pastebin.com/raw/59jyZa14 Autor do novo evento Williams Autor do código original DnR
  9. Hi, I would like to know if any performance difference or multisel improvement for buylist. I'm creating an NPC shop I'd like to know which one to use.
  10. I get it right, the error is the% of the items have to be 100% everything can not exceed
  11. Hello I'm trying to create this but I'm in error my ability <skill id="7065" levels="2" name="Adventurer's Box"> <table name="#extractableItems"> 1882,20,18;1876,20,16;1879,20,10;1881,20,10;1880,20,5;1874,20,10;1875,20,10;1877,20,11;57,150000,10 4039,4,20;4043,4,20;4044,4,20;4040,4,10;4042,4,10;4041,4,10;57,160000,10 </table> <set name="capsuled_items_skill" val="#extractableItems" /> <set name="target" val="TARGET_SELF" /> <set name="skillType" val="EXTRACTABLE" /> <set name="operateType" val="OP_ACTIVE" /> <cond msgId="129"> <and> <player invSize="10" /> <player weight="80" /> </and> </cond> </skill> my item <item id="9217" type="EtcItem" name="Adventurer's Box"> <set name="default_action" val="capsule" /> <set name="material" val="PAPER" /> <set name="weight" val="1" /> <set name="is_stackable" val="true" /> <set name="is_oly_restricted" val="true" /> <set name="handler" val="ItemSkills" /> <set name="item_skill" val="7065-2" /> </item>
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock