Skip to content

finding raid api documentation and working samples #127

@pavlexander

Description

@pavlexander

Where can I get the documentation or some tips on how to use the toolkit? I would like to read some live data from the game, such as opened window, arena players, number of players in battle, their statuses, HP, etc..

But I am not able to find a single good example on how to use the toolkit..

On the website I was able to find an example extension called NagMeNot link

After decompiling the code, one of the methods looks like this:

    private static void AutoDismissPopup(AccountContext account)
    {
        if (account.TryGetViewContext<CustomOfferOverlayContext>((ViewKey)2165, out CustomOfferOverlayContext customOffer))
        {
            ((OverlayContext)customOffer).Close();
        }
        if (account.TryGetViewContext<BankPromoOfferPopupOverlayContext>((ViewKey)2030, out BankPromoOfferPopupOverlayContext bankPromoOffer))
        {
            ((OverlayContext)bankPromoOffer).Close();
        }
        if (account.TryGetViewContext<ComboOfferOverlayContext>((ViewKey)2140, out ComboOfferOverlayContext comboOffer))
        {
            ((OverlayContext)comboOffer).Close();
        }
    }

For example, what does the (ViewKey)2165 even mean or where does the value come from?

If somebody could point me to the right direction I would much appreciate it..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions