Jump to content

Tryskell

Legendary Member
  • Posts

    5,367
  • Joined

  • Last visited

  • Days Won

    68
  • Feedback

    0%

Everything posted by Tryskell

  1. Well, dunno why people are so busy with ddos, because from the moment you include L2J securities (like IPv4 filter etc), you're secured of 80% of noobs. About real ddos, if someone want to fock your server (and the entire company which host your damn server), he will do for sure. But do you know why it will never happens ? Simply because it don't worth it. If you think your 80 players server will aggro russian mafia, you're paranoid type and I can nothing for you. About MxC "jokers" shutdowning servers, it have nothing to do with ddos. They just exploit errors than L2J correct one after one. Update your server with last security and you won't have any problem. And check the "exploit" section to find/test bugs aswell. The real fact, and it's sure you will have problems, it's IL securities itself, which are non-existant from a fresh L2J IL repo checkout. So you have to hardwork. Linux/windows have nothing to see about ddos. Go check google to understand what is a DDoS. This is connection flood. So basically, what is behind the router have totally non-incidence. Could be Mac, Iphone or microwave, same shit. The choice of Linux or windows is the eternal war between the light and the dark, each side is right so... Pro-linux say "linux", pro-windows say "windows"... As linux is surely free on your host, I suppose this will be the main argument.
  2. In IL, and from what I know, buffs and debuffs are the same thing. There are no differences between a buff and a debuff. So except taking IDs of skills one by one and putting in a big "if" statement, I don't see. About where to change that, and as all buff/debuffs are magic type, I think useMagic() method (L2PcInstance) would be fine. Do your check around this section (just after or before, don't matter, but do it here) // Check if the target is attackable if (!target.isAttackable() && (getAccessLevel() < Config.GM_PEACEATTACK)) { // If target is not attackable, send a Server->Client packet ActionFailed sendPacket(new ActionFailed()); return; } So basically your check : - is a return type (with a custom sendMessage if you want) ; - must have any ID skill you want to ; - must verify if the target is party/member. In the isAutoAttackable() method, you got the "party" part. The complete structure of code : if ((skill || skill || skill) && (differentOfParty || differentOfClan)) { // If target is not attackable, send a Server->Client packet ActionFailed sendPacket(new ActionFailed()); return; } As "target" isn't surely a L2PcInstance you have to do a check too to see if it's a L2PcInstance or not, else it could bug if you hit a different type (except if you already saw a monster with a clan).
  3. I don't think it will fix your problem anyway. And in a piece zone, you can't attack at all. Correct your engine or create a custom area which "freeze" pvp state. It's sad to say, but seriously, the first one is far easier & less stupid.
  4. rewardSkills() is your fix. Do a search with this method name on the newest L2J, you will find all occurences and can change accordingly.
  5. If my yellow sentence was in yellow, it was to avoid your answer. Guess what, I failed. Re-read my past post correctly. And this is "help" section, not "build my server" one. Believe me, you will be more thankful once you know how to do it than simply c/p a code. Perhaps not now, but in future.
  6. What's wrong with "modify the path where mySQL is" ? So according to you : you can only create a database named l2jdb, with admin root and no password too :P ? Come on, it's textpad file, use your brain. Right click, edit with textpad : set mysqlBinPath=%ProgramFiles%\MySQL\MySQL Server 5.0\bin set lsuser=root set lspass= set lsdb=l2jdb set lshost=localhost set gsuser=root set gspass= set gsdb=l2jdb set gshost=localhost And modify it according.
  7. add a zone them. Btw if your tvt engine make you flagged or pk, i suppose this is the engine itself which is the problem lol.
  8. Why do you need 5.0 ? L2J doesn't "need" a special version. Pickup the last one, and modify the path where mySQL is. My own mySQL server is under wamp, so it's C:\wamp\bin\mysql\mysql5.1.30\bin. As you can see it's totally different of your "program files" thing...
  9. Use eclipse search tool on the chronicle you saw those settings. In the Config.java, search for "MaxPcritRate", which will be in the same line than a variable (perhaps MAX_PCRIT_RATE, i don't know). After that scan the whole gameserver folder about the variable, you got your answer. To finish copy paste lines and adapt if needed. Around 6 lines fix.
  10. From the stickied topics in this section And secondly, i already answered in a post past about it, about solution and about how to resolve. If you're lazy, just forget to develop your own server. And if it wasn't you (which would be exceptional, as error is the same), go search the guy topic about mutlsell bug.
  11. Or "how to nerf the imagination of your players". I mean those are good players, except if you got a OL server I don't get the problem. The best idea is to remove mobs in your server if you fear it breaks pvp... And you can have more players like that. Or as others said you can begin to unbalance things, which fock classes, so you have to find another nerfs for others classes, blablabla.
  12. Some of the common errors (like this one, database connection, etc) should be pinned off. Have you already checked problems 4 years ago in this section (I did for fun, reading "Interlude new version" made me smile) ? This is all time the same problems. That will avoid problems AND those sort of guides.
  13. a void is a type of method. And it's the type of method used to call those sorts of "extras". Like (public/private) void, (public/private) boolean, etc etc.
  14. There's like 0 reason to make a config for mmocore. And L2JTeon is perhaps the last pack to copy things from. Basically you have to mod the mmocore itself (SelectorConfig), gameserver.java, config.java, and surely others things in mmocore. --- About the guy calling me stupid, I don't know what you get in I have no idea where the project can be found (didn't search) , perhaps the "didn't search" part.
  15. No worries. I explain why your code still bug, like that you can use it for nay of your future problem. As I said getRace() is a method stored in L2PcInstance, when attacker is a L2Character. if (attacker instanceof L2PcInstance) { if (((L2PcInstance)attacker).getRace() == Race.Dwarf) damage *= 2; } The first line is a null check, to avoid NPE. About ((L2PcInstance)attacker), it modify the type of attacker to a L2PcInstance. If your different actions on the player were a lot, you could rewrite it like that for easy read : if (attacker instanceof L2PcInstance) { //Change attacker from character to L2PcInstance, and store it on player variable L2PcInstance player = ((L2PcInstance)attacker); if (player.getRace() == Race.Dwarf) { damage *= 2; player.sendMessage("Dwarves pown"); player.doSomething() } } As you can see, it is far easier to read like that. Well don't implement it, because sendMessage will be send to each hit lol. ---- About if (attacker instanceof L2PcInstance && attacker.getRace() == Race.Dwarf) damage *= 2; attacker is still a character type so your problem isn't changed.
  16. This is the point of this topic, share ideas and let developers code if it's possible (and when it's good).
  17. I hope you joke, I have given solution higher. And no, what you have written isn't what I have written.
  18. attacker is a L2Character type, when getRace() method is applied to L2PcInstance (on IL, but I see you use higher chronicle as "Dwarf" should be written "dwarf", so it's only a supposition). Try that: if (attacker instanceof L2PcInstance) { if (((L2PcInstance)attacker).getRace() == Race.Dwarf) damage *= 2; } And post errors if there are.
  19. L2JDot isn't supported. Ask on their forum. On topic you got a NPE (NullPointerException >> google it), basically at line 489 of L2GameClient.java, in onForcedDisconnection method. The funny thing is error can be anywhere else, as there mustn't have NPE check. The fact the mmocore is under L2J name doesn't mean it's the last one, or if it has been unmodified by Dot team.
  20. I have to agree with Matim, you're the sort of ppl doing a pack only to edit credits and put 10 commits to modify your pack name instead of l2j import name, after that you lack of ideas and the project is given up. Don't worry there are at least 10 projects before you which did the same. On the topic, use the search function of Eclipse and replace all "l2jxxxx" by "l2jroxxor". And correct errors after that.
  21. NPE error, and L2JEqual isn't supported on MxC forum. On the topic, you should check the MultiSellChoose packet, there is surely a missing check if (something != null) I invite you to check current L2J packets to find a fix. And if you're too lazy to do it, ask on their forum.
  22. I don't think you get it, test your damn links, when you got the error on logs you got a location to search. This will cut research time by 10 or more. If that can help you, someone got exactly the same error, so I dunno if he used the same script or if it's Freya bug. Anyway you're alone to fix it now, I don't come back on this topic.
  23. Funny, JoeDaFlow got the exact same problem with a python NPC. What chronicle, which NPC are you using ? It's a custom NPC you surely added which bug. Joe is making a Freya server, so this bug can come from Freya update aswell if you're using Freya.
  24. Do a search, this problem is recurrent and solution have been already posted.
  25. I said to you higher to do some tests to define when errors come, I'm willing to help but I won't search your damn code for yourself. Your problem if you don't want help helpers.
×
×
  • 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