Jump to content

GoldenNightmare

Members
  • Posts

    273
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by GoldenNightmare

  1. hello im using l2j lastest and i got this problem when char got high speed this happend on normal values speed too and go to pick up or attack something in the distance this happend like the video but for other chardistance is normal for the target char client only for the active char is bug this obviously is a client packet bug but im not sure at all https://youtu.be/AFAnAgQvh-I if someone can help me or a dev can fix it i can pay
  2. site designer founded, looking for an experienced dev to participate to team
  3. hello lf partner to open l2 h5 server low rate server its l2j but have so many fixes is like l2off almost i got pack full stable and tested which can hold very large amount of players also skill engine is complete reworked so im searching someone serious and with little money to create site and help with some last details on pack skype tzortzoglou2
  4. when i got to shop and try to buy weapon please help java.lang.NullPointerException at com.l2jserver.gameserver.model.actor.instance.L2MerchantInstance.showBuyWindow(L2MerchantInstance.java:107) at com.l2jserver.gameserver.model.actor.instance.L2MerchantInstance.showBuyWindow(L2MerchantInstance.java:87) at handlers.bypasshandlers.Buy.useBypass(Buy.java:54) at com.l2jserver.gameserver.model.actor.L2Npc.onBypassFeedback(L2Npc.java:776) at com.l2jserver.gameserver.model.actor.instance.L2PetManagerInstance.onBypassFeedback(L2PetManagerInstance.java:164) at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:197) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:68) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) /* * Copyright (C) 2004-2016 L2J Server * * This file is part of L2J Server. * * L2J Server is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * L2J Server is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.model.actor.instance; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.l2jserver.gameserver.data.xml.impl.BuyListData; import com.l2jserver.gameserver.datatables.MerchantPriceConfigTable; import com.l2jserver.gameserver.datatables.MerchantPriceConfigTable.MerchantPriceConfig; import com.l2jserver.gameserver.enums.InstanceType; import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate; import com.l2jserver.gameserver.model.buylist.L2BuyList; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; import com.l2jserver.gameserver.network.serverpackets.BuyList; import com.l2jserver.gameserver.network.serverpackets.ExBuySellList; /** * This class ... * @version $Revision: 1.10.4.9 $ $Date: 2005/04/11 10:06:08 $ */ public class L2MerchantInstance extends L2NpcInstance { private static final Logger LOG = LoggerFactory.getLogger(L2MerchantInstance.class); private MerchantPriceConfig _mpc; /** * Creates a merchant, * @param template the merchant NPC template */ public L2MerchantInstance(L2NpcTemplate template) { super(template); setInstanceType(InstanceType.L2MerchantInstance); } @Override public void onSpawn() { super.onSpawn(); _mpc = MerchantPriceConfigTable.getInstance().getMerchantPriceConfig(this); } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) { pom = "" + npcId; } else { pom = npcId + "-" + val; } return "data/html/merchant/" + pom + ".htm"; } /** * @return Returns the mpc. */ public MerchantPriceConfig getMpc() { return _mpc; } public final void showBuyWindow(L2PcInstance player, int val) { showBuyWindow(player, val, true); } public final void showBuyWindow(L2PcInstance player, int val, boolean applyTax) { final L2BuyList buyList = BuyListData.getInstance().getBuyList(val); if (buyList == null) { LOG.warn("BuyList not found! BuyListId: {}", val); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (!buyList.isNpcAllowed(getId())) { LOG.warn("Npc not allowed in BuyList! BuyListId: {} NpcId: {}", val, getId()); player.sendPacket(ActionFailed.STATIC_PACKET); return; } final double taxRate = (applyTax) ? getMpc().getTotalTaxRate() : 0; player.setInventoryBlockingStatus(true); if (player.isGM()) { player.sendMessage("Buy List [" + buyList.getListId() + "]"); } player.sendPacket(new BuyList(buyList, player.getAdena(), taxRate)); player.sendPacket(new ExBuySellList(player, taxRate, false)); player.sendPacket(ActionFailed.STATIC_PACKET); } }
  5. yes i already founded i just rushed for help for no reason
  6. how to remove dyes limit like l2 classic from +5 to +15 im using l2j h5 i think its from here what need to change? public void recalcHennaStats() { _hennaINT = 0; _hennaSTR = 0; _hennaCON = 0; _hennaMEN = 0; _hennaWIT = 0; _hennaDEX = 0; for (L2Henna h : _henna) { if (h == null) { continue; } _hennaINT += ((_hennaINT + h.getStatINT()) > 5) ? 5 - _hennaINT : h.getStatINT(); _hennaSTR += ((_hennaSTR + h.getStatSTR()) > 5) ? 5 - _hennaSTR : h.getStatSTR(); _hennaMEN += ((_hennaMEN + h.getStatMEN()) > 5) ? 5 - _hennaMEN : h.getStatMEN(); _hennaCON += ((_hennaCON + h.getStatCON()) > 5) ? 5 - _hennaCON : h.getStatCON(); _hennaWIT += ((_hennaWIT + h.getStatWIT()) > 5) ? 5 - _hennaWIT : h.getStatWIT(); _hennaDEX += ((_hennaDEX + h.getStatDEX()) > 5) ? 5 - _hennaDEX : h.getStatDEX(); } }
  7. lf dev to mod some l2font etc files from hellbound chronicle to match h5
  8. thx worked one last problem when i start it in console error Path of mysql: C:\Program Files\MySQL\MySQL Server 5.6\C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump" Save path of sql file: "C:\Users\tzort\Desktop\l2h\database_backup\backup.sql" Command To Execute: cmd /c C:\Program Files\MySQL\MySQL Server 5.6\C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump" la2_game_server --single-transaction -uroot -p457890 --skip-create-options --skip-comments --disable-keys > "C:\Users\tzort\Desktop\l2h\database_backup\backup.sql" Here is the standard output of the command: Here is the standard error of the command (if any): 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Backup to SQL Failure
  9. thx for share but i got some warnings its ok to use suppress warnings?? and also on threadpool i got this error : Cannot make a static reference to the non-static method scheduleGeneralAtFixedRate(Runnable, long, long) from the type ThreadPoolManager
  10. hello guys this is extreme useful for servers but got a problem not working please help to make it work package com.l2jserver.gameserver.backupManager; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.text.SimpleDateFormat; import java.util.Date; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.l2jserver.Config; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.backupManager.runnable.BackUpManagerTask; public final class DatabaseBackupManager { private static final Logger _log = LoggerFactory.getLogger(DatabaseBackupManager.class); public DatabaseBackupManager() { } @SuppressWarnings("resource") public static void makeBackup() { _log.info("Initializing Database Backup Manager."); File f = new File(Config.DATABASE_BACKUP_SAVE_PATH); if ((!f.mkdirs()) && (!f.exists())) { _log.info("Could not create folder " + f.getAbsolutePath()); return; } Process run = null; try { run = Runtime.getRuntime().exec(Config.DATABASE_BACKUP_MYSQLDUMP_PATH + "/mysqldump --user=" + Config.DATABASE_LOGIN + " --password=" + Config.DATABASE_PASSWORD + " --compact --complete-insert --default-character-set=utf8 --extended-insert --lock-tables --quick --skip-triggers " + Config.DATABASE_BACKUP_DATABASE_NAME, null); } catch (Exception e) { _log.error(DatabaseBackupManager.class.getSimpleName() + ": Could not make backup: " + e.getMessage(), e); return; } try { SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy_HH-mm-ss"); Date time = new Date(); File bf = new File(f, sdf.format(time) + (Config.DATABASE_BACKUP_COMPRESSION ? ".zip" : ".sql")); if (!bf.createNewFile()) { throw new IOException("Cannot create backup file: " + bf.getCanonicalPath()); } InputStream input = run.getInputStream(); OutputStream out = new FileOutputStream(bf); if (Config.DATABASE_BACKUP_COMPRESSION) { ZipOutputStream dflt = new ZipOutputStream(out); dflt.setMethod(8); dflt.setLevel(9); dflt.setComment("L2Server Schema Backup Utility\r\n\r\nBackup date: " + new SimpleDateFormat("dd-MM-yyyy_HH-mm-ss:SSS z").format(time)); dflt.putNextEntry(new ZipEntry(Config.DATABASE_BACKUP_DATABASE_NAME + ".sql")); out = dflt; } if (Config.ENABLE_DATABASE_BACKUP_MANAGER) { if (Config.DATABASE_BACKUP_SCHEDULER) { ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new BackUpManagerTask(), Config.DATABASE_BACKUP_START_DELAY * 1000 * 60, Config.DATABASE_BACKUP_DELAY_BETWEEN_BACK_UPS * 1000 * 60); } else if (Config.DATABASE_BACKUP_MAKE_BACKUP_ON_STARTUP) { DatabaseBackupManager.makeBackup(); } _log.info("Backup Manager: Enabled."); } byte[] buf = new byte['က']; int written = 0; int read; while ((read = input.read(buf)) != -1) { out.write(buf, 0, read); written += read; } input.close(); out.close(); if (written == 0) { bf.delete(); BufferedReader br = new BufferedReader(new InputStreamReader(run.getErrorStream())); String line; while ((line = br.readLine()) != null) { _log.info(DatabaseBackupManager.class.getSimpleName() + ": " + line); } br.close(); } else { _log.info(DatabaseBackupManager.class.getSimpleName() + ": DB `" + Config.DATABASE_BACKUP_DATABASE_NAME + "` backed up in " + ((System.currentTimeMillis() - time.getTime()) / 1000L) + " s."); } run.waitFor(); } catch (Exception e) { _log.error(DatabaseBackupManager.class.getSimpleName() + ": Could not make backup: " + e.getMessage(), e); } } } package com.l2jserver.gameserver.backupManager.runnable; import com.l2jserver.gameserver.backupManager.DatabaseBackupManager; public class BackUpManagerTask implements Runnable { public BackUpManagerTask() { } @Override public void run() { } }
  11. i dont get it how to edit the database with notepad what should i do ?
  12. from this https://bitbucket.org/l2jserver/l2j_datapack/src/develop/dist/sql/game/spawnlist.sql to this https://bitbucket.org/l2jserver/l2j_datapack/src/Gracia1/L2J_DataPack/sql/spawnlist.sql
  13. hello guys im using latest h5 pack and i want to take spawnlist.sql and match it from hellbound because i want make something like classic but it doesnt match the sql give me error any ideas how to make it match?
  14. im using h5 client but i want to change some animation of skill like interlude like death spike, shadow flare etc... anyone know how to do it ?
  15. i copy it on my pack exactly the same but idk why not working
  16. check this i add it on my pack but now working but should be something like this https://github.com/St3eT/L2jUnity/commit/c56a6e3d5296e47e7e7f4f95fc9af744351d8383#diff-0d315726658e38a5751f76a0507e5b93
  17. lf developer for l2j server h5 to fix feauture in my pack about vampiric rage to do it like l2 classic with chance
  18. hello maxcheaters i want to introduce you my l2j last rev high five pack fully bug free (2 years of fixing) first of all as you know the regular l2j server got issues with lag in area - if example raid boss use cancel etc u get stucked 1 min or so - our pack have changed the whole engine to new level (MMOCORE Engine) - now not only not lag but if u spawn 3000 monsters at same place and u kill them u can move freely without any lag at all - before u get laged with 20 monsters die together - also added packets handler to send randomly every 250-500ms of time and all together once - example if u take buffs from npc buffer will send 1 packet only all together - reduce packets send for action also - all skills are high five version and even better with some realistic changes - attribute system realistic difference not h5 old crap with damage differences - fix a lot memory leaks and threads which was slow the server - not customs added because i was focused on retail fixes and engine changes - formulas of damages are equal and tested from l2off servers (dagger,archer,gladi damages etc...) - many AI problems fixed include character attackable and more - retail like olympiad all details added - macro -1 sec reuse added to pack its on offi since gracia final - skill caps added lowest hittime is 500 - skill animation fixed like l2off - spritishot, soulshot lag like l2off - and much more - the pack can handle 5000+ players without lag easy price is 800 euro for full source for test server pm me
  19. hello guys im using l2j server develop and i got a null problem on L2Object.java getName() method the return _name goes null when example use NpcViewMod to see npc drops when take tw flag with some words when something use this method got npe L2Object.java its all ok problem is from somewhere else pls help or if someone need payment to fix it ok
×
×
  • Create New...