Results 1 to 6 of 6

Thread: Help with ObjDTM_WalkPath

  1. #1
    Join Date
    Dec 2011
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default Help with ObjDTM_WalkPath

    Hello Everyone,

    I am a little new at writing scripts but I thought it would be a fun project and good practice as I am a computer Science Major.

    I have started to write a script and I am looking for a bit of help with the whole ObjDTM_WalkPath.

    First off I am a little unsure how to retrieve the co-ordinates which I know is a nooby question.

    Second, I am wondering if this would be correct...
    ToPlaceX := [' co-ordinates I am unsure of here ']
    ObjDTM_WalkPath(ToPlaceX,integer value,integer value, integer value, boolean, boolean);

    I am attempting to create a script for Wine of Zamorak grabbing - as everyone has been requesting.
    (If this ends up working I will be sure to not release it completely publicly because that is just gold farming at it's finest).

    If someone could help me with the co-ordinates and just verify my ObjDTM_WalkPath method is correct? Perhaps if you have some free time you could grab the co-ordinates for me and I can share my script with you, assuming it works, that is.

    Thank you in advance.
    I apologize in advance if this seems like I am trying to get someone to do the script for me - but I am a little new at this. I also apologize if this was not the correct forum spot for this post or if this was for some reason not allowed.

  2. #2
    Join Date
    Jan 2012
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First off I am a little unsure how to retrieve the co-ordinates which I know is a nooby question.

    Second, I am wondering if this would be correct...
    ToPlaceX := [' co-ordinates I am unsure of here ']
    ObjDTM_WalkPath(ToPlaceX,integer value,integer value, integer value, boolean, boolean);
    To get coordinates for ObjDTMs use the ODTM editor to create a path (it has a path option) then click print ObjDTM/path and it will give you a string of numbers which you insert into ' co-ordinates I am unsure of here.' I'm assuming you already have the editor and everything if you're using ObjDTMs and probably have seen this thread but if not check it out:

    http://villavu.com/forum/showthread.php?t=72067

    Euphemism explains it much better than I ever could

    For your second question taken right from SRL

    Simba Code:
    ObjDTM_Walk(ObjDTMToWalk: String; FlagDistance, PollRate,
     Tries: Integer; GroundLevel: Boolean): Boolean;

    So 'ObjDTMToWalk' is the string you get from the ODTM editor, FlagDistance is basically how far away from the flag on the mini map will the function wait until beginning to look for the next point, poll rate is how long (in milliseconds of course) between each attempt to find the objDTM, Tries is the number of times the script will try to find an objDTM, and ground level accounts for false positives--generally set it to true unless large amounts of black space are visible on the minimap.

    Hope this helps--your setup looks generally right just make sure there is a 'begin' before you start 'ToPlaceX...' and change the perimeters to match the ObjDTM_Walk function and you should be good

  3. #3
    Join Date
    Dec 2011
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Thank you so much for your detailed response and super fast reply!!

  4. #4
    Join Date
    Jan 2012
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sure thing! I had some problems with those myself so I know where you're coming from haha

    Good luck on your script--if you have more questions feel free to ask, the community is great here and will help if you ask for it.

    (And next time post in the 'help' section--makes things a bit easier for everyone! It's four categories below the runescape scripts category.)

  5. #5
    Join Date
    Dec 2011
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Archaic View Post
    Sure thing! I had some problems with those myself so I know where you're coming from haha

    Good luck on your script--if you have more questions feel free to ask, the community is great here and will help if you ask for it.

    (And next time post in the 'help' section--makes things a bit easier for everyone! It's four categories below the runescape scripts category.)

    Glad to know how friendly this community is!

    My apologies for the mis-placement of this question - I will be sure to post it in the correct category should I have any more questions.

  6. #6
    Join Date
    Dec 2011
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Archaic View Post
    Sure thing! I had some problems with those myself so I know where you're coming from haha

    Good luck on your script--if you have more questions feel free to ask, the community is great here and will help if you ask for it.

    (And next time post in the 'help' section--makes things a bit easier for everyone! It's four categories below the runescape scripts category.)
    Archaic, is there any chance you would be willing to look at my script so far and let me know where I am going wrong? I have some of the functionalities working great but some others just refuse to work.

    I understand that there is not much gain for you in helping me with my script other than the ability to use it yourself but I would really appreciate it if you could.

    Let me know,

    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
  •