Jump to content

Tryskell

Legendary Member
  • Posts

    5,343
  • Credits

  • Joined

  • Last visited

  • Days Won

    52
  • Feedback

    0%

Everything posted by Tryskell

  1. English perhaps after russian and greek ? What's the price of such host ? There's too much features lol, as a bad IL greek x5000 server.
  2. You can create a code inspired from flood protectors, but don't use them for this sort of purpose. Flood protectors are general, means even if he got a useItem flood protectors, it will be use for ANY use of item (soe, potion, etc). And if he put kick, all his players will be kicked one day or another lol :). So better inspire from floodprotectors than use to delay action.
  3. You have to create an empty database named "l2jdb" before installing tables. The script install tables, but database must be created before.
  4. And if you have problems I can help, but don't wait for a code-to-patch solution, because this isn't the goal of this section.
  5. Define it, your code is long and boring to read.
  6. What is supposed to be the error ? Any translator plox...
  7. Lol ? Have you read the totality of my message ? A boolean will have to return true/false, and why create a method about it ? Just add custom code in an existing zone, or create your own custom zone from a clean template. BTW if you want to add it on an exisiting event, give more infos, because adding it to an existing zone wouldn't be the best solution. Solutions are multiple, and the best one depends of what you need. So explain your case in totality.
  8. SQL part : http://www.maxcheaters.com/forum/index.php?topic=98212.0 More accurate about monster part (avoid to read the first topic) : http://www.maxcheaters.com/forum/index.php?topic=187184.0 ---- Custom mob instances part (perhaps you just want to change drops but else it's fine for any adanced idea you could have) : http://www.maxcheaters.com/forum/index.php?topic=186576.0
  9. From the moment you got BUILD SUCCESSFUL There are no real error, just warnings. BTW to fail a DP compilation you have to be pro, because there is nothing to compile, it's more a organization than a compilation. Yes about Pentium II, it was a joke :). 55 secs is more normal than 5min ^^. About svnversion, see my first post, search on google :P. But you haven't to busy as it doesn't influence the build.
  10. If it's an item which supposed to give a boost in xp rate, I guess you have to create an itemhandler with an onEquip method and using itemIDs and ItemType you need. Analyze others itemhandlers from datapack (after IL) or in core (before IL).
  11. Reading stickied topics on this board : http://www.maxcheaters.com/forum/index.php?board=37.0 If you're lazy just forget develop a server.
  12. You include a onEnter / onExit code in a given zone, or create a custom area. Basically it could be : protected void onEnter(L2Character character) { if (character instanceof L2PcInstance) { //register yourself in a town zone character.setInsideZone(L2Character.ZONE_TOWN, true); // if event up, make the sky red for all people in this area if eventIsInProgress put redsky } } protected void onExit(L2Character character) { if (character instanceof L2PcInstance) { //register yourself in a town zone character.setInsideZone(L2Character.ZONE_TOWN, false); // if event up, make the sky red for all people in this area if eventIsInProgress remove redsky } } Of course you have to code, as I take only exemple : // if event up, make the sky red for all people in this area if eventIsInProgress remove redsky
  13. Means what it means, build is successful. If you're really bothered with your error, type "svnversion" in google or edit your build.xml. I would be more bored about compiling time (5min to "compile" DP, you do it on Pentium II or what ?).
  14. It's between 4 and 6 lines fix. With configs, 10. PS : Dunno your chronicle, but I hope I will never find a server like your lol. Like if tanks were imba in pvp servers...
  15. Haha, funny : http://forum.ragezone.com/f325/damage-gets-drops-635769/ I didn't analyze this one, but if this is the same thing, you have to study the way of shared XP (when you kill a mob). The mob give xxxxx XP amount, but XP is shared equally to damage inflicted. Must be something similar, except instead cutting total damages in little portions, you have to pick up the biggest little portion and put the drop true for him. Dunno if it's really clear, but anyway House code was experience, and it still isn't implemented on regular L2J (anyway, it isn't on DropProtection.java). Search on L2J forum, because if you think House posts here, you're wrong :P.
  16. Try to find if there isn't another fresh update, this one is around 6 months ago. BTW, code is from Dr House, the guy just reshared it.
  17. Link 1 download an "archive.exe", which isn't the expected file (surely a virus). Link 2 is broken link. Enjoy.
  18. AutoAccount off ? You try to login, but have you first created your account ? Verify if your account is created first (accounts table), else you have perhaps entered a wrong password in creation and thought you entered another. I suggest you to delete your account and recreate another. If it was a bad chronicle client, it would says than the revision protocol is wrong.
  19. When come this error ? At GS load, or when you try to use this NPC ? Basically it's a connection you forget to close. The bad thing is you have no help about failing line. I would search around here, where all connections are supposed to be closed : try: pvps.close() pks.close() pvprs.close() pkrs.close() con.close() except : pass I have no clue how works Python, well try to check how works others scripts which use SQL stuff.
  20. MMOCore is apart of L2J project : I have no idea where the project can be found (didn't search), but you have to compile it anew and change the jar file stored in lib folder of your L2J project. By default when you svn a L2J project, the mmocore is already compiled and you nearly don't need to modify it, so MMO project isn't svned. I hope it was the question o_o ?
  21. Well, this is work for sure :D. First you should make a diff patch right now before doing all those things. You will have a secured copy of your work, if you fail in the future (like, a BIG fail) you would be happy to find a fresh clean custom code to apply it easily on a fresh L2J copy. You would be happy to know than my first project have failed because I hadn't any copy (around 1 month of work). About NPC exchanger, I made one for my personal project, and which trade custom karma value for AA. So it's doable and I could help you when you have code. Ofc it's a new instance, you can name it L2PvPExchanger. About party support, you will have to rewrite both your L2PcInstance and L2PvpMobInstance custom codes. The goal is to first pick up the L2PcInstance, second is to pick the party of this L2PcInstance (or the party of the summoner's owner), and third to share experience / pvp points between them. About sharing pvp points, you have to use for. I'm too interested by this point, because I got others things to think about my project actually and I never checked it in depth. Teleporter is the easiest thing. Instead of adena check, you put a getPvpKills check. Still, you have to create a new instance as L2PvpMob one. Would be L2PvPTeleporter, based on a clean copy of L2Teleporter.
  22. Check Paagrio's Fist, it's suppose to heal CP and put a buff on you too.
  23. Well done :) You saw, it was easy. Remove both { }, it's used only if there was an if before. You should declare numberToAdd in the top of the file too, but there is no real problem. It's just a convention. int numberToAdd = 0; Complete code : package com.l2jserver.gameserver.model.actor.instance; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Summon; import com.l2jserver.gameserver.templates.chars.L2NpcTemplate; /** * This class manages special pvpkill rewards mobs. */ public class L2PvpMobInstance extends L2MonsterInstance { public L2PvpMobInstance(int objectId, L2NpcTemplate template) { super(objectId, template); setInstanceType(InstanceType.L2PvpMobInstance); } /** * Manages the doDie event<BR><BR> * * @param killer The L2Character that killed this instance.<BR><BR> */ @Override public boolean doDie(L2Character killer) { if (!super.doDie(killer)) return false; L2PcInstance player = null; int numberToAdd = 0; // check if the killer is different of null (to avoid NPE error) if (killer != null) { // check if the killer was a player or a summon, because L2Character can be many things. if (killer instanceof L2PcInstance || killer instanceof L2SummonInstance) { if (killer instanceof L2PcInstance) player = (L2PcInstance) killer; // if killer is a summon, redirect to his owner else if (killer instanceof L2Summon) player = ((L2Summon) killer).getOwner(); // do a custom calcul using mob level numberToAdd = (getLevel()-79)*2; // add the custom calcul result to the player total pvp points and send a message player.setPvpPoints(player.getPvpPoints() + numberToAdd); player.sendMessage("You have earned " + numberToAdd + " PvP Points"); } } return true; } } -------- About if, while, for, etc : When you have only one thing, you can forget using {} : if (killer instanceof L2PcInstance) player = (L2PcInstance) killer; else if (killer instanceof L2Summon) player = ((L2Summon) killer).getOwner(); The next code is the same, but for me it's harder to read and very long : if (killer instanceof L2PcInstance) { player = (L2PcInstance) killer; } else if (killer instanceof L2Summon) { player = ((L2Summon) killer).getOwner(); } The use of {} is needed when your if got many results. You can't remove them else it will bug. ---- After all that, you can propose to make a diff patch about your work, in the developement section. Use [sHARE] as tag :).
  24. No infos about (chronicle / pack), no explained problem, post title too much generic. Explain that or just code it yourself. Boring to repeat each time the same things. Topics like that should be deleted without warning. I invite you to read section rules http://www.maxcheaters.com/forum/index.php?topic=76581.0
  25. It can come too from L2JBrasil. Many IL packs got more bugs than corrected ones you know. Packs add bugs when it should be only fixes. Anyway. I could say to upload your SiegeManager and Siege files, but better ask directly to them. I have no idea if it's only sieges related or if the bug happens during sieges stuff BECAUSE OF something bigger. If you put fresh configs files, it shouldn't be configs then... Try with a full fresh L2JBrasil pack, if you got exactly the same problem, consider change of pack. I lack of ideas, sorry.
×
×
  • Create New...