Cчётчик предметов
Posted: 2007-02-11 14:33:18
0x0E76 - a bag
нужно чтобы скрипт посчитал количество предметов по типу.
нужно чтобы скрипт посчитал количество предметов по типу.
Code: Select all
uo.print(STR(uo.Count('type')))Code: Select all
sub count()
uo.exec('addobject item')
while uo.targeting()
wait(100)
wend
uo.print(STR(uo.Count('item')))
end subCode: Select all
uo.addobject('item') ; суть не меняет но так правильнее
while uo.targeting()
wait(100)
wend
uo.print(str(uo.getgraphic('item')))Code: Select all
uo.print(STR(uo.Count(uo.getgraphic('item'))))