Запускаю вот этот скрипт на основном чаре, который пытается с левочара стырить котлетку рыбную.
Но скрипт не хочет тырить ее а появляется надпись в журнале Which item will you attempt to steal? You can steal only items.
Что за фигня?
sub Stealing()
var i=0
while (uo.skillval('Stealing',1)<1000)
i=i+1
if i==50 then
uo.usetype('0x097B')
wait(1000)
i=0
end if
cheklag()
uo.print("Stealing...")
uo.useskill('Stealing',Enymi)
##uo.useobject(BackEny)
##wait(1000)
##UO.FindType('0x097B','0x0000',BackEny)
##wait(200)
##UO.Grab('1','finditem')
wait(3500)
UO.FindType('0x097B',-1,'backpack')
if UO.GetQuantity('finditem')>100 then
UO.MoveItem('finditem','100',Sunduk)
endif
wend
uo.closeuo()
end sub
sub Stealing()
var i=0
uo.print('Покажь клиента')
uo.addobject('klient')
while uo.targeting()
wait(300)
wend
while (uo.skillval('Stealing',1)<1000)
i=i+1
if i>=50 and uo.count('0x097B') then
uo.usetype('0x097B')
wait(1000)
i=0
end if
cheklag()
uo.print("Stealing...")
uo.useskill('Stealing','klient')
wait(5000)
UO.FindType('0x097B','-1','backpack')
if UO.GetQuantity('finditem')>100 then
UO.MoveItem('finditem','100',Sunduk)
endif
wend
uo.closeuo()
end sub
Тоже самое....
Только если я прицелом указываю не на левочара, а на котлету в его паке он ее тырит, а вот последующие не хочет и появляется надпись
Wich item will you attempt to steal? Trying to steal from yourself.
sub Stealing()
var i=0
uo.print('Покажь бекпак клиента')
uo.addobject('klient')
while uo.targeting()
wait(300)
wend
UO.UseObject('klient')
wait(1000)
while uo.skillval('Stealing',1) < 1000
i=i+1
if i>=50 and uo.count('0x097B') then
uo.usetype('0x097B')
wait(1000)
i=0
endif
cheklag()
UO.FindType('0x097B','-1','klient')
if UO.FindCount() then
UO.Print("Stealing...")
UO.WaitTargetObject('finditem')
UO.UseSkill('Stealing')
wait(5000)
endif
UO.FindType('0x097B','-1','backpack')
if UO.GetQuantity('finditem')>100 then
UO.MoveItem('finditem','100',Sunduk)
endif
wend
uo.closeuo()
endsub