Yoko

All sides of Injection
It is currently 2025-12-30 06:48:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Ignore
PostPosted: 2009-06-02 10:52:41 
Offline
User avatar

Joined: 2006-12-18 11:33:01
Posts: 44
Добрый день, помогите зделать чтобы при msg6
он игнорил Animal , чтото я копался но правельно зделать не получается.
Code:
      if UO.InJournal(msg6) then
........
end if

Code:
var msg1 = "It seems to accept you"
var msg2 = "You fail to tame the"
var msg3 = "Yoa are too far away"
var msg4 = "is already tame"
var msg5 = "You can't see the target"
var msg6 = "cannot be tamed"
   UO.Print('Приручаем '+UO.GetName(Animal)+'...')
   GotoXY(UO.GetX(Animal),UO.GetY(Animal),2)
   DeleteJournal(msg1)
   DeleteJournal(msg2)
   DeleteJournal(msg3)
   DeleteJournal(msg4)
   DeleteJournal(msg5)
   DeleteJournal(msg6)

   While not UO.InJournal(msg1) and not UO.InJournal(msg4) and not UO.InJournal(msg5) and not UO.InJournal(msg6)
      UO.WarMode(0)
      UO.WaitTargetObject(Animal)
     uo.usetype('0x13F8')
 While not UO.InJournal(msg1) and not UO.InJournal(msg2) and not UO.InJournal(msg3) and not UO.InJournal(msg4) and not UO.InJournal(msg5)
         wait(100)
      wend
      if UO.InJournal(msg2) or UO.InJournal(msg3) then
         GotoXY(UO.GetX(Animal),UO.GetY(Animal),2)
      endif
   


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 11:08:18 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
var msg1 = "It seems to accept you"
var msg2 = "You fail to tame the"
var msg3 = "Yoa are too far away"
var msg4 = "is already tame"
var msg5 = "You can't see the target"
var msg6 = "cannot be tamed"
   UO.Print('Приручаем '+UO.GetName(Animal)+'...')
   GotoXY(UO.GetX(Animal),UO.GetY(Animal),2)
   DeleteJournal(msg1)
   DeleteJournal(msg2)
   DeleteJournal(msg3)
   DeleteJournal(msg4)
   DeleteJournal(msg5)
   DeleteJournal(msg6)

   While not UO.InJournal(msg1) and not UO.InJournal(msg4) and not UO.InJournal(msg5) and not UO.InJournal(msg6)
      UO.WarMode(0)
      UO.WaitTargetObject(Animal)
     uo.usetype('0x13F8')
if UO.InJournal(msg6) then
uo.ignore('Animal')
end if
 While not UO.InJournal(msg1) and not UO.InJournal(msg2) and not UO.InJournal(msg3) and not UO.InJournal(msg4) and not UO.InJournal(msg5)
         wait(100)
      wend
      if UO.InJournal(msg2) or UO.InJournal(msg3) then
         GotoXY(UO.GetX(Animal),UO.GetY(Animal),2)
      endif
   


дикий скрипт :D


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 11:16:17 
Offline
User avatar

Joined: 2006-12-18 11:33:01
Posts: 44
Mirage wrote:
дикий скрипт :D

Где ты видиш тут скрипт ? Это кусок.


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 12:23:59 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
я вижу дикость в таком использовании циклов и проверок журналов.

Можно кстати делать так
Code:
var msg1 = "accept|fail to tame|too far away|already|see the target|cannot" 
DeleteJournal(msg1)
While not UO.InJournal(msg1)


но все равно таким образом тут это использовать... :roll:


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 12:36:27 
Offline
User avatar

Joined: 2006-11-14 16:19:03
Posts: 257
Mirage wrote:
я вижу дикость в таком использовании циклов и проверок журналов.

Можно кстати делать так
Code:
var msg1 = "accept|fail to tame|too far away|already|see the target|cannot" 
DeleteJournal(msg1)
While not UO.InJournal(msg1)


но все равно таким образом тут это использовать... :roll:

Ну можно ? Токо это сути не меняет.


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 12:54:45 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
666||TORCHKI wrote:
Токо это сути не меняет.


эстетичнее 8)
Сократится половина строк в скрипте.

в проверке на "видит не видит" можно добавить Uo.GetDistance( Animal )
проерка на посох (если есть посох - использовать)
у второго вайла нет делетжурнала - так может слететь.
И разве тамипосох не '0xe81' - '0xe82'?


Top
   
 Post subject: Re: Ignore
PostPosted: 2009-06-02 13:15:14 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Mirage wrote:
И разве тамипосох не '0xe81' - '0xe82'?

И то и другое, он вертится, у него 2 типа.


Top
   
 Post subject:
PostPosted: 2009-06-02 13:40:38 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
в скрипте просто
uo.usetype('0x13F8')


Top
   
 Post subject:
PostPosted: 2009-06-02 13:44:38 
Offline
User avatar

Joined: 2006-11-14 16:19:03
Posts: 257
Mirage wrote:
в скрипте просто
uo.usetype('0x13F8')
Всё правельно это палка )


Last edited by 666||TORCHKI on 2009-06-02 16:11:34, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-06-02 15:56:59 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Вроде разобрались, щас Торчок тестит, надеюсь отпишется по окончании тестинга.


Top
   
 Post subject:
PostPosted: 2009-06-02 16:12:15 
Offline
User avatar

Joined: 2006-11-14 16:19:03
Posts: 257
Kynep wrote:
Вроде разобрались, щас Торчок тестит, надеюсь отпишется по окончании тестинга.
Да всё норма ! По типам надо было зделать уже давно )


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] 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