Jump to content

mfausb

Members
  • Posts

    332
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by mfausb

  1. I dont get it.. 1) Sometimes it works and sometimes not meaning sometimes the bot uses "/target" to target a mob of the mob list but sometimes just writes "7target" - and the game and the bot program are defineteley both in english language (I guess otherwise it wouldnt work at all and not random I guess). 2) Very annoying if the program keeps writing "7target" ingame (and no, playing with "enter chat" or anything else doesnt solve this "issue"). Otherwise well done and a good idea but atm useless imo... :/
  2. lol.. nice copied features from l2inception and even some descriptions are copied 1:1. :D
  3. nub. nub². great server, you wont find better balance on another server. :)
  4. All good ideas but a lot of other ideas were collected from different forums and we might go for a h5 highrate (500x) server for now. Btw the name of our project will be L2Sensity (http://www.l2sensity.com will be asap soon up to continue there). Thanks for participating. Still a lot to discuss. :)
  5. Ofc every opinion is welcome as this will be a server for players and not by a kiddo who just wants to make money. I would say no donations btw but lets see what others say!
  6. Hello everyone, a friend of mine is planning to build a complete brand new l2 server - as already mentioned in the topic subject - of YOUR dreams. That means exactly that we will collect ideas in different kind of forums and build first the name, buy then the appropriate domain and after that we will discuss everything ingame related stuff in the appropriate forum all together there then. And if we mean everything, we mean everything! Chronicle, rates, customs (but we are not really planning to add custom items).. everything. Everything will be decided by polls and opinions - to create the server of YOUR dreams. So lets get it started. :-)
  7. Or add some sorts of dmg lowers in formulas but I wouldnt forbid equipping some weaps for some classes also.
  8. http://l2inception.de
  9. Wohoo. :)
  10. +1 400 ppl on confirm this. :D
  11. Nice project im gonna test it as soon as you tell me how I can manage to connect an interlude gs to my freya ls. Any idea? Tried to modify the LoginServerThread of the il server already but without success somehow. :S
  12. I would even rather use isOutOfControl() to include confusion as well.
  13. Funky fix but why not HttpURLConnection instead of the URLConnection?
  14. If you change it to onlinePlayer.isOnline() it continues only if the value returned by the method is true (meaning if the player is online) - otherwise put !(onlinePlayer.isOnline()) and it continues only if the value returned by the method is false (if the player is offline) so there is no need for an additional boolean check. Just have a closer look at the appropriate method and you will understand what I mean.
  15. Well first I would suggest the following for the generation of the captcha: public static BufferedImage generateCaptcha() { final int width = 256; final int height = 64; final BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); final Graphics2D g2d = bufferedImage.createGraphics(); final Font textFont = new Font("verdana", Font.BOLD, 36); final Font textFontUpper = new Font("verdana", Font.BOLD | Font.ITALIC, 36); RenderingHints renderingHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); renderingHints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2d.setRenderingHints(renderingHints); Color textColor = new Color(98, 213, 43); Color circleColor = new Color(98, 213, 43); int charsToPrint = 5; int circlesToDraw = 8; float horizMargin = 20.0f; double rotationRange = 0.7; // this is radians 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 = "abcdefghjijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ123456789"; 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); if(Character.isDigit(chars[i]) || Character.isLowerCase(chars[i])) g2d.setFont(textFont); else g2d.setFont(textFontUpper); g.drawImage(charImage, (int) x, y, charDim, charDim, null, null); charGraphics.dispose(); } g.dispose(); return bufferedImage; } And next the following to load it: final int sId = Config.SERVER_ID; int imgId = IdFactory.getInstance().getNextId(); try { //File captcha = new File("data/captcha/captcha.png"); ByteArrayOutputStream bts = new ByteArrayOutputStream(); ImageIO.write(generateCaptcha(), "png", bts); //ImageIO.write(generateCaptcha(), "png", captcha); byte[] buffer = bts.toByteArray(); ByteArrayInputStream bis = new ByteArrayInputStream (buffer, 0, buffer.length); PledgeCrest packet = new PledgeCrest(imgId, DDSConverter.convertToDDS(bis).array()); playerInstance.sendPacket(packet); } catch (Exception e) { ...
  16. lol, just lol. I wonder how long this forum will exist with this kind of attitude. And especially for a simple copied fix I guess.
  17. Why not: Scanner scan = new Scanner(new InputStreamReader(new URL(_url).openStream())); ?
  18. A fixed number of killed mobs to trigger this can be abused, use random numbers instead.
  19. Why not use the new Scanner class?
  20. Stupid homehosted server. Lags like hell and not available at all.
  21. Fail server. :) Btw Nightbringer is the Admin of the server and will play as well, same goes to his friends who will be GMs. Dont even bother to join. And.... again an exile... So boring as hell. Good night. :)
  22. Your life must really suck. :)
  23. Try to fix it yourself? Its not that hard.
×
×
  • 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