Skeleton would be like...
Simba Code:
program new;
{$DEFINE SMART8}
{$I SRL-OSR/SRL.Simba}
procedure outsideloop;
begin
//buy dream endurance, normal/hard depending on choice.
//enter;
//Function to Check Money in coffer, as it appears in the top box..
// If no money in coffer, then go rebank if no money in bank then termintescript.
//if money in coffer, withdraw 2 overloads, 5 HP Potions...
//enter cave..
end;
procedure insideloop;
begin
//Pick up Green Sheers/pickaxe/antifireshield.. Quest items needed.
//drink overload and start a timer as it clicks. Drink HP potions.
// Identify monster, via color on 3d screen or message c-box or flash message.
//fight monsters accordingly till you are defeated.
end;
procedure startloop;
var
x,y:integer;
begin
// FindSymbol Functions use about 15-25% CPU, would be better to use Color
// or Reflection (easier/more accurate), best would be to use color,
// Reload Rs/Hop worlds bout 10~ times and you can find the best color, CTS2
if FindSymbol(x,y,'Minigame') then
OutsideLoop;
if Not FindSymbol(x,y,'Minigame') then
Insideloop;
end;
begin
SetupSRL();
repeat
wait(400);
if not loggedin then
loginplayer;
if loggedin then
startloop;
until (false);
end.
To make a script for this to run flawlessly would be quite time consuming, but i think it can be done.
Good luck to whoever takes special interest in such project, glad to see a Free script for it on OSbot