L2JMobius

Epilogue Item Broker missing auction window?

Babuschka · 3 · 590

Offline Babuschka

  • Vassal
  • *
    • Posts: 4
I played the H5 build, there it is working. Now I started Epilogue and I can't open the Item Auction window or better: nothing happens, NPC dialogue window just closes.
First I tried it with a pure new build, no modifications.
Then I compared it with the H5 files with winmerge (also the java files), everything seems to be the same (except for the items).

Does anybody have an idea what could be the issue?

I don't get an error message anywhere. I get the message when the next auction is if it's not an auction period, the auctions also appear in the database, but when the auction is running there is no message and no auction window. the window is not an html-file it seems, in H5 with GM no html is shown in chat when opening. I have no more ideas where to look for since the auction itself seems to work according to database entries.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16147
Try this.
Code: [Select]
Index: java/org/l2jmobius/gameserver/network/serverpackets/ExItemAuctionInfoPacket.java
===================================================================
--- java/org/l2jmobius/gameserver/network/serverpackets/ExItemAuctionInfoPacket.java (revision 13067)
+++ java/org/l2jmobius/gameserver/network/serverpackets/ExItemAuctionInfoPacket.java (working copy)
@@ -16,6 +16,7 @@
  */
 package org.l2jmobius.gameserver.network.serverpackets;
 
+import org.l2jmobius.gameserver.model.ItemInfo;
 import org.l2jmobius.gameserver.model.itemauction.ItemAuction;
 import org.l2jmobius.gameserver.model.itemauction.ItemAuctionBid;
 import org.l2jmobius.gameserver.model.itemauction.ItemAuctionState;
@@ -59,12 +60,55 @@
  final ItemAuctionBid highestBid = _currentAuction.getHighestBid();
  writeLong(highestBid != null ? highestBid.getLastBid() : _currentAuction.getAuctionInitBid());
  writeInt(_timeRemaining);
- writeItem(_currentAuction.getItemInfo());
+ writeItemInfo(_currentAuction.getItemInfo());
  if (_nextAuction != null)
  {
  writeLong(_nextAuction.getAuctionInitBid());
  writeInt((int) (_nextAuction.getStartingTime() / 1000)); // unix time in seconds
- writeItem(_nextAuction.getItemInfo());
+ writeItemInfo(_nextAuction.getItemInfo());
  }
  }
-}
\ No newline at end of file
+
+ private void writeItemInfo(ItemInfo info)
+ {
+ writeInt(info.getItem().getId());
+ writeInt(info.getItem().getId());
+ writeInt(info.getLocation());
+ writeLong(info.getCount());
+ writeShort(info.getEnchant());
+
+ // TODO: Find bellow values.
+ writeShort(0);
+ writeInt(0);
+ writeShort(0);
+ writeShort(0);
+
+ writeShort(0);
+ writeShort(0);
+ writeShort(0);
+ writeShort(0);
+ writeShort(0);
+ writeShort(0);
+
+ writeInt(0);
+
+ writeShort(0);
+ writeShort(0);
+ writeShort(0);
+
+ // Example.
+ // writeShort(info.getItem().getType2());
+ // writeInt(info.getAugmentationBonus());
+ // writeShort(info.getAttackElementType());
+ // writeShort(info.getAttackElementPower());
+ // for (byte i = 0; i < 6; i++)
+ // {
+ // writeShort(info.getElementDefAttr(i));
+ // }
+ // writeInt(info.getTime());
+ // for (int op : info.getEnchantOptions())
+ // {
+ // writeShort(op);
+ // }
+ }
+}


Offline Babuschka

  • Vassal
  • *
    • Posts: 4
yeah this is working. Thx a lot, pretty sure I would have never even looked into network for the issue.