Посмотрите, что тут не так, вроде бы всё перепробывал...
Code: Select all
sub killelem()
VAR Count, LastTimer, Elem, Vortex
uo.exec('usetype 0x0f0e 0x0631')
wait(3000)
UO.FindType('0x0010',-1,'ground')
Elem=UO.GetSerial('finditem')
repeat
if UO.mana > 25 then
Uo.print("Маны мильён ещё!")
else
wait(12000)
uo.exec('usetype 0x0f0e 0x09DF')
endif
wait(300)
uo.exec('usetype 0x1F66')
uo.waittargetobject('self')
wait(20000)
until UO.IsNPC(Elem)==0
wait(3000)
UO.FindType('0x000D',-1,'ground')
Vortex=UO.GetSerial('finditem')
repeat
if UO.mana > 25 then
Uo.print("Маны мильён ещё!")
else
uo.exec('usetype 0x0f0e 0x09DF')
wait(15000)
endif
uo.DeleteJournal()
wait(300)
uo.exec('usetype 0x1F62')
uo.waittargetobject('self')
wait(7000)
until UO.IsNPC(Vortex)==0
wait(3000)
# собираем руду и копаем дальше #
UO.SetReceivingContainer('backpack')
UO.FindType('0x19B9',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(2000)
endif
UO.FindType('0x19B7',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(2000)
endif
UO.FindType('0x19BA',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(2000)
endif
UO.FindType('0x19B8',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(2000)
endif
UO.FindType('0x0EED',-1,'ground')
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(2000)
endif
UO.UnSetReceivingContainer()
endif
wait(60000)
end sub