Results 1 to 10 of 10

Thread: Finddtms(dtm,tpa,xs,ys,xe,ye)

  1. #1
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default Finddtms(dtm,tpa,xs,ys,xe,ye)

    Hi all okay so I have a fun inquiry
    I made a DTM and used the find DTMS()
    function.
    What Happend was that it finds the DTM but Finds it Agin!!!

    Let Me Explain =)





    Simba Code:
    begin
     rune := DTMFromString('mrAAAAHic42BgYHBgYmDwA2IjIHYEYnsg9gFiDyA2B+JeRgaGLkYIPRuI64B4KhA3AvFMIJ6lIAY0hQkPxg8YCWAYAADDPQd+');
    if finddtms(rune,TPA,1 ,1,200,280) then

    writeln(TPA)
    end.

    Simba Code:
    Compiled successfully in 32 ms.
    [(76, 61), (77, 61), (78, 61), (76, 62), (77, 62), (78, 62), (76, 63), (77, 63), (78, 63)]
    Successfully executed.


    As you can see it finds them almost on the same point multiple times!!!

    Is there a way to only get one? (some sort of a filter?)
    I need a TPA when using more than one inventory slot but a way to sort out all these practically same points. Is there a way?



  2. #2
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    DTMTPoint := TPA[ 0];
    Oh Hai Dar

  3. #3
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Have you tried FindDTM()?

    -Boom

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yea because multiple points on the rune follow the restritions you gave the DTM, that is okay.
    Just use FindDTM or like Main said just use TPA[0] (the first point found) and you'll be fine.

  5. #5
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    How About This Example...
    possibly there is a different way...




    Now I Have Multiple Inventory Slots like i said



    Now Look Here
    Simba Code:
    begin
    rune := DTMFromString('mwQAAAHic42RgYLADYgMg9gFiByC2BWIvIDYGYk8gNgRiESAWhdIsQKwIxDxALAvEMkDMC8TZaWlAkokAJgwYicBwAAB1EAQ8');
    if finddtms(rune,TPA,1 ,1,170,112) then
    begin
    freedtm(rune);
    writeln(TPA);
    end;
    end.
    Compiled successfully in 31 ms.
    [(22, 22), (23, 22), (24, 22), (64, 22), (65, 22), (66, 22), (106, 22), (107, 22), (108, 22), (148, 22), (149, 22), (150, 22), (22, 23), (23, 23), (24, 23), (64, 23), (65, 23), (66, 23), (106, 23), (107, 23), (108, 23), (148, 23), (149, 23), (150, 23), (22, 24), (23, 24), (24, 24), (64, 24), (65, 24), (66, 24), (106, 24), (107, 24), (108, 24), (148, 24), (149, 24), (150, 24), (22, 58), (23, 58), (24, 58), (64, 58), (65, 58), (66, 58), (106, 58), (107, 58), (108, 58), (148, 58), (149, 58), (150, 58), (22, 59), (23, 59), (24, 59), (64, 59), (65, 59), (66, 59), (106, 59), (107, 59), (108, 59), (148, 59), (149, 59), (150, 59), (22, 60), (23, 60), (24, 60), (64, 60), (65, 60), (66, 60), (106, 60), (107, 60), (108, 60), (148, 60), (149, 60), (150, 60), (22, 94), (23, 94), (24, 94), (64, 94), (65, 94), (66, 94), (106, 94), (107, 94), (108, 94), (148, 94), (149, 94), (150, 94), (22, 95), (23, 95), (24, 95), (64, 95), (65, 95), (66, 95), (106, 95), (107, 95), (108, 95), (148, 95), (149, 95), (150, 95), (22, 96), (23, 96), (24, 96), (64, 96), (65, 96), (66, 96), (106, 96), (107, 96), (108, 96), (148, 96), (149, 96), (150, 96)]
    Successfully executed.


    As there is too much to finish color I will just say LOOK
    Now you can see my example
    , Im looking for the same dtm in my inventory

    but instead of finding just "12" points
    it finds soo many more

    so is there a way to filter this??
    or am I just using the wrong method??

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    RAASTPAEx... It will store only one point for each object found..
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Also, just you could search for each dtm within the bounds of just one inventory box.
    Check out my power miner script, I do that in there. For the FindDTM bounds I use InvBox.
    What are you trying to accomplish anyways?

    Why not just find one ess, and right click, and deposit all or whatever?

  8. #8
    Join Date
    Nov 2010
    Location
    Australia
    Posts
    1,472
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Also, just you could search for each dtm within the bounds of just one inventory box.
    ^What he said. When you call finddtms, it will search the entire inventory which means it is possible that it finds the black outlines of 4 nearby essences and thinks that its one essence.

  9. #9
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    FindDTM? Returns 1 match, problem solved
    GLH Tutorial ~ OpenGL Scripting
    http://villavu.com/forum/showthread.php?p=1292150

    GLH Scripts ~ Abyssal Scripts
    http://villavu.com/forum/showthread.php?p=1293187
    Current Projects:
    A) DemiseSlayer Pro (Released/100%).
    B) Demise Power Miner(Released/100%).
    C) Demise Pyramid Plunder(Planning Stage/0%).

  10. #10
    Join Date
    Jan 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    HOLY SHIT THAT RASTTPAEX WORKED!! THANK YOU GGZZ and otheres for your suggestions...

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
  •