Jump to content

Dulens.

Banned
  • Posts

    3,353
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Dulens.

  1. Request delete this topic, because he added virus into files. http://maxcheaters.com/forum/index.php?topic=247154.0
  2. δώσε μου τον κώδικα και πες μου τι θέλει fix.
  3. καμία εικόνα?
  4. Yes, I'm learning. If you have any easy request I can do it, just pm me.
  5. Are you sure about this? I think, Scarra is. But for me OCELOTE <3
  6. He had rewarded for this guide in the past.
  7. Hello again, here is anti-heavy system. Previous shares had problems, errors and more things. Code : ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 45) +++ java/net/sf/l2j/Config.java (working copy) @@ -558,7 +558,26 @@ public static int HOPZONE_DUALBOXES_ALLOWED; public static boolean ALLOW_HOPZONE_GAME_SERVER_REPORT; + public static boolean ENABLE_ANTI_HEAVY; + //-------------------------------------------------- // Server //-------------------------------------------------- @@ -1462,6 +1481,38 @@ } HOPZONE_DUALBOXES_ALLOWED = Integer.parseInt(mods.getProperty("HopzoneDualboxesAllowed", "1")); ALLOW_HOPZONE_GAME_SERVER_REPORT = Boolean.parseBoolean(mods.getProperty("AllowHopzoneGameServerReport", "false")); + ENABLE_ANTI_HEAVY = Boolean.parseBoolean(mods.getProperty("EnableAntiHeavySystem", "True")); + } catch (Exception e) { ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: config/mods.properties =================================================================== --- config/mods.properties (revision 44) +++ config/mods.properties (working copy) @@ -5,7 +5,7 @@ + +# Enable or Disable anti-heavy system. +# Dagger, tyrant, and bow classes won't be able to equip heavy type armours. +EnableAntiHeavySystem = True \ No newline at end of file ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 44) +++ java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (working copy) @@ -31,6 +31,7 @@ import net.sf.l2j.gameserver.network.serverpackets.PetItemList; import net.sf.l2j.gameserver.network.serverpackets.ShowCalculator; import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; +import net.sf.l2j.gameserver.templates.item.L2ArmorType; import net.sf.l2j.gameserver.templates.item.L2Item; import net.sf.l2j.gameserver.templates.item.L2Weapon; import net.sf.l2j.gameserver.templates.item.L2WeaponType; @@ -116,6 +117,17 @@ return; } + if (Config.ENABLE_ANTI_HEAVY && item.getItemType() == L2ArmorType.HEAVY) { + if (activeChar.getClassId().getId() == 48 || activeChar.getClassId().getId() == 114 || activeChar.getClassId().getId() == 109 + || activeChar.getClassId().getId() == 37 || activeChar.getClassId().getId() == 108 || activeChar.getClassId().getId() == 36 + || activeChar.getClassId().getId() == 102 || activeChar.getClassId().getId() == 24 || activeChar.getClassId().getId() == 101 + || activeChar.getClassId().getId() == 23 || activeChar.getClassId().getId() == 93 || activeChar.getClassId().getId() == 8 + || activeChar.getClassId().getId() == 92 || activeChar.getClassId().getId() == 9) { + activeChar.sendMessage("Your class can't equip heavy type armors."); + return; + } + } + if (!Config.KARMA_PLAYER_CAN_TELEPORT && activeChar.getKarma() > 0) { switch (_itemId) I would be greatful, if someone give feedback. Coded on aCis, credits are DarthVader's and mine for the addaption - rework.
  8. σε αυτήν την γραμμή, player.broadcastPacket(new InventoryUpdate()); σου βγάζει κανένα error? αν όχι, βρες έναν κώδικα που έχει το ίδιο πράγμα να δεις πως δουλεύει.
  9. Most used projects, already have this config. But, I'm gonna add the option. Thanks.
  10. For 1 line, you believe this code is from another guy? Jez.. As I said, it's simple code. Please, cool.
  11. I don't know if already exist on l2jfrozen, it's for every project you want.
  12. Hello, here is a simple code. When the blessed scroll failed to enchant your item then goes to safe enchant. - L2jFrozen_GameServer / head-src / com / l2jfrozen / gameserver / network / clientpackets / RequestEnchantItem.java if(blessedScroll) { - item.setEnchantLevel(Config.BREAK_ENCHANT); + item.setEnchantLevel(Config.ENCHANT_SAFE_MAX); item.updateDatabase(); } else if(crystalScroll) { item.setEnchantLevel(Config.CRYSTAL_ENCHANT_MIN); Coded on l2jfrozen. Best Regards. PS; Sorry for this way of code, but I wasn't home to make it by eclipse.
  13. από πότε εσύ θεωρείσαι 'dev' ; PS; μπορείς να με κάνεις add στο skype για να συζητήσουμε τι χρειάζεσαι. (ianimelegend)
  14. Dulens.

    ;)

    ένα δάκρυ κυλάει από τον αριστερόν οφθαλμόν μου.
  15. έχασα επεισόδια, 7 μέρες inactive...
  16. well, not good way to code but it's ok. keep trying.
  17. υπάρχει οδηγός.
  18. ξέρω. απλά το έκανα πιο ρομαντικό.
  19. Dask, I think I should apologize.
  20. Preconfigured l2jfrozen pack by Smallz. Anyway, good luck with your server!
  21. Tillate is Zafira dude. Also, Zafira adds only hopzone's vote reward. Look at site..
×
×
  • 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