Quantcast
Download
(7 Kb)
Download
Updated: 03/08/15 09:29 AM
Pictures
File Info
Compatibility:
Update 5 (1.5.2)
Updated:03/08/15 09:29 AM
Created:01/19/15 02:21 PM
Monthly downloads:195
Total downloads:2,276
Favorites:2
MD5:
Categories:Libraries, Auction House & Vendors, Developer Utilities
JMTradingHouseSnapshot
Version: 1.3.1
by: JordyMoos [More]
JMTradingHouseSnapshot


Addon for elder scroll online that makes a snapshot of your trading houses.
Other addons can request the existing snapshot or a new snapshot and register on events so they are notices when a new snapshot is created.


Snapshot structure

Code:
snapshot =
{
    -- Holds the items grouped per guild
    tradingHouseItemList =
    {
        -- First guild
        1 =
        {
            -- First item
            {
                itemId = '',
                guildName = '',
                itemLink = '',
                sellerName = '',
                quality = '',
                stackCount = '',
                price = '',
                pricePerPiece = '',
                expiry = '',

                -- Deprecated. guildId will be removed in version 2.0
                -- You should use the guildName
                guildId = '',
            },

            -- Next item etc
            {
                -- ..
            }
        },

        -- Next guild etc
        2 =
        {
            -- ..
        }
    },

    -- Will list the guilds with their information
    guildList =
    {
        -- First guild
        1 =
        {
            id = '',
            name = '',
            alianceId = '',
        },

        -- Next guild etc
        2 =
        {
            -- ..
        }
    },

    -- The creation timestamp of when the snapshot was finished building
    creationTimestamp = nil,
}


API


createSnapshot
Code:
JMTradingHouseSnapshot.createSnapshot()
Allows you to create a new snapshot. The snapshot will not be returned because it will take a while.



getSnapshot
Code:
local snapshot = JMTradingHouseSnapshot.getSnapshot()
Will return the latest successful snapshot or false if no snapshot was ever made.



abort
Code:
JMTradingHouseSnapshot.abort()
Will abort the snapshot if running.



registerForEvent
Code:
JMTradingHouseSnapshot.registerForEvent(event, callback)
Allows you to listen to an event. See Events for list of possible events. The callback function will be called when the events triggers.



unregisterForEvent
Code:
JMTradingHouseSnapshot.unregisterForEvent(event, callback)
Stop listening to an event.



Events


All possible events are listen in JMTradingHouseSnapshot.events.
Code:
JMTradingHouseSnapshot.events

SCAN_STARTED
Code:
JMTradingHouseSnapshot.events.SCAN_STARTED
Will be triggered when the scanner is starting to create a snapshot.
Code:
JMTradingHouseSnapshot.registerForEvent(JMTradingHouseSnapshot.events.SCAN_STARTED, function ()
    d('Scan started')
end)


SCAN_SUCCEEDED
Code:
JMTradingHouseSnapshot.events.SCAN_SUCCEEDED
Will be triggered when the snapshot has finished successfully. The function will have one argument with the snapshot.
Code:
JMTradingHouseSnapshot.registerForEvent(JMTradingHouseSnapshot.events.SCAN_SUCCEEDED, function (snapshot)
    d('Scan finished successfully')
    d(snapshot)
end)


SCAN_FAILED
Code:
JMTradingHouseSnapshot.events.SCAN_FAILED
Will be triggered when the scanner got aborted.
Code:
JMTradingHouseSnapshot.registerForEvent(JMTradingHouseSnapshot.events.SCAN_FAILED, function ()
    d('Scan failed')
end)


SCAN_ALREADY_RUNNING
Code:
JMTradingHouseSnapshot.events.SCAN_ALREADY_RUNNING
Will be triggered when the scanner is already making a snapshot.
Code:
JMTradingHouseSnapshot.registerForEvent(JMTradingHouseSnapshot.events.SCAN_ALREADY_RUNNING, function ()
    d('Scan already running')
end)


ADDON_LOADED
Code:
JMTradingHouseSnapshot.events.ADDON_LOADED
Will be triggered when the addon is fully setup. So you know that you can ask for a scan.
Code:
JMTradingHouseSnapshot.registerForEvent(JMTradingHouseSnapshot.events.ADDON_LOADED, function ()
    d('Addon is loaded')
end)
1.3
- Guild ids can change between logins. So the guildId in the item data is now depricated. And the guildName is added. GuildId will be removed in version 2.0

1.2
- Fix issue where the directory inside the zip was wrong. Which caused that the addon might not load

1.1
- Fixes bug that happend when you joined another guild and wanted a new snapshot.
Caused because wrong use of guildId and guildIndex
Post A Reply Comment Options
Unread 07/03/15, 10:47 AM  
ahmetertem
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 7
Uploads: 1
Hi,

Thanks for this great addon. I'm usin' it for gathering unsold items to out of the game. Reading savedvariable and lookin for good oportunities and cross formula buying... Anyway, i'm going to kiosks and scanning that kiosk and reloadin ui for save variable and going to another one. I have to reloadui for each kiosk and it's really pain in the #. My point is, can you make collect all guild sales ?

And a reset button too ^^

Sorry for bad english

Thanks
Report comment to moderator  
Reply With Quote
Unread 02/05/15, 09:01 AM  
JordyMoos
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 11
Uploads: 2
Re: Kiosk searching

Originally Posted by Prefect4Me
To be clear, does this search the open world guild traders and parse their sales information so that other add ons like Guild Store Search can search through those stores as well?
This addon scans the items in the trading houses of your guilds. So that other addons do not have to do that logic them self but can request this addon to do it for them.

It does not scan open world trading houses. I do not know if there are api calls for that. Also i think that you need to be at the open world trading house to be able to scan it?

If it is possible to scan the open word trading house then please let me know
Report comment to moderator  
Reply With Quote
Unread 02/05/15, 08:21 AM  
Prefect4Me

Forum posts: 0
File comments: 1
Uploads: 0
Kiosk searching

To be clear, does this search the open world guild traders and parse their sales information so that other add ons like Guild Store Search can search through those stores as well?
Report comment to moderator  
Reply With Quote
Unread 02/04/15, 07:10 AM  
Noruas

Forum posts: 1
File comments: 5
Uploads: 0
Thumbs up GREAT ADDON!!!

THX very much for this addon!!!

We will use it to store our guild trade items ^^.

It works fine and error less. Very usefull.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: