Yoko

All sides of Injection
It is currently 2025-11-17 21:22:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2008-05-02 14:25:18 
Offline

Joined: 2008-04-01 06:00:51
Posts: 4
Code:
UO.FindType(tip, cvet, 'backpack')
      If UO.Count('finditem') < 5 then
         UO.FindType(tip, cvet, Sunduk)
         wait(100)
         UO.MoveItem('finditem', '5', 'backpack')
         wait(1000)
      else
          wait(50)
      end if


Вот кусок скрипта берет манки, но почемуто он постоянно берет а не когда их меньще 5, таскает пока не вытащит все из сундука, что не так в скрипте?


Top
   
 Post subject:
PostPosted: 2008-05-02 16:02:12 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
Описание: Count •
Синтакс: number uo.Count(type,[color])
--------------------------------------------------------------------------------
Возвращает суммарное количество во всех стопках обьекта указаного типа type (и цвета color если указано) в вашем бекпаке и подсумках. Учитываются только те подсумки которые хоть раз открывались, иначе их содержимое не известно.


У тебя в этой комманде используется объект 'finditem', что не верно для этой комманды.
Да и тема мне кажется не в том топике.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 7 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