Results 1 to 8 of 8

Thread: Dtm

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Dtm

    Can somebody create a working small net dtm for me? Many thanks.

    ~DeSnob

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Do you not know how?

    I can show you how to do it, but I don't really like the idea of just doing it for you. I don't see how you would learn from that.

  3. #3
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have an easier solution:
    PHP Code:
    function FindFishingEquipment(FishingEquipmentColorIntegerFishingEquipmentNameString): Boolean
    So you would use it like:

    SCAR Code:
    FindFishingEquipment(1234, 'smallnet');

    1234 is the color, and 'smallnet' is the name. Checkout fishing.scar for more functions like this.

    Happy Scripting.

    P.S. DTMs are slow in Scar 3.20, bitmaps are faster, color is even faster. 1234 is not the actual color, you can get that yourself.
    Last edited by Smarter Child; 07-16-2009 at 07:59 AM.

  4. #4
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    How are DTM's slow... I have a function which checks inventory for 7 different kinds of DTMs, counts them, and the whole function is done in under a second.

  5. #5
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    How are DTM's slow... I have a function which checks inventory for 7 different kinds of DTMs, counts them, and the whole function is done in under a second.
    From what I understand, it's not that they're slow, per se, it's that they're slower than well made bitmaps. I've never really noticed a difference, myself, but it's possible that there is a very small difference. One that only someone who was either misinformed, creating poor DTMs, overly obsessed with optimization, or creating a function that had to find an object thousands of times in quick succession would care about.

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    How are DTM's slow... I have a function which checks inventory for 7 different kinds of DTMs, counts them, and the whole function is done in under a second.
    DTM's aren't slow. They never have gotten slowed down, as far as I know, only sped up. Bitmaps are just faster now in SCAR 3.20+.

    Ninja'd.

  7. #7
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Bitmaps would work great for finding a fishing net, a deformed bitmap would work great too just add some tolerance (around 25-30) and it will work perfectly.
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  8. #8
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    I have an easier solution:
    PHP Code:
    function FindFishingEquipment(FishingEquipmentColorIntegerFishingEquipmentNameString): Boolean
    So you would use it like:

    SCAR Code:
    FindFishingEquipment(1234, 'smallnet');

    1234 is the color, and 'smallnet' is the name. Checkout fishing.scar for more functions like this.

    Happy Scripting.

    P.S. DTMs are slow in Scar 3.20, bitmaps are faster, color is even faster. 1234 is not the actual color, you can get that yourself.
    Ooh, forgot to check the includes, my bad. 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
  •