Jump to content

disorder25

Members
  • Posts

    451
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by disorder25

  1. The Login and Gameserver status doesn't change, Login is always green (even if login is offline) and Server is always red. Is it missing any images? How can I get it to show the right status for Login and Server? Thank you
  2. I now have the same problem, My web server was working good and then after I updated MYSQL and APACHE I started to get the same error. Did you fixed the problem? if you did how did you do it? I think it is something with the php code, maybe it is outdated. Please can someone help me fix this. Thank you. I figure what is the problem but I don't know how to fix it. The problem is caused by the database since they are now 2, L2jgs and L2jls. Can Picassoo help fix this?
  3. not bad, great job man.
  4. how exactly this prevent Oly farm. I couldn't understand how it stops Oly feeding. Sry for my ignorance. thank you.
  5. It worked perfectly. Thank you Rizel
  6. just close the connection on the buffer __init__.py file. I had the same errors on mine, it is just an unclosed connection and when players use the feature that keeps the connection open it freezes the server for a few seconds. I found out that it was missing one letter on the close connection part of the script. Post or pm me the file and I will close it to you and send it back.
  7. I seen this on a few pvp servers but to tell you the truth you don't need it if you are a noble, and on most pvp servers is very easy to become noble>
  8. Very interest work m8. Thank you very much for share it.
  9. This is REQUEST DEV HELP. If you are here just to "help with a problem/question" you should change the name of the child board to General board or something else. I need help from a Dev that's why I requested, if you don't want to help don't reply to the post idiot.
  10. Hey Brother I Think I found out why the captcha was not send at least on my server, I had A unclosed connection on my buffer and it was freezing the server for a few seconds and when it happen at the same time as the pop up window with the captcha, it was messing the AntiBot. But I was running some tests because 2 people said they got jailed for no reason for 360 minutes (thats the jail time for Bots in my server), and I went out to kill some mobs and when the captcha window popped I enter the code wrong 3 times and got sent to jail for 1 minute (jail time for entering the wrong code), here is the problem, when I come out of jail I was still paralized and after 3 minutes It send me back to jail, this time for 360 minutes. We need to fix the code to clean itself after player come out of jail for typing the wrong code. Thank you. EDIT: You miss this in 2 places in Antibot.java and in 1 place in Captcha.java activeChar.setCodeRight(true); also on captcha java you have a return false and it is supposed to be return true; (almost on the end) here is the Anibot.java fixed package handlers.voicedcommandhandlers; import gov.nasa.worldwind.formats.dds.DDSConverter; import java.awt.Color; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.File; import java.util.StringTokenizer; import java.util.logging.Level; import javax.imageio.ImageIO; import com.l2jserver.Config; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.idfactory.IdFactory; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.network.serverpackets.PledgeCrest; import com.l2jserver.gameserver.skills.AbnormalEffect; /** * * @author Pipiou211 * */ public class Antibot implements IVoicedCommandHandler { private static final String[] _voicedCommands = { "antibot" }; public static StringBuilder finalString = new StringBuilder(); NpcHtmlMessage adminReply = new NpcHtmlMessage(5); private static BufferedImage generateCaptcha() { Color textColor = new Color(98, 213, 43); Color circleColor = new Color(98, 213, 43); Font textFont = new Font("comic sans ms", Font.BOLD, 24); int charsToPrint = 5; int width = 256; int height = 64; int circlesToDraw = 8; float horizMargin = 20.0f; double rotationRange = 0.7; // this is radians BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g = (Graphics2D) bufferedImage.getGraphics(); //Draw an oval g.setColor(new Color(30,31,31)); g.fillRect(0, 0, width, height); // lets make some noisey circles g.setColor(circleColor); for ( int i = 0; i < circlesToDraw; i++ ) { int circleRadius = (int) (Math.random() * height / 2.0); int circleX = (int) (Math.random() * width - circleRadius); int circleY = (int) (Math.random() * height - circleRadius); g.drawOval(circleX, circleY, circleRadius * 2, circleRadius * 2); } g.setColor(textColor); g.setFont(textFont); FontMetrics fontMetrics = g.getFontMetrics(); int maxAdvance = fontMetrics.getMaxAdvance(); int fontHeight = fontMetrics.getHeight(); // Suggestions ---------------------------------------------------------------------- // i removed 1 and l and i because there are confusing to users... // Z, z, and N also get confusing when rotated // 0, O, and o are also confusing... // lowercase G looks a lot like a 9 so i killed it // this should ideally be done for every language... // i like controlling the characters though because it helps prevent confusion // So recommended chars are: // String elegibleChars = "ABCDEFGHJKLMPQRSTUVWXYabcdefhjkmnpqrstuvwxy23456789"; // Suggestions ---------------------------------------------------------------------- String elegibleChars = "ABCDEFGHJKLMPQRSTUVWXYZ"; char[] chars = elegibleChars.toCharArray(); float spaceForLetters = -horizMargin * 2 + width; float spacePerChar = spaceForLetters / (charsToPrint - 1.0f); for ( int i = 0; i < charsToPrint; i++ ) { double randomValue = Math.random(); int randomIndex = (int) Math.round(randomValue * (chars.length - 1)); char characterToShow = chars[randomIndex]; finalString.append(characterToShow); // this is a separate canvas used for the character so that // we can rotate it independently int charWidth = fontMetrics.charWidth(characterToShow); int charDim = Math.max(maxAdvance, fontHeight); int halfCharDim = (charDim / 2); BufferedImage charImage = new BufferedImage(charDim, charDim, BufferedImage.TYPE_INT_ARGB); Graphics2D charGraphics = charImage.createGraphics(); charGraphics.translate(halfCharDim, halfCharDim); double angle = (Math.random() - 0.5) * rotationRange; charGraphics.transform(AffineTransform.getRotateInstance(angle)); charGraphics.translate(-halfCharDim,-halfCharDim); charGraphics.setColor(textColor); charGraphics.setFont(textFont); int charX = (int) (0.5 * charDim - 0.5 * charWidth); charGraphics.drawString("" + characterToShow, charX, ((charDim - fontMetrics.getAscent()) / 2 + fontMetrics.getAscent())); float x = horizMargin + spacePerChar * (i) - charDim / 2.0f; int y = ((height - charDim) / 2); g.drawImage(charImage, (int) x, y, charDim, charDim, null, null); charGraphics.dispose(); } g.dispose(); return bufferedImage; } public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); if (command.equalsIgnoreCase("antibot") && target != null) { StringTokenizer st = new StringTokenizer(target); try { String newpass = null, repeatnewpass = null; if (st.hasMoreTokens()) newpass = st.nextToken(); repeatnewpass = activeChar.getCode(); if (!(newpass == null || repeatnewpass == null)) { if (newpass.equals(repeatnewpass))//Right:) { npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"00FF00\">Correct Captcha.<br><br></font><center><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); activeChar.sendPacket(npcHtmlMessage); activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET); activeChar.setIsInvul(false); activeChar.setIsParalyzed(false); activeChar.setKills(0); activeChar.setCodeRight(true); return false; } } if (!newpass.equals(repeatnewpass))//Wrong { if (activeChar.getTries() > 1) { activeChar.setTries(activeChar.getTries() -1); //Random image file name int imgId = IdFactory.getInstance().getNextId(); //Convertion from .png to .dds, and crest packed send try { File captcha = new File("data/captcha/captcha.png"); ImageIO.write(generateCaptcha(), "png", captcha); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(captcha).array()); //Convertion to DDS where is antybot activeChar.sendPacket(packet); } catch (Exception e) { _log.warning(e.getMessage()); } //Paralyze, abnormal effect, invul, html with captcha output and start of the 1 min counter adminReply.setHtml("<html><title>Captcha Antibot System</title><body><center>Enter the 5-digits code below and click Confirm.<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br1><font color=\"FF0000\">Tries Left: " + activeChar.getTries() +"</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>If you close by mistake this window,<br1>you can re-open it by typing \".captcha\" on Chat.<br1>You have 3 minutes to answer or you<br1>will get jailed.<br1>You have 3 tries, if you will<br1>answer wrong to all of them you<br1>will get punished.</center></body></html>"); activeChar.sendPacket(adminReply); activeChar.setCode(finalString); finalString.replace(0, 5, ""); return false; } //here will run method with jailing player activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET); npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"FF0000\">You have wasted your Tries.<br><br></font><font color=\"66FF00\"><center></font><font color=\"FF0000\">You will be jailed.</font><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); if (activeChar.isFlyingMounted()) activeChar.untransform(); activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1); activeChar.setIsInvul(false); activeChar.setIsParalyzed(false); activeChar.sendPacket(npcHtmlMessage); activeChar.setCodeRight(true); return false; } else { if (activeChar.getTries() > 1) { activeChar.setTries(activeChar.getTries() -1); //Random image file name int imgId = IdFactory.getInstance().getNextId(); //Convertion from .png to .dds, and crest packed send try { File captcha = new File("data/captcha/captcha.png"); ImageIO.write(generateCaptcha(), "png", captcha); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(captcha).array()); //Convertion to DDS where is antybot activeChar.sendPacket(packet); } catch (Exception e) { _log.warning(e.getMessage()); } //Paralyze, abnormal effect, invul, html with captcha output and start of the 1 min counter adminReply.setHtml("<html><title>Captcha Antibot System</title><body><center>Enter the 5-digits code below and click Confirm.<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br1><font color=\"FF0000\">Tries Left: " + activeChar.getTries() +"</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>If you close by mistake this window,<br1>you can re-open it by typing \".captcha\" on Chat.<br1>You have 3 minutes to answer or you<br1>will get jailed.<br1>You have 3 tries, if you will<br1>answer wrong to all of them you<br1>will get punished.</center></body></html>"); activeChar.sendPacket(adminReply); activeChar.setCode(finalString); finalString.replace(0, 5, ""); return false; } //here will run method with jailing player activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET); npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"FF0000\">You have wasted your Tries.<br><br></font><font color=\"66FF00\"><center></font><font color=\"FF0000\">You will be jailed.</font><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); if (activeChar.isFlyingMounted()) activeChar.untransform(); activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1); activeChar.setIsInvul(false); activeChar.setIsParalyzed(false); activeChar.sendPacket(npcHtmlMessage); activeChar.setCodeRight(true); return false; } } catch (Exception e) { activeChar.sendMessage("A problem occured while adding captcha!"); _log.log(Level.WARNING, "", e); } } else { if (activeChar.getTries() > 1) { activeChar.setTries(activeChar.getTries() -1); //Random image file name int imgId = IdFactory.getInstance().getNextId(); //Convertion from .png to .dds, and crest packed send try { File captcha = new File("data/captcha/captcha.png"); ImageIO.write(generateCaptcha(), "png", captcha); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(captcha).array()); //Convertion to DDS where is antybot activeChar.sendPacket(packet); } catch (Exception e) { _log.warning(e.getMessage()); } //Paralyze, abnormal effect, invul, html with captcha output and start of the 1 min counter adminReply.setHtml("<html><title></title><body><center>Enter the 5-digits code below and click Confirm.<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br1><font color=\"FF0000\">Tries Left: " + activeChar.getTries() +"</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>If you close by mistake this window,<br1>you can re-open it by typing \".captcha\" on Chat.<br1>You have 3 minutes to answer or you<br1>will get jailed.<br1>You have 3 tries, if you will<br1>answer wrong to all of them you<br1>will get punished.</center></body></html>"); activeChar.sendPacket(adminReply); activeChar.setCode(finalString); finalString.replace(0, 5, ""); return false; } //here will run method with jailing player activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET); npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"FF0000\">You have wasted your Tries.<br><br></font><font color=\"66FF00\"><center></font><font color=\"FF0000\">You will be jailed.</font><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); if (activeChar.isFlyingMounted()) activeChar.untransform(); activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1); activeChar.setIsInvul(false); activeChar.setIsParalyzed(false); activeChar.sendPacket(npcHtmlMessage); activeChar.setCodeRight(true); return false; } return true; } public String[] getVoicedCommandList() { return _voicedCommands; } } And the Captcha.java fixed package handlers.voicedcommandhandlers; import gov.nasa.worldwind.formats.dds.DDSConverter; import java.awt.Color; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; import com.l2jserver.Config; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.idfactory.IdFactory; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.network.serverpackets.PledgeCrest; import com.l2jserver.gameserver.skills.AbnormalEffect; /** * * @author Pipiou211 * */ public class Captcha implements IVoicedCommandHandler //when you click on confirm, also this code is running or something else? this, only, and just //unpara the targetpl { private static final String[] _voicedCommands = { "captcha" }; public static StringBuilder finalString = new StringBuilder(); NpcHtmlMessage adminReply = new NpcHtmlMessage(5); private static BufferedImage generateCaptcha() { Color textColor = new Color(98, 213, 43); Color circleColor = new Color(98, 213, 43); Font textFont = new Font("comic sans ms", Font.BOLD, 24); int charsToPrint = 5; int width = 256; int height = 64; int circlesToDraw = 8; float horizMargin = 20.0f; double rotationRange = 0.7; // this is radians BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g = (Graphics2D) bufferedImage.getGraphics(); //Draw an oval g.setColor(new Color(30,31,31)); g.fillRect(0, 0, width, height); // lets make some noisey circles g.setColor(circleColor); for ( int i = 0; i < circlesToDraw; i++ ) { int circleRadius = (int) (Math.random() * height / 2.0); int circleX = (int) (Math.random() * width - circleRadius); int circleY = (int) (Math.random() * height - circleRadius); g.drawOval(circleX, circleY, circleRadius * 2, circleRadius * 2); } g.setColor(textColor); g.setFont(textFont); FontMetrics fontMetrics = g.getFontMetrics(); int maxAdvance = fontMetrics.getMaxAdvance(); int fontHeight = fontMetrics.getHeight(); // Suggestions ---------------------------------------------------------------------- // i removed 1 and l and i because there are confusing to users... // Z, z, and N also get confusing when rotated // 0, O, and o are also confusing... // lowercase G looks a lot like a 9 so i killed it // this should ideally be done for every language... // i like controlling the characters though because it helps prevent confusion // So recommended chars are: // String elegibleChars = "ABCDEFGHJKLMPQRSTUVWXYabcdefhjkmnpqrstuvwxy23456789"; // Suggestions ---------------------------------------------------------------------- String elegibleChars = "ABCDEFGHJKLMPQRSTUVWXYZ"; char[] chars = elegibleChars.toCharArray(); float spaceForLetters = -horizMargin * 2 + width; float spacePerChar = spaceForLetters / (charsToPrint - 1.0f); for ( int i = 0; i < charsToPrint; i++ ) { double randomValue = Math.random(); int randomIndex = (int) Math.round(randomValue * (chars.length - 1)); char characterToShow = chars[randomIndex]; finalString.append(characterToShow); // this is a separate canvas used for the character so that // we can rotate it independently int charWidth = fontMetrics.charWidth(characterToShow); int charDim = Math.max(maxAdvance, fontHeight); int halfCharDim = (charDim / 2); BufferedImage charImage = new BufferedImage(charDim, charDim, BufferedImage.TYPE_INT_ARGB); Graphics2D charGraphics = charImage.createGraphics(); charGraphics.translate(halfCharDim, halfCharDim); double angle = (Math.random() - 0.5) * rotationRange; charGraphics.transform(AffineTransform.getRotateInstance(angle)); charGraphics.translate(-halfCharDim,-halfCharDim); charGraphics.setColor(textColor); charGraphics.setFont(textFont); int charX = (int) (0.5 * charDim - 0.5 * charWidth); charGraphics.drawString("" + characterToShow, charX, ((charDim - fontMetrics.getAscent()) / 2 + fontMetrics.getAscent())); float x = horizMargin + spacePerChar * (i) - charDim / 2.0f; int y = ((height - charDim) / 2); g.drawImage(charImage, (int) x, y, charDim, charDim, null, null); charGraphics.dispose(); } g.dispose(); return bufferedImage; } public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0); if (command.equalsIgnoreCase("captcha") && !activeChar.isCodeRight()) { if (activeChar.getTries() > 1) { activeChar.setTries(activeChar.getTries() -1); //Random image file name int imgId = IdFactory.getInstance().getNextId(); //Convertion from .png to .dds, and crest packed send try { File captcha = new File("data/captcha/captcha.png"); ImageIO.write(generateCaptcha(), "png", captcha); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(captcha).array()); //Convertion to DDS where is antybot activeChar.sendPacket(packet); } catch (Exception e) { _log.warning(e.getMessage()); } //Paralyze, abnormal effect, invul, html with captcha output and start of the 1 min counter adminReply.setHtml("<html><title>Captcha Antibot System</title><body><center>Enter the 5-digits code below and click Confirm.<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br1><font color=\"FF0000\">Tries Left: " + activeChar.getTries() +"</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>If you close by mistake this window,<br1>you can re-open it by typing \".captcha\" on Chat.<br1>You have 3 minutes to answer or you<br1>will get jailed.<br1>You have 3 tries, if you will<br1>answer wrong to all of them you<br1>will get punished.</center></body></html>"); activeChar.sendPacket(adminReply); activeChar.setCode(finalString); finalString.replace(0, 5, ""); return false; } activeChar.setTries(3); //here will run method with jailing player activeChar.stopAbnormalEffect(AbnormalEffect.REAL_TARGET); npcHtmlMessage.setHtml("<html><title>Captcha Antibot System</title><body><center><font color=\"FF0000\">You have wasted your Tries.<br><br></font><font color=\"66FF00\"><center></font><font color=\"FF0000\">You will be jailed.</font><br><button value=\"Exit\" action=\"bypass -h npc_%objectId%_Quest\" width=45 height=25 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"></center></body></html>"); if (activeChar.isFlyingMounted()) activeChar.untransform(); activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1); activeChar.setIsInvul(false); activeChar.setIsParalyzed(false); activeChar.sendPacket(npcHtmlMessage); activeChar.setCodeRight(true); return false; } else { return true; } //return false; } public String[] getVoicedCommandList() { return _voicedCommands; } }
  11. I have been getting this also and I have people complaining that the ANTIBOT System is lagging the server. The window will popup and freeze the server and they can't enter the code and it start to happen after I change to version 2. When the lag happen because of the system they can't enter the code and get jailed.
  12. Hi anyone have the zone vertices for kamaloka's Hall of Abyss 1 and Hall Of Abyss 2. I know I can do it but I'm just busy and want to save some time. Thank you.
  13. Thank you Vampir
  14. I'm using gold bar to buy the ticket. If the player don't have the amount needed I get this error on the gameserver instead of getting the html saying I don't have enough items. It also never took the items from the inventory. Client: [Character: XXXXXXX[XXXXXXXXX] - Account: XXXXXXXX - IP: XX.XX.XXX.XX] - Failed running: [C] 38 Say2 - L2J Server Version: ${l2j.revision} - DP Revision : ${l2jdp.revision} ; null java.lang.NullPointerException at handlers.voicedcommandhandlers.VoicedKino.useVoicedCommand(VoicedKino .java:32) at handlers.chathandlers.ChatAll.handleChat(ChatAll.java:74) at com.l2jserver.gameserver.network.clientpackets.Say2.runImpl(Say2.java :218) at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run (L2GameClientPacket.java:62) at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1 001) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) GlobalVariablesManager: Database updated. GlobalVariablesManager: Data updated successfully. AutoAnnounce: You Must Enter the code in UPPERCASE LETTERS on the new ANTIBOT sy stem. Need to fix that, can you help? Thank you. EDIT: I fix all of it by changing on the Kino.java the "destroyItem" to "destroyItemByItemId"
  15. All compile right but I got one thing not right on L2Npc.java if((killer != null) && ((killer instanceof L2PcInstance) || (killer instanceof L2PetInstance) || (killer instanceof L2SummonInstance))) error Redundant null check: The variable killer cannot be null at this location 1 Quick fix Available @ Add @SuppressWarnings("null") to 'doDie()' So I add the SuppressWarning to it but I don't know if it was the right way to fix it> EDIT 1:00 AM: Then I change it to this: if((killer instanceof L2PcInstance) || (killer instanceof L2PetInstance) || (killer instanceof L2SummonInstance)) Is that the right way to do it? EDIT 1:30 AM Run some tests with the summon pet and no errors. Also no errors with fortress unspawn of the guards. Thank you m8. You missed 2 imports on L2Npc.java: +import com.l2jserver.gameserver.model.actor.instance.L2PetInstance; +import com.l2jserver.gameserver.model.actor.instance.L2SummonInstance; and an import on MasterHandler.java +import handlers.voicedcommandhandlers.Captcha; And there is some extra imports on L2Npc.java, just to let you know.
  16. I tried to compile the Version 2 but I got an error on L2Npc.java on this part on 2 lines. !(killer instanceof L2GuardInstance) && !(killer instanceof L2SummonInstance)) Also I didn't like it too much the npc version of it, because I got too many custom farm areas and custom npcs but anyway still the same thing, I got the same errors as before when using a summon. The 3 tries didn't work and I got the antibot window after I killed every mob.
  17. thank you so much. It will be nice if you do the code to enable the antibot to the summons also. I will try the fix you post and will test it. Will let you know if it worked. Thanks again. EDIT: Didn't work still have the same problem.
  18. Yes it work on Freya
  19. Pipiou21 I have an error on gameserver pop up all the times and I think is being caused by the Antibot system. The error is on L2attackable.java and it is about summon, I guess when player use summon to kill mobs is causing some type of error. I have to wait to post the error in here becaujse I close the gameserver by mistake. Failed executing HitTask. java.lang.ClassCastException: com.l2jserver.gameserver.model.actor.instance.L2Su mmonInstance cannot be cast to com.l2jserver.gameserver.model.actor.instance.L2P cInstance at com.l2jserver.gameserver.model.actor.L2Attackable.doDie(L2Attackable. java:643) at com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance.doDie (L2MonsterInstance.java:146) at com.l2jserver.gameserver.model.actor.status.CharStatus.reduceHp(CharS tatus.java:185) at com.l2jserver.gameserver.model.actor.status.NpcStatus.reduceHp(NpcSta tus.java:51) at com.l2jserver.gameserver.model.actor.status.AttackableStatus.reduceHp (AttackableStatus.java:49) at com.l2jserver.gameserver.model.actor.L2Character.reduceCurrentHp(L2Ch aracter.java:6851) at com.l2jserver.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2A ttackable.java:519) at com.l2jserver.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2A ttackable.java:461) at com.l2jserver.gameserver.model.actor.L2Character.onHitTimer(L2Charact er.java:5175) at com.l2jserver.gameserver.model.actor.L2Character$HitTask.run(L2Charac ter.java:2604) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread PoolManager.java:86) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Here is the whole error. It happen when a class like Spectral Master or any other that uses a summon to kill mobs, If the summon kill the mob it will not get the captcha window and the error above will pop up on the gameserver window. This is the part of the code giving the error public boolean doDie(L2Character killer) { // Kill the L2NpcInstance (the corpse disappeared after 7 seconds) if (!super.doDie(killer)) return false; ((L2PcInstance) killer).setKills(((L2PcInstance) killer).getKills() + 1); if(((L2PcInstance) killer).getKills() == 50 || ((L2PcInstance) killer).getKills() == 0) { //ANTIBOT //Random image file name int imgId = IdFactory.getInstance().getNextId(); //Convertion from .png to .dds, and crest packed send try { File captcha = new File("data/captcha/captcha.png"); ImageIO.write(generateCaptcha(), "png", captcha); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(captcha).array()); //Convertion to DDS where is antybot killer.sendPacket(packet); } catch (Exception e) { _log.warning(e.getMessage()); } //Paralyze, abnormal effect, invul, html with captcha output and start of the 1 min counter killer.startAbnormalEffect(AbnormalEffect.REAL_TARGET); killer.setIsParalyzed(true); killer.setIsInvul(true); adminReply.setHtml("<html><title>Captcha Antibot System</title><body><center>Enter the 5-digits code below and click Confirm.<br1>You will be invulnerable until you enter<br1>the code so no one will kill you!<br><img src=\"Crest.crest_" + Config.SERVER_ID + "_" + imgId + "\" width=256 height=64><br><font color=\"888888\">(There are only english uppercase letters.)</font><br><edit var=\"antibot\" width=110><br><button value=\"Confirm\" action=\"bypass -h voice .antibot $antibot\" width=80 height=26 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_ct1.button_df\"><br>You have 60 seconds to answer or you<br1>will get jailed for 6 Hours.<br1>You will also get jailed for 6 Hours.<br1>if you type it wrong.</center></body></html>"); killer.sendPacket(adminReply); ((L2PcInstance) killer).setCode(finalString); ThreadPoolManager.getInstance().scheduleGeneral(new CaptchaTimer((L2PcInstance)killer), 60000);//60sec ((L2PcInstance) killer).setCodeRight(false); finalString.replace(0, 5, ""); //ANTIBOT } // Notify the Quest Engine of the L2Attackable death if necessary try { L2PcInstance player = killer.getActingPlayer(); if (player != null) { if (getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL) != null) for (Quest quest: getTemplate().getEventQuests(Quest.QuestEventType.ON_KILL)) ThreadPoolManager.getInstance().scheduleEffect(new OnKillNotifyTask(this, quest, player, killer instanceof L2Summon), _onKillDelay); } } catch (Exception e) { _log.log(Level.SEVERE, "", e); } return true; } and in my case line 643 is this one ((L2PcInstance) killer).setKills(((L2PcInstance) killer).getKills() + 1); Edited on 06/13/11 I also find another bug on fortress siege that I think is caused by the changes in L2Attackacle.java, here is the error: Error unspawning siege guards for fort Hive:com.l2jserver.gameserver.model.actor .instance.L2DefenderInstance cannot be cast to com.l2jserver.gameserver.model.ac tor.instance.L2PcInstance java.lang.ClassCastException: com.l2jserver.gameserver.model.actor.instance.L2De fenderInstance cannot be cast to com.l2jserver.gameserver.model.actor.instance.L 2PcInstance at com.l2jserver.gameserver.model.actor.L2Attackable.doDie(L2Attackable. java:643) at com.l2jserver.gameserver.instancemanager.FortSiegeGuardManager.unspaw nSiegeGuard(FortSiegeGuardManager.java:88) at com.l2jserver.gameserver.model.entity.FortSiege.endSiege(FortSiege.ja va:252) at com.l2jserver.gameserver.model.entity.Fort.setOwner(Fort.java:464) at com.l2jserver.gameserver.model.entity.Fort.engrave(Fort.java:316) at com.l2jserver.gameserver.model.entity.Fort$endFortressSiege.run(Fort. java:1099) at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(Thread PoolManager.java:86) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Siege of Hive fort finished. It is messing the unspawning of siege guards after the siege and they spawn new ones on top of the old ones.
  20. Deppend on what? And can you please tell us where exactly we have to add the script? Like after which lines and in witch java file. Thank you.
  21. still didn't answer my post about dreadnought. http://maxcheaters.com/forum/index.php?topic=207620.msg1779866#msg1779866 Dreadnought classes are complaining because the captcha pop up too much, I have it set to every 50 mobs.
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock