Results 1 to 13 of 13

Thread: Banking problem.

  1. #1
    Join Date
    Aug 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Banking problem.

    Well the thing is i've been working on my VarrockEastMiner and banker.
    I have encountered a problem though when im walking to the bank works fine all the way until it's at the last part of the walk procedure.
    SCAR Code:
    if FindSymbol(x, y, 'Bank) then Mouse(x,y+70,5,5,true)
    The thing is that the bank symbol is often covered by the white dots(other players) so then my script exits and changes to nextplayer.

    Im thinking of using something like this instead because the Dummy symbol is almost always visible, the thing is it's not always exactly north of the bank.
    SCAR Code:
    if FindSymbol(x, y, 'training dummy') then Mouse(x,y+70,5,5,true)

    Anyone got tips on how to work this out with alternate methods?

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

    Default

    Quote Originally Posted by Dr Feelgood View Post
    Well the thing is i've been working on my VarrockEastMiner and banker.
    I have encountered a problem though when im walking to the bank works fine all the way until it's at the last part of the walk procedure.
    SCAR Code:
    if FindSymbol(x, y, 'Bank) then Mouse(x,y+70,5,5,true)
    The thing is that the bank symbol is often covered by the white dots(other players) so then my script exits and changes to nextplayer.

    Im thinking of using something like this instead because the Dummy symbol is almost always visible, the thing is it's not always exactly north of the bank.
    SCAR Code:
    if FindSymbol(x, y, 'training dummy') then Mouse(x,y+70,5,5,true)

    Anyone got tips on how to work this out with alternate methods?
    yes, the dummy finding symbol could be an alternative, but you could also make a DDTM from the bank, or an object that's near that you can choose to locate tha bank.
    In the script I'm currently working on, I even use the "red stripe" from the door on the minimap and even a DDTM from a rock..

    Check around the bank for what you can use locating the bank (it even could be the bunches around it )

    Also I remember (from past) that there are function that still will find it when the symbols are covered by NPC's, give me a second to find it and I will edit

    EDIT: mhhm, I remember that description from a previous SRL version... but I can't manage to find it over here..

    Whatever, why not rasing the symbol accuracy?
    Description from the SRL folder:

    { var SymbolAccuracy: Extended;
    Description: How accurate it must be, in %, to find symbols or icons on the minimap. }
    Useage (Wizzup?'s Essence Miner):
    SymbolAccuracy := 0.4;
    Always as an extended!

    EDIT2:
    Hehe, I win, I knew I remember that description!
    I found this in my SCAR 2.03 SRL folder:
    {************************************************* ******************************
    function FindSymbol(var rx, ry: Integer; Name: String): Boolean;
    By: Stupid3ooo
    Description: Finds minimap symbol by name. Returns color if found.
    Finds color even if minimapsymbol is partially obstructed by
    players/NPC's.
    Valid Arguments are:
    These can be found with the discription of "GetSymbolColor" above.
    ************************************************** *****************************}
    As you can see it's just the FinsSymbol function, so when you tested the script there would be like thousands of NPCs at the bank
    Whatever, as I have stated above, change the SymbolAccuracy.

    -tsn
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  3. #3
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, there really isn't much else to say =P

    The scar noob nailed it.

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

    Default

    thats called ''spam'' if you locked the thread okay but you say somthign ussless(this isnt usless i am learning him something learning him)
    ~Hermen

  5. #5
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, it's not spam really. I wasn't trying to think of something else to add to scar's post, but really couldn't.

    It's more of a 'good job scar noob' post. Congratulating people isn't spam. Telling people their posts are spam when they're not is spam.

  6. #6
    Join Date
    Aug 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot for the help going to try that pretty soon then and see if i get it working.

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

    Default

    you can look it from 2 sides spork and i looked from the other its k
    ~Hermen

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

    Default

    Quote Originally Posted by Sp0rk-eh View Post
    Well, there really isn't much else to say =P

    The scar noob nailed it.
    thanks for the thank you, I really did need that
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

  9. #9
    Join Date
    Sep 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thankyou The scar noob, i was having the same problem with it not finding the symbol.but how would it be used in code? like a brief example, i havent quite goten things to work from reading the descriptions.

  10. #10
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    To change SymbolAccuracy just put this in your script:
    "SymbolAccuracy:= 0.xxx"

    -Knives

  11. #11
    Join Date
    Sep 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it would definitely help if you put a single quote after bank.

    you have
    SCAR Code:
    if FindSymbol(x, y, 'Bank) then Mouse(x,y+70,5,5,true)

    you want
    SCAR Code:
    if FindSymbol(x, y, 'Bank') then Mouse(x,y+70,5,5,true)

    i am quite surprised no one else spotted this.

    unless that was a retype mistake.

  12. #12
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well if you dont want to waste your time then use
    SCAR Code:
    findbank('veb')

    it clicks on bank symbol using dtm, and open bankbooth
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

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

    Default

    Quote Originally Posted by Dahlriku View Post
    it would definitely help if you put a single quote after bank.

    you have
    SCAR Code:
    if FindSymbol(x, y, 'Bank) then Mouse(x,y+70,5,5,true)

    you want
    SCAR Code:
    if FindSymbol(x, y, 'Bank') then Mouse(x,y+70,5,5,true)

    i am quite surprised no one else spotted this.

    unless that was a retype mistake.
    He posted it wrong over here, else if this was in his script, the script just wouldn't compile

    Quote Originally Posted by negaal View Post
    well if you dont want to waste your time then use
    SCAR Code:
    findbank('veb')

    it clicks on bank symbol using dtm, and open bankbooth
    Yes, that's true
    Don't forget that SRL isn't perfect and that other people want to make their own, because they think that their way of solving the "problem" (in this case, bank finding and opening) is better

    -Tsn.
    [QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
    [CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Banking problem
    By weequ in forum OSR Help
    Replies: 2
    Last Post: 02-07-2008, 12:22 AM
  2. Banking Problem. (First Script)
    By mat_de_b in forum OSR Help
    Replies: 0
    Last Post: 08-26-2007, 03:35 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
  •