Code: Select all
var marked=0 ; 1-da; 0-net
sub repairArm2()
if marked==1 then
wait(100)
uo.print('x1') ### 1 full plate
uo.exec('addobject x1')
wait(3000)
uo.print('x2')
uo.exec('addobject x2')
wait(3000)
uo.print('x3')
uo.exec('addobject x3')
wait(3000)
uo.print('x4')
uo.exec('addobject x4')
wait(3000)
uo.print('x5')
uo.exec('addobject x5')
wait(3000)
uo.print('x6')
uo.exec('addobject x6')
wait(3000)
uo.print('x7')
uo.exec('addobject x7')
wait(3000)
uo.print('x8')
uo.exec('addobject x8')
wait(3000)
uo.print('second full') ### markaem 2 full plate
wait(100)
uo.print('z1')
uo.exec('addobject z1')
wait(3000)
uo.print('z2')
uo.exec('addobject z2')
wait(3000)
uo.print('z3')
uo.exec('addobject z3')
wait(3000)
uo.print('z4')
uo.exec('addobject z4')
wait(3000)
uo.print('z5')
uo.exec('addobject z5')
wait(3000)
uo.print('z6')
uo.exec('addobject z6')
wait(3000)
uo.print('z7')
uo.exec('addobject z7')
wait(3000)
uo.print('z8')
uo.exec('addobject z8')
wait(100)
else
end if
wait(100)
while not uo.dead()
wait(100)
var rep='0x1865' ## repair tools
wait(1800000) ###################################
uo.print('repairing.....')
wait(100)
uo.waittargettype('x1') ; helm
uo.usetype(rep)
wait(10)
uo.usetype('x1','backpack') ; odevaem helm
wait(120)
uo.waittargettype('x2') ; gorget
uo.usetype(rep)
wait(10)
uo.usetype('x2') ; odevaem gorget
wait(120)
uo.waittargettype('x3') ; plechi
uo.usetype(rep)
wait(10)
uo.usetype('x3') ; odevaem plechi
wait(120)
uo.waittargettype('x4') ; gloves
uo.usetype(rep)
wait(10)
uo.usetype('x4') ; odevaem gloves
wait(120)
uo.waittargettype('x5') ; chest
uo.usetype(rep)
wait(10)
uo.usetype('x5') ; odevaem chest
wait(120)
uo.waittargettype('x6') ; legs
uo.usetype(rep)
wait(10)
uo.usetype('x6') ; odevaem legs
wait(120)
uo.waittargettype('x7') ; shield
uo.usetype(rep)
wait(10)
uo.usetype('x7') ; odevaem shield
wait(120)
uo.waittargettype('x8') ; type oruzhija kotorim bjom
uo.usetype(rep)
wait(10)
uo.usetype('x8') ; odevaem oruzhije
wait(1800000) ###############zaderzhka na sledushij repair
uo.print('repairing222222222222222222222.....')
wait(100)
uo.waittargettype('z1') ; helm
uo.usetype(rep)
wait(50)
uo.usetype('z1') ; odevaem helm
wait(120)
uo.waittargettype('z2') ; gorget
uo.usetype(rep)
wait(50)
uo.usetype('z2') ; odevaem gorget
wait(120)
uo.waittargettype('z3') ; plechi
uo.usetype(rep)
wait(50)
uo.usetype('z3') ; odevaem plechi
wait(120)
uo.waittargettype('z4') ; gloves
uo.usetype(rep)
wait(50)
uo.usetype('z4') ; odevaem gloves
wait(120)
uo.waittargettype('z5') ; chest
uo.usetype(rep)
wait(50)
uo.usetype('z5') ; odevaem chest
wait(120)
uo.waittargettype('z6') ; legs
uo.usetype(rep)
wait(50)
uo.usetype('z6') ; odevaem legs
wait(120)
uo.waittargettype('z7') ; shield
uo.usetype(rep)
wait(50)
uo.usetype('z7') ; odevaem shield
wait(120)
uo.waittargettype('z8') ; type oruzhija kotorim bjom
uo.usetype(rep)
wait(50)
uo.usetype('z8') ; odevaem oruzhije
wait(10000)
repeat
wend
end sub