Page 1 of 1

[SOLVED] ItemAuction bid don't work

Posted: Sat Apr 19, 2014 3:17 am
by fforc9e
L2J Revision Number: 4413
L2JDP Revision Number: 7664

Hi Guys! I'm trying to port ItemBroker(itemacution) system from CT2.5(L2J: 5133, DP:8404) to CT2.4. Whole system seems to be working until auction starts (no errors in logs only info about auction time etc.). Everything look normal but players can't make bid - nothing happens when I use any button. Anyone know how to fix it? :)

Image

Edit...
Ok I manage to fix this problem. I made mistake in L2GamePacketHandler.java

Code: Select all

case 0x39:// RequestBidItemAuctionbreak;case 0x3a:// RequestInfoItemAuctionbreak;
Correct version is:

Code: Select all

case 0x39:msg = new RequestBidItemAuction();break;case 0x3a:msg = new RequestInfoItemAuction();break;

Re: [SOLVED] ItemAuction bid don't work

Posted: Sat Apr 26, 2014 12:37 pm
by Hyrelius
It's most likely a custom script anyway. I wish we could use the Lineage 2 solution for item auctions :X. Yours looks like something someone wrote using NpcHtmlMessage outputl.

Re: [SOLVED] ItemAuction bid don't work

Posted: Sat Apr 26, 2014 1:49 pm
by fforc9e
Its just copy paste from newer revisions (and some adaptations). ;) Im trying to remove this "next auction" button. Maybe you know how to fix it? :P

Re: [SOLVED] ItemAuction bid don't work

Posted: Mon Apr 28, 2014 10:14 am
by Hyrelius
How am I supposed to know without having / seeing the code D: ? Also if it's not a HtmlNpcMessage, you most likely can't remove the button. If it is - you surely can.

Re: [SOLVED] ItemAuction bid don't work

Posted: Mon Apr 28, 2014 11:20 am
by fforc9e
Core side:

com.l2jserver.gameserver.model.intemauct.ItemAuctionInstance
http://pastebin.com/E140pY7x

com.l2jserver.gameserver.model.itemauction.ItemAuctionState
http://pastebin.com/eAZP3Hyb

com.l2jserver.gameserver.model.itemauction.ItemAuctionBid
http://pastebin.com/jCHsA7wp

com.l2jserver.gameserver.model.itemauction.ItemAuction
http://pastebin.com/wKXWmFc8

com.l2jserver.gameserver.model.itemauction.AuctionItem
http://pastebin.com/bv490MEg

com.l2jserver.gameserver.model.itemauction.AuctionDateGenerator
http://pastebin.com/d1WDyq9k

DataPack:


handlers.bypasshandlers.ItemAuctionLink
http://pastebin.com/GetznBpF

I think thats all. ;)