Hi I'm making a script and i need to count how many dtm's there are in my inventory.
Does someone know a procedure or a function to count them???
Hi I'm making a script and i need to count how many dtm's there are in my inventory.
Does someone know a procedure or a function to count them???
There is no amount in Misc folder :s
SCAR Code:function CountItemDTM(DTM: Integer): Boolean;
var
x, y, i: Integer;
TB: TBox;
begin
for i := 1 to 28 do
begin
TB := InvBox(i);
if(ExistsItem(i)) then
if(FindDTM(DTM, x, y, TB.x1, TB.y1, TB.x2, TB.y2)) then
Inc(Result);
end;
end;
That should work. I don't take any credit for it.
:-)
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)