Thread Tools Display Modes
05/06/24, 06:29 PM   #1
robert.labrie
AddOn Author - Click to view addons
Join Date: Dec 2021
Posts: 17
PlaceInTradeHouse

I want to write a utility to list my intricate junk with a bit less clicking. I found a function in the API PlaceInTradeHouse() which I expect would do the trick. It takes no params. I'm guessing I would need to create the listing and then proc that method? I can start digging through AGS but that addon is huge. Pointers welcome
  Reply With Quote
05/07/24, 03:09 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,004
I'd start to check how ZOs vanilla code does it in the esoui sources, and not how addons do it.
That's always the best way

(allthough I bet AGS would do it the same way then, if it supports listing, -> Does it? I never saw any feature of AGS that lists items?)


Should be found in esoui/ingame/tradinghouse/keyboard somewhere then:
https://github.com/esoui/esoui/tree/...house/keyboard

This should be the keybind that you use to list an item you have selected:
https://github.com/esoui/esoui/blob/...board.lua#L167
So I guess you'd have to find out how to select an item from your inventory and then use that same function to list/post it.

Here is a check func that checks if you have selected an item to the listSlot
https://github.com/esoui/esoui/blob/...board.lua#L351


self in that context is the object created from ZO_TradingHouseManager:New -> so it's TRADING_HOUSE (see bottom of the lua file).


Please keep in mind that you should not create any automatism addons that spam the server with messages (like try to list all 30 slots at once) as else you might get kicked for mesasge spam and/or ZOs would even consider changing existing API and making it bad for us all.

Last edited by Baertram : 05/07/24 at 03:16 AM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » PlaceInTradeHouse


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off