Yoko

All sides of Injection
It is currently 2026-01-16 23:06:41

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2007-02-11 14:33:18 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
0x0E76 - a bag

нужно чтобы скрипт посчитал количество предметов по типу.


Top
   
 Post subject:
PostPosted: 2007-02-11 16:06:07 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
помогите пожалуста, поиск не дал результатов


Top
   
 Post subject:
PostPosted: 2007-02-11 17:49:14 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
вроде

Code:
uo.print(STR(uo.Count('type')))


Top
   
 Post subject:
PostPosted: 2007-02-12 15:06:27 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
спасибо работает, но я пытался сделать типо чтобы сначало выводился прицел, вибераешь предмет, и он говорит сколька их в багпаке, тока чот не работает :D
Code:
sub count()
uo.exec('addobject item')
while uo.targeting()
wait(100)
wend
uo.print(STR(uo.Count('item')))
end sub


Top
   
 Post subject:
PostPosted: 2007-02-12 16:59:29 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
ничего удивительного

Code:
uo.addobject('item') ; суть не меняет но так правильнее 
while uo.targeting()
wait(100)
wend
uo.print(str(uo.getgraphic('item')))

addobject запоминает ID объекта а не его графический тип.. таким образом ты пытался получить кол-во от ай-дишника а не графического типа


Top
   
 Post subject:
PostPosted: 2007-02-12 17:15:00 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
непашет :(


Top
   
 Post subject:
PostPosted: 2007-02-12 19:26:30 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
Code:
uo.print(STR(uo.Count(uo.getgraphic('item'))))

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2007-02-13 13:05:13 
Offline

Joined: 2006-08-17 16:37:02
Posts: 24
senk, rabotaet


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: 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited