Jump to content

adenaman

Members
  • Posts

    369
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by adenaman

  1. Gj from programer point of view but why change java to c#? i dont think you will find any big performance advantage (correct me if im wrong), also c# is not rly good working on linux. I find it a lot of work for not that big result diference Since you are reworking the l2 files why not use some other languages (c / c++ / ...) ?
  2. L2j dont have any problem with their forks. But i think you would not enjoy that some1 buy "your" pack and resell it after for 1/2 price Noone want or care about his additions, acis pack is the main target. You can get some buggy mods or events everywhere but, where you gonna find working retail features?
  3. that should throw IndexOutOfArrayExcetion that can be catch in any method of the stack and ignored (that is kinda useles) try to check your code and try to use logs to find where is the problem
  4. port already in use? try to change port
  5. Do you have free / max ram? if yes try to play with these values: -Xms1024m -Xmx2048m
  6. well just tell me what difference does it have from olys? btw you have a funny face
  7. i found the same idea somewhere else, oh yes l2's olympiad system
  8. btw matim, the x8 issue is because you are using AndEngine GLES2, that needs android 2.2+ and (some) x8 ar 2.1 by default, if i have time, i will download your game and try it on my x8 4.0 Btw, nice game
  9. the console error is the important one, try to show use the whole error message
  10. what msg do you get on the gameserver / loginserver console?
  11. whats the real error? you are disconnected because of that error, but we need to know it, if you want us to try to help you @Tryskell, 30° 15° here :)
  12. then i will answer: SEARCH IN GOOGLE srsly, why would anyone spend his time searching things for you? BTW, nice caps lock
  13. Im kinda lost here, what you want is that if some1 start to spam at any chat, forbid him to talk for x time? and you want to change that time? then your problem is in if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_HEROVOICE)) thats what determinate if he can or cant talk and inside it (in the implementation) there must be or some kind of Map that save who and when said anything, or (most probably) a Runneable.
  14. somewhere there should be created new runneable seek for ThreadPoolManager.getInstance().scheduleGeneral(new Something () , delay);
  15. ask google about mysql, jdk, eclipse, subversion, navicat, ...
  16. - OnEnter() -> unequip the items - in the method to equip an item check if its in your zone and make a return there find some mods of olympiad restriction items and it must be nearly the same
  17. about flag update you can try to log getPvpFlagLasts() and pvpStatus
  18. when you say pvp mod you mean pvp stance or some pvp event? anyway this is the important code section of l2PcInstance: public void onKillUpdatePvPKarma(L2Character target) { if (target == null) return; if (!(target instanceof L2Playable)) return; L2PcInstance targetPlayer = target.getActingPlayer(); if (targetPlayer == null) return; // Target player is null if (targetPlayer == this) return; // Target player is self if (isCursedWeaponEquipped()) { CursedWeaponsManager.getInstance().increaseKills(_cursedWeaponEquippedId); // Custom message for time left // CursedWeapon cw = CursedWeaponsManager.getInstance().getCursedWeapon(_cursedWeaponEquipedId); // SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.THERE_IS_S1_HOUR_AND_S2_MINUTE_LEFT_OF_THE_FIXED_USAGE_TIME); // int timeLeftInHours = (int)(((cw.getTimeLeft()/60000)/60)); // msg.addItemName(_cursedWeaponEquipedId); // msg.addNumber(timeLeftInHours); // sendPacket(msg); return; } // If in duel and you kill (only can kill l2summon), do nothing if (isInDuel() && targetPlayer.isInDuel()) return; // If in Arena, do nothing if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP)) return; // Check if it's pvp if ( ( checkIfPvP(target) && // Can pvp and targetPlayer.getPvpFlag() != 0 // Target player has pvp flag set ) || // or ( isInsideZone(ZONE_PVP) && // Player is inside pvp zone and targetPlayer.isInsideZone(ZONE_PVP) // Target player is inside pvp zone ) ) increasePvpKills(target); else // Target player doesn't have pvp flag set { // check about wars if (targetPlayer.getClan() != null && getClan() != null && getClan().isAtWarWith(targetPlayer.getClanId()) && targetPlayer.getClan().isAtWarWith(getClanId()) && targetPlayer.getPledgeType() != L2Clan.SUBUNIT_ACADEMY && getPledgeType() != L2Clan.SUBUNIT_ACADEMY) { // 'Both way war' -> 'PvP Kill' increasePvpKills(target); return; } // 'No war' or 'One way war' -> 'Normal PK' if (targetPlayer.getKarma() > 0) // Target player has karma { if (Config.KARMA_AWARD_PK_KILL) increasePvpKills(target); } else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma { increasePkKillsAndKarma(target); //Unequip adventurer items checkItemRestriction(); } } if your problem is with pvp flag, then check that your code is same than this (or maybe is some pvp flag update problem) else if its the event, just add some check like duel's one else i didnt get the question :s
  19. in pk method of l2pcinstance check if they are in event and just return, that should fix it
  20. since it need mana and materials, wouldnt be beter use the craft-sell structure?
  21. they are nearly the same, ubuntu (long time ago) was common user oriented, but nowdays they are the same
  22. debian has JVM, so yes it will
  23. datapack /game/data/scripts/instances/SeedOfDestruction/Stage1.java: ... private static final int MIN_PLAYERS = 36; private static final int MAX_PLAYERS = 45; and protected void setInstanceTimeRestrictions(SOD1World world)
  24. you set the colors, but you will not see them if you dont send some update packet to the client, that why the client still see the old colors, usualy its: sendPacket(new ShortBuffStatusUpdate(0, 0, 0)); type for example but that function looks like it does send the packet inside it, check it, and if its ot doing it, the find what packet you need to send and send it
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..