Yoko

All sides of Injection
It is currently 2024-03-29 08:26:57

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Stealing
PostPosted: 2009-04-03 12:45:29 
Offline

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

Code:
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


Top
   
 Post subject:
PostPosted: 2009-04-03 19:12:19 
Offline
User avatar

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


Top
   
 Post subject:
PostPosted: 2009-04-03 21:02:51 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-04-03 23:58:34 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
Code:
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


Top
   
 Post subject:
PostPosted: 2009-04-04 19:36:34 
Offline

Joined: 2009-03-16 11:51:21
Posts: 56
Мужики огромное спасибо за Вашу помощь, все прекрасно работает теперь! :wink:


Top
   
 Post subject: Re: Stealing
PostPosted: 2014-02-26 14:50:59 
Offline
User avatar

Joined: 2012-12-22 19:14:29
Posts: 125
А как сделать чтоб он по одной вытаскивал а то у меня всю кучу тырит


Top
   
 Post subject: Re: Stealing
PostPosted: 2014-02-26 14:54:44 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
UO.MoveItem('finditem','100',Sunduk) 100 это сколько брать, если нужно 1 меняй 100 на 1

_________________
CodeSweeper


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Google [Bot] and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited