Yoko
http://forum.yoko.com.ua/

script for target horse enemy..help
http://forum.yoko.com.ua/viewtopic.php?f=20&t=4794
Page 1 of 1

Author:  virussino [ 2005-08-13 14:13:34 ]
Post subject:  script for target horse enemy..help

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

Author:  Leo [ 2005-08-13 14:33:52 ]
Post subject: 

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/