Yoko
http://forum.yoko.com.ua/

need help in uo.waitmenu
http://forum.yoko.com.ua/viewtopic.php?f=17&t=13943
Page 1 of 1

Author:  iRuLez [ 2008-08-30 19:13:27 ]
Post subject:  need help in uo.waitmenu

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

Author:  Scripts Writer [ 2008-08-30 19:20:04 ]
Post subject: 

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

Author:  iRuLez [ 2008-08-30 19:31:36 ]
Post subject: 

I had already tried but dont working correctly
that way craft another potion!

Author:  Scripts Writer [ 2008-08-30 19:48:37 ]
Post subject: 

Show me how you run this function,-i'd like to see arguments

Author:  iRuLez [ 2008-08-30 19:53:31 ]
Post subject: 

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

Author:  Scripts Writer [ 2008-08-30 20:03:31 ]
Post subject: 

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)"

Author:  iRuLez [ 2008-08-30 20:53:12 ]
Post subject: 

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:

Author:  Destruction [ 2008-08-30 21:16:32 ]
Post subject: 

"(" + str( MY_NUMBER ) + ")"

Author:  iRuLez [ 2008-08-31 00:13:13 ]
Post subject: 

Destruction wrote:
"(" + str( MY_NUMBER ) + ")"


U are the best!

Now Work all ok

Tnx

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/