Yoko

All sides of Injection
It is currently 2025-11-13 11:35:44

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: 2006-07-29 10:58:31 
Offline
User avatar

Joined: 2006-07-28 00:21:50
Posts: 76
POMOGITE POZALUJSTO ISPRAVITJ 18 STROKU < DeleteJournal(ms0) , pokazivaet Error

Code:
sub FishingAround() 
   VAR Ms0 = "You can't see"         ; ?? ????? ????? ?????
   VAR Ms1 = "You can't fish under the ship"   ; ?? ????? ?????? ?????
   VAR Ms2 = "You are too far away"      ; ??????
   VAR Ms3 = "There are no fish here"      ; ????????? ???
   VAR Ms4 = "You fish a while, but fail to catch anything"   ; ????
   VAR Ms5 = "You pull out"         ; ?????? ???-??
   VAR Ms6 = "You fail to catch anything."      ; ?? ????? ?????? ?????
   VAR k, t, v, x, y
   VAR MaxTime = 800
   For y = -4 To 4
      For x = -4 To 4
         k = 0
         repeat
            If UO.Dead() Then
               return
            Endif
            DeleteJournal(ms0)
            DeleteJournal(ms1)
            DeleteJournal(ms2)
            DeleteJournal(ms3)
            DeleteJournal(ms4)
            DeleteJournal(ms5)
            DeleteJournal(ms6)
            t = UO.Timer()
            If UO.Waiting() Then
               UO.CancelTarget()
            Endif
            UO.WaitTargetTile( '0', STR( UO.GetX() + x ), STR( UO.GetY() + y ), '251')
            UO.UseObject( UO.GetSerial( UO.ObjAtLayer( 'Lhand' ) ) )
            repeat
               wait(100)
            until UO.InJournal(ms0) OR UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR UO.InJournal(ms4) OR UO.InJournal(ms5) OR UO.InJournal(ms6) OR ((t + MaxTime) < UO.Timer())
            k = k + 1
            If UO.InJournal(ms5) Then
               k = 0
            Endif
            If UO.Dead() Then
               return
            Endif
            If UO.InJournal( ms5 ) Then
               GetResultFish()
            Endif
         until UO.InJournal(ms0) OR UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR (k > 6)
         If UO.Dead() Then
            return
         Endif
      Next
   Next
endsub

Sub GetResultFish()
   ; ------- ???? -------
   DIM Fish[18]
   Fish[0]  = '0x170B'   ; ??????
   Fish[1]  = '0x170F'   ; ?????
   Fish[2]  = '0x170D'   ; ????????
   Fish[3]  = '0x1711'   ; ??????
   Fish[4]  = '0x09CC'   ; ??? ???? 1
   Fish[5]  = '0x09CD'   ; ??? ???? 2
   Fish[6]  = '0x09CE'   ; ??? ???? 3
   Fish[7]  = '0x09CF'   ; ??? ???? 4
   Fish[8]  = '0x0FC4'   ; ???????, ??? 1
   Fish[9]  = '0x0FC5'   ; ???????, ??? 2
   Fish[10] = '0x0FC6'   ; ???????, ??? 3
   Fish[11] = '0x0FC7'   ; ???????, ??? 4
   Fish[12] = '0x0FC8'   ; ???????, ??? 5
   Fish[13] = '0x0FC9'   ; ???????, ??? 6
   Fish[14] = '0x0FCA'   ; ???????, ??? 7
   Fish[15] = '0x0FCB'   ; ???????, ??? 8
   Fish[16] = '0x0FCC'   ; ???????, ??? 9
   Fish[17] = '0x14ED'   ; ?????
   VAR Razmer = 17      ; ?????? ??????? - 1
   VAR dagger = 'type '
   VAR i
   ; ???? ??? ? ??? ???????? ??? ??????, ???? ???? ??????????????
   ; ? ?????????? ? ????. ????? ?????? ?????? ??????? ?????? ? ??????.
   For i = 0 To Razmer
      UO.FindType( Fish[i], '-1', 'ground' )
      If UO.FindCount() > 0 Then
            UO.WaitTargetObject( 'finditem' )
            UO.UseType( dagger )
            Wait( 300 )
      Endif
   next
endsub


Top
   
 
 Post subject:
PostPosted: 2006-07-29 12:14:56 
Offline
Junior Expert
User avatar

Joined: 2004-04-12 20:26:41
Posts: 150
потому что надо писать UO.Deletejournal(), ну то есть уо добавь А вообще почему удаляешь конкретные мессаги не проще вообще удалять, одной строчкой?


Top
   
 
 Post subject:
PostPosted: 2006-07-29 13:01:18 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Еще раз увижу флуд темами,-буду без всяких размышлений удалять.


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited