View Full Version : Adding gasrandoms and pick random for Power Miner
ammo2006
03-27-2007, 09:40 PM
How do i add antirandom for gas and if you lose head and stuff, im not shure how....
rkroxpunk
03-28-2007, 11:55 AM
procedure FindGasses;
begin
if FindGas(x, y) then
begin
RunAwayDirection(RunDirec);
Wait(10000 + random(2000));
RunBack;
end;
end;
That'll avoid gasses can you not make so many threads for one topic i've seen three you've made now all involving this or anti randoms...
cheers
rk
nielsie95
03-28-2007, 01:03 PM
Take a look into the mining.Scar include there are a lot of other helpfull procedures like this.
Sumilion
03-28-2007, 01:21 PM
procedure FindGasses;
begin
if FindGas(x, y) then
begin
RunAwayDirection(RunDirec);
Wait(10000 + random(2000));
RunBack;
end;
end;
That'll avoid gasses can you not make so many threads for one topic i've seen three you've made now all involving this or anti randoms...
cheers
rk
That would work if you made preperations for it, which you didnt show, have a look at one of the current powerminers ? Maybe a not so big one to make it understand well ? I think Loraxes is great for learning (though the rock detection is toooo hard ;))
rkroxpunk
03-28-2007, 02:50 PM
That would work if you made preperations for it, which you didnt show, have a look at one of the current powerminers ? Maybe a not so big one to make it understand well ? I think Loraxes is great for learning (though the rock detection is toooo hard ;))
wuh? what preparations..I don't think i have any in mine and it works awesomely....not sure what you mean by this
nielsie95
03-28-2007, 03:06 PM
He means that when you copy and paste that, it won't run :p .
You need to set the rundirec (and maybe also the x and y for the FindGas?)
Sumilion
03-28-2007, 03:18 PM
Exactly :)
rkroxpunk
03-28-2007, 09:32 PM
Oh gotcha lol :D don't mind me i'm just an idiot:D
ammo2006
03-28-2007, 10:10 PM
So in my constants i should put rundirec '(n, s, e, w)'
And I still dont know how to do pickhead detection or w\e
rkroxpunk
03-29-2007, 06:30 AM
Ok in ur const put something like this:
"RunDirec = 'N'
that will make u run north or put whatever direc u want as for finding the pick i use.....
FindPickHeadColor; put that in the start of ur loop somewhere and then put in
FindPick; wherever in your script or main loop that you want the script to look for pick but make sure you don't put it in something that comes before FindPickHeadColor; in your main loop
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.