script for target horse enemy..help

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
virussino
Posts: 22
Joined: 2004-10-02 14:37:13

script for target horse enemy..help

Post 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?
Leo
Expert!
Posts: 791
Joined: 2005-01-15 19:15:05
Location: Dragon World
Contact:

Post 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
Post Reply