Yoko

All sides of Injection
It is currently 2025-12-26 12:24:25

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Drag...
PostPosted: 2004-05-15 19:17:15 
Offline

Joined: 2004-04-11 11:20:49
Posts: 8
How can i drag many items from the floor? Is there any function which take all the items near my character? I tryed to do it so:
Code:
sub move()
   var obj
   var cont
   uo.addobject("cont")
   while uo.targeting()
      wait(50)
   wend
   uo.addtype("obj")
   while uo.targeting()
      wait(50)
   wend
   uo.set("finddistance","1")
   uo.setreceivingcontainer("cont")
   uo.findtype("obj","-1","ground")
   while uo.findcount() > 0
      uo.findtype("ob","-1","ground")
      UO.grab(0,"finditem")
      uo.print("Found "+str(uo.findcount()))    
      wait(1000)
   wend
   end sub

but it didn't pick up all the items... It takes only 5-6 and then i get so message "You can't pick up it"... Could any explain me, where is my mistake??? Or write well variant..... Thanks....


Как я могу перетащить много однотиных вещей с пола к себе??? Ессть ли какаянить функция что бы собрать все вещи около чара? Я пробовал сделать так:
Code:
   
sub move()
   var obj
   var cont
   uo.addobject("cont")
   while uo.targeting()
      wait(50)
   wend
   uo.addtype("obj")
   while uo.targeting()
      wait(50)
   wend
   uo.set("finddistance","1")
   uo.setreceivingcontainer("cont")
   uo.findtype("obj","-1","ground")
   while uo.findcount() > 0
      uo.findtype("ob","-1","ground")
      UO.grab(0,"finditem")
      uo.print("Found "+str(uo.findcount()))     
      wait(1000)
   wend
   end sub
   

но так не получается, Он поднимает тока 5-6 вещей а потом говорит типа "I can't pick up". Причем после этого, получается такой баг, что он вобще больше ничего сдвинуть не может... Ктонить может объяснить мне, что там такое??? Илинапишите правильный вариант... Спасибо....


Top
   
 Post subject:
PostPosted: 2004-05-16 00:34:27 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
всё абсолютно верно - кроме одного.
Code:
   uo.findtype("obj","-1","ground") 
   while uo.findcount() > 0
      uo.findtype("ob","-1","ground")
      UO.grab(0,"finditem")
      uo.print("Found "+str(uo.findcount()))     
      wait(1000)
   wend

надо поменять порядок строк:

   uo.findtype("obj","-1","ground")
   while uo.findcount() > 0
      UO.grab(0,"finditem")
      uo.print("Found "+str(uo.findcount()))     
      wait(1000)
      uo.findtype("ob","-1","ground")
   wend


_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-05-16 23:17:03 
Offline

Joined: 2004-04-11 11:20:49
Posts: 8
Точно.... ступил.... спасибо=)


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 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