SRL Archive - OSR Help

Dtm Count


Nebula

2012-02-24 18:17:08

I remember there is a function that returns the count of a stackable item using dtms.

Can somebody give me the name of it, I can't find it. Thanks

Nebula

RISK

2012-02-24 18:17:57

From my Range Guild script:
function TicketAmount: Integer;
var
DTM: Integer;
begin
if (not(LoggedIn)) then
Exit;
FindNormalRandoms;

DTM := DTMFromString('mbQAAAHicY2VgYMhlYmAoBeJ8IE4E4mQglmZkYJABYnUgVgZicSDOa4sEqmZCwfxAEh0zYsFgAABgUwRn');

GameTab(25);
Result := (ItemAmount('inv', 'dtm', DTM, []));

FreeDTM(DTM);
end;

Since tickets are stacked, it counts them for use in progress reports.

Nebula

2012-02-24 18:19:08

Hey lol, that's exactly what I'm going to use this for :p I'm making a range guild script.

Thanks