

И есть ли какаета команда которая заставляет клиент грузить ЦП на 100%? если есть то какая...
взаранее спасибо.
Moderators: Murderator+, Murderator
Code: Select all
sub Loot()
uo.WaitTargetObject('lastcorpse')
wait(500)
uo.FindType('-1','-1','lastcorpse')
while uo.FindCount()
uo.FindType('-1','-1','lastcorpse')
uo.moveitem('finditem','-1','backpack')
wait(500)
wend
end sub
Code: Select all
sub Loot()
uo.WaitTargetObject('lastcorpse')
wait(500)
uo.FindType('тип бабла','-1','lastcorpse') #командой ,info узнай тип бабла и впиши сюда
while uo.FindCount()
uo.FindType('тип бабла','-1','lastcorpse') #и тут впиши
uo.moveitem('finditem','-1','backpack')
wait(500)
wend
end sub
predator-uo wrote:И есть ли какаета команда которая заставляет клиент грузить ЦП на 100%?
Code: Select all
sub ProseccorNa100()
while TRUE
If UO.Dead() Then
return
Endif
wend
endsub
predator-uo wrote:спасибо, всё работает, но я сделал в цикл:
sub Loot()
end sub
Code: Select all
sub Loot()
While not uo.dead()
uo.FindType('0x0EED','-1','lastcorpse')
if uo.findcount() then
uo.moveitem('finditem','-1','backpack')
wait(500)
end if
wait(300)
wend
end sub
Code: Select all
sub Loot()
While not uo.dead()
uo.FindType('0x0EED','-1','lastcontainer')
if uo.findcount() and uo.GetSerial('lastcontainer')<>uo.GetSerial('backpack') and uo.ContainerOf('lastcontainer')<>GetSerial('backpack') then
uo.moveitem('finditem','-1','backpack')
wait(500)
end if
wait(300)
wend
end sub
Code: Select all
sub Loot()
While not uo.dead()
if uo.GetDistance('lastcorpse')<2 then
uo.FindType('0x0EED','-1','lastcorpse')
if uo.findcount() then
uo.moveitem('finditem','-1','backpack')
wait(500)
end if
endif
wait(300)
wend
end sub
SLAK wrote:predator-uo wrote:спасибо, всё работает, но я сделал в цикл:
sub Loot()
end subCode: Select all
sub Loot()
While not uo.dead()
uo.FindType('0x0EED','-1','lastcorpse')
if uo.findcount() then
uo.moveitem('finditem','-1','backpack')
wait(500)
end if
wait(300)
wend
end sub
Постоянная рекурсия скрипта ведёт к неприятностям!!!
Ex-Brodyaga wrote:И где же там рекурсия?
predator-uo wrote:спасибо, всё работает, но я сделал в цикл:
sub Loot()
uo.WaitTargetObject('lastcorpse')
wait(500)
uo.FindType('0x0EED','-1','lastcorpse')
while uo.FindCount()
uo.FindType('0x0EED','-1','lastcorpse')
uo.moveitem('finditem','-1','backpack')
wait(500)
wend
wait(300)
Loot()
end sub
что нужно теперь сделать, чтобы не писалося в левой части экрана:
Items found: 0
Auto target cancelled