Page 1 of 1

Auto kill Help!

Posted: 2015-02-28 06:13:53
by angel6929
Cycle in one place and kill strange to pick something up, pick up things script omitted;

At present, so write inj always collapse, don't know why;

We help have a look how to optimize your script;

Logical judgment fault automatically appear and kill - stealth - pick loops

Code: Select all

sub AutoKill()
   start:
   uo.set('finddistance','8')
   repeat   
      uo.findtype('0x003B','-1','ground')
      if uo.findcount()>0  then
         uo.attack('finditem')
         wait(2000)
      endif
   until UO.FindCount('finditem') < 1
   tohide()
   wait(1000)
   auto_loot()
   wait(60000)
   goto start
endsub 

Re: Auto kill Help!

Posted: 2015-02-28 07:23:49
by Mirage

Code: Select all

sub AutoKill()
	uo.set('finddistance','8')
	repeat   
		uo.findtype('0x003B','-1','ground')
		if uo.findcount()>0  then
			uo.attack('finditem')
			repeat
				wait(100)
			until uo.dead() or uo.GetX('finditem')==0
		else
			tohide()
			wait(1000)
			auto_loot()
			wait(1000)
		endif
		wait(1000)
	until uo.dead()
endsub