Search the Community
Showing results for tags 'runescape'.
-
faq Finding Methods for Runescape and Abroad (Examples)
LordJashin posted a topic in Tutorials and FAQ
Also note that BEFORE you use these methods, you can change the Color Accuracy by changing the Color Tolerance Speed. Default is RGB w/ 3D space, but you can change this to HSL, or XYZ...this explains this here and here's the CTS function here. Note the higher the CTS the slower finding will be, but more accurate. Note: CTS2 is preferred if you want to change it from the default (CTS1) just remember if you want it back to default you have to set it to 1. FindColor(s)(Tol)Ex functions + Split TPA, + Filtering TPA's out by Length: DTM Finding, or using DDTM's: Find MMDots: Find MMDots -> MMsToMS: GetUpText Method/ Text Methods in general: FindObj(Spiral)(Size) Methods, these use some of the Same TPA Splitting and Sorting found in the first screenie: ---- PixelShift detection function (we need these, can't find working ones at the moment) I think MSSL's don't work? Well they won't work on these Bankers. CountColor is another notable function. Some of these functions are more meant for Finding then others. Others are just meant to tell you general information rather than find a specific object in 3D space. Like CountColor can't be used to Find a Banker. But could be used to tell if we were at the bank, or to make sure the banker IS a banker, etc, But NEVER where the banker is (usually). These methods use Color Finding combined with Distance (most of the time), these drive the whole finding process for SCAR Divi, and are used throughout the Runescape related includes, and other game includes. If anyone has any other methods, please post a reply, and I might add them to the list! ------------------------------------------------------------------------------------------------------------------------------------------------- Bitmaps are great too! They have some setbacks. I wouldn't recommend them for Runescape or games in general. Some good Tol, Rotated, finding functions, but I think the GREATEST one, being FindDeformedBitmap is still broke (I could be wrong though). There's a bug for it in the bugs section. Here's some of the bitmap functions that work, but keep in mind that if ONE pixel is off or something, you might never find the bitmap in the game. Works well for Inventory items though... Note: you can also load a bitmap and grab the colors from it, make a TPA, etc. Or ANY of these IMAGE TYPES: Png, Jpeg, Bmp 2nd Note: Spiraling, points, or using Find(Blank)Spiral functions are good too, you can start your search and go outward from a point. Last Note: In 3D games, like Runescape 2. Most MMO's or some have a Mini Map or some way so you know where your character is going. Might even show you what Camera rotation you are at. If you set your camera to North, and find what position you are at (using minimap functions or etc.). You can, sometimes use functions like CountColor to find objects on the 3D world because you have a scenario. E.g. Camera's north, I'm at the Bank, camera's height is set high. You'll probably be able to see the Blue color of the bankers in this Box(X1, Y1, X2, Y2). This can go for other games too. So you can "Blindly" do things sometimes too based on that. ------------------------------------------------------------------------------------------------------------------------------------------------- ~LordJashin DTM's, if they were expanded to an array level they'd be the best! I think doing FindColor(s)(Tol)Ex + SplitTPA + FilterATPAMinSize + Comparing the distance with other objects = The most accurate it can be at the moment. Edit: Need to add ACA/auto coloring on here eventually, and maybe SPS.......SPS uses some crazy functionality with the accuracy var and the T3DIntArray comparisons. -
Hi, this is my first time using MSSL and SMART and i need help because in my script in my procedure CutLogs i can't seem to figure out an MSSL command line to first POINT at index number 0 (first slot in inventory...which is a knife) then I want it to use it at index number 1 (which would be a log) and then I need it to click Cut X (then type in a number which would be 27) but I can't figure out how to do the first part which is at least click on it so can someone please help and figure out whats wrong! will be very appreciated and btw I know I haven't set the first procedure before CutLog because i Know it already works and I want to get this CutLog procedure done and tested out before i put it before CutLog and add a repeat and im not done with the 3rd procedure (returnbow) [scar] {$DEFINE RS07} // V - Bright Settings {$DEFINE SMART} // Comment out to use normal browser {$DEFINE OSI_RS07_Color_Anti_Randoms} {$I OSI\OSI.scar} {$I MSSL\MSSL.scar} procedure ScriptTerminate; begin MSSL_Unsetup; FreeOSI; end; procedure GetLogs; begin RS07_OpenBank(RS07_BANK_VARROCK_WEST); wait(1321); RS07_WithdrawEx(0, -1); wait(1222); RS07_CloseBank; end; procedure CutLogs; begin ------- \\ i need help with a command line here to point at first slot in inventory (index number 0) then click it, use it with 2nd inventory slot (1) and do a X command and type in 27 (this is going to be an auto fletcher script if you havent noticed) im stuck here so please help thanks guys!! end; procedure ReturnBows; begin if RS07_OpenBank(RS07_BANK_VARROCK_WEST) then begin RS07_DepositEx(1, -1); end; end; begin SetUpOSI; MSSL_Setup; CutLogs; end.
-
Hello there! I made this (map) walking-function some days ago. I initialy inteded to port my SPS(similar)-function but was hard to get it to work on runescape 2007 (oldschool), but very possible - but it requres me to create a plugin for scar (speed is of the essence). I think there's small hunger for a simple mapwalk-function on this forums (for rs 2007)... So here I am to share my code, and I hope that We can together; quckly port it to pascal (SCAR), and take it further. Short: I need help porting it to pascal from python, this is due to me having little knowledge of Pascal, and the unfamiliar syntax makes me nauseous - To be honest, I'm also very lazy... If your willing to help, or atleast take a look, the code is hosted over _HERE_ All questions will be answered, and I will also be tryin' to port it, but I'm a tolerant guy, so it might take a little time if I'm to port it alone. See "edit"... It's ported. (Path making tool) for testing and development: I just wrapped together a (browser) javascript function to make paths. As I made it a little to quick it will contain some "undocumented features". URL: http://slacky.site90.com/ Known bugs for the path making tool: - 1.a: It does not work in firefox (FF handles mouseevents another way: had a hard time remembering how..). - 1.b: [i]Chrome[/i], [i] Opera[/i] should work, and IE might work. - 2.a: In any broweser: [u]Enable active catche[/u] -> This way you dont have to reload images each time. - 2.b: Image not showing? When loading a new map/image -> [u]wait a few secounds[/u] (while image loads *not visible*) -> click "change" again. (requires active catching) - 3.: Not a bug -> But [i]jpg, png and gif[/i] does not work: Use [i]bmp[/i]. Max width/height/size for upload is 500*500, 1MB - 4.: The once I HAVE UPLOADED might be VERY inaccurate (made in 5 sec). - 5.: Not optimized for long walks. Short walks works just fine. (well as soon as the algo is finished i mean...) = - - - - - - - - - - - E D I T - - - - - - - - - - - = So, we have eventually managed to port it. Not to bad, not to bad!! (thanks for all the help) A couple of questions have rised, bacuse it wont actually work as well in rs07 (or any later..), the minimap seems to be dynamicly resizing (90-110%), and a method to ensure that we dont miss our target needs to be created, I was tinking object matching - create a set of objects (sizes, colors, tolerance.. etc), use am to triangulate the offset from the initial point we were to walk and correct it: That way our "walker" dont get lost and eventually fails... But it requires (me) to write a set of "hardcore" functions, since i could not find a function in scar to find multiple DTMs also tolerating affine transformation of the objects.