Results 1 to 4 of 4

Thread: Won't do anything (Wielding item with DTM)

  1. #1
    Join Date
    Nov 2011
    Posts
    37
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Won't do anything (Wielding item with DTM)

    Im trying to learn scripting and am trying to get the script to equip hatchet using DTM, it won't do anything and will give Successfully executed.

    Code

    program Chopper;
    {$i SRL\SRL.scar}
    var
    x,y, Hatchet:integer;
    begin
    ClearDebug;
    SetupSRL;
    Hatchet:= DTMFromString('mbQAAAHicY2VgYLBiYmBwBmIHILYDYgsgfg sUvwHFd4H4AxDnBwowFIcIMMQ68zKE2fMw+FpwM2ADjFgwGAAA mHwJNw==');
    if FindDTM(Hatchet,x, y, MIX1, MIY1, MIX2, MIY2) then
    begin
    Mouse(x, y, 4, 4, False);
    ChooseOption ('ield');
    Writeln ('Found Hatchet in inventory, wielding it');
    end;
    FreeDTM(Hatchet)
    end.

  2. #2
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all I suggest you go the beginner tutorial section and learn from there. Your script doesent even star the right way and you dont even have a main loop. You need to learn to crawl before you walk.

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Jhangir View Post
    First of all I suggest you go the beginner tutorial section and learn from there. Your script doesent even star the right way and you dont even have a main loop. You need to learn to crawl before you walk.
    His script is fine, what are you talking about?

    I would suggest making sure the DTM is correct.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    Jhangir what are you on about?
    @iimhere, did you use the DTM editor to make the DTM? Make sure you select a center point first off, and that your edge points are all black points around the outline. Also, did you change your DTM tolerance? I change my to 50, however 20 or 30 works as well I hear.
    You can check if your DTM works by clicking on:

    "Show Matching DTMs"

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
  •