Yoko

All sides of Injection
It is currently 2025-11-04 22:16:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: я кретин
PostPosted: 2008-08-05 16:58:09 
Offline

Joined: 2007-06-11 22:57:49
Posts: 118
помогите пожалуйсто.вот скриптик на кузнеца он куйот и плавит а когда кончаются инги он берёт из сундучка.но проблема заключаетца в том что он грабает инги из сундучка слишком часто и получаетца перевес и всё падает на пол и он ничего не куёт.скажите пожалуйста в чом может быть проблема?
Code:
sub BlacksmithyIM() 

VAR Exit=0, LastTimer
while Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.WaitMenu('Blacksmithing','Weapons','Weapons','Swords & Blades','Swords & Blades','cutlass') ;Что куем
UO.UseType(0x1BEF) ;Инги айрона

while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(500)
wend

If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;Время создания дагера
EndIf

UO.FindType('0x1440',-1,'backpack')
wait(500)

If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(0x401998E0) ; Форж
Endif

UO.FindType('0x1BEF',-1,'backpack')
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x1BEF','0x0000','0x4024F5B5') ;Cундук с ингами
wait(1000)
UO.Grab('90','finditem')
Endif
wait(1000)
wend
end sub


Top
   
 Post subject:
PostPosted: 2008-08-05 17:58:46 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
В том что он не видит айрон вещи, когда указываешь цвет '-1'.

Code:
UO.FindType('0x1BEF',-1,'backpack') 
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x1BEF','0x0000','0x4024F5B5') ;Cундук с ингами
wait(1000)
UO.Grab('90','finditem')
Endif


Вот конструкция отвечающая за добор ингов. Измени поиск в бекпеке на цвет 0х0000.


Top
   
 Post subject:
PostPosted: 2008-08-09 15:24:09 
Offline

Joined: 2007-06-11 22:57:49
Posts: 118
Scripts Writer спаасиб! всё заработала:) как хорошо что есть люди которые помогают:)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


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