Jump to content

AbsolutePower

Legendary Member
  • Posts

    748
  • Credits

  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by AbsolutePower

  1. you believe that?? axaxxaxa i don't wanna share my good codes i am sharing for fun omg. come on don't be ridiculous.
  2. anyone got l2jbrasil source (latest rev), exei kaneis l2jbrasil source (latest rev) if yes send me a link with the source thx. :P
  3. you will be able to use this effect when your set is +4...(you will get Hero Aura) (you can change it --> || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) where armorid you can put your set...) where isEnchanted(4, this) <- you can change the enchant rate.
  4. java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java +import com.l2jserver.gameserver.datatables.ArmorSetsTable; import com.l2jserver.gameserver.datatables.ClanTable; @@ -7458,7 +7482,169 @@ /** Special hero aura values */ + private boolean isHero = false; + public void setHeroAura (boolean heroAura) + { + isHero = heroAura; + } @@ -7458,7 +7482,169 @@ checkPetInvItems(); } + + public void checkForHeroAura() + { + + boolean getHeroAura = false; + try + { + if ( + ArmorSetsTable.getInstance().getSet(Armor id).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) + ) + { + getHeroAura = true; + } + } + catch (Exception e) + { + _log.log(Level.WARNING,"Armor exception message: " + e.getMessage(),e); + + } + + if (getHeroAura) + { + setHeroAura(true); + } + else + { + setHeroAura(false); + } + } + + + + /** * Restore recipe book data for this L2PcInstance. */ private void restoreRecipeBook(boolean loadCommon) java/com/l2jserver/gameserver/model/L2ArmorSet.java return true; } + + + public boolean isEnchanted(int enchantLevel, L2PcInstance player) + { + 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 == null || chestItem.getEnchantLevel() < enchantLevel) + return false; + if (_legs != 0 && (legsItem == null || legsItem.getEnchantLevel() < enchantLevel)) + return false; + if (_gloves != 0 && (glovesItem == null || glovesItem.getEnchantLevel() < enchantLevel)) + return false; + if (_head != 0 && (headItem == null || headItem.getEnchantLevel() < enchantLevel)) + return false; + if (_feet != 0 && (feetItem == null || feetItem.getEnchantLevel() < enchantLevel)) + return false; + + return true; + } } java/com/l2jserver/gameserver/model/itemcontainer/Inventory.jav _log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getEnchant6skillId()+"."); } } + player.checkForHeroAura(); } } else if (armorSet.containShield(item.getItemId())) if (remove) { + player.checkForHeroAura(); if (skills != null) { for (String skillInfo : skills) hello pedes. ekane ena code pou otan pas olo to set +4 8a exeis hero aura. mporeite na diale3ete se pia armor 8a ginete auta... px an exete balei mia custom armor mporeite na parete to id tis kai na balete na ginete se auth... pws??? || ArmorSetsTable.getInstance().getSet(Armorid).isEnchanted(4, this) opou armorid-> bazete to id tis armor... kai opou -> isenchanted(4 bazete sta posa 8elete na dinei heroaura. prepei na exete ola ta set +x. credits To Me AbSoLuTePoWeR.
  5. pes m to msn s na sto kanw file.... kai na sto pw etsi dn mporw na sto e3hghsw
  6. /* Vip System */ public static boolean ALLOW_VIP_NCOLOR; public static int VIP_NCOLOR; public static boolean ALLOW_VIP_TCOLOR; public static int VIP_TCOLOR; public static boolean ALLOW_VIP_XPSP; public static int VIP_XP; public static int VIP_SP; ALLOW_VIP_NCOLOR = Boolean.parseBoolean(Extensions.getProperty("AllowVipNameColor", "True")); VIP_NCOLOR = Integer.decode("0x" + Extensions.getProperty("VipNameColor", "0088FF")); ALLOW_VIP_TCOLOR = Boolean.parseBoolean(Extensions.getProperty("AllowVipTitleColor", "True")); VIP_TCOLOR = Integer.decode("0x" + Extensions.getProperty("VipTitleColor", "0088FF")); ALLOW_VIP_XPSP = Boolean.parseBoolean(Extensions.getProperty("AllowVipMulXpSp", "True")); VIP_XP = Integer.parseInt(Extensions.getProperty("VipMulXp", "2")); VIP_SP = Integer.parseInt(Extensions.getProperty("VipMulSp", "2")); config # Enable / Disable Name Color AllowVipNameColor = True VipNameColor = 0088FF # Enable / Disable Title Color AllowVipTitleColor = True VipTitleColor = 0088FF # if True Player Vip gain Xp*VipMulXp and Sp*VipMulSp # Note only works if player not in party AllowVipMulXpSp = True VipMulXp = 2 VipMulSp = 2
  7. uparxoun file an psa3eis edw. kai episeis ta exw dei se polla pack. einai wraio na mporeis na gineis vip exontas kapio item-items pou mporeis na to baleis os donate item-farm ktlp. thx :P
  8. il alla mporeis na to baleis opou 8es me liges metatropes. edit: nah dn to egrapsa egw to "sto counter strike" o bro m sorry rofl... :P to esbhsa.
  9. http://maxcheaters.com/forum/index.php?topic=156075.0
  10. work fine. you must be with your sub. the second fixed... just send the bugs in the forum not here :S
  11. l2jfree back again re pedes gamhse :)
  12. are you sure? :S because i have Check it.... :S i have forum... i just waiting the logo. :P
×
×
  • Create New...