Stealing

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Hydromarine
Posts: 56
Joined: 2009-03-16 11:51:21

Stealing

Post by Hydromarine »

Запускаю вот этот скрипт на основном чаре, который пытается с левочара стырить котлетку рыбную.
Но скрипт не хочет тырить ее а появляется надпись в журнале Which item will you attempt to steal? You can steal only items.
Что за фигня?

Code: Select all

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
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

Code: Select all

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
Hydromarine
Posts: 56
Joined: 2009-03-16 11:51:21

Post by Hydromarine »

Тоже самое....
Только если я прицелом указываю не на левочара, а на котлету в его паке он ее тырит, а вот последующие не хочет и появляется надпись
Wich item will you attempt to steal? Trying to steal from yourself.
GAUHAR
Posts: 137
Joined: 2006-11-06 21:45:23

Post by GAUHAR »

Code: Select all

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
Hydromarine
Posts: 56
Joined: 2009-03-16 11:51:21

Post by Hydromarine »

Мужики огромное спасибо за Вашу помощь, все прекрасно работает теперь! :wink:
tyca7
Posts: 125
Joined: 2012-12-22 19:14:29
Contact:

Re: Stealing

Post by tyca7 »

А как сделать чтоб он по одной вытаскивал а то у меня всю кучу тырит
Incorrect User
Posts: 949
Joined: 2011-05-23 00:33:30

Re: Stealing

Post by Incorrect User »

UO.MoveItem('finditem','100',Sunduk) 100 это сколько брать, если нужно 1 меняй 100 на 1
Post Reply