Jump to content

milosvamp

Members
  • Posts

    146
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by milosvamp

  1. That's what I wanted to know, thank you very much.
  2. No I can't edit them within the game. They are in xml files for me.
  3. Are you sure your server ip address is 192.168.1.2 ? Check it one more time by entering ipconfig in cmd and check the Ipv4 address
  4. Hey guys, can anyone explain me how can i nerf an mob or rb ? For example I have the status of the mob like this <stats str="60" int="76" dex="73" wit="70" con="57" men="80"> <vitals hp="397437.25144009" hpRegen="123.216289543832" mp="1507.8" mpRegen="3" /> <attack physical="2451.2234804188" magical="868.876026814078" random="10" critical="4" accuracy="4.75" attackSpeed="253" type="FIST" range="40" distance="80" width="120" /> <defence physical="957.73869" magical="467.22" evasion="-18" /> <attribute> <attack type="DARK" value="20" /> <defence fire="20" water="20" wind="20" earth="20" holy="-13" dark="189" /> </attribute> And I wanna know how does this <defence physical= bla bla works.... why is there 957.73869. I know it is 957 p def...but why are these numbers behind the 957 there and how to determine how many should I add ? If I want to lover it to 500 for example, what should I write ? Thanks in advance.
  5. Hey guys, do you have any idea why is this bug happening ? The code looks fine, the htmls are in good order.....but this bug keeps coming even after restart.... Also other tablets are bugged, some are showing smth like " the tablet is now communing with someone else, please wait a moment.... why is this happening, and how to fix it, any ideas ?
  6. Yes, I understand, on other project it works, thank you. But at this project what I wanted to fix it doesn't work at all, no idea why... Thank you very much for your help. This topic can be locked now....
  7. OK I've did it again, and got same error. What now ?
  8. but why...............it will be the same man...................
  9. and inside the game it says that " this pet name already exists ".....
  10. I've done it man....I am not joking.... but it brings this error all the time
  11. man, look I did it like that...................
  12. Tryskell I was sure that your answer on last topic was the right one.......but it wasn't after compiling it remained the same, check the error..... Dec 24, 2017 4:20:23 AM com.l2jserver.gameserver.data.sql.impl.PetNameTable doesPetNameExist WARNING: PetNameTable: Could not check existing petname:No value specified for parameter 1 java.sql.SQLException: No value specified for parameter 1 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:545) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:505) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:479) at com.mysql.cj.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2159) at com.mysql.cj.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2139) at com.mysql.cj.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2076) at com.mysql.cj.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1901) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java) at com.l2jserver.gameserver.data.sql.impl.PetNameTable.doesPetNameExist(PetNameTable.java:45) at com.l2jserver.gameserver.network.clientpackets.RequestChangePetName.runImpl(RequestChangePetName.java:70) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:69) at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1135) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) any ideas :/ ? still can't name freaking pet...............
  13. It picks up items when you are in party, but when you are alone not..... ://
  14. I did the method 2 and it works.... But I can't do it all the time with all chars...damn.... and also THE DYES ARE INCATIVE within relogging the char, I put the dye, everything works. Relog. Dye status disappeared eventho it's on my char....
  15. public boolean removeHenna(int slot) { if ((slot < 1) || (slot > 3)) { return false; } slot--; L2Henna henna = _henna[slot]; if (henna == null) { return false; } _henna[slot] = null; DAOFactory.getInstance().getHennaDAO().delete(this, slot + 1); // Calculate Henna modifiers of this L2PcInstance recalcHennaStats(); // Send Server->Client HennaInfo packet to this L2PcInstance sendPacket(new HennaInfo(this)); // Send Server->Client UserInfo packet to this L2PcInstance sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); // Add the recovered dyes to the player's inventory and notify them. getInventory().addItem("Henna", henna.getDyeItemId(), henna.getCancelCount(), this, null); reduceAdena("Henna", henna.getCancelFee(), this, false); final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S); sm.addItemName(henna.getDyeItemId()); sm.addLong(henna.getCancelCount()); sendPacket(sm); sendPacket(SystemMessageId.SYMBOL_DELETED); // Notify to scripts EventDispatcher.getInstance().notifyEventAsync(new OnPlayerHennaRemove(this, henna), this); return true; } /** * Adds a henna to the player and stores it into the database. * @param henna the henna to add to the player * @return {@code true} if the henna is added to the player, {@code false} otherwise */ .....................
  16. No, the problem shows up when i try to change dyes ( to remove the dyes and put the same dye again ) or to put another dye instead.... then the error shows up... Otherwise it saves normally but when i do a relog the dyes are INACTIVE they are not increasing the statuses.... but this thing doesn't show any error....so my dyes are basically fucked..
  17. here: public boolean addHenna(L2Henna henna) { for (int i = 0; i < 3; i++) { if (_henna[i] == null) { _henna[i] = henna; // Calculate Henna modifiers of this L2PcInstance recalcHennaStats(); DAOFactory.getInstance().getHennaDAO().insert(this, henna, i + 1); // Send Server->Client HennaInfo packet to this L2PcInstance sendPacket(new HennaInfo(this)); // Send Server->Client UserInfo packet to this L2PcInstance sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); // Notify to scripts EventDispatcher.getInstance().notifyEventAsync(new OnPlayerHennaRemove(this, henna), this); return true; } } return false; } /** * Calculate Henna modifiers of this L2PcInstance. */ and by the way, even when I manage to save the henna SOMEHOW idk how but sometimes it gets saved. AFTER RELOG IT DOESNT ACTIVATE IT, the dyes are ON THE CHAR but INACTIVE......pffff
  18. new problem :D take a look why is that happening ? com.l2jserver.gameserver.dao.impl.mysql.HennaDAOMySQLImpl insert SEVERE: Failed saving character henna. {} java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '268591989-1-0' for key 'PRIMARY' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:533) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:513) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:115) at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:1983) at com.mysql.cj.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1826) at com.mysql.cj.jdbc.PreparedStatement.execute(PreparedStatement.java:1153) at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java) at com.l2jserver.gameserver.dao.impl.mysql.HennaDAOMySQLImpl.insert(HennaDAOMySQLImpl.java:92) at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.addHenna(L2PcInstance.java:6929) at com.l2jserver.gameserver.network.clientpackets.RequestHennaEquip.runImpl(RequestHennaEquip.java:74) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:69) at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1135) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
  19. so to remove this try (ResultSet rs = ps.executeQuery()) { return rs.next(); } } and add this: ps.setString(1,name); pls tell me is it literally so ? Thank you very much for your help. Thank you. Thank you for joining our conversation and your help.
  20. Here is it /* * 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.data.sql.impl; 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.commons.database.pool.impl.ConnectionFactory; public class PetNameTable { private static Logger LOGGER = Logger.getLogger(PetNameTable.class.getName()); public static PetNameTable getInstance() { return SingletonHolder._instance; } public boolean doesPetNameExist(String name) { try (Connection con = ConnectionFactory.getInstance().getConnection(); PreparedStatement ps = con.prepareStatement("SELECT name FROM pets WHERE name=?")) { --------------->>>LINE 45>>>>>>>> try (ResultSet rs = ps.executeQuery()) <<<<LINE 45 <<<<<<<-------------------- { return rs.next(); } } catch (SQLException e) { LOGGER.log(Level.WARNING, getClass().getSimpleName() + ": Could not check existing petname:" + e.getMessage(), e); } return false; } public boolean isValidPetName(String name) { return Config.PET_NAME_TEMPLATE.matcher(name).matches(); } private static class SingletonHolder { protected static final PetNameTable _instance = new PetNameTable(); } }
  21. damn, there is no such a file......or you mean in core ?
×
×
  • Create New...