Results 1 to 12 of 12

Thread: Return the point of DDTM?

  1. #1
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Return the point of DDTM?

    Is it possible to return the point of a DDTM and then find the distance away from the minimap center? I'm trying to incorporate Lumby Luring into my fishing script right now, and i want to check my distance away from those three rocks, but i'm a bit stumped. The answer is probably pretty easy, but maybe im just not thinking logically. If i didnt explain well enough, just post here, and ill try to explain more in detail.

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if FindDTMRotated(DDTM,x,y,etc...) then
    begin
      i := Distance(x,y,MMCX,MMCY);
    end;

  3. #3
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've tried that, and it ALWAYS returns the same distance..

  4. #4
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by itschris917 View Post
    I've tried that, and it ALWAYS returns the same distance..
    MMouse, GetMousePos and compare so you can check the distance?
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  5. #5
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    haven't tried, but i would prefer if i didnt have to move the mouse to the rock and then compare, looks kind of weird..

  6. #6
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe your DTM is messed up. What is the distance it gives you?

  7. #7
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    279. lol

  8. #8
    Join Date
    Jun 2007
    Location
    Canuckistan
    Posts
    306
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then it might now be detecting the DTM at all. Maybe you could try adding MMouse(x,y,0,0); or using writeln to find out what FindDTMRotated is actually returning.

  9. #9
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, it returns the right DDTM, but it still is doing weird shit with the distance..

  10. #10
    Join Date
    Oct 2006
    Posts
    2,297
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by itschris917 View Post
    No, it returns the right DDTM, but it still is doing weird shit with the distance..
    maybe just try once the thing i posted? about the moving, tru to see if you get another result as you get now.
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  11. #11
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    will that do?

    SCAR Code:
    if(findDTMRotated(x,y,DDTM.....))then
    begin
         if( x > MMCX) then
           DX := x-MMCX
         if( y > MMCY) then
           DY := x-MMCY
         if( x < MMCX) then
           DX := x+MMCX
         if( y < MMCY) then
           DY := x+MMCY
    end;
    The truth finally came out...


  12. #12
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ill try it out Mat.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return Point for DTMRotated
    By dvdcrayola in forum OSR Help
    Replies: 2
    Last Post: 08-24-2007, 07:48 PM
  2. legendaryhero90's Awakening (Return)
    By legendaryhero90 in forum News and General
    Replies: 29
    Last Post: 06-09-2007, 05:40 AM
  3. Return Sig
    By -chaos- in forum Semi Stupid Pictures
    Replies: 5
    Last Post: 05-29-2007, 03:08 PM
  4. Return to SCAR and BOOM! SRL!
    By IronTeapot in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 10-10-2006, 01:59 AM

Posting Permissions

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