-
Posts
539 -
Credits
0 -
Joined
-
Last visited
-
Days Won
7 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by wongerlt
-
LF any1 help for this
wongerlt replied to StarLineageServer's topic in Coding Discussions & Requests
give me url and i tell u what here wrong. -
Help Auto Vote Reward ->Network
wongerlt replied to sotid's question in Request Server Development Help [L2J]
this line: votes = Integer.valueOf(inputLine.split(">")[2].replace("</b", "")); change to: votes = Integer.valueOf(inputLine.split(">")[2].replace("</b", "").replaceAll(",","")); -
Help Auto Vote Reward ->Network
wongerlt replied to sotid's question in Request Server Development Help [L2J]
and uncomment this lines // e.printStackTrace(); remove slashes from start. and try again. -
Help Auto Vote Reward ->Network
wongerlt replied to sotid's question in Request Server Development Help [L2J]
what url vote? -
Help Problem with announcement.
wongerlt replied to sotid's question in Request Server Development Help [L2J]
then u can make like this: 2033 1 [Hopzone] Current Votes: $s1 0 79 CC E5 FF 8 0 3 1 0 [Hopzone] Current Votes: $s1 server 100% all will see :D -
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,- 1 reply
-
- 1
-
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); }