lootscript problem
Posted: 2006-04-04 06:30:38
sry for not knowin russian
sub Loot()
VAR i, n
VAR w = 500 ; the waiting time after moving an item
VAR razmer = 5
DIM Loot[5]
Loot[1] = '0x143E'
Loot[2] = '0x1406'
Loot[3] = '0x1515'
Loot[4] = '0x1BC3'
Loot[5] = '0x204E'
if uo.getdistance( 'lastcorpse' ) <4 then
uo.deletejournal()
repeat
uo.findtype( '-1', '-1', 'lastcorpse' )
n = 0
for i = 1 to razmer
if uo.getgraphic( 'finditem' ) == Loot[i] then
uo.moveitem( 'finditem', 'all', 'my' )
wait(w)
if uo.injournal( 'UNSP' ) then
wait(w*3)
endif
n = 1
goto nextitem
endif
next
if n == 0 then
uo.ignore( 'finditem' )
endif
nextitem:
until uo.findcount() == 0
else
uo.print( 'The corpse is too far!' )
endif
endsub
it says cant find item or something. any suggestions?
sub Loot()
VAR i, n
VAR w = 500 ; the waiting time after moving an item
VAR razmer = 5
DIM Loot[5]
Loot[1] = '0x143E'
Loot[2] = '0x1406'
Loot[3] = '0x1515'
Loot[4] = '0x1BC3'
Loot[5] = '0x204E'
if uo.getdistance( 'lastcorpse' ) <4 then
uo.deletejournal()
repeat
uo.findtype( '-1', '-1', 'lastcorpse' )
n = 0
for i = 1 to razmer
if uo.getgraphic( 'finditem' ) == Loot[i] then
uo.moveitem( 'finditem', 'all', 'my' )
wait(w)
if uo.injournal( 'UNSP' ) then
wait(w*3)
endif
n = 1
goto nextitem
endif
next
if n == 0 then
uo.ignore( 'finditem' )
endif
nextitem:
until uo.findcount() == 0
else
uo.print( 'The corpse is too far!' )
endif
endsub
it says cant find item or something. any suggestions?