Yoko

All sides of Injection
It is currently 2025-12-03 03:13:30

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2006-11-24 18:20:42 
Offline

Joined: 2004-05-27 18:19:17
Posts: 66
Не могу понять как зациклить скрипт.. выдает ошибки..и кажыди раз разные помоги пожалуиста советом что сделать...

Code:
sub Loot_WaW() 
while true
DIM R[2]
var c
R[1] = 0x0E75 # BackPack
R[2] = 0x0EED # Coin 

UO.UseObject('lastcorpse')
wait(100) 
uo.waittargetobject('lastcorpse')
uo.usetype(0x0EC3)
wait(400)

for c=1 to 2
repeat
uo.findtype(R[c],"-1","lastcorpse")
if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=4 then
UO.Grab("0","finditem")
wait(2000)
end if

next
UO.Press('Enter')
wait(10)
UO.Say('.sac')
UO.WaitTargetObject('lastcorpse')
 uo.DeleteJOurnal()
    wait(150)
  end if
wend
wend
end sub


Top
   
 Post subject:
PostPosted: 2006-11-24 18:24:55 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub Loot_WaW() 
while true
  for c=1 to 2
    repeat
      if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=4 then
      end if

  next
  end if
wend
wend
end sub


А ты посмотри что у тебя написано и подумай-что это вообще такое и как оно может работать?


Top
   
 Post subject:
PostPosted: 2006-11-24 18:41:42 
Offline

Joined: 2004-05-27 18:19:17
Posts: 66
Дело в том что я не понимаю даже что есть это с... :oops:
Code:
 for c=1 to 2 

но догадываюсть что это переменная их как мне кажеться много я встречал л к и и вот теперь с.... может в неи проблема? обясни прошу тебя


Top
   
 Post subject:
PostPosted: 2006-11-24 22:11:35 
Offline
User avatar

Joined: 2005-01-14 13:41:05
Posts: 73
Location: Одесса - мама
наваял за 1 минуту, вроде ошибок не выдает
Code:
sub main() 
var c
DIM x[2]
x[1] = 0x0E75 # BackPack
x[2] = 0x0EED # Coin 
while not uo.dead()
UO.UseObject('lastcorpse')
wait(100) 
uo.waittargetobject('lastcorpse')
uo.usetype(0x0EC3)
wait(400)

for c=1 to 2
uo.findtype(x[c],"-1","lastcorpse")
if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=4 then
UO.Grab("0","finditem")
wait(2000)
end if
next
UO.Press('Enter')
wait(10)
UO.Say('.sac')
UO.WaitTargetObject('lastcorpse')
 uo.DeleteJOurnal()
    wait(150)
wend
end sub

переменная С тут вобще была не причём , она просто использовалась в цикле for со значением 1 и 2


Top
   
 Post subject:
PostPosted: 2006-11-25 10:04:11 
Offline
Expert!
User avatar

Joined: 2004-10-15 22:38:04
Posts: 1396
Location: Moscow City.
Ну кто? Кто? Постоянно закрывает темы?

_________________
The End.


Top
   
 Post subject:
PostPosted: 2006-11-25 11:06:09 
Offline

Joined: 2004-05-27 18:19:17
Posts: 66
спасибо огромное!топик можно закрывать если нужно!во всем разобрался и написал таки скрипт:)


Top
   
 Post subject:
PostPosted: 2006-11-25 19:40:45 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
I'm wrote:
Ну кто? Кто? Постоянно закрывает темы?


Не помню- мб Я,но врятли =\


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