Jump to content

^Wyatt

Members
  • Posts

    1,418
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by ^Wyatt

  1. I guess it's not the full description of the client crash, post it full in order to receive help
  2. @borntobeahero Yes, it is. And also change the getset(id) and put the id of the chest of the set that u want to get the effects.
  3. @Tryskell I understand what u mean about balance prices but the main reason to be unbalanced (4 months maybe cheap) is that we want to make it cheap at the beginning to take some ppl with us, maybe we did the 1 month/price to high, dunno... will think about it. @Shilen I'm currently working on new events to put in the event engine, also a system to stop Event Scheduler every time that votereward is gonna give a reward, and start an in-game poll to know if players want an event and which event they prefer, and then event is gonna start, after that scheduler is gonna be activated again. And also I'm thinking more ideas to add, it's why I should need some help with "ideas" coz my main problem is to think one idea, not to code it x_x Also, today or tomorrow we'll open a test server, opened to all who want to see the pack, and to test the features.
  4. it's for freya, adapt it. Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java ================================================== ================= --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 4519) +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) -59,6 +64,7 @@ import com.l2jserver.gameserver.communitybbs.Manager.Regi onBBSManager; import com.l2jserver.gameserver.datatables.AccessLevels; import com.l2jserver.gameserver.datatables.AdminCommandAc cessRights; +import com.l2jserver.gameserver.datatables.ArmorSetsTable ; import com.l2jserver.gameserver.datatables.CharNameTable; import com.l2jserver.gameserver.datatables.CharTemplateTa ble; import com.l2jserver.gameserver.datatables.ClanTable; -379,6 +393,7 @@ } } + private int abnormal = AbnormalEffect.VITALITY.getMask(); private L2GameClient _client; private String _accountName; -7458,7 +7482,169 @@ checkPetInvItems(); } + + public void checkForVitalityEffect() + { + + boolean getVitalityEffect = false; + try + { + if ( + ArmorSetsTable.getInstance().getSet(9417).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9418).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9419).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9420).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9426).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9427).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(10126).isEncha nted(6, this) + || ArmorSetsTable.getInstance().getSet(10127).isEncha nted(6, this) + || ArmorSetsTable.getInstance().getSet(9433).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9434).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9435).isEnchan ted(6, this) + || ArmorSetsTable.getInstance().getSet(9436).isEnchan ted(6, this) + ) + { + getVitalityEffect = true; + } + } + catch (Exception e) + { + _log.log(Level.WARNING,"Armor exception message: " + e.getMessage(),e); + + } + + if (getVitalityEffect) + { + startAbnormalEffect(abnormal); + } + else + { + stopAbnormalEffect(abnormal); + } + } + + + + /** * Restore recipe book data for this L2PcInstance. */ private void restoreRecipeBook(boolean loadCommon) Index: java/com/l2jserver/gameserver/model/L2ArmorSet.java ================================================== ================= --- java/com/l2jserver/gameserver/model/L2ArmorSet.java (revision 4519) +++ java/com/l2jserver/gameserver/model/L2ArmorSet.java (working copy) -195,4 +195,35 @@ return true; } + + + public boolean isEnchanted(int enchantLevel, 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 == 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; + } } Index: java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java ================================================== ================= --- java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (revision 4519) +++ java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (working copy) -537,6 +538,7 @@ _log.warning("Inventory.ArmorSetListener: Incorrect skill: "+armorSet.getEnchant6skillId()+"."); } } + player.checkForVitalityEffect(); } } else if (armorSet.containShield(item.getItemId())) -615,6 +617,9 @@ if (remove) { + player.checkForVitalityEffect(); + //added if (skills != null) { for (String skillInfo : skills)
  5. You need to add the NPC's in the `npcaidata` table, since u're using last rev of l2jsrv h5.
  6. Let me quote for you, some lines from first post. Maybe it's not clear, but customers can ask for code implementation for free. And the price... I reaffirm on my answer, ppl sell stupid codes for high prices, ppl sell shared packs, ppl sell everything with illogical prices... I think the price of our pack is not high enough to make a problem of it, and if u don't believe it, I wish that the evolve of our pack will put it where it should be.
  7. Well, it's one of our main ideas. All good suggestions will be coded and applied. And will be fully configurable in .properties to enable/disable or change it. The price for 1/4 months doesn't mean that u will have the pack working only these months. You will have free updates, support, etc for the months that u have paid for. But the pack will run lifetime with your IP.
  8. Well, not all of the features are shared and the features that yes are shared are most of them fully recoded and also full configurable each one by the client. And about balance, we are currently working on it, so it wasn't ready to be posted. About security and stability I think it's done, but better wait for Mhoska repply. I don't know if the price is so big but... I've seen freaking codes shareds on forums sold for 10-20 euros, so... I think only the event engine should cost 20-30 eur, maybe not now, coz I just started coding it, but maybe in one/two weeks.
×
×
  • Create New...