hi guys, i need an autoloot, with specific items in loot .. i have put em into an array, that work without problems ;> .. but i wanna have my autoloot script, that if the array is finished, the script loot other stuff from corpse and dont stop to loot :/
i`ll paste my actually craft ;D (dont be mad with me, i`m not realy an injection scripter ;D)
and i wanna have it with button spam ^^ .. so that i`ve to press the button 10 times for 10 loots etc. :> i hope you understand me ^^
Code:
sub Loot()
var i, n, box, tempname
Dim A[24]
A[1] = 0x13BA ;viking sword
A[2] = 0x1ECD ;disc
A[3] = 0x204E ;deadhshroud
A[4] = 0x143C ;war hammer
A[5] = 0x1406 ;mace
A[6] = 0x1407 ;mace(turned)
A[7] = 0x13FE ;Katana
A[8] = 0x13FF ;Katana(turned)
A[9] = 0x0000 ;chaos shield
i = 9
box = 0x4004AB4D
FOR n=1 TO 9
uo.findtype(A[n],"-1","lastcontainer")
if (uo.findcount()>0) and (uo.getdistance("lastcontainer")<4)then
UO.grab(0,"finditem")
tempname = UO.GetName( 'finditem' )
Uo.moveitem("finditem","0","box")
uo.print("Looted "+str(tempname))
else
UO.print("Nothing there for loot")
end if
Wait(3000)
NEXT
end sub
greetz and thx for help
your potatofreak ;D