Jump to content

janiko

Members
  • Posts

    205
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by janiko

  1. yeah i mean grade letter on the image. thats exactly what i want to call
  2. i thought same but also was thinking that there was any way to avoid using it
  3. i dont think so, i think there is another way to put two images together. i checked their patch and they dont have any custom utx file. Anyone else have any other idea?
  4. Can anyone explain me how to make simmillar image in html? i cant guess how to make two images overly together. here is the example what i mean >> http://prntscr.com/4znkkm thnks guys for help
  5. Based on this source i created my protection, it protects l2tower and some 3d prgorams so if u guys whant something use google and u will achieve.
  6. Is it possible to make goddes screen dmg on hi5? or is there shared already?
  7. I dropped, added hikari cp but i dont know how to install it correctly. things are different after DBCP, so i worry that i will kill pack.
  8. Hi people i want to change DBCP to HikariCP on russian pack, can anyone help me?
  9. I remember there was a man who started working to move l2j to c++ also he had here topic, can anyone give me link to that topic if remember? Or any c++ project
  10. I was waiting for more, mostly scripts are copy/paste. and only your is custom things.
  11. im trying to send gg Query but it kicks me after some second. Does anyone know how to make it work?
  12. can it be adapted on H5?
  13. hi all i don't know how to get the list of the files that are stored in http://www.naec.ge/images/doc/EXAMS/ i will be helpfull if someone can give me list of the files that are stored on this link. P.S all files have .pdf type thanks in advanced
  14. Can anyone give me programme that makes undetectable for some antivirus? I want to send virus to my friend but when she recieves and try to open it antivirus not allow. Thanks in advanced
  15. hi everyone i need help to call this script onLogout but i dont know how to call this script on log out, can someone help me? public void save(L2PcInstance owner) { if (isModified) { saveToDatabase(owner); } } this is my scheme buffer table package com.l2jserver.gameserver.communitybbs.BB; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javolution.util.FastList; import javolution.util.FastMap; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import gnu.trove.map.hash.TIntIntHashMap; /** * @author BiggBoss Buffer database tables: - scheme_buffs: contains buffname, buffid and bufflevel to handle - scheme_buffer_profiles: contains each char id with his scheme profile - scheme_char_buffs: contains the player objectid, his profile and buff name, buff id and buff level for each profile */ public class SchemeBufferManager { /* FastMap to hold the avaliable buffs, FastList to properly iterate showing the buffs */ public static FastMap<String, Integer[]> _buffs = new FastMap<>(); public static TIntIntHashMap _skillLevels = new TIntIntHashMap(); /* Pages to show the buffs. Each page should have 15 buffs */ public static int _pages; public SchemeBufferManager() { loadData(); } /* * Load all buffs into a FastMap at server start up */ private void loadData() { try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("SELECT * FROM scheme_buffs"); ResultSet rset = statement.executeQuery(); while (rset.next()) { Integer[] buffs = new Integer[2]; String name = rset.getString("buff_name"); buffs[0] = rset.getInt("buff_id"); buffs[1] = rset.getInt("buff_lvl"); _buffs.put(name, buffs); } statement.close(); } catch (SQLException e) { e.printStackTrace(); } _pages = Math.round(_buffs.size() /* / (CustomConfig.IS_X50_SERVER ? 22 : 15) */); for (Integer[] i : _buffs.values()) { _skillLevels.put(i[0], i[1]); } // All was correct, print out a message System.out.println("Loaded " + _buffs.size() + " buffs for the Scheme Buffer. " + _pages + " pages available."); } /* * Load all player profiles into a FastList */ public FastList<PlayerBuffProfile> loadPlayerProfiles(L2PcInstance player) { FastList<PlayerBuffProfile> profiles = new FastList<>(); try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("SELECT profile, buffs FROM scheme_buffer_profiles WHERE charId = ?"); statement.setInt(1, player.getObjectId()); ResultSet rset = statement.executeQuery(); if (rset == null) { return null; } while (rset.next()) { PlayerBuffProfile profile = SchemeBufferManager.getInstance().new PlayerBuffProfile(rset.getString("profile")); String[] buffs = rset.getString("buffs").split(";"); for (String buff : buffs) { profile.buffs.add(buff); } profiles.add(profile); } statement.close(); } catch (SQLException e) { e.printStackTrace(); } return profiles; } public void saveProfile(L2PcInstance player, String profile) { try(Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("INSERT INTO scheme_buffer_profiles VALUES ( ? , ? )"); statement.setInt(1, player.getObjectId()); statement.setString(2, profile); statement.execute(); con.close(); statement.close(); } catch(SQLException e) { e.printStackTrace(); } } public void deleteFromDatabase(L2PcInstance owner, String profile) { try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("DELETE FROM scheme_buffer_profiles WHERE charId = ? AND profile = ?"); statement.setInt(1, owner.getObjectId()); statement.setString(2, profile); statement.execute(); statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { owner.removeProfile(profile); } } public class PlayerBuffProfile { public final String profileName; public final FastList<String> buffs; private boolean isModified = false; public PlayerBuffProfile(String $profileName) { profileName = $profileName; buffs = new FastList<>(); } public void addBuff(String buffName) { isModified = true; buffs.add(buffName); } public void removeBuff(String buffName) { isModified = true; buffs.remove(buffName); } public void save(L2PcInstance owner) { if (isModified) { saveToDatabase(owner); } } private void saveToDatabase(L2PcInstance owner) { try (Connection con = L2DatabaseFactory.getInstance().getConnection()) { PreparedStatement statement = con.prepareStatement("REPLACE INTO scheme_buffer_profiles VALUES ( ? , ? , ? )"); statement.setInt(1, owner.getObjectId()); statement.setString(2, profileName); statement.setString(3, getBuffsAsString()); statement.execute(); statement.close(); } catch (SQLException e) { e.printStackTrace(); } finally { isModified = false; } } private String getBuffsAsString() { StringBuilder sb = new StringBuilder(); for (String buff : buffs) { sb.append(buff); sb.append(";"); } return sb.toString(); } } public static final SchemeBufferManager getInstance() { return SingletonHolder._instance; } private static class SingletonHolder { protected static final SchemeBufferManager _instance = new SchemeBufferManager(); } }
  16. try to port it from other chronic or just search.
  17. as far as i know l2j has done client packets and if u set it true it sends reply to client, but when set enforce gameguard to true it doesn't get reply from core so im interested which file i should add in client that it could reply.
  18. [REQUEST] L2Rebellion-Team Hf System patch, i want their patch with protection. thnks everyone
  19. [REQUEST] Clean Hi5 System Patch
  20. Can u tell me what to add in client that gameguard culd reply to server?
  21. I have added rguard to pack. In client support i have only dsetup.dll and when i login in server in 10 sec it kick me and writes. Failed to replay gameguard query and have.
×
×
  • 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