Results 1 to 3 of 3

Thread: Dtm Count

  1. #1
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default Dtm Count

    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

  2. #2
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    From my Range Guild script:
    Simba Code:
    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.
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  3. #3
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

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

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •