Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

sleep

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

10 Good

About sleep

  • Rank
    Junior Member
  1. Thanks for posting this up, I might be able to write something that will work now!
  2. I did get it working for furnace to bank, but not super reliably. IIRC everyone used to use minimap images for walking. With the super short distance what I did was find a pixel coordinate that clicked inside the bank from the minimap at all extremes of minimap rotation. This works, but was a bit annoying and it WILL mess up eventually which I suppose is better than nothing, especially considering I haven't come across an ocr/sleeper.
  3. Thanks for helping me see the problems I had! I realized that I was trying to do too much with this. I have since separated it out into two pieces. [scar] begin repeat If FindColor(x, y, 789259, 80, 25, 491, 150) then begin Mouse(x, y, 0, 0, True); Wait(5000); end; until (FindColor(x, y, 16776960, 4, 1, 171, 13) = True); Mouse(49, 9, 0, 0, True); Wait(1250); end; [/scar] and [scar] Begin If FindColor(x, y, 999586, 60, 30, 450, 230) then begin Mouse(x, y, 0, 0, True); Wait(300); Mouse(425, 245, 0, 0, True); Wait(1000); end; begin Mouse(425, 215, 0, 0, True); Wait(300); Mouse(425, 270, 0, 0, True); wait(1000); end; If FindColor(x, y, 7697797, 60, 30, 450, 230) then begin Mouse(x, y, 0, 0, True); Wait(300); Mouse(425, 245, 0, 0, True); Wait(1000); end; end; [/scar] (Note, in this second set of code I use an exact coordinate because I couldn't find my smelted bars and kept coming across my ores.) This seems to have worked out very well but the biggest problem is going to a specific location using the minimap in PRSC. Any ideas on getting from the bank in al kharid to the furnace? Thanks again Jani!
  4. I am new to this and this is my first attempt at something real. The particular section of my code that is throwing errors follows. [scar] {.includes OSI\OSI.scar} var x, y: Integer; Begin Repeat If FindColors(x, y, 262915, 40, 60, 505, 225) then begin Mouse(x, y, 0, 0, True); Wait(2500); Until(FindColor(x, y, 16776960, 4, 1, 171, 13) = True); Mouse(49, 9, 0, 0, True); Wait(5000); If FindColor(x, y, 999586, 60, 30, 450, 230) then begin Mouse(x, y, 0, 0, True); Wait(300); Mouse(425, 270, 0, 0, True); Wait(300); Else Writeln('Not Found C'); Mouse(445, 25, 0, 0, True); Wait(200); Mouse(328, 17, 0, 0, False); Wait(200); Mouse(328, 285, 0, 0, True); end; If FindColor(x, y, 1398488, 60, 30, 450, 230) then begin Mouse(x, y, 0, 0, True); Wait(300); Mouse(425, 270, 0, 0, True); wait(300); end; If FindColor(x, y, 7697797, 60, 30, 450, 230) then begin Mouse(x, y, 0, 0, True); Wait(300); Mouse(425, 270, 0, 0, True); Wait(300); Else Writeln('Not Found T'); Mouse(445, 25, 0, 0, True); Wait(200); Mouse(328, 17, 0, 0, False); Wait(200); Mouse(328, 285, 0, 0, True); end; end; end. [/scar] Basically what I am wanting this part to do is: Find color Click color Wait Until Color Appears (x,y) Find color click color click coordinate Find color click color click coordinate Find color click color click coordinate click coordinate I would appreciate any helpful response, does this look appropriate? Is it messy? What am I doing wrong?
  5. Thanks for making this! I will try and learn from it.
  6. I was just about to ask for a changelog or something! Thank you very much!
  7. Ah, so it would seem the wiki is a bit out of date? Thanks - - - Updated - - - Ah, so it would seem the wiki is a bit out of date? Thanks
  8. Like the title says, I am new to scar scripting. Currently I am having trouble just trying to use findbitmaptolerance. For some reason I get a compile error "unknown identifier 'FindBitmapTolerance' I am sure this is an extreme oversight on my part, but I would be very gracious if someone was going to help. I posted this here because I am learning to script primarily for PRSC. Thanks
×
×
  • Create New...