Yoko

All sides of Injection
It is currently 2025-12-11 21:07:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2009-03-20 13:30:25 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Помогите подправить скрипт. Почему то не находит никого.

Code:
sub AutoTarget()
var i
   uo.ignore('self')
   UO.Set('finddistance', '20')
   dim m[2]
   m[0]='0x0190'
   m[1]='0x0191'
   repeat
         for i = 0 to 1
            uo.findtype(m[i],-1,'ground')
            wait(50)
         next
   until UO.GetNotoriety('finditem')>2
   wait(50)
   UO.addobject('Enemy',uo.getserial('finditem'))
endsub


Top
   
 Post subject:
PostPosted: 2009-03-20 15:53:12 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
и все же не пойму почему ничего не ищщет.
print везде "0" выдает...

Code:
sub AutoTarget()
var i
   uo.ignore('self')
   UO.Set('finddistance', '20')
   dim m[2]
   m[0]='0x0190'
   m[1]='0x0191'
           for i = 0 to 1
         uo.findtype(m[i],-1,'ground')
         next
      UO.Print("test:" +str('finditem'))
   if uo.getnotoriety('finditem')>2 then
      UO.addobject('Enemy',uo.getserial('finditem'))
      UO.Print("nashli:" +str('finditem'))
   else
      UO.Print("ne nashol:" +str('finditem'))
      UO.Ignore('finditem')
   endif
endsub


Top
   
 Post subject:
PostPosted: 2009-03-20 16:30:58 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Code:
sub AutoTarget()
   var i
   uo.ignore('self')
   UO.Set('finddistance', '20')
   dim m[2]
   m[0]='0x0190'
   m[1]='0x0191'
   for i = 0 to 1
      uo.findtype(m[i],-1,'ground')
      UO.Print("test:" +str('finditem'))
      if uo.getnotoriety('finditem')>2 then
         UO.addobject('Enemy',uo.getserial('finditem'))
         UO.Print("nashli:" +str('finditem'))
      else
         UO.Print("ne nashol:" +str('finditem'))
         UO.Ignore('finditem')
      endif
   next
endsub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 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