This script is great.
I did have a similar problem as mentioned before. It stopped running after about 30 mins. When i logged back in i was inside the alter with an empty inv.
Dont know if that helps. I'm running again so will inform you if the error repeats itself.
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Thanks for the reply.
I understand what you mean about DTMs. I used to think they were amazing (and can be for the right script) but lately theyve been causing so many issues for me. I'm also making a move away from DTMs in my script and replacing them with ATPAs. Just cant find the time to sit down and do it currently.
Inv was completely empty when i logged back in, so must not have withdrawn anything from the bank. Dont know if you have a failsafe to check if the essence was withdrawn before the walking starts. Maybe insert a countitem to check that there is essence in the inv before walking tot he alter?
After looking through the code it might have got stuck in an infinite loop at 580 (where its looping until the runedtm is found). Cant remember now if i had to stop the script manually, if so then i imagine this is the cause of the bug. Perhaps add a counter and exit after so many seconds.
Hope some of that helps fix the issue and cant wait to see this script progress.
Yea i'll add all new failsafes when i update it to ATPA's![]()
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
One thing I noticed. It doesn't stop to refill run mode. it also has a hard time finding the bank booth for some reason. It'll be in the bank, sit for like 20-30 seconds and then finally click the bank booth. It ran for an hour last night and did 1k essence though.
I tried it again today and its not managing to find the inner alter. Perhaps instead of DTM just use a TPA for the colour of the air sign on the alter (it appears to be slightly different form all the other stone colours so should work).
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
UPDATED V2.1
Added some TPAs to replace DTM's for detection issues some people had
Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling
Nice work on updating the script with TPAs
just flicking through and noticed something
Simba Code:Procedure ClickCurrent(ToDo: Boolean);
var Y1NOBanner, Y2NOBanner: Integer;//what are these for?
Begin
Wait(9+Random(37));
if ToDo = True then
begin FastClick(True); end
else if ToDo = False then
begin FastClick(False); end;
Wait(224+Random(193));
End;
Could be drastically shortened to:
Simba Code:Procedure ClickCurrent(ToDo: Boolean);
Begin
Wait(9+Random(37));
FastClick(ToDo);
Wait(224+Random(193));
End;
Troubles finding the altar after few runs (found myself in barb village clicking mines)
The rest of the script works perfectly though
Creds to DannyRS for this wonderful sig!
For me, the newer version seems to have more problems than the previous one. The script cannot do one run without getting stuck somewhere. Some examples are the top right inside the air alter and a new one I found, was at the bottom of barb village clicking on clay, but not mining since it was full of essence.
Can you add the use of pouches pls...
Simba Code:procedure RefreshPouches;
begin
MouseItem(8,0);
WaitOption('5',4000);
MouseBankSlot(2,1);
MouseBankSlot(3,mouse_move);
ClickMouse2(true);
wait(randomrange(400,600));
ClickMouse2(true);
MouseBankSlot(4,1);
CloseBank;
GameTab(tab_Magic);
MouseBox(692,224,698,231,1);
if WaitColor(486,130,3911923,2,7000) then
begin
MouseBox(483,245,492,290,1);
wait(RandomRange(400,900));
MouseBox(412,112,447,159,1);
begin
repeat
wait(100);
until(FindNPCChatText('ello',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('break',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('agic',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('byss',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('needed',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('hat',Nothing));
MouseBox(233,463,288,471,1);
repeat
wait(100);
until(FindNPCChatText('pouches',ClickLeft));
repeat
wait(100);
until(FindNPCChatText('grading',Nothing));
MouseBox(233,463,288,471,1);
wait(1500);
if FindNPCChatText('leave',Nothing) then
begin
GameTab(tab_Inv);
OpenBankChestEdge(SRL_BANK_CW);
repeat
wait(100);
until(BankScreen);
end;
end;
end;
end;
Simba Code:procedure CheckForDecayed;
var
x,y,GiantDecayed,LargeDecayed:Integer;
begin
GiantDecayed := DTMFromString('mbQAAAHicY2VgYFjGyMAwC4gXA/E2IF4OxMJALAvETEAsCsQKQGxlZgRUzYSCWRkwASMWDAYAitoEaw==');
LargeDecayed := DTMFromString('mlwAAAHicY2dgYPBnYmDwAmIXIA4G4mggDgNiDyAOYGRgiABiPyTaGYgdgdjMWB+omwkrZmXADRjxYCgAAFHaBRY=');
if FindDTM(GiantDecayed,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
writeLn('SRL Naturecrafter PRO: Found decayed pouch. [G]');
RefreshPouches;
end;
if FindDTM(LargeDecayed,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
writeLn('SRL Naturecrafter PRO: Found decayed pouch [L].');
RefreshPouches;
end;
FreeDTM(GiantDecayed);
FreeDTM(LargeDecayed);
end;
Tweak it.
and please also try adding 'resting' at the musician when out of energy or use energy pots.
after crafting, its walks to the right of the altar area and just doesn't move/clicks down the hill into the forest of the altar area.
simba log
Inv Not Full Re-Banking
Inv Not Full Re-Banking
Inv Not Full Re-Banking
There are currently 1 users browsing this thread. (0 members and 1 guests)