Menus not working?

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Poobah
Posts: 13
Joined: 2004-05-23 00:01:22

Menus not working?

Post by Poobah »

I do the following and it does not work, it cancels as soon as the menu opens but doest not select an item..

uo.waitmenu("Choose a forumla",'Poison')
Uo.FindType("0x0F88" , 0, "ground")
UO.UseType("0x0E9B")
UO.waittargetobject("finditem")

it finds my shade on the ground,uses the mortar on it, then targets the shade..

but it just brings up the menu and stops ive tried

using automenu i get the same results, all i need to do is select the second option in the list, ive also tried using "last" and "2" (2) "(2") etc nothing works.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

waittarget* must be used before command provoking targeting (usetype here)
Poobah
Posts: 13
Joined: 2004-05-23 00:01:22

Post by Poobah »

Thanks but i lag like shit, so im pretty sure that order doesnt matter, and thats certainly not the problem im having with menus... i run the script one time and the menu pops up, it just bails before selecting an option... it even tells me it bailed.. says 'stop waiting for menu' or some shit.
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

these clearly shows error in script logics.
lags mean empty cycles, poping menu shows errors in prompt/choice or order definitions (if all ok menu will not be shown)

it looks you can not understand what to do
ask somebody on your emulator to make script for you or look for such script in Scripts section
Poobah
Posts: 13
Joined: 2004-05-23 00:01:22

Post by Poobah »

Just to humor myself i replaced the menu but and added it above, same result, yes i dont know what to do thats why i posted in the help section, i don't need an entire script i just need to know how the menu system works

all i need to do is when the menu pops up "Choose a forumla" I need to know how to select "Greater Poison" which is number 3 on the list , (ive since raised alchemy using razor)
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

your variant:
1 uo.waitmenu("Choose a forumla",'Poison')
2 Uo.FindType("0x0F88" , 0, "ground")
3 UO.UseType("0x0E9B")
4 UO.waittargetobject("finditem")

correct variant:
1 uo.waitmenu("Choose a formula","Poison")
2 Uo.FindType("0x0F88" , "0", "ground")
4 UO.waittargetobject("finditem")
3 UO.UseType("0x0E9B")
5 wait(10000)

so as you see you just not attentive
Post Reply