Yoko

All sides of Injection
It is currently 2025-12-29 14:58:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Сено на гейт:)
PostPosted: 2007-07-18 10:40:43 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
вот написал тут скриптец, чтобк идал на гейт сено, но только айди а можно его как нибудь переделать чтоб он кидал не по айди а по типу, и вот он че то у меня Долгий какой то получился) если мона то быстрее его сделать:)
Code:
sub Gsen()
 var i,Exit
 DIM seno[3]
       seno[0]=0x0F36 ;
       seno[1]=0x100C ;
       seno[2]=0x100D ;
      For i=0 to 2
       Exit=0
        uo.FindType(seno[i],'-1','backpack')
       
        UO.WaitTargetObject('finditem')
uo.Drop("1",str(uo.getx('0x4003525E')),str(uo.gety('0x4003525E')),str(uo.getz('0x4003525E')))
next
end sub


Top
   
 Post subject:
PostPosted: 2007-07-18 11:28:33 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Задержку хоть в 50(лучше 100) делать надо , особенно в скриптах с циклами и которые перемещают объекты(500-750 стабильно).

Если гейт имеет ID то он имеет type. Ищи по тайпу на земле, ID найденного объекта присваивай переменной

Code:
gate=uo.GetSerial('finditem')


а затем бросай на её координаты(я предпочитаю moveitem) предварительно найдя сено у себя в паке

Code:
uo.moveitem('finditem','-1','ground',uo.GetX(gate),uo.GetY(gate),uo.GetZ(gate))


не тестил.


Top
   
 Post subject:
PostPosted: 2007-07-18 12:03:35 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
я не скриптер) можно по подробнее что где и как менять?:)


Top
   
 Post subject:
PostPosted: 2007-07-19 19:02:10 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
Code:
sub a()
uo.addobject("gate","~0x0000") ' gate
uo.drop("_0x0000",uo.getx('gate'),uo.gety('gate'),uo.getz('gate')) ' hay
end sub


Top
   
 Post subject:
PostPosted: 2009-05-23 14:06:39 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Спирит. я помню ты мне уже помогал с этим скриптом:) Прошу еще разок помощи) Пытался калякал молякал вспоминал... ничего не получилось(


Top
   
 Post subject:
PostPosted: 2009-05-23 15:15:37 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
Code:
sub Gsen()
var gate,gate2,i
gate='' ; тип
uo.set('finddistance','3')
 DIM seno[3]
       seno[0]=0x0F36 ;
       seno[1]=0x100C ;
       seno[2]=0x100D ;
      For i=0 to 2
       uo.findtype(gate,-1,'ground')
       if uo.findcount() then
       gate2=uo.getserial('finditem')
       end if
        uo.FindType(seno[i],'-1','backpack')
uo.moveitem('finditem',-1,'ground',str(uo.getx(gate2)),str(uo.gety(gate2)),str(uo.getz(gate2)))
wait(100)
next
end sub


Top
   
 Post subject:
PostPosted: 2009-05-23 15:18:36 
Offline

Joined: 2006-03-08 20:53:28
Posts: 115
Successful wrote:
Code:
       if uo.findcount() then


это есть ли сено? или есть ли гейт.


Top
   
 Post subject:
PostPosted: 2009-05-23 17:49:52 
Offline

Joined: 2008-12-13 00:00:15
Posts: 174
гейт


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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