Results 1 to 3 of 3

Thread: How do I use AmountDTM properly?

  1. #1
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I use AmountDTM properly?

    Hi,
    Well, I looked through the tutorial island section and used teh search button, but didn't find anything on this:
    How would I use AmountDTM Properly? What should by dtm include? Should I inlcude or exclude points on which the stack number could appear? and why is it "string", and not "integer"?
    I would be greatful if anyone could post an example of how it would look like used in a script, perfferably for fishing bait, or feathers or such, which would also be in stack in the inventory.
    Thanks a lot,
    Stur Pure
    There is nothing right in my left brain and there is nothing left in my right brain.

  2. #2
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    make a dtm like you normally would, but don't include the top left part where the numbers will be. it'll look for the dtm in the are you specify and then it'll analyze the top left corner of it. if you have a "0" in the number like '103' it'll probably return an error or 1. that would be because one of your '0' chars is outdated.

    SCAR Code:
    AmountDTM('inv', CoinDTM);

    or you could find the DTM, calculate in which inv spot it is and then:
    SCAR Code:
    GetAmount(itemx, itemy: Integer): Integer;

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  3. #3
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awesome, thanks a lot! *puts Rasta in credit line in script*
    There is nothing right in my left brain and there is nothing left in my right brain.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AmountDtm Broken?
    By Pancakes in forum OSR Help
    Replies: 4
    Last Post: 07-28-2007, 12:14 PM

Posting Permissions

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