Yoko

All sides of Injection
It is currently 2025-10-14 22:30:13

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2004-05-20 14:31:59 
Offline

Joined: 2004-04-04 12:06:40
Posts: 11
Code:
 
while not uo.Count(TType)==0
  UO.FindType(TType,'0',container)
  if uo.FindCount()>120 then
    n = n + 1
    container = BAGS[n]
  else
    UO.FindType(TType)
    UO.MoveItem('finditem','1',Container)
    wait(500)
  endif
wend

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


Top
   
 Post subject:
PostPosted: 2004-05-20 16:30:16 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
Возможно, из-за лагов айтем не успевает за 500 секунд перенестись в контэйнер - и инжекшн думает, что в контейнере всё еще айтемов мень ше 120
ПОпробуй сделать удостоверение переноса
(типа
while uo.containerof('finditem') <> container
weit(100)
wend
)

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


Top
   
 Post subject:
PostPosted: 2004-05-20 19:50:00 
Offline

Joined: 2004-04-04 12:06:40
Posts: 11
я понял в чем дело, container = BAGS[n] почему то после этого findtype перестает искать, как же теперь от этого избавится?


Top
   
 Post subject:
PostPosted: 2004-05-21 14:08:47 
Offline

Joined: 2004-04-04 21:04:43
Posts: 76
megatron wrote:
я понял в чем дело, container = BAGS[n] почему то после этого findtype перестает искать, как же теперь от этого избавится?
В объявлении массива поставь число побольше.
Если у тебя DIM BAGS[100] , то можно обращаться к элементам от 0 до 99. Возможно в этом и заключается твоя ошибка.


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 4 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