Results 1 to 6 of 6

Thread: Bitmaps?

  1. #1
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Bitmaps?

    Hey guys, sorry to bug ya again, this again is proabaly a nooby question but here it goes.

    My problem
    : I have my bitmap procedures and stuff in my script and they work nicely, the only thing is that the mouse misses the bitmap by a bunch and sometimes it only clicks the one bitmap. i'm making an auto fisher, and i want it to click that fishing symbol in the minimap if it cant find the cage lobsters. I have already done this using the fishing symbol as a bitmap but like i explained above, it misclicks and keeps misclicking on the same spot.


    What i want it to do: is there a function where i can tell it to click the fishing symbol? or an easier way? cuz using colors wouldnt work well either, i want it to click on one of the three/four fishing symbols on the minimap everytime it cant find the cage lobsters. what would be the easiest way to accomplish this?


    I thank you in advance for your help, and if you can please not post the exact code and tell me thats how its done i'd rather have an explanation of whatever i need to do. This would be great so i can learn from it and help others when the time comes.

    Once again, thanks in advance,
    prince

  2. #2
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    //-----------------------------------------------------------------//
    //-- Scar Standard Resource Library --//
    //-- ยป Symbol Routines --//
    //-----------------------------------------------------------------//
    // * function LoadSymbolBitmapColor(Name: String): Integer; // * by Stupid3ooo, WT-Fakawi, Bebemycat2, Ron, and StarBlaster100
    // * function GetSymbolColorIn(var rx, ry: Integer; Name: string; xs, ys, xe, ye: Integer): Integer; // * by Starblaster100 based off of the ideas of Stupid3000
    // * function GetSymbolColor(var rx, ry: Integer; Name: string): Integer; // * by Stupid3ooo and Modified by Starblaster100
    // * function FindSymbol(var rx, ry: Integer; Name: String): Boolean; // * by Stupid3ooo
    // * function FindSymbolIn(var rx, ry: Integer; Name: string; xs, ys, xe, ye: Integer): Boolean; // * by Starblaster100, based on the ideas of Stupid3ooo
    // * procedure FindSymbols(var AnsTPA: Array of Tpoint; SymbolName: String);

  3. #3
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm could you provide any explanation on how i could use these? or provide an example ?

    thanks,
    prince

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    // * function FindSymbol(var rx, ry: Integer; Name: String): Boolean;
    SCAR Code:
    Findsymbol(x,y,'fishing spot')
    mouse(x,y,2,2,true)
    // * function FindSymbolIn(var rx, ry: Integer; Name: string; xs, ys, xe, ye: Integer): Boolean;
    SCAR Code:
    Findsymbol(x,y,'fishing spot',MMX1,mmy1,mmx2,mmy2)
    mouse(x,y,2,2,true)
    // * procedure FindSymbols(var AnsTPA: Array of Tpoint; SymbolName: String);
    SCAR Code:
    Procedure ClickRandomFishSymbol;
    var TPA:Array of Tpoint;
         i:integer;
    begin
      FindSymbols(TPA,'fishing spot')
      I:=Random(length(TPA)-1)
      MMouse(TPA[i].x,TPA[i].y,2,2,true)
    end;

    last one may not work since i made it up as i typed. but i hope you get the idea.

  5. #5
    Join Date
    Jan 2008
    Posts
    89
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you sir, this was very helpful, script is coming along very smoothly

    yours,
    prince

  6. #6
    Join Date
    Jan 2008
    Location
    Mianus [Ye thats right xD]
    Posts
    97
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by prince View Post
    thank you sir, this was very helpful, script is coming along very smoothly

    yours,
    prince
    lol, good that u got help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bitmaps
    By HairyDuncan2 in forum OSR Help
    Replies: 2
    Last Post: 09-03-2007, 12:14 AM
  2. Need help with bitmaps!!!!!!
    By diamondhero5 in forum OSR Help
    Replies: 4
    Last Post: 02-19-2007, 02:49 PM
  3. Help me with bitmaps
    By raimis89 in forum OSR Help
    Replies: 2
    Last Post: 12-11-2006, 04:27 PM
  4. Bitmaps
    By XxKanexX in forum Outdated Tutorials
    Replies: 12
    Last Post: 04-17-2006, 06:13 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
  •