Server Development Discussion [L2J]

For Emulator L2J Server files discuss here

Subforums

  1. Server Development Discussion [Greek]

    Έλληνες Developers για το L2 (L2J)

    34,746
    posts

2,661 topics in this forum

    • 23 replies
    • 77,485 views
  1. Frequenly Asked Questions

    • 1 reply
    • 17,260 views
    • 0 replies
    • 2,589 views
    • 307 replies
    • 30,809 views
    • 0 replies
    • 386 views
  2. Guide Free help-Requests l2j

    • 15 replies
    • 512 views
    • 6 replies
    • 105 views
    • 3 replies
    • 80 views
    • 0 replies
    • 81 views
  3. Project L2J-Mobius

    • 493 replies
    • 53,866 views
    • 6 replies
    • 192 views
    • 1 reply
    • 73 views
    • 17 replies
    • 3,159 views
  4. Project Recruiting Admins/devs

    • 1 reply
    • 478 views
    • 31 replies
    • 12,481 views
    • 23 replies
    • 540 views
  5. Discussion Delete this topic

    • 1 reply
    • 145 views
    • 33 replies
    • 703 views
    • 118 replies
    • 4,543 views
    • 0 replies
    • 85 views
    • 193 replies
    • 10,617 views
  6. Discussion Best L2J Project/Pack?

    • 6 replies
    • 326 views
    • 46 replies
    • 1,343 views
    • 43 replies
    • 7,681 views


  • Posts


    • [Shopsocks5.com] Service Socks5 Cheap
      Payment Instantly Perfectmoney, Bitcoin, Wmtransfer, BTC-E ( Please click Buy Socks )
      Check Socks Online  http://shopsocks5.com/check/

      Our proxy service offers you a solution to Internet anonymity problem:Best Quality SOCKS5 PROXIES!


      Service Price

      PLAN DAILY

      For example, Daily 60: It is allowed to get maximium 60 socks for a day. 
      If you don't use, you will lose 60 socks in a day ( no incremental socks). An account will be expired after 30 days




      PLAN CREDIT

      For example, Credit 60: You will have unlimited day. After you get enough 60 socks, your account will expired.



      PLAN API

      For example, Socks List 30: You can get unlimited socks5 per day. Numbers of socks5 will get at Socks List and it will be auto change socks everytime. An account will be expired after 30 days



      Payment Instantly Perfectmoney, Bitcoin, Wmtransfer

      WMZ : Z994476647137
      PM: U15580999
      BTC: 14Wmsja5BVH6srbW7YtQRLni8xH97b7iwx


      [Shopsocks5.com] Service Socks5 Cheap
      Contact:
      Skype: Shopsocks5
      Email: admin@shopsocks5.com
      ICQ: 727362912


    • @Evie Frye this was the first 2 things iv tried but they didnt worked
    • i had to change all this because i was getting an error in party.java when i added new distrubeditem..here is what  i did and got this message when i tried to loot from the monster the drops are working fine and thanks for the help but i dont know how to solve this message @melron pcinventory.java   public static final int COIN_ID = 6577; public static final int ADENA_ID = 57; public static final int ANCIENT_ADENA_ID = 5575; private final Player _owner; private ItemInstance _coin; private ItemInstance _adena;     public int getCoin()     {         return _coin != null ? _coun.getCount() : 0;     }     public ItemInstance getCoinInstance()     {         return _count;     } public void addCoin(String process, int count, Player actor, WorldObject reference) { if (count > 0) addItem(process, COIN_ID, count, actor, reference); } public ItemInstance addItem(String process, ItemInstance item, Player actor, WorldObject reference) { item = super.addItem(process, item, actor, reference); if (item == null) return null; if (item.getItemId() == COIN_ID && !item.equals(_coin)) _coin = item; if (item.getItemId() == ADENA_ID && !item.equals(_adena)) _adena = item; public ItemInstance addItem(String process, int itemId, int count, Player actor, WorldObject reference) { ItemInstance item = super.addItem(process, itemId, count, actor, reference); if (item == null) return null; if (item.getItemId() == COIN_ID && !item.equals(_coin)) _coin = item; if (item.getItemId() == ADENA_ID && !item.equals(_adena)) _adena = item; public ItemInstance transferItem(String process, int objectId, int count, ItemContainer target, Player actor, WorldObject reference) { ItemInstance item = super.transferItem(process, objectId, count, target, actor, reference); if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) _coin = null; if (_adena != null && (_adena.getCount() <= 0 || _adena.getOwnerId() != getOwnerId())) _adena = null; public ItemInstance dropItem(String process, ItemInstance item, Player actor, WorldObject reference) { item = super.dropItem(process, item, actor, reference); if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) _coin = null; public ItemInstance dropItem(String process, int objectId, int count, Player actor, WorldObject reference) { ItemInstance item = super.dropItem(process, objectId, count, actor, reference); if (_coin != null && (_coin.getCount() <= 0 || _coin.getOwnerId() != getOwnerId())) _coin = null; if (_adena != null && (_adena.getCount() <= 0 || _adena.getOwnerId() != getOwnerId())) _adena = null; if (item.getItemId() == COIN_ID) _coin = null; if (item.getItemId() == ADENA_ID) _adena = null; public void restore() { super.restore(); _coin = getItemByItemId(COIN_ID); _adena = getItemByItemId(ADENA_ID); systemmessageid.java     public static final SystemMessageId EARNED_S1_COIN;   EARNED_S1_COIN = new SystemMessageId(2032); player.java     public int getCoin()     {         return _inventory.getCoin();     } public void addCoin(String process, int count, WorldObject reference, boolean sendMessage)     {         if (sendMessage)             sendPacket(SystemMessage.getSystemMessage(SystemMessageId.EARNED_S1_COIN).addNumber(count));                  if (count > 0)         {             _inventory.addCoin(process, count, this, reference);                          InventoryUpdate iu = new InventoryUpdate();                          if (_inventory.getCoinInstance() != null)                 iu.addModifiedItem(_inventory.getCoinInstance());             else                 iu.addItem(_inventory.getCoinInstance());                          sendPacket(iu);         }     }     public void doAutoLoot(Attackable target, IntIntHolder item)     {         if (isInParty())             getParty().distributeItem(this, item, false, target);         else if (item.getId() == 57)             addAdena("Loot", item.getValue(), target, true);         else if (item.getId() == 6577)             addCoin("Loot", item.getValue(), target, true);         else             addItem("Loot", item.getId(), item.getValue(), target, true);     } // Check if a Party is in progress             if (isInParty())                 getParty().distributeItem(this, item);             // Target is adena             else if (item.getItemId() == 57 && getInventory().getAdenaInstance() != null)             {                 addAdena("Pickup", item.getCount(), null, true);                 ItemTable.getInstance().destroyItem("Pickup", item, this, null);             }             else if (item.getItemId() == 6577 && getInventory().getCoinInstance() != null)             {                 addCoin("Pickup", item.getCount(), null, true);                 ItemTable.getInstance().destroyItem("Pickup", item, this, null);             }             // Target is regular item party.java     public void distributeItem(Player player, IntIntHolder item, boolean spoil, Attackable target)     {         if (item == null)             return;                  if (item.getId() == 57)         {             distributeAdena(player, item.getValue(), target);             return;         }         if (item.getId() == 6577)         {             distributeCoin(player, item.getValue(), target);             return;         }   public void distributeCoin(Player player, int Coin, Creature target)     {         List<Player> toReward = new ArrayList<>(_members.size());         for (Player member : _members)         {             if (!MathUtil.checkIfInRange(Config.PARTY_RANGE, target, member, true) || member.getCoin() == Integer.MAX_VALUE)                 continue;                          // Pass the check so will be rewarded.             toReward.add(member);         }                  // After all playes checked we got them in the list         // Avoid divisions by 0.         if (toReward.isEmpty())             return;                  // Calculation for drop in example of 1kk adena's. 1kk / 4 = 250k         final int count = Coin / toReward.size(); // 250k                  // Adding 250k for each player         for (Player member : toReward)             member.addCoin("Party", count, player, true);     } if (item.getItemId() == 6577)         {             distributeCoin(player, item.getCount(), player);             ItemTable.getInstance().destroyItem("Party", item, player, null);             return;         }  
    • OBT Will be accessible today

      http://iplay.gg/index.php?/topic/250-open-beta-19022018-today/
  • Topics