Yoko

All sides of Injection
It is currently 2025-10-25 08:26:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: need help in uo.waitmenu
PostPosted: 2008-08-30 19:13:27 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
I must necessarily put
Code:
uo.waitmenu("Pozioni","(3)")

i can't doing
Code:
uo.waitmenu("Pozioni","(MY_NUMBER)")

?

example:
Code:
sub alchemy(type,Qreag,MY_NUMBER)
   if (uo.count(type) >= Qreag) then
         if (uo.count(emptyB) >=1) then
            if (not uo.waiting()) then
               uo.waitmenu("Pozioni","(MY_NUMBER)")
            end if
            uo.usetype(type)
            uo.deletejournal()
            while (not uo.injournal("You put the") and not uo.injournal(uo.getname('self')+": *You toss the failed mixture from the mortar*"))
               wait(500)
            wend
         else
            uo.print("no bottle")
         end if
      else
         uo.print("no reag")
      end if
end sub


Thanks


Top
   
 Post subject:
PostPosted: 2008-08-30 19:20:04 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub alchemy(type,Qreag,MY_NUMBER) 
   if (uo.count(type) >= Qreag) then
         if (uo.count(emptyB) >=1) then
            if (not uo.waiting()) then
               uo.waitmenu("Pozioni",(MY_NUMBER))
            end if
            uo.usetype(type)
            uo.deletejournal()
            while (not uo.injournal("You put the") and not uo.injournal(uo.getname('self')+": *You toss the failed mixture from the mortar*"))
               wait(500)
            wend
         else
            uo.print("no bottle")
         end if
      else
         uo.print("no reag")
      end if
end sub


Last edited by Scripts Writer on 2008-08-30 19:47:55, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2008-08-30 19:31:36 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
I had already tried but dont working correctly
that way craft another potion!


Top
   
 Post subject:
PostPosted: 2008-08-30 19:48:37 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Show me how you run this function,-i'd like to see arguments


Top
   
 Post subject:
PostPosted: 2008-08-30 19:53:31 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
Scripts Writer wrote:
Show me how you run this function,-i'd like to see arguments


sub crafta_gh()
alchemy(0x0F85,6,6)
# 0x0F85 = type
# 6 = Qreag
# 6 = MY_NUMBER
end sub


Top
   
 Post subject:
PostPosted: 2008-08-30 20:03:31 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub alchemy(type,Qreag,MY_NUMBER) 
   if (uo.count(type) >= Qreag) then
         if (uo.count(emptyB) >=1) then
            if (not uo.waiting()) then
               uo.waitmenu("Pozioni",MY_NUMBER)
            end if
            uo.usetype(type)
            uo.deletejournal()
            while (not uo.injournal("You put the") and not uo.injournal(uo.getname('self')+": *You toss the failed mixture from the mortar*"))
               wait(500)
            wend
         else
            uo.print("no bottle")
         end if
      else
         uo.print("no reag")
      end if
end sub

sub crafta_gh()
alchemy(0x0F85,6,"6")
end sub


?

I think it'd craft potion, which has "6" in text string.
Something like this:
    "Lesser Heal (1 ginseng)"
    "Heal (3 ginseng)"
    "Greater heal (6 ginseng)"


Top
   
 Post subject:
PostPosted: 2008-08-30 20:53:12 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
Why using this
Code:
uo.waitmenu("Pozioni","(1)")

i see in journal with "verbose menu" actived
Code:
Now waiting for menu...
Pozioni -> (1)
Pozione della stamina (1 Black Persl, 1 empty bottle)


and when i use this
Code:
uo.waitmenu("Pozioni",MU_NUMBER)


i see only:
Code:
Now waiting for menu...
Pozioni -> 1
Menu choise successful.


which is the difference from these?
are all right? :roll:


Top
   
 Post subject:
PostPosted: 2008-08-30 21:16:32 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
"(" + str( MY_NUMBER ) + ")"

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2008-08-31 00:13:13 
Offline

Joined: 2006-05-04 18:40:42
Posts: 104
Destruction wrote:
"(" + str( MY_NUMBER ) + ")"


U are the best!

Now Work all ok

Tnx


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 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