Even though this guide looks great, It hasn't been updated in more than 8 months. Does that still make it relevant or no? RS3 had lots of changes since this guide was last updated, such as the new loot system.
Even though this guide looks great, It hasn't been updated in more than 8 months. Does that still make it relevant or no? RS3 had lots of changes since this guide was last updated, such as the new loot system.
Scripts: ClarityNex | ClaritySlayer | ClarityElfThief | ClarityBurialArmour | ClarityMudRunes | ClarityWells | ClarityProTables | ClarityArmadyl | ClarityHarps
ClarityDominonTower | ClarityAltar | ClarityCitadel | ClarityBarrows | ClarityEsswraith | ChampionScrollCamperTools & Extensions: OpenGL ID Highlight Tool | SRL-6 Messaging System | SRL Companion | Item DTM Generator | BBCode Converter
Thank you for the tutorial. I am currently working on a script of my own.
Click Extensions -> View -> Enable DTM Editor. Then click Tools -> DTM editor.
It should be Click View -> Extensions -> Enable DTM Editor
Sorry to keep bugging but to find the matching DTM , it should be Image -> Show Matchig DTMs, not Click DTM -> Show matching DTMs
The thing that I am most confused about is finding the height and width of the Deposit box. I know that you have the height as 50 pixel and width as 30 pixel but I used the DTM in Simba to get the TPoints of the top and bottom, and used a calculator so calculate the distance between two coordinate, and I did it similarly for the width as well, and my height and width were 40ish and 19ish respectively. Is there any other way to calculate it since my calculation seems to be off than what you have.
Hey, so when thinking about 'object' width and height, you have to think of it like this. These dimensions are not the dimensions that simba will look for, but when simba finds all the pixels that match the colors you have selected and groups them, it will group them to boxes a maximum dimension of what you decided. so lets say you set it 50x50, but simba ONLY finds the colors in an area that is 20x20 then the box that you will click will only be 20x20. However, if simba finds the colors everywhere around the screen, then it will group all that are a maximum of 50x50 pixels from the first point with the color detected from the TOP LEFT of the screen. The whole point is, the purpose of the height and the width arent for the exact height and width of the object, it is the maximum dimensions you want simba to cut off neighboring matching colors and create new "click boxes". if set too small, it might detect alot of tiny click boxes to look through, and if set too big, the object you're looking for might be grouped with other irrelevant neighboring matching colors, and you end up with a false negative.
This all has to do with TPAs and ATPAs, and there are other ways to sort this kind of stuff. If you want me to go into more detail, feel free to add me on skype and I'll try and help you understand as much as I can.
If you would rather ask here, then also feel free to do so, but make sure you quote me so I get a notification!
Also, Welcome to Villavu!!!
My Scripts:
Alch-O-Matic --- Enchant-O-Matic --- AIO Portable-O-Matic --- Wilderness Agility --- Ivy Chop-O-Matic --- Bone-O-Matic
Last edited by jcbird; 12-26-2015 at 06:51 AM.
Thanks a lot for this guide! Finally I'll be able to start scripting. :')
I'm very new to this and Im using ur guide to try and make my simple bot.
its a clanwars bot all i need it to do is walk in and when it dies it repeats. So far i've did the path thing for both clanwars lobby and actual clanwars i also just did the dtm, but my issue is i keep getting a error as soon as my character enters saying "------ TRSLobby.findPlayButton(): result = False"
it starts of with a true and then it keeps saying false. How do i fix this?
Thankyou
Thanks for this guide mate. This would be my first venture into programming anything.( I did some CE scripts for a couple of games but that's it).
Followed the guide, though not for mining Clay* but to do red chins in feldip hills. Had a couple of hiccups but after an hour and a half I figured most of it out.
I have to say that I'm having a lot of fun doing this. I'll venture out and try to do more scripts for myself. Maybe a Seren harp script if it's at all feasable.
I'll ask around if I need any help though. Catch ya'll laters. Off to try some stuff \o/
Last edited by Manthur; 04-16-2016 at 09:49 PM.
I got what i consider a serious problem . i can't make the map pathing system work at all.. i choose a okay path but it does always end up like 1-2minimaps away? >.<
This is a picture of where my character ended up (i stopped him before he moved any further..)
xo9ana.png
These are images of my character position ( stopped him before he moved even further away) and my SPS map ..
1btuos.png
xo9ana.png
Close to giving up sadly.. i would enjoy this insanely to create my own shit but guess i'll have to stick to leeching for now ... can't really be arsed i struggled with it for like 2-3hours now can't figure out what im doing wrong , tried with like 400 dots on the map or larger distances between, new pictures etc.. none worked =(
Last edited by Dequality; 10-22-2016 at 03:30 PM.
Just tried this .. didnt work =(
iV2jhO.png
Also tried this now
http://imageshack.com/a/img923/4640/oezqhg.gif
Last edited by Dequality; 10-22-2016 at 03:44 PM.
@Justin; is the forum software hiding posts? Second time in a few days now that I got notifications w/ no new post to check out.
Just now on this thread:
http://i.imgur.com/OZq01kL.png
http://i.imgur.com/nchqmc0.png
2 days ago:
http://i.imgur.com/D1wjO05.png
http://i.imgur.com/qsEZE0k.png
Seems like something needs to be fixed on the forums auto moderating ^^
e: a user to check out https://villavu.com/forum/member.php?u=162347
Tried this now.. ( doing the Clay one now... ) made the deposit box work but can't make this work -_-'
d0hsL69.png
Yet another fail try.. someone please help me .. i made a huge SPS but still not reaching the point.. =(
g3chNDk.png
Question is it really that important the SPS size?I mean I tried both bigger and smaller but none gets me to the spot i actually chose as end point in SPS
EDIT: Was thinking is it possible to just open up the world map and take a snapshot from there and use it or? Ain't home so can't test it just came to my mind
Last edited by Dequality; 10-22-2016 at 06:24 PM.
Okay, so i made the SPS' work, and rest of it worked as well, is it possible someone will check my script through can't seem to find the error? it wont walk to the deposit box.
QVh6peG.png
Code:program scriptTemplate; {$DEFINE SMART} // Always have this to load smart {$I SRL-6/SRL.simba} // To load the SRL include files {$I SPS/lib/SPS-RS3.Simba} // To load the SPS include files procedure declarePlayers(); begin setLength(players, 1); with players[0] do begin loginName := 'USER'; password := 'PASS'; isActive := true; isMember := false; end currentPlayer := 0; end; procedure tpToVarrock(); var p: TPoint; begin if not isLoggedIn() Then exit; repeat lodestoneScreen.teleportTo(LOCATION_PORT_SARIM); wait(randomRange(14500, 16000)); until (not isLoggedIn()) or minimap.findSymbol(p,MM_SYMBOL_SHOP_FISHING, minimap.getBounds()); end; procedure runToClay var pathToMine: TPointArray; begin if not isLoggedIn() Then exit; pathToMine := [[213, 225], [198, 183], [189, 124], [172, 87], [130, 69], [78, 59], [40, 70], [47, 108], [70, 118], [80, 123]]; if SPS.walkPath(pathToMine) Then minimap.waitPlayerMoving() else writeLn('We failed to walk to the clay'); end; procedure mineRocks(); var x, y, i: Integer; TPA: TPointArray; ATPA: T2DPointArray; mineTimer: TTimeMarker; begin if not isLoggedIn() Then exit; mineTimer.start(); repeat findColorsSpiralTolerance(x, y, TPA, 4298938, mainScreen.getBounds(), 6, colorSetting(2, 0.48, 1.38)); if (Length(TPA) < 1) then exit; ATPA := TPA.toATPA(30, 30); ATPA.filterBetween(0, 10); //I added this line ATPA.sortFromMidPoint(mainscreen.playerPoint); smartImage.debugATPA(ATPA); for i := 0 to high(ATPA) do begin mouse(middleTPA(ATPA[i]), MOUSE_MOVE); if isMouseOverText(['Clay', 'lay'], 500) Then Begin fastClick(MOUSE_LEFT); smartImage.clear; break; end; end; tabBackpack.waitForShift(5000); claimSpinTicket(); until tabBackpack.isFull() or (mineTimer.getTime() > 30000); end; procedure tpToPortSarim(); var pathToDepositBox: TPointArray; p: TPoint; begin if not isLoggedIn() Then exit; repeat lodestoneScreen.teleportTo(LOCATION_PORT_SARIM); wait(randomRange(16000, 19000)); until (not isLoggedIn()) or minimap.findSymbol(p,MM_SYMBOL_SHOP_FISHING, minimap.getBounds()); pathToDepositBox := [[212, 224], [247, 222], [278, 207], [279, 171], [281, 136], [326, 134], [369, 137]]; if SPS.walkPath(pathToDepositBox) Then minimap.waitPlayerMoving() else writeLn('We failed to walk to the deposit box =('); end; procedure depositClay(); var bankTimer: TTimeMarker; begin if not isLoggedIn() then exit; if depositBox.isOpen() then begin bankTimer.start(); repeat if (depositBox.count > 0) then begin depositBox.quickDeposit(QUICK_DEPOSITBOX_INVENTORY); wait(gaussRangeInt(500, 750)); end; until(depositBox.isEmpty()) or (not isLoggedIn()) or (bankTimer.getTime() > 10000); end; depositBox.close(); end; procedure findDepositBox(); var x, y, i: Integer; begin if not isLoggedIn() Then exit; repeat mainscreen.findObject(x, y, 4411742, 7, colorSetting(2, 0.22, 1.75), mainscreen.playerPoint, 30, 50, 50, ['eposit', 'box'], MOUSE_LEFT); // 4872552, 5, colorSetting(2, 1.50, 0.34) wait(randomRange(1000, 2500)); inc(i); until depositBox.isOpen() or (i >= 15); end; // main loop begin clearDebug(); // Clear the debug box smartEnableDrawing := true; // So we can draw on SMART setupSRL(); // Load the SRL include files declarePlayers(); // Set up your username/pass //SPS.setup('PORT_SARIM', RUNESCAPE_OTHER); // My SPS Map for Clay SPS.setup('PORT_SARIM_MAP', RUNESCAPE_OTHER); // My SPS Map for Clay repeat if not isLoggedIn() then // If player isn't logged in then begin players[currentPlayer].login(); // Log them in exitTreasure(); // Exit treasure hunter minimap.setAngle(MM_DIRECTION_NORTH); // Make compass north and angle high mainScreen.setAngle(MS_ANGLE_HIGH); end; if tabBackpack.isFull() then begin tpToPortSarim(); findDepositBox(); depositClay(); end; tpToVarrock(); runToClay(); mineRocks(); until(false); end.
If i aint allowed to post it here lmk just thought it would be easiest as the creator of the tutorial is here lol
Dequality
Thx for this great tutorial!
There are currently 1 users browsing this thread. (0 members and 1 guests)