Jump to content

BloodRav3N

Members
  • Posts

    476
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About BloodRav3N

Profile Information

  • Current Mood
    Happy
  • Gender
    Male
  • Country
    Greece

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BloodRav3N's Achievements

Newbie

Newbie (1/16)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Lineage II Elon FRIST Season starts on: 30 MARCH 2018 at 18:00 GMT +2 Website: http://l2elon.net/ Server Platform: L2J - Java Interlude Classic PVP Server Timezone: Time (GMT +2) » Experience: x500 » Skill Points: x500 » Adena: x500 » Party Exp: 2x » Party Sp: 2x » Drop Items: 10x » Safe Enchant: +4 » Max Enchant: +16 » Normal Scrolls: 70% » Blessed Scrolls: 80% (Max +14) » Crystal Scrolls: 40% (Max +16) » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00]. Grand Bosses » Valakas : 48 Hours » Antharas : 48 Hours » Baium : 40 Hours » Zaken : 24 Hours » Ant Queen : 24 Hours » Core : 24 Hours Raid Bosses » Commander Tayr : 3 Hours » Chief Brakki : 3 Hours » Heckaton : 3 Hours » Horus : 3 Hours » Shadith : 3 Hours » Commander Mos : 3 Hours » Uruka : 3 Hours » Ember : 3 Hours » Galaxia : 3 Hours » Barakiel : 3 Hours » Main town - Giran. » Normal Farm Zones : Cave of Trials, Mithril Mines [ Drops: Elon Coin, Raid Stone ] » LS Farm Zone : Hot Springs [ Drops: High/Top Grade Life Stones ] » Party Farm Zone (Flag Zone) : Under Ivory Tower [ Drops: High/Top Grade Life Stones, BOGS, Elon Coin, Raid Stone ] » Elon Coins are shared to all party members like adena. » Raid Boss Jewels in GM Shop for Raid Stones » Working all Castle sieges. » Events every hour. » Stackable scrolls, lifestones, book of giants. » 6 Grand Bosses & 10 Raidbosses » Nobless by Killing Barakiel or Nobless Item from GM Shop » Unique PVP Color system. » B-Grade items for free. » Shops till top S grade. » Unique tattoos. » Max count of buffs - 24+4. » Max subclasses - 3. » Free and no quest Class change. » Free and no quest Subclass. » No weight limit. » Unique monsters. » Offline trade system. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance. » No custom items! » VIP Ticket : Grands you with VIP Status [ x2 Drops and .dressme Command ] » .menu Panel
  2. If anyone wants to do it here is what I did: PcInventory.java public static final int ADENA_ID = 57; +public static final int COIN_ID = 9404; public static final int ANCIENT_ADENA_ID = 5575; private final L2PcInstance _owner; private L2ItemInstance _adena; +private L2ItemInstance _coin; private L2ItemInstance _ancientAdena; -------------------------------------------- public L2ItemInstance getAdenaInstance() { return _adena; } +public L2ItemInstance getCoinInstance() +{ + return _coin; +} @Override public int getAdena() { return _adena != null ? _adena.getCount() : 0; } +public int getCoin() +{ + return _coin != null ? _coin.getCount() : 0; +} --------------------------------------------- public void addAdena(final String process, final int count, final L2PcInstance actor, final L2Object reference) { if (count > 0) { addItem(process, ADENA_ID, count, actor, reference); } } +public void addCoin(final String process, final int count, final L2PcInstance actor, final L2Object reference) +{ + if (count > 0) + { + addItem(process, COIN_ID, count, actor, reference); + } +} ----------------------------------------------------- public L2ItemInstance addItem(final String process, L2ItemInstance item, final L2PcInstance actor, final L2Object reference) { item = super.addItem(process, item, actor, reference); if (item != null && item.getItemId() == ADENA_ID && !item.equals(_adena)) { _adena = item; } +if (item != null && item.getItemId() == COIN_ID && !item.equals(_coin)) +{ + _coin = item; +} -------------------------------------------------------- public L2ItemInstance transferItem(final String process, final int objectId, final int count, final ItemContainer target, final L2PcInstance actor, final L2Object reference) { final L2ItemInstance item = super.transferItem(process, objectId, count, target, actor, reference); if (_adena != null && (_adena.getCount() <= 0 || _adena.getOwnerId() != getOwnerId())) { _adena = null; } +if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) +{ + _coin = null; +} ------------------------------------------------------ public L2ItemInstance dropItem(final String process, L2ItemInstance item, final L2PcInstance actor, final L2Object reference) { item = super.dropItem(process, item, actor, reference); if (_adena != null && (_adena.getCount() <= 0 || _adena.getOwnerId() != getOwnerId())) { _adena = null; } +if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) +{ + _coin = null; +} ---------------------------------------------------- public L2ItemInstance dropItem(final String process, final int objectId, final int count, final L2PcInstance actor, final L2Object reference) { final L2ItemInstance item = super.dropItem(process, objectId, count, actor, reference); if (_adena != null && (_adena.getCount() <= 0 || _adena.getOwnerId() != getOwnerId())) { _adena = null; } +if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) +{ + _coin = null; +} -------------------------------------------------------------- protected void removeItem(final L2ItemInstance item) { // Removes any reference to the item from Shortcut bar getOwner().removeItemFromShortCut(item.getObjectId()); // Removes active Enchant Scroll if (item.equals(getOwner().getActiveEnchantItem())) { getOwner().setActiveEnchantItem(null); } if (item.getItemId() == ADENA_ID) { _adena = null; } +else if (item.getItemId() == COIN_ID) +{ + _coin = null; +} ---------------------------------------------------------- public void restore() { super.restore(); _adena = getItemByItemId(ADENA_ID); + _coin = getItemByItemId(COIN_ID); _ancientAdena = getItemByItemId(ANCIENT_ADENA_ID); } ---------------------------------------------------------- L2PcInstance.java public int getAdena() { return _inventory.getAdena(); } +public int getCoin() +{ + return _inventory.getCoin(); +} -------------------------------------------------------- +public void addCoin(final String process, int count, final L2Object reference, final boolean sendMessage) +{ + if (count > 0) + { + if (_inventory.getCoin() == Integer.MAX_VALUE) + { + return; + } + else if (_inventory.getCoin() >= Integer.MAX_VALUE - count) + { + count = Integer.MAX_VALUE - _inventory.getCoin(); + _inventory.addCoin(process, count, this, reference); + } + else if (_inventory.getCoin() < Integer.MAX_VALUE - count) + { + _inventory.addCoin(process, count, this, reference); + } + if (sendMessage) + { + SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S); + sm.addItemName(PcInventory.COIN_ID); + sm.addNumber(count); + sendPacket(sm); + sm = null; + } + + // Send update packet + if (!Config.FORCE_INVENTORY_UPDATE) + { + InventoryUpdate iu = new InventoryUpdate(); + iu.addItem(_inventory.getAdenaInstance()); + sendPacket(iu); + iu = null; + } + else + { + sendPacket(new ItemList(this, false)); + } + } +} ---------------------------------------------------------------------------- else if (item.getItemId() == 57) { addAdena("AutoLoot", item.getCount(), target, true); } +else if (item.getItemId() == 9404) +{ + addCoin("AutoLoot", item.getCount(), target, true); +} ---------------------------------------------------------------------------- else if (target.getItemId() == 57 && getInventory().getAdenaInstance() != null) { addAdena("Pickup", target.getCount(), null, true); ItemTable.getInstance().destroyItem("Pickup", target, this, null); } + else if (target.getItemId() == 9404 && getInventory().getCoinInstance() != null) + { + addCoin("Pickup", target.getCount(), null, true); + ItemTable.getInstance().destroyItem("Pickup", target, this, null); + } L2Party.java public void distributeItem(final L2PcInstance player, final L2ItemInstance item) { if (item.getItemId() == 57) { distributeAdena(player, item.getCount(), player); ItemTable.getInstance().destroyItem("Party", item, player, null); return; } +if (item.getItemId() == 9404) +{ + distributeCoin(player, item.getCount(), player); + ItemTable.getInstance().destroyItem("Party", item, player, null); + return; +} ------------------------------------------------------------------- public void distributeItem(final L2PcInstance player, final L2Attackable.RewardItem item, final boolean spoil, final L2Attackable target) { if (item == null) return; if (item.getItemId() == 57) { distributeAdena(player, item.getCount(), target); return; } +if (item.getItemId() == 9404) +{ + distributeCoin(player, item.getCount(), target); + return; +} ------------------------------------------------------------------------ Search for public void distributeAdena and paste this under: + public void distributeCoin(final L2PcInstance player, final int coin, final L2Character target) + { + // Get all the party members + final List<L2PcInstance> membersList = getPartyMembers(); + + // Check the number of party members that must be rewarded + // (The party member must be in range to receive its reward) + final List<L2PcInstance> ToReward = FastList.newInstance(); + + for (final L2PcInstance member : membersList) + { + if (!Util.checkIfInRange(Config.ALT_PARTY_RANGE2, target, member, true)) + { + continue; + } + ToReward.add(member); + } + + // Avoid null exceptions, if any + if (ToReward.isEmpty()) + return; + + // Now we can actually distribute the adena reward + // (Total adena split by the number of party members that are in range and must be rewarded) + final int count = coin / ToReward.size(); + + for (final L2PcInstance member : ToReward) + { + member.addCoin("Party", count, player, true); + } + FastList.recycle((FastList<?>) ToReward); + } Thanks again for the replies (even if it took 1 months for a reply :P ) you can lock this topic :)
  3. Thanks a lot for the replies! I will try my best and post my results :)
  4. Hello MxC, I have a question. How can I make any etcitem to be dropped like Adena? So if I'm in a party the amount will be shared with all party members like Adena. Edit: Could anyone give me the idea where to search? Or is it really hard to do? I'm using L2jFrozen btw.
  5. Great Interface, just bought it. Trusted person and great support :)
  6. Oh okay... I thought it works because I think I saw it in other servers... anyway it's not that important for me. Thanks for the reply :)
  7. Hello MxC, I have a problem with adding the teleport confirm window into buttons. Teleport Window: If the html code is like this: <a action="bypass -h npc_%objectId%_goto 50016" msg="811;Farm Zone 1"><font color="80F0FF">Farm Zone 1</font></a> It works... But if I want to add it to a button like this: <a action="bypass -h npc_%objectId%_goto 80000" msg="811;Farm Zone 1"><button value="Farm Zone (1)" width="134" height="21" back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3"></a> or like this: <button value="Farm Zone (1)" action="bypass -h npc_%objectId%_goto 80000" msg="811;Farm Zone 1 width="134" height="21" back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3"> Nothing happens... Who knows how to fix this?
  8. add this onEnter : if (character instanceof L2PcInstance) { // Set pvp flag if (((L2PcInstance) character).getPvpFlag() == 0) { ((L2PcInstance) character).updatePvPFlag(1); } if (((L2PcInstance) character).getPvpFlag() != 0) { ((L2PcInstance) character).stopPvPFlag(); ((L2PcInstance) character).updatePvPFlag(1); } } Works for me :) Edit: If your pvp points doesnt count then you have to do this: -character.setInsideZone(ZoneId.MULTI_FUNCTION, true); +character.setInsideZone(ZoneId.MULTI_FUNCTION, false); Im just saying cause i had this problem :)
  9. +import com.l2jfrozen.Config; if (character instanceof L2PcInstance) { ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE)); // Set pvp flag if (((L2PcInstance) character).getPvpFlag() != 0) { ((L2PcInstance) character).setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_NORMAL_TIME); ((L2PcInstance) character).startPvPFlag(); } } I had the same problem yesterday but after some time of trying different stuff, I fixed it :) tell me if that works for you :)
  10. i found it! i just had to enable that: # Do you want enable powerpack? PowerPakEnabled = True Lock it :)
  11. The problem is that if i talk to the npc the html is opening and then when i press the button to see the info nothing is happening... Well i cant find anything so easily with the new search engine from maxcheaters and the only RaidBoss info npc's that i found are for aCis...
  12. Hello, In L2jFrozen there is an existing RaidBoss Info npc, but in my case, it doesn't work. Does anyone know how to fix it? Or do you have another npc that you can share with me? Regards
  13. Everything is working perfect!! Im using L2jFrozen... But i have only 1 small problem: I've blocked the bishop class but when i try to go there with bishop im getting teleported to multifunctionzone and back to the town. I stuck in the town and cant move and i dont see any npcs etc, so i have to exit game an relog.. if someone can fix that it will be awesome! Regards
×
×
  • Create New...