Yoko

All sides of Injection
It is currently 2025-11-23 07:17:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
 Post subject:
PostPosted: 2004-10-11 01:15:25 
Offline
Expert!

Joined: 2004-06-04 03:24:25
Posts: 333
ZID wrote:
ХМ... РАБОТАЕТ... но почему то инвалид обжект тайп 0X000000 пишет после того как кладёт 3 ветку...

надо либо задержку побольше ставить тогда, или ждать до появления предмета на земле. и еще - у тебя ветки лежат в кучке или по одной?


Top
   
 Post subject:
PostPosted: 2004-10-11 11:19:35 
Offline

Joined: 2004-09-17 15:20:37
Posts: 13
лежать ветки по одной, задержку менял, не помогает... и иногда заедает скрипт, он положит 4 веки, па дальше не еладёт, только после того как ты поднимешь ветку из бекпака продолжает работать...


Top
   
 Post subject:
PostPosted: 2004-10-11 12:46:28 
Offline
Expert!

Joined: 2004-06-04 03:24:25
Posts: 333
для 4-х направлений
Code:
#N=0,-1; NE=1,-1;  E=1,0; SE=1,1; S=0,1; SW=-1,1; W=-1,0; NW=-1,-1;    
sub dropitems()
   var item='0x1B9B'
   dim ox[8],oy[8]
#----N----
   ox[0]=0
   oy[0]=-1
#----NE---
   ox[1]=1
   oy[1]=-1
#----E----
   ox[2]=1
   oy[2]=0
#----SE---
   ox[3]=1
   oy[3]=1
#----S----
   ox[4]=0
   oy[4]=1
#----SW---
   ox[5]=-1
   oy[5]=1
#----W----
   ox[6]=-1
   oy[6]=0
#----NW
   ox[7]=-1
   oy[7]=-1
#------------       
   var x,d,t
   uo.ignorereset()
   d=uo.getdir('self')
   x=0       
   while x<8   
      uo.findtype(item,'-1','backpack')
      if uo.findcount()>0 then
         t=uo.count(item)
         uo.drop('1',str(ox[x]+ox[d]),str(oy[x]+oy[d]),'0','finditem')
         uo.ignore(uo.getserial('findinem'))
         repeat
            wait(10)
         until t<>uo.count(item)
         wait(50)
         x=x+2
      endif
   wend
endsub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

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