Jump to content

Tessa

Members
  • Posts

    1,472
  • Credits

  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by Tessa

  1. What the hell is that pack with L2caharacter in it... :lol:
  2. Small hint, if you really want to use arrays: import java.util.Random; public class Test { private static final int[][][] FIRST_ROOM = { { {22485, 22486, 5699,1}, {22585, 22586, 5699,1}, {22685, 22686, 5699,1} }, { {22785, 22786, 5699,1}, {22885, 22886, 5699,1}, {22985, 22986, 5699,1} } }; public static void main(String[] args) { System.out.printf("element[%d] = %s%n", 0, FIRST_ROOM[0][randomTemplate(0, FIRST_ROOM[0].length - 1)][0]); } public static int randomTemplate(int min, int max) { Random rand = new Random(); int randomNum = rand.nextInt((max - min) + 1) + min; return randomNum; } }
  3. Any errors in the console?
  4. No, change it to return _item.isTradeable(); :lol:
  5. Check in L2ItemInstance for this line /** * Returns if item is tradeable. * @return boolean */ public boolean isTradeable() { return isAugmented() ? false : _item.isTradeable(); } Edit it and enjoy! :lol: EDIT: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2ItemInstance.java ^^
  6. Because it won't be a help but creating something from scratch.. if it was in the marketplace, why not ^_^
  7. Yes, there is a way.. you should check if the players are in party, then check for the item in their inventory and if everything is ok - take the item and teleport them.
  8. Probably, but if it's not, you can use their methods to rework it..
  9. Try something like this: Index: java/net/sf/l2j/gameserver/model/Inventory.java =================================================================== --- java/net/sf/l2j/gameserver/model/Inventory.java (revision 167) +++ java/net/sf/l2j/gameserver/model/Inventory.java (working copy) @@ -364,6 +364,10 @@ _log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getEnchant6skillId()+"."); } } + if (armorSet.isEnchanted16(player)) + { + player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_STEALTH); + } } } else if (armorSet.containShield(item.getItemId())) @@ -430,6 +434,8 @@ if(remove) { + player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_STEALTH); + if(removeSkillId1 != 0) { L2Skill skill = SkillTable.getInstance().getInfo(removeSkillId1,1); Index: java/net/sf/l2j/gameserver/model/L2ArmorSet.java =================================================================== --- java/net/sf/l2j/gameserver/model/L2ArmorSet.java (revision 167) +++ java/net/sf/l2j/gameserver/model/L2ArmorSet.java (working copy) @@ -175,4 +175,32 @@ return true; } + + public boolean isEnchanted16(L2PcInstance player) + { + // Player don't have full set + if(!containAll(player)) + return false; + + Inventory inv = player.getInventory(); + + L2ItemInstance chestItem = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST); + L2ItemInstance legsItem = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS); + L2ItemInstance headItem = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD); + L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES); + L2ItemInstance feetItem = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET); + + if(chestItem.getEnchantLevel() < 16) + return false; + if(_legs != 0 && legsItem.getEnchantLevel() < 16) + return false; + if(_gloves != 0 && glovesItem.getEnchantLevel() < 16) + return false; + if(_head != 0 && headItem.getEnchantLevel() < 16) + return false; + if(_feet != 0 && feetItem.getEnchantLevel() < 16) + return false; + + return true; + } } It will give you stealth effect (you can set different) if all parts are enchanted to +16 or above and all parts are equipped!
  10. Just check the enchant level and add an abnormal effect..
  11. And you think it works? Lameguard is just a scam and nothing else.. :P
  12. I'm not sure, because I've never seen this pack but probably the droplist comes along with the npcs that you can find in /data/stats/npcs/... look for <droplist> tags in the files.
  13. Which pack and version?
  14. Can't understand very clearly that "random spawns"..
  15. There are many missing things, but the files are functional..
  16. If you use IPB's ORM, you have nothing to worry about. ^_^
  17. True hero!
  18. If you mean the last screenshot, that is Gludio under construction.. :lol:
  19. It's a PoV of people that prefers events, siegeable clan halls etc, instead of well organised and clean code that they can use as a framework for their projects. ^_^
  20. I'm not surprised... ;)
  21. Use Eclipse to download the svn https://xp-dev.com/svn/aCis_community/
  22. Build it on your own... if you can't, use aCis, at least 10x better than l2jfrozen!
  23. OVH is too expensive, I suppose :lol:
  24. They are two different npcs 32027 and 35062
×
×
  • Create New...