#Try to check if Auctionhouse API is up

8 messages · Page 1 of 1 (latest)

late pewter
#

Hey guys im kinda down with my ideas how to solve this...
so to break it down to the minimum:
I need to now when the Auctionhouse API is callable. Basically this should be the case if Event:
AUCTIONS_HOUSE_SHOW is triggered, but the API needs a little time after this event to be up (its my assumption) because if i do something like:
GetNumAuctionItems("owner")
i get no informations right after the trigger.
So ive got another trigger for each frame an do it untill i got a value. But this trigger runs ALL the time and i want to avoid this.
Is there any option to just "sleep" for a bit or do it with another solutions?

Thanks!

void dagger
#

you could also set up an event trigger that just returns true for n seconds and then run your checks on hide

#

avoid running on frame update if you can though

late pewter
#

thank you so much, that helped me alot! But ive got one question left. is there an option to trigger the Display text custom function which is runed by %c?
So what i wanna do is:
Trigger = True -> Wait 2 sec -> NOW Run custom Display text script.
Right now, it runs 1 times as soon as the trigger hits

void dagger
#

I don't think so, you'd probably be better off firing a delayed custom event and listening to that event for your display text

#

!scanevents