Hi, I need help adapting this code from H5 to IL, it's the "Auction House" system, I've adapted a lot, but I'm having this error when the item returns to its owner when the time that has been stipulated expires , in the H5 he uses the email system thing that is different from IL, could someone help me, any idea, suggestion of what I can do?
ReturnItemsToOwnerThread
+private synchronized void returnItemToOwner(AuctionHouseEntranceItem item)+{+if(item.isRemoved())+{+return;+}++ item.setIsRemoved(true);++ final ItemContainer container = _containersByCharId.get(item.getCharId());+if((container == null)||(container.getSize()==0))+{+return;+}++if(item.getItemInstance().getItemLocation()!=ItemLocation.AUCTION)+{+ _log.warn(getClass().getSimpleName()+": The item "+ item.getObjectId()+" that is being returned to the owner doesnt belong to the auction house");+return;+}++ThreadPoolManager.getInstance().scheduleGeneral(newReturnItemsToOwnerThread(container, item),100);+}++privateclassReturnItemsToOwnerThread implements Runnable+{+private final ItemContainer _container;+private final AuctionHouseEntranceItem _item;++publicReturnItemsToOwnerThread(ItemContainer container,AuctionHouseEntranceItem item)+{+ _container = container;+ _item = item;+}++@Override+publicvoid run()+{+ synchronized (_entrancesById)+{+ final String message ="Your item couldn't be sold on the set period, so it's now returning to you\nThanks for using our Auction House system";+ final Message msg =newMessage(_item.getCharId(),"Auction House Return", message,Message.SendBySystem.NONE);+ final Mail attachments = msg.createAttachments();+ final L2ItemInstance newItem = _container.transferItem("AuctionHouse", _item.getObjectId(), _item.getQuantity(), attachments, null, null);+if(newItem == null)+{+ _log.warn(getClass().getSimpleName()+": Error adding attachment item "+ _item.getObjectId()+" for char "+ _item.getCharId()+" (newitem == null)");+return;+}+ newItem.setItemLocation(newItem.getItemLocation(), msg.getId());++MailManager.getInstance().sendMessage(msg);++ modifyAuctionItemCountToDB(_item,-1);+}+}+}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
yeah ok, if you say what is fuctional 100% i can't say something different 😛
but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.
I have access to modify everything even to make the clock to stop show how many time users play in server.
1) so maybe keep some personal info more hide.
2) i dont use ogg.dll
3) i create it and give it ready + support to install it.
Plus what is mine can working with what ever .exe you want not just l2 with same simple method.
And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too
thats my source
Question
L2shaken
Hi, I need help adapting this code from H5 to IL, it's the "Auction House" system, I've adapted a lot, but I'm having this error when the item returns to its owner when the time that has been stipulated expires , in the H5 he uses the email system thing that is different from IL, could someone help me, any idea, suggestion of what I can do?
ReturnItemsToOwnerThread
DOWNLOAD CODE FULL FOR H5.
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.