Results 1 to 15 of 15

Thread: my new dtm problem-lol

  1. #1
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default my new dtm problem-lol

    SCAR Code:
    program New;
    var pickaxe,x,y:integer
    begin
    pickaxe:= DTMfromstring('78DA6314656060E06240014C9C8C0CFF81342' +
             '310FF0702466E20431E558D8A9400986684F21995808400AA1A77' +
             '07SS54359C408213558D200F1BAA1A7120C18AAA86052A0957230' +
             '424D819D01CCD88AA461AD35F0C68E6000016170734');
    if FindDTM(Logs,x, y,1, 1, 200, 200) then
    writeln('Congratz! You have just found your first DTM!')
     end.
    iv read yoho's tut,might i say nice tut u got reped for it
    ok
    whenever i try run it,it keeps sayin semicolon expexted somehwere and after that if u get rid of begin completely it will say unkown identifier pickaxe
    could u plz help me out?
    and i dont understand
    SCAR Code:
    (Logs,x, y,1, 1, 200, 200)
    what that line means could soemone explain please
    im back----took a long break away but im back and im gonna get into scripting

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well for one thing, you're not going to find the 'Logs' DTM, because the only dtm you have created is called 'pickaxe').

    function FindDTM(DTM: Integer; var x, y: Integer; x1, y1, x2, y2: Integer): Integer;
    - Use DTM to find object on client window. x1, y1, x2, y2 specifies box to search in, x, y returns coordinates if found.
    The semi colon it is looking for is after the 'integer' declaration at the top.

  3. #3
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    could u post a modfied one please?
    im back----took a long break away but im back and im gonna get into scripting

  4. #4
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Bah...

    Code:
    program New;
    var pickaxe,x,y:integer;
    begin
    pickaxe:= DTMfromstring('78DA6314656060E06240014C9C8C0CFF81342' +
             '310FF0702466E20431E558D8A9400986684F21995808400AA1A77' +
             '07SS54359C408213558D200F1BAA1A7120C18AAA86052A0957230' +
             '424D819D01CCD88AA461AD35F0C68E6000016170734');
    if FindDTM(pickaxe,x, y,1, 1, 200, 200) then
    writeln('Congratz! You have just found your first DTM!');
    end.
    See how easy that change was? Didn't need me to post it, could easily be figured out from my description.

  5. #5
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    run time error :exception: data error in line 4?
    plz help
    im back----took a long break away but im back and im gonna get into scripting

  6. #6
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Humm, i got the same runtime error. I think there is a problem with your dtm. try making a new one because everything is right(coding and syntax wise).

  7. #7
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but when i test it, it makes a cross through the item
    im back----took a long break away but im back and im gonna get into scripting

  8. #8
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    When you get the cross are you testing on the picture you made the dtm from?

  9. #9
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    when i did the dtm i jus did it in a square is this right?or shud i do it in like a screen shot of the hole rs screen?
    im back----took a long break away but im back and im gonna get into scripting

  10. #10
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea y
    im back----took a long break away but im back and im gonna get into scripting

  11. #11
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmmmmm i tried to make the dtm find it in a ss of a rs screen wit da pik in da iven it didint find it?
    im back----took a long break away but im back and im gonna get into scripting

  12. #12
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i created one iwth the rs screenshot n it works it can find in rs screen? is dat right
    im back----took a long break away but im back and im gonna get into scripting

  13. #13
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok when i test the dtm wit rs screen it cannot find it but if i test it with the rs screen with the esact same screen shot it can find
    im back----took a long break away but im back and im gonna get into scripting

  14. #14
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    If you followed the guidelines in Yohojo's DTM tutorial you should be able to find the pick DTM on any screenshot.

    You need to make sure that the "parent" dot inside the pickhead has enough tolerance (at least 20, or all the way up to 255 if you want), and then make sure that all the rest of the dots are around the boder on the "shadow" colors which go around the object. This "shadow" color doesn't change, so you don't need to add tolerance. Every one of these shadow dots should have the exact same color number. If the numbers are different then you are picking the wrong points and you probably won't be able to find the DTM on RS.

  15. #15
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    If you test in the shot you got made the DTM from, you will obviously get the red cross, but that doesn't mean it's a good DTM, you have to test on other shots for that. And please use 'that' instead of 'dat' etc.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. problem...
    By Blumblebee in forum OSR Help
    Replies: 4
    Last Post: 12-28-2008, 07:22 AM
  2. help big problem
    By goblanca in forum OSR Help
    Replies: 3
    Last Post: 05-19-2007, 10:41 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
  •