
Originally Posted by
hents1230
Great script, but found some issues.
Firstly sometimes it wount click on bank and run back outside from bank.
Secondly banking issue - Clicks on bank booth but runs imidatly when bank opens. (happens like once in 5 times,but comes back soon)
Thirdly I'm not able to find, where to change time between lighting fire and start cooking. Fixed for myself bank timing but it takes like 5-6 seconds after a light has fired to start cooking and this always happens. I wouldnt mind it, but my campfire will sometimes extinguish before cooking ends and in those 5-6 seconds it can do some fishes instead staring around. (I'm not of a much scripter, but i'm learning something already just from checking issues and timing)


Thanks for pointing out the issues
Point 1) I think the problem is mainly based on the waiting times, increasing them will probably fix it
Point 2) Probably another waiting time problem
Point 3) This is the script part
Simba Code:
{ Light a log }
Logs := DTMFromString('mAAEAAHiclcvBCkBAFIXhY9aewjNIyUISK5Pm8SeUhbJB3oC/WFiaW9+pU+fGkmojVciRIX2V6OBg0aLBws+AEbOevuPEhhUTPA70RUJGv11Ba8kE7r93A1hgD7U=');
if FindDTM(Logs, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
MMouse(X, Y, 2, 2);
Mouse(X, Y, 0, 0, 0);
WaitOptionMulti(['ight', 'Light'], 150);
Wait(600 + Random(300));
if not(FindDTM(Logs, X, Y, MIX1, MIY1, MIX2, MIY2)) then
begin
Inc(BurnedLogs);
end else
begin
FindDTM(Logs, X, Y, MIX1, MIY1, MIX2, MIY2)
MMouse(X, Y, 2, 2);
Mouse(X, Y, 0, 0, 0);
WaitOptionMulti(['ight', 'Light'], 150);
end;
end;
FreeDTM(Logs);
{ Check for fire animation }
PBox := IntToBox(282, 145, 320, 195);
FindNormalRandoms;
Marktime(q);
repeat
Wait(100 + Random(100));
Antiban;
Wait(100 + Random(100));
until (Animating(PBox, 100, 200)) or (TimeFromMark(q)>10000);
WriteLn('We have ignited a log')
This line will count the pixelshift in a box.
Simba Code:
until (Animating(PBox, 100, 200))
The box is east of the character just about where the fire will be lit. It will currently check for 100, 200 which means it will count the pixelshift for 100 ms and it waits until the pixelshift has been more than 200 pixels. You can change those values. Either change it into a higher amount of ms waiting, or lower the pixelshift to detect the fire easier. If you have low FPS the pixelshift won't give correct results I believe.
You can also change the waiting time. It waits a maximum of 10 seconds to find the desired animating fire in the box. If more than 10 seconds has passed since attempting to light it, it assumes that is has been lit. You can change this to a lower time if you have a high firemaking level, because you will always lit a log within 1-2 seconds.
That is the line you can change.
You can also delete the animating part and just let the script wait a random 1-2 seconds
Simba Code:
Wait(1000 + Random(1000));
Will wait 1-2 seconds

Originally Posted by
Mat
Time to rake in the XP.
Good luck