Yoko

All sides of Injection
It is currently 2026-03-05 17:08:05

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2009-02-19 11:48:00 
Offline
User avatar

Joined: 2008-10-29 17:27:20
Posts: 75
Sub vqpara()
Var Type='0x0E7D'
Uo.FindType(Type)
if Uo.FindCount() > 0 Then
Uo.UseObject('finditem')
else
Uo.Print("Nema")
endif
Endsub

Собстно вопрос, как сделать в скрипте перечисление тайпов, тоесть у меня объект один но у него 2 тайпа, которые меняются постоянно, как вписать в скрипт 2 тайпа, один у меня уже написан а каким образом вставить второй тайп? через запятую не получается.... подскажите плзх нубу как сделать перечисление =)
Вот второй тайп '0x09AA'


Top
   
 Post subject:
PostPosted: 2009-02-19 12:05:47 
Offline
User avatar

Joined: 2008-09-12 05:07:34
Posts: 247
Code:
Sub vqpara() 
     if Uo.Count('0x0E7D') Then
            Uo.Usetype('0x0E7D')
     else
            if uo.count('0x09AA') then
                   uo.usetype('0x09AA')
            else
                   Uo.Print("Nema")
            endif
     endif
Endsub


Last edited by Millerbeer on 2009-02-19 12:09:55, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-02-19 12:07:30 
Offline
User avatar

Joined: 2008-10-29 17:27:20
Posts: 75
Спасибо тебе большое)
Даже не ожидал, что получу ответ за 10 минут =)


Top
   
 Post subject:
PostPosted: 2009-02-19 15:14:42 
Offline
User avatar

Joined: 2008-10-29 17:27:20
Posts: 75
А еще вопрос, как это сделать автоатическим, например, если в журнале "фраза", тогда он кликает..


Top
   
 Post subject:
PostPosted: 2009-02-25 16:53:31 
Offline
User avatar

Joined: 2008-09-12 05:07:34
Posts: 247
Code:
Sub vqpara() 
  while not uo.dead()
   if uo.injournal('твоя фраза') then
     if Uo.Count('0x0E7D') Then
            Uo.Usetype('0x0E7D')
     else
            if uo.count('0x09AA') then
                   uo.usetype('0x09AA')
            else
                   Uo.Print("Nema")
            endif
     endif
     uo.deletejournal()
   else
       wait(1000)
   endif
  wend
Endsub


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