Yoko

All sides of Injection
It is currently 2025-11-06 21:09:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-07-12 23:54:54 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
Code:
sub up()
var x
if uo.getglobal('woodS')=='1' then
uo.print('**Warning! gathering rubbish is allready running!!')
goto exit2
end if
uo.setglobal('woodS','1')
dim a[6]
  a[1]=0x0000
  a[2]=0x0000
 a[3]=0x0000
 a[4]=0x0000
 a[5]=0x0000
 a[6]=0x0000
  for x=1 to 6
      uo.findtype(a[x],"-1","ground")
    if UO.FindCount()>0 and Uo.GetDistance("finditem")<=3 then
      uo.moveitem("finditem")
      uo.print('...up...')
           wait(500)
    end if
    uo.setglobal('woodS','0')
  uo.print('.end script.')
  exit2:
  end sub

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


Top
   
PostPosted: 2005-07-13 00:42:17 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
1. У тебя нету Next-a
2. Пропиши типы в массив.

Code:
sub up()
var x
if uo.getglobal('woodS')=='1' then
uo.print('**Warning! gathering rubbish is allready running!!')
goto exit2
end if
uo.setglobal('woodS','1')
dim a[6]
  a[1]=0x0000
  a[2]=0x0000
 a[3]=0x0000
 a[4]=0x0000
 a[5]=0x0000
 a[6]=0x0000
  for x=1 to 6
      uo.findtype(a[x],"-1","ground")
    if UO.FindCount()>0 and Uo.GetDistance("finditem")<=3 then
      uo.moveitem("finditem")
      uo.print('...up...')
           wait(500)
    end if
  Next
    uo.setglobal('woodS','0')
  uo.print('.end script.')
  exit2:
  end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 11 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:  
Powered by phpBB® Forum Software © phpBB Limited