Anyone use SCAR?

12/20/2006 23:27 blacknosk#1
Has anybody here tried scripting in SCAR for conqueronline?
I started writing an include a year ago, and haven't really messed with it since. I got as far as writing a mining bot that would drop copper and iron ore but keep gold/gems and when it had a full inventory it'd teleport back to city, sell the gold, bank the gems/money and then hop back to the mine..
I'd be happy to post it if anybody still uses SCAR. I also wrote a vb-version of the bot but it wasn't quite as efficient since it took a screenshot, chopped the screenshot up, and then used an image recognition algo to check the items to see if they're gold/iron/copper/whatever..
12/21/2006 00:22 Chynaman#2
SCAR was great for runescape

but if it was applied here, i think there might be too many variables to hop all the way back.

but if you say it worked i've got to believe you

please post your script, and what city was it for?
12/21/2006 00:24 giacometti#3
Shocker is here. ;)
12/21/2006 00:30 KageKhan#4
I've used SCAR to script for CO and I've done simple thnigs but nothing as complicated as predefining routes from one place to another. I've found it to be unreliable. To get back to the mine did you have to read the coords to ensure you were moving (not just clicking on a person or a guard, mob etc) because I thought that would be the only sure way to get back from one place to another. I guess the only real downside is that you can only operate one client at a time with this because it operates on the currently running client.. or have you found a way to manage more than one?
12/21/2006 16:48 Chynaman#5
Quote:
Originally posted by KageKhan@Dec 21 2006, 00:30
I've used SCAR to script for CO and I've done simple thnigs but nothing as complicated as predefining routes from one place to another. I've found it to be unreliable. To get back to the mine did you have to read the coords to ensure you were moving (not just clicking on a person or a guard, mob etc) because I thought that would be the only sure way to get back from one place to another. I guess the only real downside is that you can only operate one client at a time with this because it operates on the currently running client.. or have you found a way to manage more than one?
i believe there is an easy way for you to run 2 screens,

cause i think there is a feature in scar that does it for you
12/21/2006 17:41 ramius_michael#6
mmmmmmmmm i dont know about this folks. until i see some files and some scans i'm not taking his word for it.
12/21/2006 19:58 blacknosk#7
I never was able to read the coords in the top left, but I found a good enough work-around for it. The little blue star thing in the minimap on the top right, I could get the position of that and record a few points along the way to where I wanted to go. And it'd awkwardly try to find it's way from point to point.. I was in the middle of rewriting the pathfinding script before i stopped.. I'll go ahead and pack up what I can find and post it here. It's nothing impressive, I was just interested in whether or not anyone still used SCAR.
In fact. I kinda doubt as a whole these scripts work anymore.. There's a lot of unfinished stuff in it.
If anyone has a question about what I post, feel free to ask. I'm still looking for the source to the vb bot and the updated version of the scar scripts I was working on..

EDIT:
Chynaman - I think you're right about there being way to manage more than one client screen with SCAR, but I never got as far as trying to do that.
And also. it was for ape city, and the mine in ape city. Although the mine cave in TC was a lot easier to script to get to so I used it there before I started working on any actual pathfinding code.

Oh and just so you guys can understand how much I trusted the pathfinding. I never used it unless I was testing/trying to make it better. I would just leave the miner on over night til it filled with gold/gems and tele back to the city/logout :)
12/21/2006 21:15 giacometti#8
Scar is the best pixel-based scriptable program that you can have. Actually there is nothing unfinished. If you know how to use its functions, its really powerfull. And you can get the coords pretty easy with it, you need just a couple of lines of code. I will show you how, so my word are not in vain:

Code:
Procedure GetCoords(var x, y: Integer);
Begin
 x:= strtointdef( GetTextAtEx(68, 2, 0, CO_Font, False, False, 0, 0, 65535, 3, True, tr_Digits), 0);
 y:= strtointdef( GetTextAtEx(96, 2, 0, CO_Font, False, False, 0, 0, 65535, 3, True, tr_Digits), 0);
End;
//and for co_font use

Code:
CO_Font:= LoadCharsFromFont2('Courier New', 8, False, False, False, False);
I've made a lot of scripts for conquer, but i prefer to keep them private. But i can help you anytime. If the function above works, just give me some karma :D .
12/21/2006 21:43 blacknosk#9
thanks giacometti! when I said unfinished, I meant in my scripts, not SCAR itself. It's an excellent program. I've tried getting the coords with scars built-in ocr but I never got it working for some reason. I'll try what you posted. Thanks again