Jump to content

forsas

Members
  • Posts

    169
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by forsas

  1. I cannot check because i cannot compile l2jfree i don't know how. I find in this forum how compile with maven but doesn't work.
  2. In l2jfree interlude pack working tvt anyone know?
  3. Maybe you speak about this http://www.maxcheaters.com/forum/index.php?topic=152245.0
  4. Where code? :D
  5. Locked...
  6. This code from gracia i need interlude on interlude this doesn't work.
  7. How fix if player karma and he use silent move guard see him and kill? :o
  8. Oh ty man :o
  9. Ohhhh but in you pasted shares no code in class master. I think this usefull.
  10. :o in many others forums? all shares is in many others forums so?
  11. This is for daggers and archers with this they cannot use heavy items :) option.settings +#============================================================= +# Anti heavy system = +#============================================================= +# Heavy Equipment Restriction +# IF False , Dagger Classes Won't Be Able To Use Heavy Armors +AllowDaggersUseHeavy = False +# IF False , Archer Classes Won't Be Able To Use Heavy Armors +AllowArchersUseHeavy = False +# If set this False +# normal players can't heal RaidBosses +# Default : True +PlayersCanHealRb = True config.java +public static boolean ALLOW_DAGGERS_WEAR_HEAVY; +public static boolean ALLOW_ARCHERS_WEAR_HEAVY; +ALLOW_DAGGERS_WEAR_HEAVY = Boolean.parseBoolean(optionSettings.getProperty("AllowDaggersUseHeavy", "True")); +ALLOW_ARCHERS_WEAR_HEAVY = Boolean.parseBoolean(optionSettings.getProperty("AllowArchersUseHeavy", "True")); L2ClassMasterInstance.java +import net.sf.l2j.gameserver.model.Inventory; +import net.sf.l2j.gameserver.model.actor.instance.L2ItemInstance; +import net.sf.l2j.gameserver.serverpackets.InventoryUpdate; html.setHtml(sb.toString()); player.sendPacket(html); +if (!Config.ALLOW_ARCHERS_WEAR_HEAVY) +{ +if (player.getClassId().getId() == 9 || player.getClassId().getId() == 92 || player.getClassId().getId() == 24 || player.getClassId().getId() == 102 +|| player.getClassId().getId() == 37 || player.getClassId().getId() == 109) +{ +L2ItemInstance armor = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST); +if (armor != null) +{ +L2ItemInstance[] unequipped = player.getInventory().unEquipItemInBodySlotAndRecord(armor.getItem().getBodyPart()); +InventoryUpdate iu = new InventoryUpdate(); +for (L2ItemInstance element : unequipped) +iu.addModifiedItem(element); +sendPacket(iu); +} +L2ItemInstance legs = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS); +if (legs != null) +{ +L2ItemInstance[] unequipped = player.getInventory().unEquipItemInBodySlotAndRecord(legs.getItem().getBodyPart()); +InventoryUpdate iu = new InventoryUpdate(); +for (L2ItemInstance element : unequipped) +iu.addModifiedItem(element); +sendPacket(iu); +} +} +if (!Config.ALLOW_DAGGERS_WEAR_HEAVY) +{ +if (player.getClassId().getId() == 93 || player.getClassId().getId() == 108 || player.getClassId().getId() == 101 || player.getClassId().getId() == 8 +|| player.getClassId().getId() == 23 || player.getClassId().getId() == 36) +{ +L2ItemInstance chest = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST); +if (chest != null) +{ +L2ItemInstance[] unequipped = player.getInventory().unEquipItemInBodySlotAndRecord(chest.getItem().getBodyPart()); +InventoryUpdate iu = new InventoryUpdate(); +for (L2ItemInstance element : unequipped) +iu.addModifiedItem(element); +sendPacket(iu); +} +L2ItemInstance legs = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LEGS); +if (legs != null) +{ +L2ItemInstance[] unequipped = player.getInventory().unEquipItemInBodySlotAndRecord(legs.getItem().getBodyPart()); +InventoryUpdate iu = new InventoryUpdate(); +for (L2ItemInstance element : unequipped) +iu.addModifiedItem(element); +sendPacket(iu); +} +} +} +else +{ + super.onBypassFeedback(player, command); +} +} sb = null; UseItem.java +import net.sf.l2j.gameserver.templates.L2ArmorType; if(activeChar.isCursedWeaponEquiped() && (bodyPart == L2Item.SLOT_LR_HAND || bodyPart == L2Item.SLOT_L_HAND || bodyPart == L2Item.SLOT_R_HAND)) return; +if (!Config.ALLOW_DAGGERS_WEAR_HEAVY) +{ +if (activeChar.getClassId().getId() == 93 || activeChar.getClassId().getId() == 108 || activeChar.getClassId().getId() == 101 || +activeChar.getClassId().getId() == 8 || activeChar.getClassId().getId() == 23 || activeChar.getClassId().getId() == 36) +{ + if (item.getItemType() == L2ArmorType.HEAVY) +{ +activeChar.sendMessage("You cannot use this item when you class dagger."); +return; +} +} +} +if (!Config.ALLOW_ARCHERS_WEAR_HEAVY) +{ +if (activeChar.getClassId().getId() == 9 || activeChar.getClassId().getId() == 92 || activeChar.getClassId().getId() == 24 || +activeChar.getClassId().getId() == 102 || activeChar.getClassId().getId() == 37 || activeChar.getClassId().getId() == 109) +{ +if (item.getItemType() == L2ArmorType.HEAVY) +{ +activeChar.sendMessage("You cannot use this item when you class archer."); +return; +} +} +} // Don't allow weapon/shield hero equipment during Olimpia This my first share sorry for mistakes :o
  12. Ohhh ok i need only source but i have it work now mob hit with soushot :) locked.
  13. ss bss this soulshot in npc.sql on gracia final work this anyone try using this?
  14. l2j server gracia final last revision work mob ss or bss option?
  15. Thx fix locked :o :)
  16. i have error at player
  17. Search this text in EnterWorld.java
  18. I want create like this code if player is in olympiad mode he can only use this skill other places he cannot use this skill. i create like this in l2pcinstance.java useMagic method if (skill.getId() == 1345) { sendMessage("You can use this skill only in olympiad mode."); sendPacket(ActionFailed.STATIC_PACKET); return; } else { isInOlympiadMode(); sendPacket(ActionFailed.STATIC_PACKET); } but this doesn't work what wrong?
  19. locked :)
  20. I search in l2pcinstance, l2weapontype, l2weapon, all skills java and i cannot find...
  21. Where is val id about weapon allowed type in java?
  22. Nobody has this code.
  23. I think this no hard. L2Java.com have it.
×
×
  • 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