Yoko

All sides of Injection
It is currently 2025-11-05 19:12:33

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2004-06-19 15:59:36 
Offline

Joined: 2004-06-19 15:57:14
Posts: 3
Поиск по форума и архиву не дал результатов.


Top
   
PostPosted: 2004-06-19 18:32:01 
Offline
User avatar

Joined: 2004-04-06 12:27:32
Posts: 118
Code:
sub Reconnector() 
    var ReconnectTime, RFlag
    ReconnectTime = '0'
    RFlag = 1
    Repeat
          While (UO.ObjAtLayer('Bpack') == '')
                if RFlag Then
                   ReconnectTime = MakeTime()
                   RFlag = 0
                endif
                Wait(20000) # WorldSave Protection
                UO.Say('')
                Wait(3000)
                UO.Say('')
                Wait(3000)
                UO.Say('')
                Wait(3000)
                UO.LDblClick(357,164)
                UO.LClick(616,459)
                Wait(3000)       
          WEnd
          Wait(3000)
          if (RFlag == 0) and (ReconnectTime <> '0') Then
             UO.Exec('terminate main')
             UO.Exec('exec main')
             UO.TextOpen()
             UO.TextPrint('Disconnected & Reconnected @ '+ReconnectTime)
             RFlag = 1
             ReconnectTime = '0'
          endif
    Until false
end sub

sub MakeTime()
   VAR D, T, Ret, i
   Ret = STR(UO.Time())
   T = ""
   For i = 0 To Len(Ret)
      T = Ret[Len(Ret)-i] + T
      If (I == 2) OR (I == 4) Then
         T = ":" + T
      EndIf
   Next
   Ret = STR(UO.Date())
   D = ""
   For i = 0 To Len(Ret)
      D = Ret[Len(Ret)-i] + D
      If (I == 2) OR (I == 4) Then
         D = "." + D
      EndIf
   Next   
   Ret = T + " @ " + D
   RETURN Ret
end sub


totus. (c)


Top
   
PostPosted: 2004-06-19 18:34:57 
Offline
User avatar

Joined: 2004-04-06 12:27:32
Posts: 118
А вот так его запускать
Code:
UO.TextOpen()
UO.TextPrint('Script Started: '+MakeTime())
UO.Exec('terminate Reconnector')
UO.Exec('exec Reconnector')


Top
   
 Post subject:
PostPosted: 2004-06-20 07:52:13 
Offline

Joined: 2004-06-19 15:57:14
Posts: 3
Спасибо огромное, вроде даже работает =)


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 10 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited