SRL Archive - First Scripts

Turp's Orb Charger [Money Maker]


Turpinator

2012-05-25 23:33:49

UPDATED! Updated to 1.2b – DOWNLOAD THE NEW 1.2b.

Well, I was scrolling through the Scripts request section and found one for moneymaking to charge Orbs (for battlestaves) soo i decided i would make an attempt at writing one. (http://villavu.com/forum/showthread.php?t=69022)
This is my first complete script, but ive modified others to suit my needs, so ive learned from that stuff.

Turp's Fire/Water Orb Charger!


REQUIREMENTS:
Magic: 53 for Water or 63 for Fire
80 Agility atm (will be updated for 70 soon)
3 cosmics per 1 Orb
Water/Fire Staff
AntiFire Shield
Food (Tuna preferred.)
AntiPoison (any type) IF YOU ARE LESS THAN 127 CB!

TO START:
Bank in Taverley.
Place orbs in first bank slot.
Cosmics in second.
Food (tuna) in third.
AntiPoison in 4th.

SETUP:
Put in info.
True/False FireOrbs at top.

STATS: (approx, optimal conditons)
Click Here For Google Docs with LIVE GE Prices!


Bugs:
Will end up walking to the hot air balloon teleport. I have no idea why or how (never actually saw it happen, just the results)
—I believe this is fixed. updated with a slightly larger SPS map and havent seen it happen since.

ChangeLog
1.0
  • Initial Release
1.01
  • Banker fix (diamond jubilee was causing problems)
1.1
  • Eating works properly (eats at 50% health)
  • Added drinking antipoisons for those who are less than level 127
  • New Custom SPS maps with downloader (stolen from Brandon/ggzz)
1.1b
  • Fixed the SPS Map (caused 15 sec wait before starting to charge orbs)
1.2
  • After a suggestion by KillaKev, added poison fixing mid run.
  • —- if poisoned and hp is low, will tele to bank to fix
  • —- I plan to add the option to carry an antipoison around also
  • Finally added some antiban
  • Fixed eating after being poisoned
1.2
  • Updated with new SMART 7.2 Calls.


Questions, Comments, Concerns, Criticisms, etc?
Post here. Pm me. Add me on Skype (turpinator.)
Enjoy!

17 14 13 19

one1988

2012-05-26 00:23:27

With your testing , whats the Rough GP per hour?

Turpinator

2012-05-26 00:38:23

well with water orbs… i estimated 100k/hr, assuming buying and selling everything at mid with 16 trips/hr. i havent really ran it much, and i havent been timing it, so i could be really off.

(s)okkr7

2012-05-26 00:49:27

Anyway you could add fire support? Just a little further walking, but it is past black dragons too. Anyway, nice add. Good job :)

Turpinator

2012-05-26 01:03:40

From: Sokkr7
Anyway you could add fire support? Just a little further walking, but it is past black dragons too. Anyway, nice add. Good job :)


yeah i plan to add that too sometime eventually. along with earth/air. currently the profit on waters at mid is only like 250 each, so with fires mid at 1800 each, profit would increase to like 700 each, and almost tripling profit/hr to 250k+/hr

(s)okkr7

2012-05-26 01:33:21

From: Turpinator
yeah i plan to add that too sometime eventually. along with earth/air. currently the profit on waters at mid is only like 250 each, so with fires mid at 1800 each, profit would increase to like 700 each, and almost tripling profit/hr to 250k+/hr


Yeah that's why I was wondering. :P you'd only need to change the walk function i'm guessing. But alright!

kingsleyeng

2012-05-26 22:03:18

want me to test it?

Turpinator

2012-05-26 23:49:26

From: kingsleyeng
want me to test it?

Well i had it up for everyone, and then me being forgetful i left my info in the file and… well… you know. got cleaned.

Sometime tomorrow ill put it back up and hopefully a little improved from before. with some antiban i hope.

as for fire support as Sokkr wanted… for now, im not going to 'release' that because (1) i need to make money back from getting cleaned and (2) it took me 5 minutes to change from water to fire, so it shouldnt be that hard if you really want a fire version. (make a new dtm, delete a little block of code, add a few more steps and change a color or two)

Ill start working on Air/Earth, but that will require some work to find the code to download new SPS maps for walking to obelisks.

cadet54

2012-05-27 12:49:17

Its a shame about you getting cleaned :(, I have had the same though not for leaving details in a script, hope you can rebuild quick and obviously change your pass yada yada :). Good luck with the script :).

otaman

2012-05-28 08:01:17

Aren't air orbs known as a better choice for this….
Thats what I've always read anyway- never did the math myself- so I could be off I suppose, especially if any recent updates changed anything. Glad to see orb chargers regardless though, thanks a ton for the script mate :D

Chry

2012-05-28 10:49:54

I think is better you increase the antiban.

Turpinator

2012-05-28 12:43:11

From: otaman
Aren't air orbs known as a better choice for this….
Thats what I've always read anyway- never did the math myself- so I could be off I suppose, especially if any recent updates changed anything. Glad to see orb chargers regardless though, thanks a ton for the script mate :D


Last time i checked Earth were actually the most profitable followed by fire and then Air. (these are just raw prices, im assuming they are the same speed) The reason I didnt do air/earth first was because Edgeville dungeon doesnt have a SPS map. And its in the wild, so you would either have to take along a quick tele or deathwalk while constantly looking for PKers.

I guess i can take a break from Diablo to finish what i planned on doing yesterday. (releasing with Fire and some antiban stuff)

htstigers03

2012-05-28 21:59:09

Does this still work? If so, I'll no-life and post some proggys.

Turpinator

2012-05-28 22:23:31

From: htstigers03
Does this still work? If so, I'll no-life and post some proggys.

Last edited by Turpinator; Today at 04:41 PM. Reason: New Info + Fires.

So… yes. it does still work. It is no where near flawless, but it gets the job done. I would suggest checking on it, but ive had it run for over an hour without a problem (my inet is crap right now, so if i get an hour of uninterrupted service, im lucky).

htstigers03

2012-05-29 07:22:29

Running it now. So far it works. Lag does screw up some clicks, but that happens with most scripts, Idk if failsafes would fix that but it doesn't matter. Using Fires btw.

otaman

2012-05-29 12:11:58

From: Turpinator
Last time i checked Earth were actually the most profitable followed by fire and then Air. (these are just raw prices, im assuming they are the same speed) The reason I didnt do air/earth first was because Edgeville dungeon doesnt have a SPS map. And its in the wild, so you would either have to take along a quick tele or deathwalk while constantly looking for PKers.


With how long the trip and everything airs are better for exp/hr or gp/hr, but I don't know about the script side so much here, so if the walking makes it harder because it doesn't have the SPS map then that's the issue I didn't know about. But other than that the air obby isn't too far in the wildy, or on a complex path, but I'm not surprised that it'd be hard/annoying to code the walk. I was just surprised given how close the air obby is to the edgy bank, and with the glory telly its super fast compared to the others, though from a scripting stand point these can be meaningless.

Turpinator

2012-05-29 13:24:08

From: otaman
With how long the trip and everything airs are better for exp/hr or gp/hr, but I don't know about the script side so much here, so if the walking makes it harder because it doesn't have the SPS map then that's the issue I didn't know about. But other than that the air obby isn't too far in the wildy, or on a complex path, but I'm not surprised that it'd be hard/annoying to code the walk. I was just surprised given how close the air obby is to the edgy bank, and with the glory telly its super fast compared to the others, though from a scripting stand point these can be meaningless.


I do know Air is possible, i believe GOOGLE has a private Air Orb Script, but im not too sure what he uses for the walking. When my internet seems to be working a bit better, ill try a few runs of all 4 types of orbs and report back on estimated profit/xp. But, with the level 80 agility shortcut through the dungeon, it is very short, (shorter than the walk to the actual dungeon entrance).

EDIT:
Using current prices from the Price Checker.
(HT and TAB are using Home Teleport and Taverley Tablets)
(Also, for both Fire and Water, I used the level 80 agility shortcut)

Edit again:
When i did the Earth orb, i realized every time you got attacked and poisoned by a poison spider, so the time needed to heal almost every bank was NOT factored in. And because of this, I wont waste my time with Earth Orbs unless someone really wants it.

Turpinator

2012-05-29 16:18:47

Accidentally clicked quote and not edit. My bad. :(

otaman

2012-05-29 20:37:30

Did you simply run to the air obby and back through the Edgy dungeon? Just curious after seeing your results.
I've not sat and done the math myself in a long time, but from memory some of those number seem a bit off. Not surprised if I'm wrong though lol. I didn't think the earth or water obby would be worth it from past experience, but I was never certain about the fire obby and if it was better/worse/on par with the air obby. For a long time through here, pb, rsbud, epic, runehq, runewikia, and the rs forums (I feel I forgot another obvious RS board/fansite) it's been said that creating airs is 'better', though what exactly that means I'm not too sure. Even saying it IS better doesn't mean much. It could be better exp, or gp/hr, or better gp/hr provided you craft the orbs and runes yourself, but not… blah blah blah. Might even only be better if you have to do it by hand- maybe you want a less boring route that's not just to and from the bank.

And thanks again for the script, I always love orb chargers so it always nice to see them :D Just trying to figure out if I should still be doing air myself.

Turpinator

2012-05-29 20:50:32

I think the last fansite you were looking for was Tip.it.

I used a glory teleport back for Airs and Earths. But with the Water and Fire orbs, I used the level 80 agility shortcut to the northwest of the entrance, so that saves ALOT of time. For those without level 80 agility, im sure airs are faster.
Also it depends on what you want, because airs sell almost right away in the GE, whereas fires can take a few hours to a day to sell at times.

AND for my numbers that i calculated, those are with me running orbs, not a bot. A bot is going to be slower (normally).

One more note, if using the level 70 agility shortcut, the walk time almost doubles, so imo, fires are only better than airs if you have 80+ agility. (im doing a run right now, so ill update my table above in a moment.)

TABLE UPDATED.

htstigers03

2012-05-30 08:43:49

I think after yesterday's update, the banking no longer works? It walks there, but won't click on a banker.

Turpinator

2012-05-30 09:27:14

From: htstigers03
I think after yesterday's update, the banking no longer works? It walks there, but won't click on a banker.

I havent had a chance to test since yesterday, but yeah, with the reddish bankers it may not work. I will try and update it tonight after work. if you really want to try and fix it yourself, heres what you need to do… :D

find the FindObjTPAMulti function in the charge orb part.
copy the whole repeat portion that it is included in.
go to the bank function and find OpenBankNPC
replace that with what you just copied.
replace the params with new ones (new colors and name)
ObeliskISA to [color1,color2] and ObeliskTSA to ['anker']
(to get the colors use the color dropper on the banker.

and… that should work. hopefully.
Youll prolly also have to change the ChooseOption('belisk') to 'ank' or something.

htstigers03

2012-05-30 13:47:39

Poop, I've been at it for a bit. I clearly suck. I guess I'll just wait

(s)okkr7

2012-05-30 19:22:15

Hey Turp, question, want me to upload my version with banking fixed for now?

Edit: A lot fixed now, including speed. Give me the word and I'll pm you it Turp. :)

Turpinator

2012-05-30 23:20:10

Sure go for it sokkr. srry it took so long. work ran late then went out for drinks and food after. pm it or attach it and ill attach it to the main until i can attempt to fix mine.

Edit: And, i dont know when ill be able to get it fixed completely, my inet is crap and barely stays connected for more than 5 minutes, so when i get a chance, i try to get everything fixed. I can usually code stuff without actually running it, but something like this, needs to be tested.

Updated banking function. replace OpenBankNPC with this. should work… i think.
Repeat
If FindObjTPA(x, y, 4597552, 6, -1, 5, 5, 12, ['anker']) then
Begin
MMouse(x, y, 3, 3);
ClickMouse2(false);
If ChooseOption('ank Banker') then
Found := True;
End Else
Case Random(2) of
2: RandomMovement;
End;
Until Found
And you will also have to add "Found : Boolean;" at the top of the procedure on the line below FailCount: Integer; before Begin.

(s)okkr7

2012-05-31 00:35:30

From: Turpinator
Sure go for it sokkr. srry it took so long. work ran late then went out for drinks and food after. pm it or attach it and ill attach it to the main until i can attempt to fix mine.


Will be pming shortly :)

htstigers03

2012-05-31 00:57:59

Hmm. It doesn't compile. Says Found is an unknown identifier

Turpinator

2012-05-31 01:15:55

Updated with a quick color banker method. tested it once. worked. should be fine. Sokkr, Feel free to just attach it to one of your posts, im going to bed, so i wont have time to look at it until tomorrow evening, but i am curious to see the 'speed' improvements you made. :)

IF YOU WANT, USE SOKKR's FILE (no guarantees as to if it will work. ;))

(s)okkr7

2012-05-31 01:20:13

program TurpOrbCharger;
{$DEFINE SMART} //////////////////////////
{$i SRL\SRL.simba} //Many Credits to GOOGLE//
{$i SPS\SPS.simba} //////////////////////////


Const
FireOrb = True; // True/False (True = Fire, False = Water)
//AgilityPath = 'Trap'; // Trap or Pipe (walk/dustykey to be added) (no support yet)

procedure DeclarePlayers;
Begin

HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
With Players[0] Do
Begin
Name := '';
Pass := '';
Pin := '';
BoxRewards := ['XP', 'amp'];
Active := True;
Member := True;
End;
End;

var
x, y, RunCount, HomeTele, ChargeDTM, XPGain : Integer;
ObeliskTIA : TIntegerArray;
HTtoBank, BanktoDungeon, LaddertoJumpTrap, JumpTraptoLadder, JumpTraptoObelisk: TPointArray;
ObeliskTSA : TStringArray;

Function HPLevel: Integer; //ggzz/Brandon
var
ColourString: String;
Begin
Result:= GetMMLevels('HP', ColourString);
End;

Procedure DefineVars;
Begin
RunCount := 0
HomeTele := DTMFromString('mggAAAHicY2NgYNjGxMCwiQlBrwbinUD8Gyj3H4pB7L8w/Pcvw74jn8AYxG6bc4PBR7OeQRIohw0z4sAQAADcGhiV');
HTtoBank := [Point(3361, 2886), Point(3366, 2901), Point(3369, 2913), Point(3368, 2928), Point(3363, 2933), Point(3360, 2945), Point(3360, 2957), Point(3359, 2968), Point(3356, 2974), Point(3353, 2982), Point(3346, 2982), Point(3341, 2982)];
BanktoDungeon := [Point(3339, 2983), Point(3348, 2984), Point(3355, 2984), Point(3372, 2984), Point(3380, 2989), Point(3388, 2992), Point(3403, 2993), Point(3411, 2993), Point(3420, 2993), Point(3426, 2993), Point(3433, 2994), Point(3440, 2994), Point(3448, 2996), Point(3452, 3005), Point(3444, 3015), Point(3439, 3023), Point(3430, 3028), Point(3421, 3029), Point(3413, 3031), Point(3404, 3032), Point(3395, 3034), Point(3389, 3042), Point(3389, 3049), Point(3387, 3059), Point(3384, 3066), Point(3378, 3069)];
LaddertoJumpTrap := [Point(327, 312), Point(329, 301), Point(327, 289), Point(327, 280), Point(323, 269)];
JumpTraptoLadder := [Point(292, 267), Point(284, 267), Point(275, 261), Point(270, 254), Point(265, 248), Point(257, 243), Point(246, 237), Point(233, 236), Point(223, 235), Point(212, 234), Point(201, 237), Point(190, 243), Point(181, 246), Point(169, 250), Point(158, 248), Point(148, 246), Point(132, 240), Point(133, 232), Point(166, 216), Point(165, 216)];
JumpTrapToObelisk := [Point(297, 263), Point(280, 267), Point(270, 259), Point(266, 250), Point(259, 244), Point(252, 238), Point(237, 233), Point(228, 237), Point(218, 234), Point(198, 237), Point(190, 245), Point(178, 252), Point(156, 249), Point(142, 249), Point(133, 242), Point(133, 236), Point(87, 204), Point(73, 199)];
Case FireOrb of
True:
Begin
ChargeDTM := DTMFromString('m6wAAAHic42ZgYHBkY2BwB2I3ILYFYmso7cAGkXMBYhso/Y6ZgeE9EL+EYhD7ExB/gfI/A/EbKH4XyMJQy8XIoMfIzDBTnAnMTuNmZPBnY2J4V+oI5p+LcmL4MJ+VgRTASAJGAgCTCBak');
XPGain := 73;
ObeliskTIA := [4816798];
ObeliskTSA := ['belisk'];
End;
False:
Begin
ChargeDTM := DTMFromString('mwQAAAHic42RgYNjGxsCwhw1CbwTiDUC8iQ0hvhOI/ZkZGEKAOAKIw4A4CIh9gdgHiAOAOByIH/34xcAunYOCpTUmgTGMTwxgJALDAQBFzxF/');
XPGain := 66;
ObeliskTIA := [6382956, 6711913, 10263973];
ObeliskTSA := ['belisk'];
End;
End;

End;
Procedure Walking;
var
walk1: tpointarray;
begin
walk1 := [Point(118, 344), Point(119, 350), Point(122, 357), Point(126, 363), Point(126, 371), Point(127, 378), Point(126, 386), Point(124, 393), Point(120, 402), Point(101, 426)];
SPS_WALKPATH(walk1);
If SPS_WALKPATH(WALK1) Then
Begin
Writeln('Banking');
Wait(175 + Random(15));
Writeln('Idle');
end;
end;
Procedure Walking2;
var
fla: tpointarray;
begin
fla := [Point(124, 429), Point(131, 429), Point(136, 429), Point(141, 429), Point(155, 430), Point(162, 432), Point(172, 435), Point(204, 437), Point(194, 471), Point(183, 472), Point(175, 472), Point(170, 472), Point(136, 498)];
SPS_WALKPATH(fla);
If SPS_WALKPATH(fla) Then
Begin
Writeln('Dungeon');
Wait(175 + Random(15));
Writeln('waiting');
end;
end;
Procedure spots;
var
spot: tpointarray;
begin
spot := [Point(362, 207), Point(362, 201), Point(362, 193), Point(362, 185), Point(348, 159)];
SPS_WALKPATH(spot);
If SPS_WALKPATH(spot) Then
Begin
Writeln('found trap');
Wait(175 + Random(15));
Writeln('waiting');
end;
end;
Procedure sobe;
var
obe: tpointarray;
begin
obe := [Point(307, 154), Point(301, 149), Point(290, 140), Point(284, 138), Point(263, 133), Point(240, 134), Point(216, 151), Point(207, 151), Point(194, 149), Point(170, 138), Point(166, 130), Point(137, 104), Point(115, 97)];
SPS_WALKPATH(obe);
If SPS_WALKPATH(obe) Then
Begin
Writeln('charging obelisk');
Wait(175 + Random(15));
Writeln('waiting');
end;
end;

Procedure EatFood;
Begin
Withdraw(2, 0, 10);
CloseBank;
InvMouse(1, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(2, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(3, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(4, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(5, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(6, 3);
ClickMouse2(True);
Wait(RandomRange(500, 900));
InvMouse(7, 3);
ClickMouse2(True);
OpenBankNPC;
End;

Procedure ReleaseDTMs;
Begin
FreeDTM(HomeTele);
FreeDTM(ChargeDTM);
End;
function BankGuyColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.07, 0.58);

FindColorsSpiralTolerance(MSCX, MSCY, arP, 4795701, MSX1, MSY1, MSX2, MSY2, 9);
if (Length(arP) = 0) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;

arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);

for i := 0 to arL do
begin
ColorToXYZ(arC[i], X, Y, Z);

if (X >= 1.61) and (X <= 6.67) and (Y >= 1.37) and (Y <= 5.93) and (Z >= 3.07) and (Z <= 11.63) then
begin
Result := arC[i];
Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
end;

ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);

if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
Procedure Bank;
Var
T: Integer;
Begin {4795701}
FindObjCustom(X, Y,['Banker','anker','ker','Banke'],[4795701], 9); {it will spit out all the colors we choose to find it}
clickmouse2(false);
WaitOption('Bank Banker',1000);
Marktime(T);
Repeat
Wait(1);
Until(BankScreen) Or (TimeFromMark(T) > 6000)
End;
Procedure BankTaverly;
var
FailCount:Integer;
Begin
FailCount := 0;
Repeat
GameTab(Tab_Inv);
Repeat
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('N');
Bank;
Until BankScreen or PinScreen;

If PinScreen then
Begin
Repeat
InPin(Players[0].Pin);
Until BankScreen or not (LoggedIn);
End;

If BankScreen then
Begin
DepositAll;
If ( HPLevel < 600 ) then
EatFood;
Wait(RandomRange(200, 300));
Withdraw(1, 0, 81);
Wait(RandomRange(300, 400));
Withdraw(0, 0, 0);
Wait(RandomRange(300, 350));
CloseBank;
Wait(RandomRange(900,1100));
End;

Inc(FailCount);
If FailCount > 3 then
Begin
WriteLn('Out of orbs, Thanks for using Turp''s Orb Charger!')
LogOut;
TerminateScript;
End;
Until (FindColorTolerance(x, y, 6185314, 698, 444, 704, 450, 10))
End;

Procedure ReturnToBank;
// Xtrapsp and ReadySteadyGo (HT code)
Begin
GameTab(tab_Magic);
If FindDTM(HomeTele, x, y, MIX1, MIY1, MIX2, MIY2) then
Begin
MMouse(x, y, 3, 3);
If WaitUptext('ome', 1000) then
Begin
Repeat
ClickMouse2(mouse_Left);
If WaitFunc(@LodestoneScreen, 250, 4000) then
MMouse(252,182,1,1);
If WaitColor(252,182,3610376,10,5000) Then
Begin
ClickMouse2(True);
//LodestoneTeleport('Taverley');
End;
Wait(RandomRange(12000, 15000));
Until not LodestoneScreen
End;
End;
Wait(RandomRange(1500,2000));
//SPS_Setup(RUNESCAPE_SURFACE,['8_7']);
FindNormalRandoms;
Walking;
FindNormalRandoms;
End;

Function GoStairs:Boolean;
Var
a, H, T: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
tmpCTS : Integer;
Begin
If (BankScreen) Then Exit;
FindNormalRandoms;
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.25, 0.02); {its a TPA so you have to change arp > TPA}
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 5986903, MSX1, MSY1, MSX2, MSY2, 17); //<< monster color + spiral tolerance search from ACA autocolor function
ATPA := TPAtoATPAEx(TPA, 20, 20); // width height < 20 20 makes it a atpa
SortATPASize(ATPA,True);

H := High(ATPA);

for a := 0 to H do
Begin
MiddleTPAEx(atpa[a], X, Y);
MMouse(X, Y, 5, 5); {up text below with a wait time to make sure uptext is correct}
If (WaitUpTextMulti(['Climb-down Steps', 'down Ste', 'imb-dow', 'teps', 'own'], 1000)) Then
Begin
ClickMouse2(False); // idk which is which but this brings the options up
WaitOption('Steps',1000); // waits for the option for 1 sec
If DidRedClick then {from < red click splat}
MarkTime(T); {Marks the time from the click}
Repeat
If (TimeFromMark(T) > 4000) Then Exit; {Wait until 4 seconds have gone by}
Until(BankScreen) Or (FindNormalRandoms); {<<or if it finds normal randoms}
Result := True
Exit;
End;
End;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
End;

Procedure WalkToObelisk;
var
Found:Boolean;
Begin
Found := False;
Walking2;
Wait(RandomRange(300,600));

Repeat
Case Random(2) of
2: RandomMovement;
End;
If FindObjTPA(x, y, 5986903, 6, 17, 5, 5, 12, ['teps']) then
Begin
MMouse(x, y, 3, 3);
ClickMouse2(false);
If ChooseOption('teps') then
Found := True;
End;
Found := True;
Until Found
spots;
Found := False;
Repeat
Case Random(2) of
2: RandomMovement;
End;
Repeat Wait(275 + Random(75)); Until(Not(Ismoving))
If FindObjTPA(x, y, 2110266, 1, 2, 4, 3, 2, ['trange', 'oor']) then
Begin
MMouse(x, y, 3, 3);
ClickMouse2(false);
If ChooseOption('trange') then
Found := True;
End;
Until Found
Wait(RandomRange(1950,2750));

Case FireOrb of
True: sobe;
False:
Begin
sobe;
Found := False;
Repeat
Case Random(2) of
2: RandomMovement;
End;
If FindObjTPAMulti(x, y, [4739155, 4936791], 3, -1, 3, 3, 6, ['adder']) then
Begin
MMouse(x, y, 3, 3);
ClickMouse2(false);
If ChooseOption('adder') then
Found := True;
End;
Until Found
End;
End;

Wait(RandomRange(900,1900));

End;

Procedure ChargeOrbs;
var
Found : Boolean;
Begin
GameTab(Tab_Magic);
If FindDTM(ChargeDTM, x, y, MIX1, MIY1, MIX2, MIY2) then
Begin
MMouse(x, y, 3, 3);
ClickMouse2(True);
Repeat
Case Random(1) of
1: RandomMovement;
End;
If FindObjTPAMulti(x, y, ObeliskTIA, 10, 2, 5, 5, 3, ObeliskTSA) then
Begin
MMouse(x, y, 5, 5);
ClickMouse2(False);
If ChooseOption('belisk') then
Found := True;
End;
Until Found
End;

Wait(RandomRange(1800,2500));
If Not FireOrb then
Wait(RandomRange(2500, 3500));
MMouse((MCX1+MCX2)/2 ,(MCY1+MCY2)/2 , 5, 5);
ClickMouse2(True);

