Results 1 to 20 of 20

Thread: GE banker

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

    Default GE banker

    Does anyone know an existing code that opens a bank at the GE please? Thanks.

    OpenBankNPC; doesn't seem to be working well

  2. #2
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Gotta write it =]

    OpenBank doesnt always work well ;]

    There are many tpa tutorials that show exactly what you need to know, all listed here
    http://villavu.com/forum/showthread.php?t=76632
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

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

    Default

    Quote Originally Posted by halgboy_tbc View Post
    Does anyone know an existing code
    Quote

  4. #4
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    The best way to learn is not to use existing code dude ^

    If you stick to existing code, you will never write anything that is truly innovative.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  5. #5
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I have a code I wrote myself.....


    No you cannot use it



    P.S - just make one using TPA's

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

    Default

    Stop posting useless posts.

    What a waste of time, if you don't want to help you can go somewhere else. I was trying to amend a script that I needed to use asap, I did not want to try so many things just to recreate the wheel.

    If you cannot answer the question that is stated in the thread you shouldn't post at all.

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

    Default

    By the way: this issue has already been resolved and I don't need anymore input on this issue.

  8. #8
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I did answer your question:
    Quote Originally Posted by abu_jwka View Post
    P.S - just make one using TPA's
    That's about the best answer you're going to get.

    Take the time to learn and stop waiting for other people to make functions for you. You were already told you had to write it yourself but you persist in looking for existing code.

    Since the time you've posted, you could have easily made the function yourself - laziness is a bad habit, get rid of it.

  9. #9
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    double posting is bad. theres an edit button for a reason.

    also as others have said its better to write your own. its not recreating the wheel, its learning.

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

    Default

    Quote Originally Posted by abu_jwka View Post
    I did answer your question:


    That's about the best answer you're going to get.

    Take the time to learn and stop waiting for other people to make functions for you. You were already told you had to write it yourself but you persist in looking for existing code.

    Since the time you've posted, you could have easily made the function yourself - laziness is a bad habit, get rid of it.
    Why do you speculate on the motives of why people ask things: you have no clue. As my post already stated, this is fixed, and yes, I fixed it myself. It was not a problem of ability, it was an issue of time. You don't need to post anymore and try to accuse me of things you have no clue about. Please go somewhere else with your accusations. I doubt you want to help people you just don't have a better way to spend your time, but to accuse others. To say that I have a habit of laziness is absolutely absurd, you have no clue of who I am as a person. But, there are many others like you who lurk forums online, so I should in fact reprimand myself for being surprised and even wasting time in response.

  11. #11
    Join Date
    Mar 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by halgboy_tbc View Post
    Why do you speculate on the motives of why people ask things: you have no clue. As my post already stated, this is fixed, and yes, I fixed it myself. It was not a problem of ability, it was an issue of time. You don't need to post anymore and try to accuse me of things you have no clue about. Please go somewhere else with your accusations. I doubt you want to help people you just don't have a better way to spend your time, but to accuse others. To say that I have a habit of laziness is absolutely absurd, you have no clue of who I am as a person. But, there are many others like you who lurk forums online, so I should in fact reprimand myself for being surprised and even wasting time in response.
    He just wanted to help you man, Don't be rude.

  12. #12
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by halgboy_tbc View Post
    Why do you speculate on the motives of why people ask things: you have no clue. As my post already stated, this is fixed, and yes, I fixed it myself. It was not a problem of ability, it was an issue of time. You don't need to post anymore and try to accuse me of things you have no clue about. Please go somewhere else with your accusations. I doubt you want to help people you just don't have a better way to spend your time, but to accuse others. To say that I have a habit of laziness is absolutely absurd, you have no clue of who I am as a person. But, there are many others like you who lurk forums online, so I should in fact reprimand myself for being surprised and even wasting time in response.
    What is wrong is with you? I call you lazy and you take it to heart as though I just insulted a member of your family - man up and whining about so little things. As for 'people like me who don't want to help people', I really hate to brag but there's a little bear next to my avatar which is labelled SRL Helper, which means I have been acknowledged for helping people around the forums - in fact, I have SO many people who would vouch for me. Also, you state that you already mentioned it was fixed, maybe I would've seen that if you had edited your original post rather double-post - which is a virtue that everyone here finds extremely annoying. And yes, please don't waste your time with another response.

  13. #13
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Your attitude is really inappropriate dude. We posted to help you learn, and you are attacking us for it.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  14. #14
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Enough.
    It's over, let's not start it into a flame war..

  15. #15
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Simba Code:
    function GeScreen :Boolean;
    begin
      Result := CountColor(39116, 145, 32, 354, 50) > 320;
    end;


    function OpenBankGE :Boolean;
    var
      TPA :TPointArray;
      NPC :TPoint;
      C, I, Hi :Integer;
    begin
      If not LoggedIn then Exit;
      If GeScreen then
      begin
        Result := True;
        Exit;
      end;

      TPA := GetMiniMapDots('NPC');
      Hi := Length(TPA);

      for I := 0 to Hi - 1 do
      begin
        NPC := MMtoMS(TPA[I]);
        If NPC = Point(-1, -1) then Continue;
        MMouse(NPC.X, NPC.Y, 1, 1);
        If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
        begin
          ClickMouse2(False);
          If WaitOptionMulti(['change G', 'ge Gr'], 600) then
          begin
            MarkTime(C);
            Repeat
              Wait(RandomRange(50, 100));
            Until (GeScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
            if (Players[CurrentPlayer].Pin <> '') then
              InPin(Players[CurrentPlayer].Pin);
            Result := (GeScreen) or (PinScreen);
            If Result then
                Break;
          end;
        end;
      end;
    end;


    I just made it to loop through NPC's no colors needed.

    ~Home

  16. #16
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Simba Code:
    function OpenBankGE :Boolean;
    var
      TPA :TPointArray;
      NPC :TPoint;
      C, I, Hi :Integer;
    begin
      If not LoggedIn then Exit;
      If BankScreen then
      begin
        Result := True;
        Exit;
      end;

      TPA := GetMiniMapDots('NPC');
      Hi := Length(TPA);

      for I := 0 to Hi - 1 do
      begin
        NPC := MMtoMS(TPA[I]);
        If NPC = Point(-1, -1) then Continue;
        MMouse(NPC.X, NPC.Y, 1, 1);
        If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
        begin
          ClickMouse2(False);
          If WaitOptionMulti(['change G', 'ge Gr'], 600) then
          begin
            MarkTime(C);
            Repeat
              Wait(RandomRange(50, 100));
            Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
            if (Players[CurrentPlayer].Pin <> '') then
              InPin(Players[CurrentPlayer].Pin);
            Result := (BankScreen) or (PinScreen);
            If Result then
                Break;
          end;
        end;
      end;
    end;


    I just made it to loop through NPC's no colors needed.

    ~Home

  17. #17
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Relys on the accuracy of mmToMS though. Is it accurate enough? o.O
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

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

    Default

    Quote Originally Posted by Home View Post
    Simba Code:
    function OpenBankGE :Boolean;
    var
      TPA :TPointArray;
      NPC :TPoint;
      C, I, Hi :Integer;
    begin
      If not LoggedIn then Exit;
      If BankScreen then
      begin
        Result := True;
        Exit;
      end;

      TPA := GetMiniMapDots('NPC');
      Hi := Length(TPA);

      for I := 0 to Hi - 1 do
      begin
        NPC := MMtoMS(TPA[I]);
        If NPC = Point(-1, -1) then Continue;
        MMouse(NPC.X, NPC.Y, 1, 1);
        If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
        begin
          ClickMouse2(False);
          If WaitOptionMulti(['change G', 'ge Gr'], 600) then
          begin
            MarkTime(C);
            Repeat
              Wait(RandomRange(50, 100));
            Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
            if (Players[CurrentPlayer].Pin <> '') then
              InPin(Players[CurrentPlayer].Pin);
            Result := (BankScreen) or (PinScreen);
            If Result then
                Break;
          end;
        end;
      end;
    end;


    I just made it to loop through NPC's no colors needed.

    ~Home
    Thanks, a ton. I had made a simple one that worked, but I'm sure this may be better to use in future scripts. Thanks a lot for your beneficial input.

  19. #19
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    Relys on the accuracy of mmToMS though. Is it accurate enough? o.O
    It varies from place to place.

    My solution was, to stand on a particular tile and just use static coords
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  20. #20
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    I am assuming that they use a matrix to convert the coordinates, so ubermath wizzes, could theoretically, fine tune it to perfection.

    But with camera rotation static coords is less dependable. for more than just a starting point anyway.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

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
  •