Yoko

All sides of Injection
It is currently 2025-12-26 14:12:32

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Menus not working?
PostPosted: 2004-05-23 00:03:48 
Offline

Joined: 2004-05-23 00:01:22
Posts: 13
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.


Top
   
 Post subject:
PostPosted: 2004-05-23 11:10:10 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
waittarget* must be used before command provoking targeting (usetype here)


Top
   
 Post subject:
PostPosted: 2004-05-23 12:09:49 
Offline

Joined: 2004-05-23 00:01:22
Posts: 13
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.


Top
   
 Post subject:
PostPosted: 2004-05-24 00:00:48 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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


Top
   
 Post subject:
PostPosted: 2004-05-24 00:22:47 
Offline

Joined: 2004-05-23 00:01:22
Posts: 13
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)


Top
   
 Post subject:
PostPosted: 2004-05-30 17:52:59 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited