Yoko

All sides of Injection
It is currently 2025-11-12 04:03:18

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2007-02-19 02:40:35 
Offline

Joined: 2007-02-19 02:37:30
Posts: 5
хочу что то типа
Code:
var T
dim object[5]
for i = 1 to 5
   uo.addobject('T')
   While UO.Targeting()
      Wait(100)
   Wend
 object[i] = T
next

но указаный обьект почему то не записываеться в массив


Top
   
PostPosted: 2007-02-19 03:13:10 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Хмм..Попробуй так.
Code:
sub main
var i
dim XZobject[5]
for i =0 to 4
   uo.addobject('T')
   While UO.Targeting()
      Wait(100)
   Wend
 XZobject[i] = uo.getserial('T')
next
endsub

зы: впадло проверять :)


Top
   
PostPosted: 2007-02-21 09:27:24 
Offline

Joined: 2007-02-19 02:37:30
Posts: 5
не так тож не получаеться


Top
   
 Post subject:
PostPosted: 2007-02-21 11:15:56 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
спросите у дестракта - кажется чтото такое я видел только непомню... думаю он знает где или что...

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2007-02-21 23:30:00 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Code:
sub main() 
var i
dim XZobject[5]
for i =0 to 4
   uo.addobject('T')
   While UO.Targeting()
      Wait(100)
   Wend
 XZobject[i] = uo.getserial('T')
 uo.textprint(XZobject[i])
next
uo.textopen()
endsub

Проверил, работает!


Top
   
 Post subject:
PostPosted: 2007-03-16 05:35:56 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
NMY wrote:
спросите у дестракта - кажется чтото такое я видел только непомню... думаю он знает где или что...

Чуть, что - сразу дестракт..

Code:
sub main()
   var i, N = 5 ; количество элементов в массиве
   DIM something[ val( str( N ) ) ]
   For i = 0 To N -1
      If uo.Targeting() Then
         uo.Say( Chr( 27 ) ) ; Убрать прицел из клиента
      End If
      If uo.Waiting() Then
         uo.CancelTarget() ; Убрать ловушку прицела
      End If
      uo.AddObject( "object of array" ) ; Добавить объект
      While uo.Targeting()
          Wait( 100 )
      WEnd
      something[ i ] = uo.GetSerial( "object of array" ) ; Записать серийник в массив
   Next
End Sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited