Page 1 of 1
Count script...
Posted: 2007-09-04 06:16:41
by titolivioms
Hi all, i need a script that counts how many objects from a TYPE i have in the backpack and them say...
the item cannot be stocked
this is the item info
ID=0x4006DCD0 Type=0x0E28 ISYQKMD Name=Lesser Explosion
Quantity: 1 Colour: 0x0000 Layer: 0 Has: 1
X=44 Y=122 Z=0 C=0x400B2770 F=0x00
so, is it possible to make a script that counts how many lessers i have in the backpack then say it to me? thank you.
Posted: 2007-09-04 16:42:50
by Scripts Writer
Code: Select all
sub How_Many()
uo.FindType('0x0E28','0x0000','backpack')
if uo.FindCount() then
uo.Print(STR(uo.FindCount()))
wait(100)
end if
end sub
Posted: 2007-09-04 20:54:39
by Destruction
Code: Select all
sub HowMany()
var type = "0x0E28"
var colr = "0x0000"
uo.print( str( uo.count( type, colr ) ) )
endsub
Posted: 2007-09-04 20:59:30
by Scripts Writer
Destruction wrote:Code: Select all
sub HowMany()
var type = "0x0E28"
var colr = "0x0000"
uo.print( str( uo.count( type, colr ) ) )
endsub
the item cannot be stocked
Posted: 2007-09-05 03:47:27
by titolivioms
i dont understand russian, so what should i use? the one with var??
Posted: 2007-09-05 09:34:52
by Scripts Writer
titolivioms wrote:i dont understand russian, so what should i use? the one with var??
Where did you see russian omg? We write you 2 scripts-copy them into you file and start
Posted: 2007-09-05 19:54:47
by Destruction
Scripts Writer wrote:Destruction wrote:Code: Select all
sub HowMany()
var type = "0x0E28"
var colr = "0x0000"
uo.print( str( uo.count( type, colr ) ) )
endsub
the item cannot be stocked
Read the manual.
My script works correctly.
Posted: 2007-09-05 20:02:58
by titolivioms
sorry.. thank you anyway guys.
