-
Posts
559 -
Joined
-
Last visited
-
Days Won
8 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by wongerlt
-
Help Problem with announcement.
wongerlt replied to sotid's question in Request Server Development Help [L2J]
hmm i think not possible, but what point to flood on down? :D very nervous while you chating and server messages start going to bottom tab. -
Help Problem with announcement.
wongerlt replied to sotid's question in Request Server Development Help [L2J]
2033 1 [Hopzone] Current Votes: $s1 0 79 CC E5 FF 0 0 0 0 0 none change to 2 2033 1 [Hopzone] Current Votes: $s1 2 79 CC E5 FF 0 0 0 0 0 none -
Help Problem with announcement.
wongerlt replied to sotid's question in Request Server Development Help [L2J]
You can make it with systemmsg.dat and choose any color you want in rgb example: SystemMessage sm = new SystemMessage(2033); // 2033 - id from systemmsg-e.dat sm.addString(Integer.toString(hopzone_votes)); Broadcast.toAllOnlinePlayers(sm); // example 2033, add this line to systemmsg-e.dat // 2033 1 [Hopzone] Current Votes: $s1 0 79 CC E5 FF 0 0 0 0 0 none // R = 79, G = CC , B = E5 , aplha = FF with this shit u can save and server bandwidth. :D -
Help acis stuck character
wongerlt replied to alcohol's question in Request Server Development Help [L2J]
maybe somewhere infinite loop, try debug with l2phx on what packet it stuck. -
Because vote sites updated and old methods to get vote count no longer works.
-
Discussion VPS for hosting server
wongerlt replied to alcohol's topic in Server Development Discussion [L2J]
you mean l2jguard.org?? don't even try this! -
Discussion VPS for hosting server
wongerlt replied to alcohol's topic in Server Development Discussion [L2J]
yes ovh vps protected from ddos, but still you need configure ovh firewall , example block all protocols (tcp,udp, icmp, gre ant etc...), all ports and open only which one you need. always someone appear who will try to ddos you :D -
Help Spawning moobs/npc problem
wongerlt replied to Guarder's question in Request Server Development Help [L2J]
any error on console when try to delete? -
reply
-
Hello, how change font or font size on H5 client? all text look bigger than normal Example on h5 look: http://prntscr.com/m28bea And example Iterlude client: http://prntscr.com/m28bkv On interlude look much better.
-
wrong java version. Java SE 10 = 54 Java SE 9 = 53 Java SE 8 = 52 Java SE 7 = 51 open cmd win+r [cmd] and check with command: java -version
-
Help L2jfrozen bug skills reuse coldown
wongerlt replied to lologrid's question in Request Server Development Help [L2J]
/** * Restore Type 1 The remaning skills lost effect upon logout but were still under a high reuse delay. */ statement = con.prepareStatement(RESTORE_SKILL_SAVE); statement.setInt(1, getObjectId()); statement.setInt(2, getClassIndex()); statement.setInt(3, 1); rset = statement.executeQuery(); while (rset.next()) { final int skillId = rset.getInt("skill_id"); final int skillLvl = rset.getInt("skill_level"); final long reuseDelay = rset.getLong("reuse_delay"); final long systime = rset.getLong("systime"); if (reuseDelay <= 0) { continue; } final L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLvl); if (skill == null) continue; final long remainingTime = systime - System.currentTimeMillis(); ++ if (remainingTime > 10) ++ { disableSkill(skill, remainingTime); addTimeStamp(skill, reuseDelay, systime); ++ } } this if condition if (remainingTime > 10) helped me with this bug, idk why, -
Request duplication fix
wongerlt replied to leonardoll174's question in Request Server Development Help [L2J]
-
Java 7 and 8 on same pc
wongerlt replied to Eleven's question in Request Server Development Help [L2J]
easy, example java -XX:+UseConcMarkSweepGC -Xmx2G -cp ./libs/*; net.sf.l2j.gameserver.GameServer just write: "C:\Program Files\Java\jdk1.8.0_171\bin\java" -XX:+UseConcMarkSweepGC -Xmx2G -cp ./libs/*; net.sf.l2j.gameserver.GameServer dont remove quates " -
Help Edit Send Moneys
wongerlt replied to criss22's question in Request Server Development Help [L2J]
you looking not here.. there is any web app? how player donate? -
thed edit spawn admin command add +50 on z cordinate maybe it will work :D idk
-
your config file or index txt file not empty? "geo_index" or just try to hit with bow to mob behind the wall to check :D
-
show ur problem, screenshot ar video
-
delete this.
-
crappy code but still u can see example: fencetable.java package com.l2jfrozen.gameserver.datatables; import java.util.ArrayList; import java.util.Collection; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import com.l2jfrozen.gameserver.model.L2Object; import com.l2jfrozen.gameserver.model.actor.instance.L2FenceInstance; import java.util.logging.Logger; import com.l2jfrozen.util.database.L2DatabaseFactory; import com.l2jfrozen.gameserver.idfactory.IdFactory; import com.l2jfrozen.util.CloseUtil; public class FenceTable { protected static Logger _log = Logger.getLogger(FenceTable.class.getName()); public static void fencedelsql(int type,int locx,int locy,int locz,int width,int length){ Connection con; try { con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("DELETE FROM `fences` WHERE `type`='"+type+"' AND `locx`='"+locx+"' AND `locy`='"+locy+"' AND `locz`='"+locz+"' AND `width`='"+width+"' AND `length`='"+length+"'"); statement.execute(); statement.close(); CloseUtil.close(con); } catch (Exception e) { e.printStackTrace(); } } public static void fencetogame(){ int g=0; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(); ResultSet rset; PreparedStatement statement = con.prepareStatement("SELECT * FROM `fences` WHERE 1"); rset = statement.executeQuery(); int type; int width; int length; int height; int locx; int locy; int locz; String name; while (rset.next()) { g++; type = rset.getInt("type"); width = rset.getInt("width"); length = rset.getInt("length"); height = rset.getInt("height"); locx = rset.getInt("locx"); locy = rset.getInt("locy"); locz = rset.getInt("locz"); name = rset.getString("name"); // spawn fence for (int i = 0;i < height;i++) { L2FenceInstance fence = new L2FenceInstance(IdFactory.getInstance().getNextId(), type, width, length, locz, locy, name); fence.spawnMe(locx, locy, locz); addFence(fence); } // spawn fence } } catch (Exception e) { e.printStackTrace(); } finally { CloseUtil.close(con); } _log.warning("Loaded "+g+" fences to world."); } public static ArrayList<L2FenceInstance> fences = new ArrayList<>(); public static void addFence(L2FenceInstance fence) { fences.add(fence); } public static ArrayList<L2FenceInstance> getAllFences() { return fences; } public static void removeFence(L2FenceInstance fence) { if (fences.contains(fence)) fences.remove(fence); } public static boolean canSeeTarget(L2Object source, int x, int y) { Collection<L2Object> objects = source.getKnownList().getKnownObjects().values(); for (L2Object obj : objects) { if (obj instanceof L2FenceInstance) { L2FenceInstance fence = (L2FenceInstance) obj; if (fence.isBetween(source.getX(), source.getY(), x, y)) return false; } } return true; } public static boolean canSeeTarget(int x, int y, int tx, int ty) { for (L2FenceInstance fence : fences) { if (fence.isBetween(x, y, tx, ty)) return false; } return true; } } gameserver java FenceTable.fencetogame(); admin command: else if (command.startsWith("admin_spawnfence")) { StringTokenizer st = new StringTokenizer(command, " "); try { st.nextToken(); int type = Integer.parseInt(st.nextToken()); int width = Integer.parseInt(st.nextToken()); int length = Integer.parseInt(st.nextToken()); int height = 1; String name = ""; if (st.hasMoreTokens()) height = Math.min(Integer.parseInt(st.nextToken()), 3); if (st.hasMoreTokens()) name = st.nextToken(); for (int i = 0;i < height;i++) { L2FenceInstance fence = new L2FenceInstance(IdFactory.getInstance().getNextId(), type, width, length, activeChar.getX(), activeChar.getY(), name); fence.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ()); FenceTable.addFence(fence); fence.fencetosql(type,activeChar.getX(),activeChar.getY(),activeChar.getZ(),width,length, height,name); } } catch (Exception e) { activeChar.sendMessage("Usage: //spawnfence <type> <width> <length> [<height>]"); } } else if (command.startsWith("admin_deletefence")) { StringTokenizer st = new StringTokenizer(command, " "); st.nextToken(); int idas = Integer.parseInt(st.nextToken()); for (L2FenceInstance fencex : FenceTable.getAllFences()) { if(fencex.getObjectId()==idas) { FenceTable.fencedelsql(fencex.getType(),fencex.getX(),fencex.getY(),fencex.getZ(),fencex.getWidth(),fencex.getLength()); L2WorldRegion region = fencex.getWorldRegion(); fencex.decayMe(); region.removeVisibleObject(fencex); fencex.getKnownList().removeAllKnownObjects(); L2World.getInstance().removeObject(fencex); FenceTable.removeFence(fencex); activeChar.sendMessage("Deleted fence " + fencex.getObjectId()); listFences(activeChar); } } } else if (command.startsWith("admin_listfence")) listFences(activeChar); .... private static void listFences(L2PcInstance activeChar) { NpcHtmlMessage html = new NpcHtmlMessage(0); StringBuilder sb = new StringBuilder(); sb.append("<html><body>Total Fences: " + FenceTable.getAllFences().size() + "<br><br>"); for (L2FenceInstance fence : FenceTable.getAllFences()) sb.append("<a action=\"bypass admin_deletefence " + fence.getObjectId() + " 1\">Fence: "+fence.getNamex()+" " + fence.getObjectId() + " [" + fence.getX() + " " + fence.getY() + " " + fence.getZ() + "]</a><br>"); sb.append("</body></html>"); html.setHtml(sb.toString()); activeChar.sendPacket(html); }
-
encode questname-e.dat
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
thanks you i fixed it must look like: hunt Giants.\n 1 57 1 10 10553.000000 need collect 10 adenas. And idea with excel is best ,you help me very much :D -
Hello, i try to create simple quest on questname-e.dat tag_? quest_id quest_prog main_name prog_name description cnt1 items cnt2 num_items quest_x quest_y quest_z lvl_min lvl_max quest_type entity_name get_item_in_quest UNK_1 UNK_2 contact_npc_id contact_npc_x contact_npc_y contact_npc_z restricions short_description cnt3 req_class cnt4 req_item clan_pet_quest req_quest_complete UNK_3 area_id 1 300 1 Secret Room Hunt Giants To make a special Secret Room Scroll you need hunt Giants.\n 0 0 10553.000000 78428.000000 -3840.000000 1 80 3 Rath 0 1 1 30126 9566.000000 78373.000000 -3808.000000 No Requirements To make a special Secret Room Scroll you need hunt Giants. 0 0 0 0 0 30 and i want add quest items, i think is here cnt1 items cnt2 num_items items and num_items and is here: hunt Giants.\n 0 x 0 y 10553.000000 x and y , but when i try encrypt i got error, im using L2FileEdit. example: x=57 y=10 Tryed and with cmd l2encdec encrypt complete but get critical error in game. How to add items on quest that quest need to collect. thanks
-
looking for LF L2 Gold Pack
wongerlt replied to MrMagnistor's question in Request Server Development Help [L2J]
yes https://mega.nz/#!rNMyVQID!r3_5tU_BeLgyf-kt48Aztzn1ztu1IbHq_7hPzeZgRmI totaly no bugs, perfect balance and etc. -
LF LF L2 Custom-Avice pack
wongerlt replied to iiyama's question in Request Server Development Help [L2J]
before 2 years was shared l2gold trance files with some bug fixes and nothing more. -
TOP RITCHEST STATS PROBLEM
wongerlt replied to admirolas3's question in Request Server Development Help [L2J]
no point for one or two gm join table.
