Yoko

All sides of Injection
It is currently 2026-01-19 15:21:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Помогите
PostPosted: 2007-10-16 17:09:45 
Offline

Joined: 2006-05-31 15:38:05
Posts: 17
Этот скрипт для того чтобы ресать зверей в радеусе 2х клеток ели они там есть.... помоги исправить.. немоогу разобраться почему он использует только первое животное из масива, а вот на второе третье даже непроверяет ((( Что нетак?


Top
   
 Post subject:
PostPosted: 2007-10-16 17:12:57 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub res() 
Dim Regs[3]
Regs[0] = '0x007A'
Regs[1] = '0x0084'
Regs[2] = '0x006B'
Var i
for i = 0 to 2
UO.Set('finddistance','2')
uo.FindType(Regs[i],'-1','ground')
uo.waitTargetObject('finditem')
uo.useType('0x0E21')
wait(2500)
next
end sub


Top
   
 Post subject:
PostPosted: 2007-10-16 17:15:37 
Offline

Joined: 2006-05-31 15:38:05
Posts: 17
Я читал я не могу разобраться что то невыходит... помогите если нетрудно


Top
   
 Post subject:
PostPosted: 2007-10-16 18:11:01 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Я тебе кинул скрипт выше- не работает?


Top
   
 Post subject:
PostPosted: 2007-10-17 19:43:10 
Offline

Joined: 2006-05-31 15:38:05
Posts: 17
sub res()
Dim Regs[6]
Regs[0] = '0x007A' # Уникорн
Regs[1] = '0x0084' # Кирин
Regs[2] = '0x00F3' # Хири
Regs[3] = '0x00B2' # Найтмар
Regs[4] = '0x0317' # Жук
Regs[5] = '0x00E4' # Хорса
Var i
for i = 0 to 5
UO.Set('finddistance','2')
uo.FindType(Regs[i],'-1','ground')
if uo.findcount() then
uo.waitTargetObject('finditem')
uo.useType('0x0E21')
wait(2500)
while uo.gethp('finditem') <> uo.getmaxhp('finditem')
uo.waitTargetObject('finditem')
uo.useType('0x0E21')
wait(2500)
wend
end if
wait(200)
next
wait(1000)
res()
end sub

Я уже вот написал, если можете помоги разобраться, почему после минут 5 после запуска уо просто закрываеться


Top
   
 Post subject:
PostPosted: 2007-10-17 22:31:14 
Offline
User avatar

Joined: 2007-10-12 20:48:07
Posts: 100
Зачем в конце res() опять? Нельзя в цикл загнать? :)


Top
   
 Post subject:
PostPosted: 2007-10-18 06:19:47 
Offline

Joined: 2006-05-31 15:38:05
Posts: 17
Если нетрудно помоги, то я заганял а он неработает, как?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 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