janiko
Members-
Posts
205 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by janiko
-
Help Html Image Overly How To Make?
janiko replied to janiko's question in Request Server Development Help [L2J]
yeah i mean grade letter on the image. thats exactly what i want to call -
Help Html Image Overly How To Make?
janiko replied to janiko's question in Request Server Development Help [L2J]
i thought same but also was thinking that there was any way to avoid using it -
Help Html Image Overly How To Make?
janiko replied to janiko's question in Request Server Development Help [L2J]
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? -
Help Html Image Overly How To Make?
janiko posted a question in Request Server Development Help [L2J]
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 -
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.
-
Is it possible to make goddes screen dmg on hi5? or is there shared already?
-
Help Hikaricp On Ru Pack
janiko replied to janiko's question in Request Server Development Help [L2J]
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. -
Hi people i want to change DBCP to HikariCP on russian pack, can anyone help me?
-
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
-
Source [Share]L2Jreunion Free Version
janiko replied to `NeverMore's topic in Server Shares & Files [L2J]
I was waiting for more, mostly scripts are copy/paste. and only your is custom things. -
im trying to send gg Query but it kicks me after some second. Does anyone know how to make it work?
-
Code Sell Buff System 1.9.0 (Interlude)
janiko replied to << Masterio >>'s topic in Server Shares & Files [L2J]
can it be adapted on H5? -
For fun :)))
-
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
-
L2JExplorer 0.0.5 GoD/Hi5
janiko replied to Sparadrap's topic in Server Development Discussion [L2J]
Wow amazing share -
Mmm thanks dude
-
thnks for share
-
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(); } }
-
try to port it from other chronic or just search.
-
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.
-
[REQUEST] L2Rebellion-Team Hf System patch, i want their patch with protection. thnks everyone
-
[REQUEST] Clean Hi5 System Patch
-
Can u tell me what to add in client that gameguard culd reply to server?
-
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.
