Yoko

All sides of Injection
It is currently 2025-11-23 14:11:08

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2009-11-13 20:23:41 
Offline

Joined: 2009-11-13 01:45:00
Posts: 1
Сам написал:
Code:
SUB main()
 VAR run, chest, pick, m, z, x, y;
 run = '0x411EFDEF'
 chest = '0x40C9229E'
 pick = '0x7D1870C1'
 x = 769
 y = 1675
 z = 0
  whail (uo.weight < 360)
   uo.useobject('0x7D1870C1')
   uo.waittargettile(1342,x,y,z)
    whaile (uo.LastMessage("There is no ore here tomaine"))
     uo.wait (7000)
     if y - x == 906 THEN
      x = x+1
      uo.useobject('0x7D1870C1')
      uo.waittargettile(1342,x,y,z)
      ELSE
      y = y+1
      uo.useobject('0x7D1870C1')
      uo.waittargettile(1342,x,y,z)
     ENDIF
     uo.wait (100)
    WEND
   uo.wait (uo.LastMessage("There is no ore here tomaine"))
   uo.wait (7000)
  WEND
  recall()
 
ENDSUB


 SUB recall()
   uo.Recall('0x411EFDEF', 0002)
   uo.unsetreceivingcontainer()   
   if uo.findtype(0x19b9) THEN
    uo.moveitem('0x19b9',0,'chest')
    wait (100)
   ENDIF
  uo.recall("run", 0004)
 main()
ENDSUB


выдаёт Lain9 - function not found - whail

Что не так??
И мб кто нить допишет чтоб он ещё мог пару шажков сделать??

з.ы. эт мой первый скрипт, инжу установил ток сёдня, так что не сильно смейтесь.


Top
   
 Post subject:
PostPosted: 2009-11-13 22:32:07 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
Code:
whail (uo.weight < 360) 


может стоит заменить на

Code:
if uo.weight < 360



и тут по аналогии:

Code:
whaile (uo.LastMessage("There is no ore here tomaine")) 


Top
   
 Post subject:
PostPosted: 2009-11-22 22:39:10 
Offline

Joined: 2007-07-07 13:14:01
Posts: 90
Заменить :twisted: - тоже мне советчик.
"while", остальное даже не проверял.


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