ahhh yes, i forgot i added that. It was just to get rid of lines so the debug box would be clean and tidy for the proggy :) never causes errors for me but go ahead and do remove it if it does.
Printable View
-------------------- player report ----------------------
0 ... = F | 11 banks | 277 coal 0 mith | no pick |
1 ... = T | 8 banks | 223 coal 0 mith | walkToBank |
---------------------------------------------------------
a script called GuilderWorld
ran for 2 Hours, 26 Minutes and 57 Seconds
mined 500 coal
mined 0 mith
avoided 1 gas, missed 1 gas
assembled 1 pickaxes
---------------------------------------------------------
nice script!
its dont give errors but it dont do anything when its running :spongebob:
Ok, so it worked for a while but then i get this error message. This has happened 3 times. 2 times with scar 3.14 and once with 3.15, if that's relevant. I use it with Smart.
Edit: Guess I missed the post about this:
SCAR Code:if not(dbug) then DeleteDebugLine(GetDebugLineCount);
Now trying without that line.
I erased line 453 and 716 and that solved it. No help needed after all.
-------------------- player report ----------------------
0 **** = F | 1 banks | 28 coal 0 mith | bank | No GameTab
---------------------------------------------------------
a script called GuilderWorld
ran for 6 Minutes and 58 Seconds
mined 28 coal
mined 0 mith
avoided 0 gas, missed 0 gas
assembled 0 pickaxes
---------------------------------------------------------
Stone Color = 2972047
[Runtime Error] : Exception: Access violation at address 004051F0 in module 'scar.exe'. Read of address 000000EA in line 716 in script C:\Documents and Settings\catherine\Skrivebord\guilderworld_0.1.0.s car
a script called GuilderWorld
ran for 9 Hours, 0 Minutes and 12 Seconds
mined 1149 coal
mined 97 mith
avoided 0 gas, missed 1 gas
assembled 0 pickaxes
The script worked great! I only ran two players. The only problem was it grabbed my iron pick out instead of my adamant....
can you pleas add S.M.A.R.T??
i would be happy i you do :)
can't do it my self.. ony script language i can is phyton...
SCAR Code:procedure mineLoop;
var
i,t,len:integer;
begin
if (not(loggedIn)) then exit;
if not(lowercase(players[currentplayer].loc)='guild') then exit;
if not(inGuild) then
begin
players[currentplayer].loc:='walktobank';
exit;
end;
if dbug then writeln('in guild, mining....');
gametab(4);
ns:=invcount;
brk:=false;
marktime(t);
marktime(p);
if players[currentplayer].booleans[0] then walkToMithRocks else guildWalkEx(90,62);//guildWalk(115,160,70,0,-20,5,5);
repeat
gametab(4);
if not(inGuild) then
begin
logout;
exit;
end;
if brk then break;
if invfull then break;
if not(loggedIn) then exit;
if findRock(rP) then
begin
len:=length(rP)-1;
for i:=0 to len do
begin
mmouse(rP[i].x,rP[i].y,0,0);
wait(50+random(100));
if clickRock then
begin
gametab(4);
if dbug then writeln('starting mining from mineloop');
mining;
break;
end;
wait(50+random(100));
end;
end else
begin
if players[currentplayer].booleans[0] then
begin
if not(nearMithRocks) then
begin
if not(walkToMithRocks) then calibrate;
end else calibrate;
end else calibrate;
nolog;
end;
until(timefrommark(t)>900000);
players[currentplayer].loc:='walkToBank';
end;
begin
smartSetupEx(86,false,false);//change 86 to the world you want, and the the last false to
SetTargetDC(SmartGetDC); //true if you want to use signed client.
setupsrl;
loadDTMs;
mousespeed:=20;
ScriptID:='365';
if not(yourSRLstatsID = '') then SRLID := yourSRLstatsID;
if not(yourSRLstatsPW = '') then SRLPassword := yourSRLstatsPW;
declareplayers;
activateclient;
wait(500);
marktime(s);
repeat
if not(loggedIn) then loginPlayer;
findnormalrandoms;
bank;
walktoguild;
mineLoop;
walktobank;
if not(loggedIn) then
begin
writeln('not logged in, next player');
// players[currentplayer].loc:='not Logged in';
brief;
nextplayer(false);
marktime(s);
end;
if (timefrommark(s)>(minstilswitch*60000)) then
begin
bank;
logout;
brief;
nextplayer(true);
marktime(s);
end;
until(false);
end.
Copy and replace your whole mineloop procedure with this one. From Top to the very bottom.
BeforeSCAR Code:{.include srl/srl/misc/smart.scar}SCAR Code:{.include srl/srl.scar}
I'll give it a shot with your mineLoop procedure kingarbarian..
Dude munk , this script is very cool , and fast , simple procedures that work awsome , but I saw that when the character is in the guild it sometimes do weird things , it sometimes just stands there doing nothing , and sometimes it clicks the same 2 spots lots of times , but I love every procedure , would be cool if you added the option of a single player , like adding a constant of how many loads , and a procedure to enter the bank pin as JuKKas one...:p just suggesting:redface:
Ill post a proggy later.:D
trying so hard to flame, must resist....
to fix it running back and forth i think all you need to do is turn MineMith to False,
to use 1 player just set all the other players to inactive :duh:
its called InPin
SCAR Code:{*******************************************************************************
function InPin(pin: String): Boolean;
by: RSN / Starblaster100
Description: Puts in bank pin. Results True if XXX
*******************************************************************************}
OH sorry for suggesting things Mr.Know-it-All.......and the turn mith off doesn't work , because what it does when it clicks back and forth lots of times it finding a rock color in the minimap , so it tries to get to a rock that is at the mine outside part of guild...so that doesnt work....thats what I think about that, maybe Ill post a picture of the spot here....
Anyways here is a little proggy:
-------------------- player report ----------------------
0 ***** = T | 9 banks | 233 coal 16 mith | bank |
---------------------------------------------------------
a script called GuilderWorld
ran for 1 Hours, 16 Minutes and 35 Seconds
mined 233 coal
mined 16 mith
avoided 2 gas, missed 0 gas
assembled 0 pickaxes
---------------------------------------------------------
zomg an update
haha. fixed calibration so it wont back and forth anymore. Fixed all the runtime errors and access violations. Fixed the player finder.
v.0.1.1!
well the problem i had was, the mouse would hover over a rock then move to another but wouldnt click then move to another and not click, it did this 3 times and didn't click. Secondly it couldn't find any of the coal colors. Just letting you know :p
edit: now it will works, but only mines about 3-4 coal b4 going back to bank.
2. When it goes back to bank it always deposits my pick-axe then takes it back out and tries to wield it. Maybe use a function that, makes it so it doesn't have to wield the pick.
ok i modified this to smart and sent it to munk hopefully he will upload it!
[Runtime Error] : Exception: Access violation at address 00726309 in module 'scar.exe'. Read of address 00000034 in line 262 in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
i had a proggie about 5 hours and about 800 ores mined. I forgot to save :/
This script is decent, very safe and reliable but its pretty slow. I would say i get atleast 150 more ores with jukkas miner in the same time.
ps. I also added (and i would recommend you to add) a sleep function (incase someone wants to single player for hours) and had the option to have it either on or off.
Here is an attachment with smart....
if we are going to be posting versions with smart then here mine is i'm sure its better!
if you dont want me to post this i will remove it immediately
EDIT: yes mine is MUCH simpler i did not have to add that prefix crap i used smartsetupex
mine owns other one!
redownload your includes that has nothing to do with this script, well it might, but...
SmartSetupEx's main fault is the fact that recently RS was updated so the prefixes changes so now the prefixes loaded into SmartSetupEx don't always work. So it's not entirely better.
wow u dont have to get so upset lol
add a bank pin thing dude...it cant access my thing
it often make multiple random walks back and forth between the gate to falador mine where the below 60 people mine and to the two coal rocks straight ahead on the way back
Is this intentional?
@ ritz
no and apparently it was fixed in the last update
@ isammawan
if you really want it that bad... "InPin('Pin')"
---------------------------------------------------------
a script called GuilderWorld
ran for 2 Hours, 38 Minutes and 51 Seconds
mined 417 coal
mined 0 mith
avoided 1 gas, missed 0 gas
assembled 0 pickaxes
---------------------------------------------------------
"Scar encountered an error" :(
Thanks for the script! I really appreciate the SMART version :D
Ahh! My PowerNoob was banned!!! :'(
He was my ultimate Lv 3... Oh well. i'll just say I let my friend use ot to level up and I didn't kow that he used bots :P
My Lv52 guy wasn't banned though? :S
B-tards don't even have proof lol
Oh ya... World select?! lol
---------------------------------------------------------
a script called GuilderWorld
ran for 3 Hours, 17 Minutes and 0 Seconds
mined 722 coal
mined 0 mith
avoided 0 gas, missed 0 gas
assembled 0 pickaxes
---------------------------------------------------------
Scar keeps crashing :(
Some things that I've noticed:
-Gas Detection isn't perfect...
-AutoChat could be a little better for autoban
-Possibly add in an AutoRespond for questioons like "Mining lvs?"?
-Pathway to bank and back is very good -- rarely fales!
SMART Version:
-World Select?
-Is it possible to hit Stop Blocking on the SMART window to perhaps say something or set the player back on track without the script crashing? Pausing does the same thing once and a while too...
Some things to work on, but the script is almost perfect, for me anyways... 3 days, one player, 3000 coal :)
*****************
Ahh! 1.5BMs and a 10-Day ban on my main :(
Uhh, I suggest you work on you're antiban...
Still made 5k coal though :)
So far this script is working very well. My people normally run until they et an unsolveable random. But I agree with Vinny13, more antiban would be pretty nice.
ran for 35 Minutes and 16 Seconds
mined 136 coal
mined 0 mith
avoided 0 gas, missed 0 gas
assembled 0 pickaxes
nice script workwoundefuly
Munk, this script works great... at times :p.
I just quickly updated it for SRL Rev #16 (That's the current, right?) without changing any content (using SCAR 3.15 BTW). I've noticed that when it is going to the bank, it ends at the top of the guild instead, near the door leading to the low-mining-place.
It's happened to me, I think, 4-5 out of 6 banking trips so I haven't got a proggy that's worth keeping.
But I shouldn't complain. The rest of the script is raw awesomeness. It's generally awesome except for that annoying bug destroying the grand picture :(
-Knives
hmm i cant seem to figure this out, when i run the script it c hecks to see if i have a pic weilded or not, then opens bank, then logs out and does that for all my players.
any ideas on this?
Munk, you might want to note that all rocks in the mining guild have changed, I think they also changed the colour of the veins of the rocks aswell, so you might have to change that. Aswell, the ladder has changed... so just a few fixes for the script and it seems to work really well.
I've used it before and it is a great script, the walking was almost flawless, got stuck/lost a few times, but just note that rocks, ladders, and even colours have changed in RS. Can't wait for next update.
EDIT: Also, to n c d s, make sure you are using the specified SRL Rev, and Scar. Sometimes scripts tend to do that if your on Rev 15, or 16... But 16 shouldn't even work because the bank pin isn't a string o.O
Hi, thank you for the script works great! =)
But it's only 1 problem, in which line can i find the rock colors?
Because it cant find the rock colors because the rocks in the guild now are new and have different colors =)
findRockColor & findStoneColor aren't working :(
apart from those its an outstanding script :D
much appreciated!
It could not find the rock color
just got 60 mining will try soon.
Cmon please update rocks.
This script is the best miner but now update rocks :<
whoa!! how many scripts do u release per day!! ur such a good scripter, if you get time could you check out my script and give me a few pointers=]
(ill test the script soon..after i finish my other one)