Yoko

All sides of Injection
It is currently 2026-02-07 08:09:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2009-02-10 10:34:19 
Offline

Joined: 2009-02-10 10:18:14
Posts: 10
Такс... Начну =)
Я использую скрипт ВЕТЕРАНа на mining. У него используется крика как объект. Мне необходимо сделать так чтобы скрипт в паке искал предмет по его типу. и конечно же использовал... Но вот беда... у кирки два типа.. 0х0е85 и 0х0е86. Вот кусочек кода
Code:
 UO.Print("Êîïàåì â êîîðäèíàòàõ: "+str(mx-i)+" "+str(my-j))
            while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock")
                UO.DeleteJournal()
                if uo.waiting() then
                    uo.canceltarget()
                endif
                UO.Waittargettile("1341", str(i), str(j), str(mz))
              [b]  UO.Useobject("Shovel")[/b]
                while not UO.InJournal("You put") and not UO.InJournal("heavy") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in rock")
                    wait (500)
                wend

Я правил вот на это:
Code:
uo.usetype('0x0e85')

Но я не могу понять как сделать чтоб если скрипт ненаходит кирку типа 85 он пробовал кирку типа 86? Плз помогите....

--------------------------------------------

Вторая моя беда =)
После авторесса он летит домой... Там он должен проверить свой пак на наличие кирки..... Если нет, то он ищет в сундуке кирку по типу и берёт её себе....
Тут же вопрос... как сделать проверку на два типа? У меня он только на 85 тип проверяет.. Мне нужно что если его нет то он будет искать 86 тип. Буду очень благодарен.. Вот кусочек моего кода =)
Code:
    if UO.Count('0x0e85') < 1 then
UO.FindType('0x0e85', '0x0000', '0x40542ba4')
UO.Grab('1','finditem')
endif


Помогите пожалуйста =)


Top
   
 Post subject:
PostPosted: 2009-02-10 10:56:27 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Code:
UO.FindType('0x0E85')
If UO.FindCount() Then
   UO.UseObject('finditem')
Else
   UO.FindType('0x0E86')
   If UO.FindCount() Then
      UO.UseObject('finditem')
   Endif
Endif


Top
   
 Post subject:
PostPosted: 2009-02-10 16:22:46 
Offline

Joined: 2009-02-10 10:18:14
Posts: 10
Большое спасибо!!!!!!

Немного по другому сделал... Всё работает на ура =)))


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 7 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