Feature - Enhancement #2274
Add option to select entries in a eq2listbox
0%
Description
Easiest one to use as an example, is the guild window ( u by default ), then click the "Events" tab. You can (manually) click and select any entry in there. Looking for a way to do this via script.
Here's a short snippit that will echo the first 3 entries.
variable index:collection:string Options
variable iterator OptionsIterator
variable int OptionCounter = 0
EQ2UIPage[_HUD,guild].Child[page,_HUD.guild].Child[5].Child[4].Child[1].Child[2]:GetOptions[Options]
Options:GetIterator[OptionsIterator]
if (${OptionsIterator:First(exists)})
{
do
{
if (${OptionsIterator.Value.FirstKey(exists)})
{
do
{
echo "Option #${OptionCounter}:: '${OptionsIterator.Value.CurrentKey}' => '${OptionsIterator.Value.CurrentValue}'"
}
while ${OptionsIterator.Value.NextKey(exists)}
;// echo "------"
}
OptionCounter:Inc
}
while ${OptionsIterator:Next(exists)} && ${OptionCounter} < 3
}