Jump to content

Kara

Banned
  • Posts

    2,100
  • Credits

  • Joined

  • Last visited

  • Days Won

    46
  • Feedback

    100%

Everything posted by Kara

  1. @Nightwolf Am i arrogant? I want your opinion.
  2. Meh. Xdem is busy to his pride server, Elfocrash would code it in Ruby and Kotlin cause he is a drama queen and then abandon it 2 hours later after making a promising topic, Tryskell would rename all classes and update the project once a year and would call the server a "monkey lab", the rest are good to update the project to java 17 once it is released in September. Oh i forgot, you can write my "alaksokolies" variables with boorinio but i doubt if it will go unseen by Tryskell. It will be renamed.
  3. Bitch please. I'm the Α and the Ω of the vital for this server. Who would bring down 50 lines of codes using Optional and Suppliers into 1 for no reason?
  4. First of all you have to dig the messages in console to understand which java file has the "problem". An example can be the following: Search for L2Buylist in your project and you locate what files are using this class. For example in RequestBuyItem.java you can find the following check: if (!player.isGM()) { if (!(target instanceof L2MerchantInstance) || !player.isInsideRadius(target, INTERACTION_DISTANCE, true, false) || player.getInstanceId() != target.getInstanceId()) { sendPacket(ActionFailed.STATIC_PACKET); return; } merchant = (L2Character) target; } This can stop your code since there is no merchant around you to buy item. It might have more checks (Consider these are from L2JServer, i don't bother work or check amateur trash packs such as Mythras, Scripts e.t.c.) PS. You can also join my discord's community. It's mostly for clients but i have also people from MAXC. Check in my topic you will find the invitation link
  5. You might no save it as encryption 111 as it requires in file editor?
  6. Tryskell is what we call experienced in theory, bad in practice. 70% of his commits are rename of class. The funny part when i enter a client's PC and i need to guess how player class is named. L2PcInstance? PcInstance? Player? PlayableInstance? This is what "developers" are doing nowadays. The most experienced team were L2J but now they suck. All serious member left and the leftover are amateur trash kids who leech my codes and add them in their project. 3 months now they add a over-complicated dynamic html scheme buffer and my discord bot.
  7. Mobius? You believe a guy who own 50 project at the same time and all get the same fix by L2J server when they release?
  8. Because all project owners are amateurs and they can only add shared code, rename classes and modify in a bad way a code to bypass a null exception instead of do a core fix (i don't blame them, it's not like they get money). If you see connections or buffer readers in try catch instead of inside the parenthesis of it for instance, run away. Closeable interface is made in Java 7 yet they still write code in a leakable way.
  9. Buylist require NPC which is defined inside the SQL along with the buylist id. Upon your click code check that there is no NPC hence the message you get. You need dig into the BuyListData and their code and make a new method which ignore the npcID check.
  10. You open a server and i'm not the developer of it? Unimaginable.
  11. Not working because the code he gave you is trash The guy's code first broadcast the packet and then change the flag. Check setPvPFlag and similar methods and check which method simple change the flag (asign the variable you want) without add object to the PvPTaskManager. You want avoid that cause flag will be removed afterwards. In addition those who try help by giving codes at least CODE IT PROPERLY. Do not share a random trash code please.
  12. Το γεγονος οτι δεν ξερεις να διαβαζεις τα private σου με ξεπερναει περισσοτερο απο οτι δεν ξερεις να ανοιξεις σερβερ
  13. You can add a check in L2TeleporterInstance.java when it read the Teleport information and check if the teleport's x, y, z are inside your zone to reject the teleport or you can specify a teleport ID and block it in case player is trying to teleport without a clan.
  14. [Offtopic] I'm sorry, i'm way too successful seller/developer in this forum to try even observe tiny people. [/Offtopic] PS. Someone tell that low GsL that this is EN section and greek is not allowed.
  15. Send me in discord for both [WTB] topic you opened.
  16. Open your eclipse, select your database, query, insert the following: DELETE FROM custom_spawnlist WHERE custom_spawnlist.npc_templateid = <ID_HERE>; and execute it.
  17. Send me your discord in PM even tho i'm full just to introduce you to my community
  18. It's your problem for trust compiled and ready to go source. If you're a serious person you wouldn't choose such source 2nd you would find and trust a developer to work with him using some type of monthly payment as i do with my clients. This ready-to-go projects and random developers every 2 day messing and adding random codes to a project is for 10 years old. Vilmins is known to be amateur boy who adding shared codes to his frozen project.
  19. You're just jealous that he is handsome project leader while you can't even code a proper System.out
  20. I wanted do that in my H5 project and i was like meh i'm lazy i'll do it tomorrow. And i see it now.
  21. You're rap*ng Java like 99% of the forum. You simply don't even read a single line from what i wrote in my last comment that intended for you. Experience and laziness are different things. If you don't care of improving your self, go ahead use that s*t code.
  22. Tryskell would just rename Premium to PremiumType and commit. Disclaimer: This was a joke, do not carpet bomb me.
  23. Let's start with basic Java things. Enum has build in ordinal that act as ID. So all this: public enum PremiumLevel { NONE(0), BRONZE(1), SILVER(2), GOLD(3); public static final PremiumLevel[] VALUES = values(); private final int _id; private PremiumLevel(int id) { _id = id; } public int getId() { return _id; } public boolean isGreater(PremiumLevel premiumLevel) { return getId() > premiumLevel.getId(); } public boolean isLesser(PremiumLevel premiumLevel) { return getId() < premiumLevel.getId(); } } is pointless since you can use the PremiumLevel.BRONZE.ordinal(); Also this is more useless than the getId() public static final PremiumLevel[] VALUES = values(); since enum is initialized once. So you can use Premium.values(); Also to the other guy who suggest class implementation. Not wrong but just to get values without any other option is needless. The whole code can be written using enum but in a proper way: /* * Copyright (C) 2004-2021 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.datatables; /** * @author Kara` */ public enum Premium { NONE { @Override public double getExperienceMultiplier() { return 1; } @Override public double getSkillPointMultiplier() { return 1; } }, BRONZE { @Override public double getExperienceMultiplier() { return 1.15; } @Override public double getSkillPointMultiplier() { return 1.15; } }; public abstract double getExperienceMultiplier(); public abstract double getSkillPointMultiplier(); } You can also use configs inside those and avoid static values. Nonetheless it's up to you to decide base on your need. If you're thinking of extending the code and add functionality, avoid enum and go with interface classes. If you're thinking of just using 3-4 multiplier then enum is good and easily stored. You can create a field in database "premium_level" and store the ordinal of enum. Once player login you can restore by using Premium.values()[rs.getInt("premium_level")]
  24. flip() method which is missing, is introduced in JDK-8. This mean your project is not using JDK-8 version. Remove completely any installed java you have on your machine and install JDK-8. Also make sure to edit all project properties to show JDK-8 including edit the build.xml and eclipse's settings.
×
×
  • 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