Yoko

All sides of Injection
It is currently 2025-11-11 16:01:05

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Лут хелп
PostPosted: 2007-03-22 22:12:10 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Лутает тот контейнер куда прицел ткнеш. 1 проблема кучи перекидывает по 1 предмету. Тоесть 100 гп будет несколько минут перебрасывать по 1 гп.

Code:
sub Loot() 
UO.Print('Что лутать?')
UO.Exec('addobject kon')
while UO.Targeting()
wait(100)
wend
UO.UseObject('kon')
UO.FindType(-1,'-1','kon')
If UO.FindCount() > 0 then
repeat
UO.MoveItem('finditem', '1')
wait(100)
UO.FindType(-1,'-1','kon')
until not UO.FindCount()
UO.Print('Закончили...')
else
UO.Print('А кидать то нечего...')
endif
end sub

_________________
Шард Антарес
Ururu


Top
   
 Post subject:
PostPosted: 2007-03-23 17:34:23 
Offline

Joined: 2006-03-10 00:19:11
Posts: 265
Location: http://drw.ru/
нахрена UO.UseObject('kon') ?

и какого хрена оно должо не по 1 перекидывать если стоит:
UO.MoveItem('finditem', '1')


Top
   
 Post subject:
PostPosted: 2007-03-23 19:09:05 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Нужно так?
Code:
UO.MoveItem('finditem', '-1')

_________________
Шард Антарес

Ururu


Top
   
 Post subject:
PostPosted: 2007-03-24 00:01:56 
Offline

Joined: 2006-03-10 00:19:11
Posts: 265
Location: http://drw.ru/
можно так, а можно вообще не указывать


Top
   
 Post subject:
PostPosted: 2007-03-24 00:40:32 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Верно? Да а юзе объект чтоб сначало открыл контейнер, или ненадо?

Code:
sub Loot() 
UO.Print('Что лутать?')
UO.Exec('addobject kon')
while UO.Targeting()
wait(100)
wend
UO.UseObject('kon')
UO.FindType(-1,'-1','kon')
If UO.FindCount() > 0 then
repeat
UO.MoveItem('finditem')
wait(100)
UO.FindType(-1,'-1','kon')
until not UO.FindCount()
UO.Print('Закончили...')
else
UO.Print('А кидать то нечего...')
endif
end sub

_________________
Шард Антарес

Ururu


Top
   
 Post subject:
PostPosted: 2007-03-24 01:03:17 
Offline

Joined: 2006-03-10 00:19:11
Posts: 265
Location: http://drw.ru/
так.
а да я сначала не замет что ты указываешь контейнер из которого лутать, ну тогда надо юзобжект...


Top
   
 Post subject:
PostPosted: 2007-03-24 01:10:50 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
СПАСИБО !!!
Тест прошел на ура !!!

_________________
Шард Антарес

Ururu


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited