Results 1 to 14 of 14

Thread: Whats wrong with this function?

  1. #1
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Whats wrong with this function?

    Yes, i found this function at footballjds script and so i give credit to him. So i know there are problems to people with this Function and i'm thinking what's wrong with it. Everyone seems to get 0WalkBack Failed Error| Fatel = True
    And Error 0Opening Bank Error| Fatel = True. Here is link to both of his fletching scripts that have the same function in them.

    Stringer = http://www.villavu.com/forum/showthread.php?t=23779

    Fletcher = http://www.villavu.com/forum/showthread.php?t=25093

    Here is the function:

    SCAR Code:
    function OpenPCBank : boolean;
    var
      DTM, x, y, time : integer;
      angle : extended;
    begin
      MakeCompass('n');
      DTM := DTMFromString('78DA63B4606460B8CB8002EA8AC3184480342' +
           '394CF680F64DDC1ADE63F1030C60059FF207222503587574B3288' +
           '2199030058350BF7');
      MarkTime(time);
      if not findDTMRotated(DTM, x, y, 224, 162, 452, 278, radians(30), Radians(30), 0.05, angle)then
      begin
        Writeln('blah');
        Writeln(IntToStr(TimeFromMark(time)));
        FreeDTM(DTM);
        EXIT;
      end;
      FreeDTM(DTM);
      Writeln(IntToStr(TimeFromMark(time)));
      MMouse(x, y, 3, 4);
      wait(50);
      if not(IsUpTextMultiCustom(['ooth', 'ank', 'k bo', 'se Ba'])) then EXIT;
      Mouse(x, y, 4, 4, False);
      wait(350 + random(250));
      ChooseOption('quickly');
      wait(400);
      FFlag(0);
      wait(500 + random(240));
      Result := BankScreen;
      MMouse(MSCX, MSCY, 120, 120);
    end;

    So whats wrong in it? So when the error occurs, the cursor doesn't even go on the bank booth, but searches somewhere around a Stool at PC bank.

    P.S The error might be in some other part in the script, but i think it's with this function.
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

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

    Default

    have u tried changing the DTM, how about you use WriteLn's to find out how far the script gets so you know what u need to change



  3. #3
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry i don't understand DTM's >.< I'm a total noob at them. But you think the problem is with the DTM? Someone (that knows DTM's pretty will and wont mess the script up, unlike me lol) could fix it?
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  4. #4
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, the problem is that the detail has all changed. Furthermore dtms should not be used on MS, fill your brain with DTMs and TPAs and the you will know how to fix it
    ~ Metagen

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

    Default

    Quote Originally Posted by Metagen View Post
    Yea, the problem is that the detail has all changed. Furthermore dtms should not be used on MS, fill your brain with DTMs and TPAs and the you will know how to fix it
    doesnt that seem a little confusing, i know TPAs are definately needed for object finding but telling that DTMs should not be used and then saying to learn more about them i dint know what you are trying to say



  6. #6
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    With MS you mean what? But seriously i just wanted someone to fix this for me I have tried to learn DTM's and stuff, but i quit scripting. Now im trying again from the beginning, but want to start from something much easier. So for now i just want someone to fix the function and tell me what exactly was wrong >.<
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

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

    Default

    Quote Originally Posted by fabis94 View Post
    With MS you mean what? But seriously i just wanted someone to fix this for me I have tried to learn DTM's and stuff, but i quit scripting. Now im trying again from the beginning, but want to start from something much easier. So for now i just want someone to fix the function and tell me what exactly was wrong >.<
    MS is the main screen, if you are learning everyhting all over again i would suggest that u read tutorials follow what they say and then look over the function to see what needs to be changed because how much can you learn if you ask someone else to fix problems that you could use as a tool to learn



  8. #8
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Meh...i only wanted help with this script. I mean i am learning and reading tut's, but i really feel tired today (got lot's of stuff to do for the past few days) and just wanted to see how it works and understand a bit...
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  9. #9
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok here, easy way to fix it. Instead of find dtm, grab a color from the bank booth, and throw in a findcolorspiraltolerance function
    ~ Metagen

  10. #10
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm but in the screen there might be many things with the same color as a bank booth...
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  11. #11
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know what he is trying to do, do you want me to make one?
    ~Hermen

  12. #12
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Err no...i have got ALOT to learn about. But when i will learn then i might make one. But no im not making one for at least next few months.
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  13. #13
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I CAN TUTOR YOU!!!!! add my msn
    ~ Metagen

  14. #14
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok lol i did :P Ur not online though
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Whats Wrong.
    By kooldude in forum OSR Help
    Replies: 2
    Last Post: 03-27-2008, 09:13 AM
  2. [PHP] whats wrong with this.
    By XcanadamanX in forum General
    Replies: 14
    Last Post: 01-21-2008, 11:40 PM
  3. whats wrong..
    By Maxine in forum OSR Help
    Replies: 6
    Last Post: 05-09-2007, 02:15 PM
  4. Replies: 8
    Last Post: 03-23-2007, 04:20 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
  •