Yoko

All sides of Injection
It is currently 2025-10-20 10:15:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: кукла
PostPosted: 2009-02-25 19:28:01 
Offline

Joined: 2009-02-23 15:22:46
Posts: 19
Народ помогите плизз нужен скрипт который будет просто стоять и бить куклю с выбраным оружием в руке


Top
   
 Post subject: Re: кукла
PostPosted: 2009-02-25 20:08:27 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
azonik wrote:
Народ помогите плизз нужен скрипт который будет просто стоять и бить куклю с выбраным оружием в руке

Code:
sub kukl()
   VAR kukl = '0x1070' #Тип куклы
   uo.Exec('terminate Reconnector')
   wait(1000)
   uo.Exec('exec Reconnector')
   wait(1000)
   while not uo.dead()
      UO.UseFromGround(kukl)
      wait(5000)
   wend
end sub

Sub Reconnector()
   var ReconnectTime, RFlag
   ReconnectTime = '0'
   RFlag = 1
   Repeat
      While (uo.ObjAtLayer('Bpack') == '')
         if RFlag Then
            ReconnectTime = MakeTime()
            RFlag = 0
         endif
         Wait(70000) # WorldSave Protection
         uo.Say('')
         Wait(5000)
         uo.Say('')
         Wait(5000)
         uo.Say('')
         Wait(5000)
         uo.LDblClick(357,164)
         uo.LClick(616,459)
         Wait(5000)
      Wend
      Wait(3000)
      if (RFlag == 0) and (ReconnectTime <> '0') Then
         uo.TextOpen()
         uo.TextPrint('Disconnected & Reconnected @ '+ReconnectTime)
         uo.useobject('self')
         wait(2000)
         uo.useobject('backpack')
         wait(2000)
         uo.Exec('terminate kukl')
         wait(5000)
         uo.Exec('exec kukl')
         wait(5000)
         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


Top
   
 Post subject:
PostPosted: 2009-02-25 20:36:10 
Offline

Joined: 2009-02-23 15:22:46
Posts: 19
спасибо большое


Top
   
 Post subject:
PostPosted: 2009-02-25 21:21:05 
Offline
User avatar

Joined: 2005-07-06 18:17:24
Posts: 228
Code:
last object na uoloop


Last edited by Bangbuss on 2009-02-26 12:15:03, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2009-02-26 07:10:32 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Если кукла не одна то стоит дать команду: ,set finddistance 1


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