Repeat
Wait(100+Random(10));
FindNormalRandoms;
GameTab(tab_Inv);
Until not FindColorTolerance(x, y, 6185314, 698, 444, 704, 450, 10) //waits until slot 28 is NOT white/grey

End;

Procedure Report;
Var
OrbType: String;
Begin
If FireOrb then OrbType := 'Fire'
else OrbType :='Water';
WriteLn('+-----------Turp''s Orb Charger-----------');
WriteLn('| Charging ' + OrbType +' Orbs.');
WriteLn('| We have made ' + IntToStr(RunCount) + ' Runs.');
WriteLn('| We have charged ' + IntToStr(RunCount*27) + ' Orbs.');
WriteLn('| We have gained ' + IntToStr(RunCount*27*XPGain) + ' Magic XP.');
WriteLn('+---------------End Report----------------');

End;
Begin

Smart_Server := 86;
Smart_Members := True;
Smart_Signed := True;
ClearDebug;
SetupSRL;

DeclarePlayers;
DefineVars;
SPS_Setup(RUNESCAPE_OTHER,['tav_dung']);
MouseSpeed := 20;
If (not LoggedIn) then
LoginPlayer;
ClickNorth(SRL_ANGLE_HIGH);
FindNormalRandoms;
ReturnToBank;
Repeat
BankTaverly;
WalkToObelisk;
ChargeOrbs;
ReturnToBank;
Inc(RunCount);
Report;
Until(NoT(Loggedin))
End.


New updated script. Copy and paste tav_dung IMG into path–> C:\Simba\Includes\SPS\img\runescape_other


Please: realize this version only supports fire orbs atm!!!

Questions about setting up? PM me and i'll teamviewer you :)

I DO NOT OWN THIS SCRIPT, THEREFORE, ALL DONATIONS GO TO 'OP' OR 'GOOGLE' FOR HELPING IMMENSELY!!

(s)okkr7

2012-05-31 01:24:07

From: Turpinator
Updated with a quick color banker method. tested it once. worked. should be fine. Sokkr, Feel free to just attach it to one of your posts, im going to bed, so i wont have time to look at it until tomorrow evening, but i am curious to see the 'speed' improvements you made. :)

IF YOU WANT, USE SOKKR's FILE (no guarantees as to if it will work. ;))


Not so sure it's as speedy as it was. But it definitely will run without problems. ;)

(s)okkr7

2012-05-31 01:44:43

Sorry for the triple post, I'm aware.

Post bugs as followed:

Location:
Problem: (be descriptive)
Orbs Made Until:

Thanks!

Bot4Fun

2012-05-31 07:56:43

Since there is no Agility beside Air and Earth in your calculations, does that mean i can use earth and air without 70 or 80 agility? Or can this script not make Air and Earth?

Sorry for stupid question, but i have never done this before.

Turpinator

2012-05-31 09:16:45

From: Bot4Fun
Since there is no Agility beside Air and Earth in your calculations, does that mean i can use earth and air without 70 or 80 agility? Or can this script not make Air and Earth?

Sorry for stupid question, but i have never done this before.


Correct on both. you dont need 70/80 agility to do airs/earths fast, but they are also not in the script. i am not sure whether i will release Airs because GOOGLE has a private air script and i dont want to kill all his… sales if he sells it/profits for himself.

htstigers03

2012-05-31 14:43:43

Turp, have you checked his script by any chance? Just wanna make sure it's safe to use aka no hacks, etc. No offense Sokkr7. Just being cautious after that Nat script hack.

(s)okkr7

2012-05-31 14:45:26

From: htstigers03
Turp, have you checked his script by any chance? Just wanna make sure it's safe to use aka no hacks, etc. No offense Sokkr7. Just being cautious after that Nat script hack.


No H@x0r$. Promise! :) And yeah, it's smart to play it safe, no offense taken.

Edit: Let me know how it works for you!

htstigers03

2012-05-31 18:08:17

tested your script sokkr7. It works great. It's a bit more independent than V1.0. It bugs out much less when it comes to lag. So far it bugged out once at obelisk for some reason. It clicked the spell and right-clicked the obelisk and just hovered there. Could really explain why that happened. Wasn't due to lag or anything, because lags are usually fixable without restarting. That said, the bug didnt occur for like 2 hours, so I'm satisfied.

As for speed, it's hard for me to tell since the stats are not really based on efficiency, and more on progress. I'll try to add orbs/hour or something so I can figure it out. Or at least time stats to the proggy reports.

Turpinator

2012-05-31 18:57:51

Tonight and tomorrow ill work on updating this again with new SPS maps (like sokkr did) and with some sort of sps map updater (so you dont have to do it manually). Originally i wrote the first version of it on a 12" laptop, so i was really limited as to what i could do. now that im back home on my desktop, i should be able to put more time into it and code better. (no one likes coding on a tiny laptop in an RV)

And a side note. not sure if anyone saw my 'info' in my script, but if you type the password backwards… it says 'trolledlol'

(s)okkr7

2012-05-31 21:57:21

From: htstigers03
tested your script sokkr7. It works great. It's a bit more independent than V1.0. It bugs out much less when it comes to lag. So far it bugged out once at obelisk for some reason. It clicked the spell and right-clicked the obelisk and just hovered there. Could really explain why that happened. Wasn't due to lag or anything, because lags are usually fixable without restarting. That said, the bug didnt occur for like 2 hours, so I'm satisfied.

