Results 1 to 6 of 6

Thread: BitMap Based Script Trouble

  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    BitMap Based Script Trouble

    Ok, i'm totally new to computer programing, SCAR and the like. (started about 6 days ago). Anyway, with that said, i've been going through the tuts (which have been extremely helpful!) and i have finally started on a script that's quite the challenge for me. it runs fine...however it doesn't do what i thought i had told it to do. lol anyway, help on this bugger would be awesome!
    Juitar

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    GetColor gets the color of the x, y location of what you enter.

    So GetColor(4,4) would get you the color of xy coord 4,4

    Looking at what you have i believe you want to do GetColor(x+4, y+4)
    which would get the color of 4 pixels past and below where it finds the bitmap.

    Idk having trouble explaining sorry if I confused you.

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

    Default

    VERY IMPORTANT! Do not declare a bitmap more than once! Since you never free the bitmap from SCAR's memory, you do not have to declare the bitmap again. Would cause ENOURMOUS lagg. I re-did your mainloop for you:
    SCAR Code:
    begin
     DeclareBMPS;
     repeat
     wait(1300)
     FindBMPS;
     until(false)
    end.

    -Knives

  4. #4
    Join Date
    Sep 2007
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for your imput guys, but i am still getting the lame message "Tree Stump Color = 0 at coordinates 0,0" i could really use some help here anyways, thanks for your time.
    Juitar

  5. #5
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    That means that it is not finding your bitmap

  6. #6
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You are not going to find a bitmap on the mainscreen...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. First Script - Misc Script (not RS based)
    By x[Warrior]x3500 in forum First Scripts
    Replies: 5
    Last Post: 01-23-2009, 11:13 PM
  2. Replies: 23
    Last Post: 10-21-2008, 01:15 AM
  3. trouble with running script
    By bomh in forum OSR Help
    Replies: 3
    Last Post: 07-26-2008, 11:49 PM
  4. Capatcha script for Web based games?
    By ReignStarz in forum OSR Help
    Replies: 7
    Last Post: 07-18-2008, 08:24 AM
  5. Script trouble
    By mat555 in forum OSR Help
    Replies: 4
    Last Post: 11-27-2007, 01:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •