a little question

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
colarzy
Posts: 3
Joined: 2004-07-10 08:53:59

a little question

Post by colarzy »

its about waitmanu,there are 3 necklaces they all called necklace but looks different,how do i choose second or third one?
Huang Yifei
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Re: a little question

Post by Edred »

colarzy wrote:its about waitmanu,there are 3 necklaces they all called necklace but looks different,how do i choose second or third one?


You can use 1 or 2 or 3 for choice... For example:
UO.WaitMenu( 'Neclaces', 2 )
colarzy
Posts: 3
Joined: 2004-07-10 08:53:59

Post by colarzy »

i wrote it like this:
UO.exec("waitmenu 'What would you' 'Jewelry' 'What would you like' 'Necklace',2")
but it doesnt seem to work,can u help me?
Huang Yifei
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post by Thdin »

colarzy wrote:i wrote it like this:
UO.exec("waitmenu 'What would you' 'Jewelry' 'What would you like' 'Necklace',2")
but it doesnt seem to work,can u help me?


Try this instead:

UO.Waitmenu('What would you' 'Jewelry' 'What would you like' 'number of necklace as it appears')

Let's say after opening the Jewelry menu, you see 3 necklaces with identical names. Instead of using the name then use a number to define it. If you want the second necklace, use that after 'What would you like' :) This should work.
Use the SEARCH button. That's what it's there for!!! :)
colarzy
Posts: 3
Joined: 2004-07-10 08:53:59

Post by colarzy »

u mean like this?

UO.exec("waitmenu 'What would you' 'Jewelry' 'What would you like' '5'")

but it still doest work:

what would u like to make?->jewelry
Menu choice successful
what would u like to make?->5
Menu choice not found:menu cancelled

:(
Huang Yifei
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

UO.exec("[yhlp_waitmenu] What Jewelry What (5")

choice-by-number-in-list must be encircled by parentesis ( ), or at least the left parentesis (
like (5) or (5

other possible indirect choices:
(last) (random) (cancel)
Post Reply