Im fixing a powerminer thats going to be realeased soon but i was wondering how do you drop uncuts?
Thanks
Im fixing a powerminer thats going to be realeased soon but i was wondering how do you drop uncuts?
Thanks
make bitmaps / dtms of the uncuts. If you find them in your inventory after full load, call a drop procedure
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
lol, no you mine normally. And after ever full load of coal / iron, you check your inventory if there are any uncuts there. If so, then you drop them.
Something i quickly whipped togetherPHP Code:Procedure DropUncuts;
Begin
While(FindDTM(UncutDTM, x, y, MIX1, MIY1, MIX2, MIY2))do
Begin
Mouse(x, y, 3, 3, False);
Wait(100 + Random(70));
If(FindText(x, y, 'Drop', UpChars, MIX1, MIY1, MIX2, MIY2))then
Begin
Mouse(x, y, 3, 3, True);
Wait(500 + Random(500));
end;
end;
end;
May need a little editting, and you have to create the DTM
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
Star i was wondering... Whats the difference of using 'While' 'Do' instead of 'If' 'Then'?
While does it multiple times. If does it once. Repeat if is the same as while. However I like repeat if better because it offers more flexibilty in the until condition.
SCAR Code:program New;
const
booger=2; //dont touch
whichone='whiledo'; //choose 'whiledo' or 'ifthen' or 'repeatifthen'
begin
case whichone of
'whiledo':
begin
while booger=2 do
begin
writeln('lala');
end;
end;
'ifthen':
begin
if booger =2 then writeln('lala');
end;
'repeatifthen':
begin
repeat
if booger =2 then writeln('lala');
until not(booger=2);
end;
end;
end.
Similiarly, I like
SCAR Code:repeat
i:=i+1;
dostuff;
until i=some number;
//better than
for i= 0 to some number do
dostuff;
end;
np,
As Boreas said above:
Is the same as:PHP Code:While See_DTM do
Begin
...
end;
PHP Code:Repeat
...
Until not(See_DTM)
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
Not totally true.
From SCAR Manual :
While-Do, won't go through the loop at least once.Repeat loop is very similar, except the condition is checked at the end of the loop and it's exit condition (if it's true, the loop ends), so it always go through repeat-until loop at least 1 time.![]()
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Then you can wrap everything in the repeat with an if then to check it before going through. Repeat until FTW!!
Ok, i made the dtm for a uncut and puted it in, renamed it, changed the procedure a little bit star :P and put the procedure in the main loop, it compiles but it still just does the ores, any ideas?
![]()
Ok i made the dtm, changed ur procedure a little bit star to fix the dtm and added the drop uncuts into the main line and it compiles but doesnt drop the uncuts still any ideas?
it hasnt found the dtm, simple as that. Remake it
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)