[.NET] How do I get the ChoiceWindow reference?

eccentric

Active Member
With the latest MaxPower bugfix I was also able to gain the new events like ChoiceWindowAppeared and this is great news. But what I can't seem to figure out is how to get the ChoiceWindow reference once the event triggers, so that I can call ChoiceWindow.DoChoice1() and whatnot. I breakpointed the event in the Visual Studio debugger and neither the object nor LavishScriptAPI.LSEventArgs contained such a reference, and it also looks like I can't get the reference through Extension.EQ2() or Extension.ISXEQ2().

I see in the object browser that there's a Extension.EQ2UIPage(string) which might be able to grab it, but I don't know what to pass into the function.

Am I overlooking something obvious?
 

Pygar

EQ2Bot Specialist
Choicewindow doesn't come with any ID like Lootwindow does. DoChoice1 will just execute that option on whatever choice window is currently active.

Those times when more than one choice window fires at the same time, there simply isn't a way to evaluate the choices separately.

Dunno if that's of any help or not.
 

eccentric

Active Member
I noticed that in EQ2Bot.iss but couldn't directly correlate it to the .NET wrapper.

But I looked further and what I did find was that there are already these two functions inside Extension:

public EQ2.ISXEQ2.RewardWindow RewardWindow()
public EQ2.ISXEQ2.LootWindow LootWindow()

Which leads me to believe the one for ChoiceWindow was overlooked. I think a live ChoiceWindow instance is needed; the DoChoice... calls aren't static.

Yeah I was curious about the multiple windows but I guess that's just one of those times where you cross your fingers and hope for the best.
 

Valerian

ISX Specialist
I did miss it. Wrapper dll is updated on the svn -- Amadeus, need to update wrapper in patcher etc pls
 
Top Bottom