Quote:
|
Originally Posted by Purethief
This can be achieved by
(Thats my Tailoring macro)
GumpResponse 21
If SysMessage ="worn"
Double click Tool
end if
.... [snip]
|
Ok, but the FOR NEXT would take out a lot of extra coding. My mining macro is over 80kbytes long because I'm using 4 blocks of code that could be simplified by using a FOR NEXT loop.....
Currently, it uses a block similar to this:
Code:
double click shovel
wait for target
absolute target (spot 1)
wait 2.5 seconds
lift type ore - 3
drop to ship hold
double click shovel
wait for target
absolute target (spot 2)
wait 2.5 seconds
lift type ore - 3
drop to ship hold
Cut and paste 16 to 20 times and you have the base of my boat miner. Instead of cut and pasting and causing bloat, it could be fixed with:
Code:
FOR X = 1 to 20 STEP 1
double click shovel
wait for target
absolute target (spot 1)
wait 2.5 seconds
lift type ore - 3
drop to ship hold
double click shovel
wait for target
absolute target (spot 2)
wait 2.5 seconds
lift type ore - 3
drop to ship hold
NEXT X
That would trim a good 35 to 45 kbyes off my script if all my mining blocks were able to be looped