Yoko

All sides of Injection
It is currently 2026-05-19 11:11:25

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2006-03-10 21:45:11 
Offline
User avatar

Joined: 2006-02-02 23:16:49
Posts: 25
Скрипт:


sub BS()

var tItem='0x1010' ;тип продукции

var idForge='0x400501E1' ;форж на котором плавить продукцию

UO.FindType(tItem,-1,'backpack')
if UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(idForge)
wait(1000)
end if
end sub




Как поставить чтоб он повторялся ну скажем 500 раз....

Да это плавка какого либо предмета... конкретно ключей у тинкра...

или лутше это условие пока подобных итэм не останеться в рюкзаке...


Top
   
PostPosted: 2006-03-10 22:51:26 
Offline

Joined: 2006-02-03 06:53:36
Posts: 64
Code:
sub BS()
    var tItem='0x1010' ;тип продукции
    var idForge='0x400501E1' ;форж на котором плавить продукцию

    uo.FindType(tItem, -1, 'backpack')
    while uo.FindCount()
        uo.UseObject(idForge)
        uo.WaitTargetObject('finditem')
        wait(1000)
        uo.FindType(tItem, -1, 'backpack')
    wend

end sub


Last edited by CFA on 2006-03-10 23:02:35, edited 1 time in total.

Top
   
PostPosted: 2006-03-10 22:59:23 
Offline
User avatar

Joined: 2006-02-02 23:16:49
Posts: 25
Спасибо


Top
   
PostPosted: 2006-03-10 23:04:48 
Offline

Joined: 2006-02-03 06:53:36
Posts: 64
Небольшая поправка - забыл сразу findtype поставить перед wend


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 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