Помогите плиз подкорректировать скрипт на БС

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Tracer
Posts: 10
Joined: 2006-03-22 15:33:02

Помогите плиз подкорректировать скрипт на БС

Post by Tracer »

Пожалуйста помогите вместо задержек сделать ожидание меню, ато на моем шарде небольшие сбои (You must wait to perform another action) приводят к дисконнекту :cry:
шард стоит на рануо

Code: Select all

 
          var ResBox="0x400162C5"   
          var ToolBox="0x4063BAB3" 
          var Bank="0x401004B3"           
          var doski="0x1BEF"       
          var tulsi="0x0FBB"       
          var KraftedItem="0x1403" 
          var Weight= 270               
          var ResCount=50           
          var ResDobor=1000                     

            
sub Kraft()
   uo.exec("set norbcheck 1")
   uo.exec("set norbcalc 1")

   while not uo.dead()
      test()
   wend
end sub

sub test()



   
uo.findtype(tulsi)
uo.recall("finditem","21")
            wait(1600)


                  
      while uo.count(doski)<ResCount
      wait(1500)
uo.recall(Bank,"52")
            wait(700)
uo.useobject(ResBox)
            wait(700)
            uo.findtype(doski,"-1",ResBox)
            uo.moveitem("finditem",ResDobor)
            wait(700)
      wend
      while uo.count(tulsi)<2
      wait(1500)
uo.useobject(ToolBox)
            wait(700)
            uo.findtype(tulsi,"-1",ToolBox)
            uo.moveitem("finditem","1")
            wait(700)
      wend

if uo.weight > Weight then
Smelt()
end if

end sub



sub Smelt()
while uo.count(KraftedItem)>=1
 uo.waittargettype(KraftedItem)
      wait(300)
uo.findtype(tulsi)
uo.recall("finditem","14")
      wait(700)
wend
end sub
Grin
Expert!
Posts: 2580
Joined: 2005-05-04 14:05:19
Location: Москва

Post by Grin »

подробней.
потомучто меню гамповое... делать можно через журнал или uo.LastGump...
Там и там нужно видить что за гамп. вовтором достаточно будет если ты пришлешь сда инфогамп после выбора
Tracer
Posts: 10
Joined: 2006-03-22 15:33:02

Post by Tracer »

вот инфогамп

Code: Select all

_____infogump_______
serial   0x0001da3a
gumpid   0xc7931bf8
X   40
Y   40
1866   packet size
23   reply packet size
Buttons: ________
 page 0
    1 [    0] image=0x0FB3 at 15:402
    2 [   21] image=0x0FA7 at 270:402
    3 [   49] image=0x0FA7 at 270:362
    4 [   42] image=0x0FA7 at 270:342
    5 [   28] image=0x0FA7 at 15:60
    6 [    1] image=0x0FA7 at 15:80
    7 [    8] image=0x0FA7 at 15:100
    8 [   15] image=0x0FA7 at 15:120
 page 1
    9 [    2] image=0x0FA7 at 220:60
   10 [    3] image=0x0FAC at 480:60
   11 [    9] image=0x0FA7 at 220:80
   12 [   10] image=0x0FAC at 480:80
   13 [   16] image=0x0FA7 at 220:100
   14 [   17] image=0x0FAC at 480:100
   15 [   23] image=0x0FA7 at 220:120
   16 [   24] image=0x0FAC at 480:120
   17 [   30] image=0x0FA7 at 220:140
   18 [   31] image=0x0FAC at 480:140
Checks&Radios: __
Entryes: ________
All commands: ____
    1] page 0
    2] resizepic 0 0 5054 530 437
    3] gumppictiled 10 10 510 22 2624
    4] gumppictiled 10 292 150 45 2624
    5] gumppictiled 165 292 355 45 2624
    6] gumppictiled 10 342 510 85 2624
    7] gumppictiled 10 37 200 250 2624
    8] gumppictiled 215 37 305 250 2624
    9] checkertrans 10 10 510 417
   10] xmfhtmlgumpcolor 10 12 510 20 1044006 0 0 32767
   11] xmfhtmlgumpcolor 10 37 200 22 1044010 0 0 32767
   12] xmfhtmlgumpcolor 215 37 305 22 1044011 0 0 32767
   13] xmfhtmlgumpcolor 10 302 150 25 1044012 0 0 32767
   14] button 15 402 4017 4019 1 0 0
   15] xmfhtmlgumpcolor 50 405 150 18 1011441 0 0 32767
   16] button 270 402 4005 4007 1 0 21
   17] xmfhtmlgumpcolor 305 405 150 18 1044013 0 0 32767
   18] button 270 362 4005 4007 1 0 49
   19] xmfhtmlgumpcolor 305 365 150 18 1044017 0 0 32767
   20] button 270 342 4005 4007 1 0 42
   21] xmfhtmlgumpcolor 305 345 150 18 1044260 0 0 32767
   22] xmfhtmlgumpcolor 170 295 350 40 1044154 0 0 32767
   23] button 15 60 4005 4007 1 0 28
   24] xmfhtmlgumpcolor 50 63 150 18 1044014 0 0 32767
   25] button 15 80 4005 4007 1 0 1
   26] xmfhtmlgumpcolor 50 83 150 18 1044457 0 0 32767
   27] button 15 100 4005 4007 1 0 8
   28] xmfhtmlgumpcolor 50 103 150 18 1044565 0 0 32767
   29] button 15 120 4005 4007 1 0 15
   30] xmfhtmlgumpcolor 50 123 150 18 1044566 0 0 32767
   31] page 1
   32] button 220 60 4005 4007 1 0 2
   33] xmfhtmlgumpcolor 255 63 220 18 1025042 0 0 32767
   34] button 480 60 4011 4012 1 0 3
   35] button 220 80 4005 4007 1 0 9
   36] xmfhtmlgumpcolor 255 83 220 18 1023919 0 0 32767
   37] button 480 80 4011 4012 1 0 10
   38] button 220 100 4005 4007 1 0 16
   39] xmfhtmlgumpcolor 255 103 220 18 1025117 0 0 32767
   40] button 480 100 4011 4012 1 0 17
   41] button 220 120 4005 4007 1 0 23
   42] xmfhtmlgumpcolor 255 123 220 18 1029922 0 0 32767
   43] button 480 120 4011 4012 1 0 24
   44] button 220 140 4005 4007 1 0 30
   45] xmfhtmlgumpcolor 255 143 220 18 1029923 0 0 32767
   46] button 480 140 4011 4012 1 0 31
Text: ____________
Reply: ___________
 [0000] primary reply
 Checks&Radios (0)
 Entryes (0)

а вот что в журнале

Code: Select all

------Journal [10]------
cliloc# 0x05BD
cliloc# 0x05BD
cliloc# 0x05BD
cliloc# 0x05BD
Contains: 45 items
Gump 0x0001DA39 of type 0xC7931BF8
Gump 0x0001DA39 of type 0xC7931BF8 choiced 0x00000015
Gump 0x0001DA3A of type 0xC7931BF8
Gump 0x0001DA3A of type 0xC7931BF8 choiced 0x00000000

если можно поподробней как все сделать, чтобы даже я понял, как можно будет переделывать под другие гампы :)
Post Reply