Page 1 of 1

question with waitmenu

Posted: 2004-10-22 20:31:05
by selila
when i use waitmenu
and in one promt have two same name choice ..how can i choice the latter one?

eg..

tinker on ingot .choice .Jewelry then .have three Necklace choice..how can i identify them??

thanks

Posted: 2004-10-22 22:18:08
by AGRS
Menu: "Potions"
Ans1: "Potion"
Ans2: "Potion"
Ans3: "Potion"


To make 1st choice:
UO.WaitMenu("Potions", "Potion") or
UO.WaitMenu("Potions", "(1)") or
UO.WaitMenu("Potions", "(first)")

To make 2nd choice:
UO.WaitMenu("Potions", "(2)")

To make 3rd choice:
UO.WaitMenu("Potions", "(3)") or
UO.WaitMenu("Potions", "(last)")

Or you can use UO.WaitMenu("Potions", "(random)") for random choice.

Posted: 2004-10-23 05:17:52
by selila
thank you very mush!!!!

Posted: 2004-10-29 11:29:10
by GrandMaster
uo.exec('waitmenu Promt Choice')

it's more stabile