As for speed, it's hard for me to tell since the stats are not really based on efficiency, and more on progress. I'll try to add orbs/hour or something so I can figure it out. Or at least time stats to the proggy reports.


Hmm was it a major lagg? Or a minor lagg? Hasn't happened to me once and I ran the script successfully for 8 hours straight :) But I guess everyone has their own individual bugs. Thanks for reporting back. I'll leave this topic up to Turp now, unless he asks me to help him or something! Thanks guys!

htstigers03

2012-06-01 14:32:16

The bot, with 80 agility makes about ~15-16 runs/hour for fires.

gmare

2012-06-04 13:16:29

Hi, this script is pretty good for me so far, I've only seen something that could be improved (maybe I'll do it one day, but my knowledge about simba scripting is not enough at the moment)

So here is the picture:


So what does that dots mean?
Blue: Start location (at the bank)
Green: Current path clicks
Red: (not the red ones on right side) how it could be, to make it come to dung with less clicks

From the bank you can see just that little part, but I think script could click it and wait until player gets there, then makes another click on the dungeon entrance (there will be needed camera rotation probably).
Alternatively, script could rotate camera and make a click on dungeon entrance, which would make player run from bank, directly in the dungeon.

Turpinator

2012-06-04 20:26:46

From: gmare
Hi, this script is pretty good for me so far, I've only seen something that could be improved (maybe I'll do it one day, but my knowledge about simba scripting is not enough at the moment)

So here is the picture:


So what does that dots mean?
Blue: Start location (at the bank)
Green: Current path clicks
Red: (not the red ones on right side) how it could be, to make it come to dung with less clicks

From the bank you can see just that little part, but I think script could click it and wait until player gets there, then makes another click on the dungeon entrance (there will be needed camera rotation probably).
Alternatively, script could rotate camera and make a click on dungeon entrance, which would make player run from bank, directly in the dungeon.


Thanks for the suggestion, Ill try and get the direct to dungeon click working… maybe. I did revise it and update the paths and maps and 70 agility too, (should increase speed and accuracy) but have been having problems with the new paths/maps. Im aiming for a new map/walk release sometime this week before i basically leave for the summer, but if i dont… well i think sokkr might take this over. (if he wants to)

(s)okkr7

2012-06-04 20:51:22

We'll see what i'm up to lately :) what exactly seems to be the problem?

g0r3

2012-06-04 22:35:17

Thanks for this script, it is pretty nice. An improvement I recommend you implement though is super anti-poison usage. On the way to the fire obelisk, there are poisonous spiders that posion you pretty easily. The script then does not eat when the health is getting low from poison for some reason and you end up dying. I already died once from this and almost died 3 times more if I hadn't been there to apply an anti-poison.

Poisoning is also a common occurrence, you might make it through the spiders 2 or 3 times max, before one eventually gets you and you become poisoned.

Turpinator

2012-06-05 00:08:07

From: g0r3
Thanks for this script, it is pretty nice. An improvement I recommend you implement though is super anti-poison usage. On the way to the fire obelisk, there are poisonous spiders that posion you pretty easily. The script then does not eat when the health is getting low from poison for some reason and you end up dying. I already died once from this and almost died 3 times more if I hadn't been there to apply an anti-poison.

Poisoning is also a common occurrence, you might make it through the spiders 2 or 3 times max, before one eventually gets you and you become poisoned.


Oh. Uhh. I will try and do that, though I have never been attacked by them. but. good idea. (and for the eating… i just wrote something up quick and never really tested it)
Im actually working on it right now. Got the walking working again, but ill continue to refine the paths.

Edit: 64*2-1 = 127. and im higher cb than that, so they arent agressive towards me. I really never thought to consider that.

Update: Eating is now working fine… was having troubles with that too. <_< Now… onwards to the antipoison.

Super Update. New 1.1 is out. Should heal poison. (hopefully)

g0r3

2012-06-06 13:45:17

EDIT: Got it working now, thanks. Will test it out in a min.

Turpinator

2012-06-08 00:36:27

Just a note to anyone who has downloaded this recently… 1.1b came out after 1.1… 1.1 only had 1 download when i posted 1.1b… so… download the new one.

