25 lines
637 B
Plaintext
25 lines
637 B
Plaintext
function main()
|
|
{
|
|
variable index:actor Actors
|
|
variable iterator ActorIterator
|
|
|
|
EQ2:QueryActors[Actors]
|
|
Actors:GetIterator[ActorIterator]
|
|
while 1
|
|
{
|
|
do
|
|
{
|
|
echo "Aura: ${ActorIterator.Value.Aura}"
|
|
if ${ActorIterator.Value.Aura.Equal["result_fire_green"]}
|
|
{
|
|
echo "Clicking statue: ${ActorIterator.Value.ID}"
|
|
EQ2Execute apply_verb ${ActorIterator.Value.ID} "Open soulbox briefly"
|
|
}
|
|
|
|
}
|
|
while ${ActorIterator:Next(exists)}
|
|
wait 5
|
|
echo "Loop"
|
|
ActorIterator:First
|
|
}
|
|
} |