Page 1 of 1

script for target horse enemy..help

Posted: 2005-08-13 14:13:34
by virussino

Code: Select all

sub segalallo()
   uo.ignorereset()
   uo.set('finddistance','8')
   var cavalcature=12
   dim cavallist[13]
   cavallist[0]="0x007a"#unicorno
   cavallist[1]="0x00e2"#cavallobianco
   cavallist[2]="0x00CC"#cavallomarrone
   cavallist[3]="0x0317"#blatta
   cavallist[4]="0x031a"#swamp
   cavallist[5]="0x031f"#swamp bardato
   cavallist[6]="0x00e4"#cavallotan
   cavallist[7]="0x00b3"#nightnero
   cavallist[8]="0x00c8"#cavallobeige
   cavallist[9]="0x0074"#cavallobeige
   cavallist[10]="0x0078"#cavallominax
   cavallist[11]="0x0076"#cavallotb
   cavallist[12]="0x0079"#cavallosl
   
   for var i = 0 to cavalcature
   
   uo.findtype(cavallist[i],"-1","ground")
   
   if uo.findcount()>0 then
      if uo.getnotoriety("finditem")==5 then
         uo.attack("finditem")
         return
      endif
      uo.ignore("finditem")
   endif
   next
endsub



this is my macro..
it does not work NEARLY never

why? track world item is on :|
other way in order to make this macro?

Posted: 2005-08-13 14:33:52
by Leo
Try this:

Code: Select all

sub segalallo() 
   var i
   uo.ignorereset()
   uo.set('finddistance','8')
   var cavalcature=12
   dim cavallist[13]
   cavallist[0]="0x007a"#unicorno
   cavallist[1]="0x00e2"#cavallobianco
   cavallist[2]="0x00CC"#cavallomarrone
   cavallist[3]="0x0317"#blatta
   cavallist[4]="0x031a"#swamp
   cavallist[5]="0x031f"#swamp bardato
   cavallist[6]="0x00e4"#cavallotan
   cavallist[7]="0x00b3"#nightnero
   cavallist[8]="0x00c8"#cavallobeige
   cavallist[9]="0x0074"#cavallobeige
   cavallist[10]="0x0078"#cavallominax
   cavallist[11]="0x0076"#cavallotb
   cavallist[12]="0x0079"#cavallosl
   
   for i = 0 to cavalcature
   
   uo.findtype(cavallist[i],"-1","ground")
   
   if uo.findcount()>0 then
      if uo.getnotoriety("finditem")==5 then
         uo.attack("finditem")
         return
      endif
      uo.ignore("finditem")
   endif
   next
endsub