Also on a side note, in 1.1(b), IF you have the security extension active, you will have to allow the script to connect to imgur.com. This is to download the SPS map. (you can turn it off in the settings at the top, but i may change the maps occasionally. (so keep auto set to true)

hader dem2

2012-06-12 11:41:47

it wont work for me i got a fail at line 74 and have save the map

Turpinator

2012-06-14 19:42:13

From: hader dem2
it wont work for me i got a fail at line 74 and have save the map


care to elaborate on the fail? fails to compile? fails to run? copy the debug so i can actually figure out what is wrong.


On a side note… sorry for not updating to Airs this week, i havent had internet until now and have been busy. This weekend i should have time to update it.

hader dem2

2012-06-15 10:16:52

From: Turpinator
care to elaborate on the fail? fails to compile? fails to run? copy the debug so i can actually figure out what is wrong.


On a side note… sorry for not updating to Airs this week, i havent had internet until now and have been busy. This weekend i should have time to update it.




here is the fail i get



Error: SPS Maps Do Not Exist OR They Are Named Incorrectly! at line 74

Turpinator

2012-06-17 12:22:35

From: hader dem2
here is the fail i get

Error: SPS Maps Do Not Exist OR They Are Named Incorrectly! at line 74


Well… i would suggest just leaving AutoMaps to true… If you have the security extension enabled, make sure you allow it to look at your include path files and also connect to imgur to download. if theres still a problem… idk.

anyway. Updated to 1.2
  • After a suggestion by KillaKev, added poison fixing mid run.
  • —- if poisoned and hp is low, will tele to bank to fix
  • —- I plan to add the option to carry an antipoison around also
  • Finally added some antiban
  • Fixed eating after being poisoned

Ezio Auditore da Firenze

2012-06-17 12:28:22

Turp! check ur pm!

hader dem2

2012-06-17 18:53:01

thanks now it will compline and start i will try it hmm it wont walk only take cosmic and orb and stay in bank

Turpinator

2012-06-18 01:05:10

From: hader dem2
thanks now it will compline and start i will try it hmm it wont walk only take cosmic and orb and stay in bank


1: make sure you have 1.2
2: delete the sps map it downloads – located at C:\Simba\Includes\SPS\img\runescape_other\ and called "TurpOrbs"
3: if it still doesnt work. pm me or add me on skype or something. ill try and get this working.

hader dem2

2012-06-18 04:46:18

From: Turpinator
1: make sure you have 1.2
2: delete the sps map it downloads – located at C:\Simba\Includes\SPS\img\runescape_other\ and called "TurpOrbs"
3: if it still doesnt work. pm me or add me on skype or something. ill try and get this working.


it desnt work with downlod or that pic u self download when it work i will use it not before

otaman

2012-06-19 08:50:26

Oh and air orbs don't need agility or anything, you just run to the obelisk, charge, and telly back to Edgy. No need for another high (80 is usually considered somewhat high) skill, or simply another money maker for people without the skill. I doubt this matters from what you've said before, but I just realized the higher reqs and thought I'd point it out. I can do it either way, and I've been done for a long while now and I don't plan on making any more bstaffs anytime soon. ~20k was enough.

Thanks for the work and everything put into this great script mate :D

Turpinator

2012-06-19 22:04:11

From: otaman
Oh and air orbs don't need agility or anything, you just run to the obelisk, charge, and telly back to Edgy. No need for another high (80 is usually considered somewhat high) skill, or simply another money maker for people without the skill. I doubt this matters from what you've said before, but I just realized the higher reqs and thought I'd point it out. I can do it either way, and I've been done for a long while now and I don't plan on making any more bstaffs anytime soon. ~20k was enough.

Thanks for the work and everything put into this great script mate :D


haha yeah. I with the 80+ agility, it makes it basically impossible to goldfarm, so that keeps the prices fairly stable. though, i do plan to add Airs sometime soon…. Perhaps this weekend if i have time after recovering from work. perhaps. :D BUT… the 70 agility should come this weekend. i think. and any other fixes/bugs/etc that people have said/suggested/i have found/etc.

youre welcome too. :D but really i just did this for myself (call me selfish). 1: experience 2: money 3: impress the ladies. (jk obvs)

Turpinator

2012-07-01 00:41:15

I hate to go ahead and double post… but its been like a week and a half since i last posted and i just now realized i had some little stupid mistake that was causing problems. soo… everyone who was having problems with the map and giving them an error, REDOWNLOAD!

Sir Ducksworthy

2012-07-05 00:03:21

Is the fire altar in the wilderness?

Mazool

2012-07-07 01:44:56

From: leetsxc
Is the fire altar in the wilderness?


No, it's right under the water altar below the island across from catherby fishing. you get too it passed the blue dragons and poison spiders then beside the black dragons.

tiger12418

2012-08-20 23:52:19

Can someone help me with this, I keep getting this Error and I don't know what to do.


Turpinator

2012-08-21 22:26:04

From: tiger12418
Can someone help me with this, I keep getting this Error and I don't know what to do.



Script has some old function calls pertaining SMART 6.9. Ill update it right now. though i dont know if it will work right away… though it should.


EDIT: UPDATED FOR SMART 7.2. (i have no idea if it still works though

djm995

2012-08-22 02:52:28

was working perfectly without error just before now i get this:

Exception in Script: Plugin(sps32) has not been found

not sure if i'm missing something or not D:
EDIT: Nevermind, sorry about that, just had to update plug-ins :p

uc0591

2012-10-25 22:10:12

Taverley dungeon maps have been updated, they can't run in the dungeon…please fix it

Turpinator

2012-10-28 03:50:18

From: uc0591
Taverley dungeon maps have been updated, they can't run in the dungeon…please fix it


Ah yes. i worked on updating this a few weeks ago but was having some troubles with the finding the floor trap… Hopefully if i work on it tomorrow, i can fix it. hopefully. luuls.

Enslaved

2012-10-28 10:06:57

SPS maps needs updating as a whole, try using another walk method, DDTM walking works nicely

Clairvoyance

2012-11-02 18:49:50

Works until it gets to agil shortcuts

Swifte

2012-11-02 19:59:17

Can't wait for the other Air orb charger! My alternate main hasn't a high enough agility level right now and I can't be bothered to get it up. Great idea on script. Consider adding in Anti-Leech.