-
Posts
103 -
Credits
0 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by kris131
-
Help Βοηθεια.. Για Anti - Cheat
kris131 replied to tonac's question in Request Server Development Help [Greek]
Logika to item sou to custom tou exoun alaksi apla name stile mia to id apo to item kai logika an to pires etimo exei backdors -
Help Baium Problem
kris131 replied to FreakbuZz's question in Request Server Development Help [Greek]
ama to fast sto epomeno spawn 8a gini petromeno kai gia na mpis sto baium apo tin GK thes quest item filos -
Help Event L2Jacis
kris131 replied to TymbarkCo0L's question in Request Server Development Help [L2J]
2014 code http://www.maxcheaters.com/topic/179553-share-tvt-event/ dont know if work. Try it is for acis :) -
Discussion Cpu Server Dedicated
kris131 replied to erikson2's topic in Server Development Discussion [L2J]
Ram = its for how mutch players you want if u see your server have 500++ need more if you think your server will be good buy 16 gb ram or more internet = is for no lags . -
Discussion Cpu Server Dedicated
kris131 replied to erikson2's topic in Server Development Discussion [L2J]
give the basis to the internet speed.. and 4 gb ram is fine ;) -
Hello guys i see all are searching how to set max enchant and scroll rates i will show u for l2jserver h5 First you will see the configs all one to one if you not find . Soo you need to search on game->data->enchantItemData.xml - enchantItemGroups.xml - enchantSkillGroups.xml 1) enchantitemData : This is for set the max rate and bonus rate from on scroll . What is bonus rate? if you set bonus rate 10% like this -> <enchant id="22018" targetGrade="B" bonusRate="100" maxEnchant="20" /> Id="22018" : This id is the Divine Scroll Weapon Enchant targetGrade="B" : The grade for the scroll bonusRate= "100" : this bonusRate give to the scroll + 100% more rate soo is 100% for change the enchant maxEnchant="20" : The max enchant which can be performed by the Scroll 2) enchantItemGroups : Enchant rate on armor and weapon : <enchantRateGroup name="ARMOR_GROUP"> <current enchant="0-3" chance="100" /> <current enchant="4" chance="80" /> Now i taked Armor group soo all armors : <enchantRateGroup name="ARMOR_GROUP"> : Its the Name from the type where you want to Set enchants rates <current enchant="0-3" chance="100" /> : The courrent enchant is if you enchant the armor from enchants +1 +2 +3 the chance is 100% , the chance="100" is the rate for the enchant <current enchant="4" chance="80" /> : and if current enchant="4" its mean only the enchant +4 will have chance 80% for complete. 3) enchantSkillGroups : enchantSkillGroups is the rate from the skills enchant : <enchant level="2" adena="74250" exp="0" sp="575980" chance76="80" chance77="90" chance78="95" chance79="95" chance80="95" chance81="95" chance82="95" chance83="95" chance84="95" chance85="95" /> enchant level = "2" : its mean when skill is on +2 will have that skill chance adena = "74250" = its how mutch cost the enchant (same and sp xp ) chance76"80" : How mutch rate you have on 76 level for successful the enchant More level more enchant rates. This is the balance Have fun guys i think to help ( sorry for bad english ) :P
-
Request Enchanting Code ;)
kris131 replied to tonac's question in Request Server Development Help [Greek]
An den uparxei sta config sou tote einai sta data 8a sou doso ena name na psaksis 8a psaksis auto -> enchantItemData.xml ama dn uparxei stile mou minima -
Lock it error fixed Dont try that code who i asked for help its just fail ;) Find one acis and fix error
-
Help L2J Sunrise How Change % Enchant Scroll
kris131 replied to L2surion's question in Request Server Development Help [L2J]
Game->data-> search enchantItemData.xml go find your scroll and add bonus rate if your id of vote scroll not there add this : <!-- Vote Scroll Enchant --> <enchant id="Your item id" targetGrade="the Scroll grade" bonusRate="How mutch bonus rate" maxEnchant="16 for this scroll" /> I dont know if i help u just try it :) -
Hmm check it its fine ? bcs have some errors for fix package com.l2jserver.gameserver.instancemanager; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import com.l2jserver.Config; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.util.Broadcast; public class AutoVoteRewardHandler { private static Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); private static final int initialCheck = 1 * 1000; private static final int delayForCheck = Config.DELAY_FOR_NEXT_REWARD * 1000; private static int lastVoteCount = 0; private AutoVoteRewardHandler() { _log.info("Vote Reward System: Vote reward system initiated."); if (Config.VOTE_REWARD_ENABLE) load(); ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { @Override public void run() { int votes = getVotes(Config.VOTE_HTML_PATCH); System.out.println("Server Votes: " + votes); if (votes != 0 && getLastVoteCount() != 0 && votes >= getLastVoteCount() + Config.VOTES_FOR_REWARD) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT c.charId, c.char_name FROM characters AS c LEFT JOIN accounts AS a ON c.account_name = a.login WHERE c.online > 0 GROUP BY a.lastIP ORDER BY c.level DESC"); ResultSet rset = statement.executeQuery(); L2PcInstance player = null; L2ItemInstance item = null; L2ItemInstance item2 = null; while (rset.next()) { player = L2World.getInstance().getPlayer(rset.getInt("charId")); if (player != null && !player.getClient().isDetached()) { item = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID); if (item == null || item.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM1) player.addItem("reward", Config.VOTE_REWARD1_ID, Config.VOTE_REWARD1_COUNT, player, true); item2 = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID); if (item2 == null || item2.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM1) player.addItem("reward", Config.VOTE_REWARD2_ID, Config.VOTE_REWARD2_COUNT, player, true); } } setLastVoteCount(getLastVoteCount() + Config.VOTES_FOR_REWARD); statement.close(); _log.info("Vote Reward System: Reward for votes now!"); Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.CRITICAL_ANNOUNCE, "", "Vote Manager: Reward for players! Thanks for Vote.")); } catch (SQLException e) { e.printStackTrace(); } finally { L2DatabaseFactory.close(con); } setLastVoteCount(getLastVoteCount() + Config.VOTES_FOR_REWARD); } Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.CRITICAL_ANNOUNCE, "", "Vote Manager: Server votes: " + votes + " | Next Reward on " + (getLastVoteCount() + Config.VOTES_FOR_REWARD) + " Votes.")); if (getLastVoteCount() == 0) setLastVoteCount(votes); } } private int getVotes(String urlString) { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(urlString); isr = new InputStreamReader(url.openStream()); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (Config.VOTE_REWARD_TOPZONE_ENABLE) { // for TopZone if (inputLine.contains("<tr><td><div align=\"center\"><b><font style=\"font-size:14px;color:#018BC1;\"")) { return Integer.valueOf(inputLine.split(">")[5].replace("</font", "")); } } if (Config.VOTE_REWARD_HOPZONE_ENABLE) { // for HopZone if (inputLine.contains("rank anonymous tooltip")) { @SuppressWarnings("unused") int Sub = 12; switch (inputLine.length()) { case 116: Sub = 13; break; case 117: Sub = 14; break; case 118: Sub = 15; break; case 119: Sub = 16; break; } return Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); } } } } catch (IOException e) { _log.warning("Vote Reward System: "+e); } finally { try { in.close(); } catch (IOException e) {} try { isr.close(); } catch (IOException e) {} } return 0; } private void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } private int getLastVoteCount() { return lastVoteCount; } private void load() { int votes = 0; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT vote FROM votes LIMIT 1"); ResultSet rset = statement.executeQuery(); while (rset.next()) { votes = rset.getInt("vote"); } rset.close(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote: ", e); } finally { L2DatabaseFactory.close(con); } setLastVoteCount(votes); } public void save() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("UPDATE votes SET vote = ? WHERE id=1"); statement.setInt(1, getLastVoteCount()); statement.execute(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote: ", e); } finally { L2DatabaseFactory.close(con); } } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } }
-
Edit : Look i remove the @SuppressWarnings("null") and i see error on in.close con.close isr.close i fix but i dont know if again is the same. Old : finally{ try { con.close(); } New : finally { try { if (con != null) { con.close(); }
-
L2jfrozen hard to adapt to high five too mutch files missing need to improvising and why null is bad where is the problem? (just for know)
-
Soo you mean this vote is fail hm... i have try and anarchy vote i try to adapt to high five but errors.
-
Request Datapack And Server Pack Freya
kris131 replied to Luchito's question in Request Server Development Help [L2J]
Bro this question you ask it 3 times in 3 posts stop it i said you where u can find .. and this topic is for share- 6 replies
-
- DataPack
- ServerPack
-
(and 2 more)
Tagged with:
-
Help Help Me With This Please : Freya
kris131 replied to Luchito's question in Request Server Development Help [L2J]
http://www.maxcheaters.com/topic/191149-some-readycompiled-l2j-sources/ Here you can find what ever you want and datapack download and source for compile your server . For me i think is better to compile it from 0 (clean) because the packs with npc events have backdoors your choose. And here some npc for start -> http://www.maxcheaters.com/topic/164855-collection-all-my-npcs-freya-h5-updated/ -
Guide L2Jserver High Five Gm Shop Last Version.
kris131 posted a topic in Server Shares & Files [L2J]
Hello guys i wanna share how we can create one gm shop for last version L2jserver high five. Step 1 ) : Need to create one npc. how? will go to game/data/stats/npc/customs/custom and will add that (Remember we need to have set true the custom data) <npc id="30" displayId="32226" name="GM SHOP" usingServerSideName="true" title="L2J High Five" usingServerSideTitle="true" type="L2Merchant"> <collision> <radius normal="11" /> <height normal="22.25" /> </collision> </npc> Step 2 ) : Create Html file for the gm shop Lets go game/data/html/merchant and create one new html with name 30.htm now edit it and add this <html><title>GmShop</title> <body> <center> <img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left> </center> <br> <center> <table width=230> <tr> <td align=center><img src="icon.weapon_recurvethorne_bow_i01" width=32 height=32></td> </tr> <tr><td></td></tr> <tr> <td align=center><button value="Weapons" action="bypass -h npc_%objectId%_Chat 1" width=118 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> </tr> </table> <br> <img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left> <br> </center> </body> </html> Now if he spawn the npc will see something 1 button and 1 icon. Step 2.5 ) : Now lets create on other html with name 30-1.htm now edit and add this : <html><title>GmShop - Weapons</title> <body> <center> <img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left> </center> <br> <center> <table width=230> <tr><td><br></td></tr> <tr> <td align=center><button value="Use your name" action="bypass -h npc_%objectId%_multisell 030" width=85 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> </tr> </table> </center> <tr> </tr> <center> <img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left> <button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br> </center> </body> </html> Step 3 ) : Now we have created npc htmls lets go to multisell -> game/data/multisell and create one multisell with name 030.xml and inside add this : <?xml version="1.0" encoding="UTF-8"?> <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd"> <npcs> <npc>30</npc> <!-- Here you add the gm shop npc (30) if you dont add will not work --> <!-- How you will add more items? just copy from <item> to </item> and paste it dont from the last </item> and change the ids for use other items --> </npcs> <item> <!-- That is the price i add 57 (adena) you can use what ever you want --> <ingredient count="100" id="57" /> <!-- Here you add the item who you wanna they buy i add 15548 (lava saw) --> <production count="1" id="15548" /> </item> </list> Thats all :) if you have any question just ask it :) -
Freya Data And Server
kris131 replied to Luchito's question in Request Server Development Help [L2J]
http://www.maxcheaters.com/topic/191149-some-readycompiled-l2j-sources/ -
the server is not online.. and yes i have it in home
-
i think the problem are thats &ipc + ip http://prntscr.com/aclpg7 bcs give more letters and the link broken
-
Help Help Make Online Me Server L2 H5
kris131 replied to bobypoke's question in Request Server Development Help [L2J]
http://www.maxcheaters.com/topic/10418-guide-for-no-iphow-to-make-a-server-online/ -
1) open navicat 2)open navicat Table - Characters 3)Find your name 4)Now go find the line Accesslevel 5)Change it to 8 or 127 if anyone from them dont do you admin try 1 but when you will save the accesslevel exit from lineage2.exe and later save.
-
Edit : I add one new vote Autovotereward and i have some errors. L2jserver high five last version errors : http://prnt.sc/afihhb Code : package com.l2jserver.gameserver.instancemanager; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import com.l2jserver.Config; import com.l2jserver.L2DatabaseFactory; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.clientpackets.Say2; import com.l2jserver.gameserver.network.serverpackets.CreatureSay; import com.l2jserver.gameserver.util.Broadcast; public class AutoVoteRewardHandler { private static Logger _log = Logger.getLogger(AutoVoteRewardHandler.class.getName()); private static final int initialCheck = 1 * 1000; private static final int delayForCheck = Config.DELAY_FOR_NEXT_REWARD * 1000; private static int lastVoteCount = 0; @SuppressWarnings("synthetic-access") private AutoVoteRewardHandler() { _log.info("Vote Reward System: Vote reward system initiated."); if (Config.VOTE_REWARD_ENABLE) { load(); } ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoReward(), initialCheck, delayForCheck); } private class AutoReward implements Runnable { @SuppressWarnings( { "null", "synthetic-access" }) @Override public void run() { int votes = getVotes(Config.VOTE_HTML_PATCH); System.out.println("Server Votes: " + votes); if ((votes != 0) && (getLastVoteCount() != 0) && (votes >= (getLastVoteCount() + Config.VOTES_FOR_REWARD))) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT c.charId, c.char_name FROM characters AS c LEFT JOIN loginserver.accounts AS a ON c.account_name = a.login WHERE c.online > 0 GROUP BY a.lastIP ORDER BY c.level DESC"); ResultSet rset = statement.executeQuery(); L2PcInstance player = null; L2ItemInstance item = null; L2ItemInstance item2 = null; while (rset.next()) { player = L2World.getInstance().getPlayer(rset.getInt("charId")); if ((player != null) && !player.getClient().isDetached()) { item = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID); if ((item == null) || (item.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM1)) { player.addItem("reward", Config.VOTE_REWARD1_ID, Config.VOTE_REWARD1_COUNT, player, true); } item2 = player.getInventory().getItemByItemId(Config.VOTE_REWARD1_ID); if ((item2 == null) || (item2.getCount() < Config.MAX_REWARD_COUNT_FOR_STACK_ITEM1)) { player.addItem("reward", Config.VOTE_REWARD2_ID, Config.VOTE_REWARD2_COUNT, player, true); } } } setLastVoteCount(getLastVoteCount() + Config.VOTES_FOR_REWARD); statement.close(); _log.info("Vote Reward System: Reward for votes now!"); Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.CRITICAL_ANNOUNCE, "", "Vote Manager: Reward for players! Thanks for Vote.")); } catch (SQLException e) { e.printStackTrace(); } finally { try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } setLastVoteCount(getLastVoteCount() + Config.VOTES_FOR_REWARD); } Broadcast.toAllOnlinePlayers(new CreatureSay(1, Say2.CRITICAL_ANNOUNCE, "", "Vote Manager: Server votes: " + votes + " | Next Reward on " + (getLastVoteCount() + Config.VOTES_FOR_REWARD) + " Votes.")); if (getLastVoteCount() == 0) { setLastVoteCount(votes); } } } @SuppressWarnings("null") private int getVotes(String urlString) { URL url = null; InputStreamReader isr = null; BufferedReader in = null; try { url = new URL(urlString); URLConnection connection = url.openConnection(); connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2"); connection.connect(); InputStream response = connection.getInputStream(); isr = new InputStreamReader(response); in = new BufferedReader(isr); String inputLine; while ((inputLine = in.readLine()) != null) { if (Config.VOTE_REWARD_TOPZONE_ENABLE) { // for TopZone if (inputLine.contains("<div class=\"rank\"><div class=\"votes2\">Votes:<br>")) { return Integer.valueOf(inputLine.split(">")[5].replace("</font", "")); } } if (Config.VOTE_REWARD_HOPZONE_ENABLE) { // for HopZone if (inputLine.contains("no steal make love") || inputLine.contains("no votes here") || inputLine.contains("bang, you don't have votes") || inputLine.contains("la vita e bella")) { @SuppressWarnings("unused") int Sub = 12; switch (inputLine.length()) { case 116: Sub = 13; break; case 117: Sub = 14; break; case 118: Sub = 15; break; case 119: Sub = 16; break; } return Integer.valueOf(inputLine.split(">")[2].replace("</span", "")); } } } } catch (IOException e) { _log.warning("Vote Reward System: " + e); } finally { try { in.close(); } catch (IOException e) { } try { isr.close(); } catch (IOException e) { } } return 0; } private void setLastVoteCount(int voteCount) { lastVoteCount = voteCount; } private int getLastVoteCount() { return lastVoteCount; } @SuppressWarnings("null") private void load() { int votes = 0; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("SELECT vote FROM votes LIMIT 1"); ResultSet rset = statement.executeQuery(); while (rset.next()) { votes = rset.getInt("vote"); } rset.close(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote: ", e); } finally { try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } setLastVoteCount(votes); } @SuppressWarnings("null") public void save() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("UPDATE votes SET vote = ? WHERE id=1"); statement.setInt(1, getLastVoteCount()); statement.execute(); statement.close(); } catch (Exception e) { _log.log(Level.WARNING, "data error on vote: ", e); } finally { try { con.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public static AutoVoteRewardHandler getInstance() { return SingletonHolder._instance; } @SuppressWarnings("synthetic-access") private static class SingletonHolder { protected static final AutoVoteRewardHandler _instance = new AutoVoteRewardHandler(); } }
-
1)Reborn12, Nice design with symbols! 2) Foxi 3) Snoopi
-
Hello guys. I need your helps anyone know where i will find one Team vs Team event who work in new l2j high five i have see too mutch shares but dont work.. i downloaded l2 nexus and this some files are missing .. Anyone new share ? for tvt event only? Thnx for your helpp !! :)