SRL Archive - RS3 Outdated / Broken Scripts

[EOC] King'sWaterFiends


King

2013-01-13 13:58:33

OUTDATED

Update: Wrote a little bit of code, made a custom bank opening procedure :P

program KingsWaterFiends; //Made by SRLKing
{$DEFINE SMART8}
{$I SRL/SRL.simba}
{$I SPS/SPS.simba}
{$I SRL/SRL/skill/prayer.simba}
{$i SRL/srl/misc/smartgraphics.simba}
{.Include SRL\SRL\Misc\Debug.simba}
{$i SRL-OSR/SRL/misc/MouseHandler.simba}
var
Status, Color: string;
x, y, StartingHP: Integer;

const
Debug = True;

//////////////************Settings************//////////////////
FoodAmount = 15; //Amount of Food to Withdraw

PrayerPotAmount = 2; //Prayer Potions to Bring

Prayer = False; //Use Quick Prayers?

RangingPotions = True; //Use Ranging Potions?

RangePotAmount = 1; //Amount of ranging potions to bring

HpToEatAt = 40000; //Hp To Eat Food At?

procedure DeclarePlayers; //Credit Goes to Football for this, I liked the idea :P
var
FileNum: integer;
s: string;
usrInfo: TStringArray;
begin
FileNum := OpenFile('C:\acc.txt', true);
ReadFileString(FileNum, s, FileSize(FileNum));
CloseFile(FileNum);
usrInfo := Explode(chr(10), s);
NumberOfPlayers(1);
CurrentPlayer := 0;
with Players[0] do
begin
Name := usrInfo[0];
Pass := usrInfo[1];
Pin := usrInfo[2];
Active := True;
end;
end;

Procedure Eat;
begin
MouseBox(377, 302, 393, 322, 1);
wait(RandomRange(400, 500));
end;

Function NeedToBank: Boolean;
begin
StartingHP := GetMMLevels('hp', color);
if (StartingHP <= HpToEatAt) then
Eat;
if (GetMMLevels('hp', color) <= HpToEatAt) then
begin
Result := True;
end
else
Result := False;
end;

Function WalkToRing: Boolean;
var
ToRing: TPointArray;
begin
ToRing:=[Point(126,139),Point(135,148),Point(140,151),Point(147,154),Point(150,156),Point(156,160),Point(160,161),Point(171,167),Point(179,170),Point(193,177),Point(205,180),Point(222,187),Point(228,196),Point(231,203),Point(234,210),Point(235,218)];
if SPS_WalkPath(ToRing) then
begin
Status := 'At the ring';
if debug then
writeln(status);
result := true;
end
else begin
Status :='Did not walk to the fairy ring';
if debug then
WriteLn(status);
TerminateScript;
end;
end;

Function WalkToBank: Boolean;
var
ToBank: TPointArray;
begin
ToBank:=[Point(235,218),Point(234,210),Point(231,203),Point(228,196),Point(222,187),Point(205,180),Point(193,177),Point(179,170),Point(171,167),Point(160,161),Point(156,160),Point(150,156),Point(147,154),Point(140,151),Point(135,148),Point(126,139)];
if SPS_WalkPath(ToBank) then
begin
Status := 'At the bank';
if debug then
writeln(status);
result := true;
end
else begin
Status :='Did not walk to the bank';
if debug then
WriteLn(status);
TerminateScript;
end;
end;

Function FindCaveFloor: Boolean;
var
TPA: TPointArray;
ATPA: T2DPointArray;
i, L, X, Y: Integer;
P: TPoint;

begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.13, 0.34);
If InvFull Then Exit;
if FindColorsSpiralTolerance(x, y, TPA, 9996934, MMX1, MMY1, MMX2, MMY2, 10) then
begin
ATPA := TPAtoATPAEx(TPA, 40, 40);
SortATPAFrom(ATPA, Point(MMCX, MMCY));
DebugATPA(ATPA, '');
L:=High(ATPA)
for i:=0 to L do
if GetArrayLength(ATPA[i]) > 20 then
begin
status := 'At the cave';
if debug then
writeln(status);
result := true;
exit;
end
else
begin
status := 'Not at the cave';
if debug then
writeln(status);
result := false;
exit;
end;
end;
end;

Function AtCave: Boolean;
begin
if FindCaveFloor then
begin
status := 'At the cave';
if debug then
writeln(status);
Result := true;
exit;
end
else
begin
status := 'Not at the cave';
if debug then
writeln(status);
result := false;
TerminateScript;
end;
end;

Function ExitCave: Boolean;
begin
end;


Function GetToBank: Boolean;
begin
if AtCave and NeedToBank then
if ExitCave then
if WalkToBank then
begin
status := 'Got to the bank';
if debug then
writeln(status);
result := true;
exit;
end else
TerminateScript;
end;

Function OpenBankSRLKing: Boolean;
var
TPA: TPointArray;
ATPA: T2DPointArray;
i, L, X, Y: Integer;
R: TPoint;

begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.02, 3.03);
If InvFull Then Exit;
if FindColorsSpiralTolerance(x, y, TPA, 8183786, MSX1, MSY1, MSX2, MSY2, 8) then
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.2, 0.2);
ATPA := TPAtoATPAEx(TPA, 20, 3);
SortATPAFrom(ATPA, Point(MSCX, MSCY));
// DebugATPA(ATPA, '');
L:=High(ATPA)
for i:=0 to L do
if GetArrayLength(ATPA[i]) > 10 then
begin
R := MiddleTPA(ATPA[i]);
AL_HumanMMouse(point(r.x, r.y), 0, 0);
if WaitUptext('ank', 200) then
begin
ClickMouse2(false);
wait(RandomRange(250, 300));
ChooseOption('ank');
MarkTime(x)
repeat
wait(RandomRange(25, 45));
until(BankScreen or (TimeFromMark(x) >= 20000));
if BankScreen then
begin
result := true;
exit;
end
else
begin
result := false;
exit;
end;
end;
end;
end;
end;



function AtBank: boolean;
begin
Result := FindSymbolIn(x, y, Symbol_Bank, 550, 10, 700, 150) and (Distance(x, y, 627, 84) < 25);
end;

function OpenZBank: Boolean;
begin
if AtBank then
begin
if OpenBankSRLKing then
begin
if PinScreen then
InPin(Players[0].Pin);
if BankScreen then
begin
status := 'Bank Open'
if debug then
writeln(status);
result := true;
exit;
end
else
begin
status := 'Could not open bank'
if debug then
writeln(status);
result := false;
TerminateScript;
end;
end;
end;
end;

procedure DepositLoot;
begin
if BankScreen then
Deposit(1, 23, false);
end;

Function DoBanking: Boolean;
begin
If BankScreen then
begin
DepositLoot;
Withdraw(0, 0, FoodAmount);
wait(RandomRange(250, 500));
If Prayer then
Withdraw(1, 0, PrayerPotAmount);
wait(RandomRange(250, 500));
If RangingPotions then
Withdraw(2, 0, RangePotAmount);
wait(RandomRange(250, 500));
CloseBank;
wait(RandomRange(250, 500));
if not BankScreen then
begin
result := true;
Status := 'Banked';
if Debug then
writeln(status);
exit;
end;
end
else
begin
result := False;
Status := 'Couldnt Bank';
if Debug then
writeln(status);
TerminateScript;
end;
end;

begin
SetupSRL;
DeclarePlayers;
MouseSpeed := 25;
if not LoggedIn then
begin
LogInPlayer;
wait(RandomRange(1000, 6000));
end;
if AtBank and NeedToBank then
begin
OpenZBank;
DoBanking;
end;
if not AtBank and NeedToBank then
begin
GetToBank;
OpenZBank;
DoBanking;
end;

end.

Prometheus

2013-01-13 14:35:14

You finished it! Good job! Might try this after i get 99 fletching :D

King

2013-01-13 15:14:45

Yessir! It is almost done, just need to added the new features and do tresing through a public beta, then I will apply with it :P

Benny

2013-01-13 15:40:23

Woah well done. Looks awesome! Congrats on the release

King

2013-01-13 16:18:20

Thankyou! I just need to slowly add in small things and stress test for bugs before applying for membership with it(:

shiningwhite

2013-01-13 17:11:07

We did not arrive at the cavern, exiting

it walks all the way to it, then stands on the bridge, any ideas?

King

2013-01-13 17:38:13

Ill look into it, is the symbol for the dungeon working?

King

2013-01-13 19:23:14

From: shiningwhite
We did not arrive at the cavern, exiting

it walks all the way to it, then stands on the bridge, any ideas?


Updated, now should work. Some color's had changed.

King

2013-01-13 21:15:28

Cmon guys, leave me some feedback if you are going to download it :P

SeanStar

2013-01-13 21:56:06

Looting is definitely mine.

Pretty sure I'm the one that figured out to use the killbar for looting…

Even posted a thread on it a while back with almost the exact same code.
So yeah, FindRedBar is Shatterhand, Looting is mine (even though it uses FindRedBar)

http://villavu.com/forum/showthread.php?t=94796 <<< Look Familiar?

King

2013-01-13 22:37:25

From: SeanStar
Looting is definitely mine.

Pretty sure I'm the one that figured out to use the killbar for looting…

Even posted a thread on it a while back with almost the exact same code.
So yeah, FindRedBar is Shatterhand, Looting is mine (even though it uses FindRedBar)

http://villavu.com/forum/showthread.php?t=94796 <<< Look Familiar?


I thought the looting was shatterhand as well, sorry mate. I will credit you for the looting, however I did change it some. Didnt mean to credit the wrong person :P It has been changed to you and I am currently uploading it. If you are interested I added onto your looting to be able to pickup more than just the charms :P

SeanStar

2013-01-13 22:48:12

From: SRLKing
I thought the looting was shatterhand as well, sorry mate. I will credit you for the looting, however I did change it some. Didnt mean to credit the wrong person :P It has been changed to you and I am currently uploading it. If you are interested I added onto your looting to be able to pickup more than just the charms :P

Replied to your pm regarding this. ;)

King

2013-01-13 22:52:15

I appreciate it! Sorry for the mistake :P

shiningwhite

2013-01-13 23:08:53

it's still not finding the cave for me.
aslo:

Trying to open the bank
Opened the Bank
Found Necklace
We are not at the Barbarian outpost
Successfully executed.

Angel Heart

2013-01-14 01:22:35

Haven't tested it yet but in my opinion you should take Bombardment off the action bar. It can pick up 3-4 Waterfiends at once. Most people would take a -10 kills per hour to decrease the use of Rejuvinate/Food.

Mr[S]

2013-01-14 03:19:01

Looks good going to test it after 99 cooking :)

King

2013-01-14 06:15:23

From: Mr[S]
Looks good going to test it after 99 cooking :)

Going for more bug fixes :P

From: drknes
Haven't tested it yet but in my opinion you should take Bombardment off the action bar. It can pick up 3-4 Waterfiends at once. Most people would take a -10 kills per hour to decrease the use of Rejuvinate/Food.


I can definitely do that

From: shiningwhite
it's still not finding the cave for me.
aslo:

Trying to open the bank
Opened the Bank
Found Necklace
We are not at the Barbarian outpost
Successfully executed.


Im not really sure what to tell you, The script runs perfectly for me. I have had it stop before, but never there. Do you have Simba setup correctly? It uses mini map symbols to determine the location.

King

2013-01-16 20:53:17

Will update more after exams, have had them all week!

King

2013-01-19 09:11:43

Exams done, all a's :spot: I wiil update it by tonight!

Silentcore

2013-01-23 21:36:51

My question is: are waterfiends weak with black salamanders again?

Solar

2013-01-24 02:40:28

Well done on the release! Hope everything goes alright with it.

footballjds

2013-01-25 11:39:28

Dammit, I still haven't released mine cause I'm waiting on the MMToMS function to get updated…

King

2013-01-27 09:58:53

From: Silentcore
My question is: are waterfiends weak with black salamanders again?


Im not sure :P I've been away for AP exams and ACT testing, Ill be back on now!

From: Solar
Well done on the release! Hope everything goes alright with it.

Thankyou!

From: footballjds
Dammit, I still haven't released mine cause I'm waiting on the MMToMS function to get updated…


I would use 3D projection, works like a charm :spot:

footballjds

2013-01-28 10:08:23

Charms/hr?

Olly

2013-01-28 12:08:13

From: footballjds
Dammit, I still haven't released mine cause I'm waiting on the MMToMS function to get updated…


Same :p for other scripts obviously. And 3d projection is still decent but could do with some sort of a update like MMtoMS :p

footballjds

2013-01-28 12:11:06

From: Ollybest
Same :p for other scripts obviously. And 3d projection is still decent but could do with some sort of a update like MMtoMS :p


Bug the guy that wrote MMtoMS. I've been PM'ing him every 1-2 weeks for the past 2 months :p

Olly

2013-01-28 13:05:37

From: footballjds
Bug the guy that wrote MMtoMS. I've been PM'ing him every 1-2 weeks for the past 2 months :p



pshhh Narcle is hella hella inactive :(

footballjds

2013-01-28 14:02:26

From: Ollybest
pshhh Narcle is hella hella inactive :(


I know, but he gets on to respond to me and tell me he'll do it. some day :P

King

2013-01-28 17:08:03

Havent tested with the slayer update, it use to be 150/hr when I tested it on my maxed main.

redknight942

2013-01-29 07:10:19

Nice script… will post a proggy when you add it!

footballjds

2013-01-29 10:02:45

I don't know why banking is req'd in this script? Summon a bunyip and you're set.

kritis

2013-01-30 10:41:09

Could you add option to use teletab or glory while on invetory please. Bacause i want to wear a better amulet ( range/fury ) x).

King

2013-01-30 12:07:11

From: footballjds
I don't know why banking is req'd in this script? Summon a bunyip and you're set.


Because I wanted to start off with a script that even the most basic accounts could use. I have updated it some more for personal use, I will release it in a new version with summoning, bunyip and teletab options, along with anything else that is requested (:

From: kritis
Could you add option to use teletab or glory while on invetory please. Bacause i want to wear a better amulet ( range/fury ) x).

Yeah, not an issue

Snowskate

2013-01-30 19:02:07

When I try to run this script I get a message "Exception in Script: Unable to find file '3DProjection.simba' used from 'C:\Users\mayk\Desktop\Simba\King'sWaterFiendsBETA3.simba'"

Not 100% sure what this means lol? Did a forum search and I only found a couple threads but it sounds like that method is way out of date? So is it possible to run this script or no?

dzpliu

2013-01-30 23:19:13

From: Snowskate
When I try to run this script I get a message "Exception in Script: Unable to find file '3DProjection.simba' used from 'C:\Users\mayk\Desktop\Simba\King'sWaterFiendsBETA3.simba'"

Not 100% sure what this means lol? Did a forum search and I only found a couple threads but it sounds like that method is way out of date? So is it possible to run this script or no?

go check out one the objDTM thread last page, someone uploaded their files, download and put them into correct folders.



is anyone facing slow ability usage problem as well? it doesnt use abilities that often …

Zorgatone

2013-01-31 16:17:33

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Users\Zorgatone\Downloads\King'sWaterFiendsBETA3.simba'

Help I've tried to install this http://villavu.com/forum/showthread.php?p=847813 but I still get this error (it won't update when I try to update it, and yes: it is enabled the extension .sex)

How can I fix that?
thanks

Zorgatone

2013-01-31 16:19:05

http://silentscripts.net/objdtm/ is offline :(

King

2013-01-31 20:24:45

From: dzpliu

is anyone facing slow ability usage problem as well? it doesnt use abilities that often …





I never was quite sure why it was so slow using the abilities, however Euphinism is just finishing up his include for abilities, so I have been waiting for that to update them :P

footballjds

2013-02-01 09:20:52

From: SRLKing
I never was quite sure why it was so slow using the abilities, however Euphinism is just finishing up his include for abilities, so I have been waiting for that to update them :P


Will be interesting to see his approach :p

King

2013-02-01 23:15:04

Agreed :P Working on updating them on my own atm

zxzero

2013-02-03 21:01:53

Could you update it with extreme range flasks also? Testing this out now. :)

Also a option for Ghorrock would be amazing, as you don't have to run through the wildy. :D

King

2013-02-03 21:07:06

From: zxzero
Could you update it with extreme range flasks also? Testing this out now. :)


I will be coming out with an update that supports all potions ect when Euphinism releases his abilities :P

King

2013-02-05 22:29:57

Updated! Read the features list! I updated with new ability useage, faster fighting detection, now uses the castle wars bank, looting was improved along with walking and over all stability. I've added a new major setup section, makes the script much more customization and user friendly. Script is now learning from you(; Post any bugs and suggestions! I will work on the "Features to come" tomorrow after my homework and school are done!

King

2013-02-06 21:46:15

Try out the script!doesnt even have anti leech! I can only test it so long by myself!

zeplin

2013-02-07 13:48:37

Unable to find file '3DProjection.simba' used from 'C:\Simba\Scripts\King'sWaterFiendsBETA3.simba' I've downloaded all the files and placed them in the correct folder :s

King

2013-02-07 15:33:50

From: zeplin
Unable to find file '3DProjection.simba' used from 'C:\Simba\Scripts\King'sWaterFiendsBETA3.simba' I've downloaded all the files and placed them in the correct folder :s


Please download the attachment, I forgot to upload it :P Place '3DProjection.simba' in the includes folder and then it should run fine!

King

2013-02-07 17:40:32

Update, I've been running for over an hour flawlessly, It does have some trouble when it gets stuck fighting only the fiends by the dragons, I think I may implement something similar to Brandon's GPS, where it kept the player by the fiends and walked back to the main spot if it couldnt find any, Ill add fairy ring support tonight and Potions

zeplin

2013-02-07 18:12:36

Now I get this

[Error]C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
[Error] C:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(78:8): Unknown identifier 'RSReady' at line 77

D;

King

2013-02-07 18:16:30

From: zeplin
Now I get this

[Error]C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
[Error] C:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(78:8): Unknown identifier 'RSReady' at line 77

D;


Copy and paste this over smart params and save it.


(*
Smart Params
============

.. contents::

*)

{$DEFINE SRL_SMART}
{$DEFINE SMART}
{$loadlib libsmartremote}

(*
GetSmartParams
~~~~~~~~~~~~~~

.. code-block:: pascal

function GetSmartParams: TStringArray;

Grabs The Correct Parameters For passing to the SmartClient.

.. note::

By: Brandon.
Modified By: Mormanman, Benland100.

Example:

.. code-block:: pascal

*)
function GetSmartParams: TStringArray;
var
Params: TStringArray;
Page: String;
begin
Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));
Params := Explode(',', Page);
Result := Params;
end;

(*
FixSmartSpeed
~~~~~~~~~~~~~

.. code-block:: pascal

procedure FixSmartSpeed;

Fixes Smart's Loading Speed.
Moves the Mouse & Adjusting the Canvas Refresh rate.

.. note::

By: Brandon.

Example:

.. code-block:: pascal

*)
procedure FixSmartSpeed;
var
T: Integer;
begin
T:= GetSystemTime + 2000;
While (Not SmartEnabled) Do
begin
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;

While (GetColor(382, 252) = 0) Do
begin
If RSReady then
Break;
SmartSetRefresh(SmartGetRefresh + 1);
MMouse(4, 4, 0, 0);
SmartSetRefresh(SmartGetRefresh - 1);
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;
end;

(*
SmartGetClientIDs
~~~~~~~~~~~~~~~~~

.. code-block:: pascal

function SmartGetClientIDs: TIntegerArray;

Grabs All Client ID's of the current remote.

.. note::

By: Mormanman.

Example:

.. code-block:: pascal

*)
function SmartGetClientIDs: TIntegerArray;
var
I, Count: Integer;
begin
Count := SmartGetClients(True);
SetLength(Result, Count);
If (Count > 0) then
For I:= 0 to (Count - 1) do
Result[I] := SmartClientID(I);
end;

(*
SmartKillClients
~~~~~~~~~~~~~~~~

.. code-block:: pascal

procedure SmartKillClients;

Kills all Smart clients.

.. note::

By: Mormanman.

Example:

.. code-block:: pascal

*)
procedure SmartKillClients;
var
IDs: TIntegerArray;
I: Integer;
begin
IDs := SmartGetClientIDs;
For I := High(IDs) DownTo 0 Do
If SmartKillClient(IDs[I]) Then
Writeln('Killed Client: ' + ToStr(IDs[I]))
else
Writeln('Failed To Kill Client: ' + ToStr(IDs[I]));
end;

(*
SixHourFix
~~~~~~~~~~

.. code-block:: pascal

procedure SixHourFix;

Kills The Current Smart Client and Restarts it.
Fixes the 6 hour login.

.. note::

By: Brandon.

Example:

.. code-block:: pascal

*)
procedure FreeSRL; Forward;
procedure SetupSRL; Forward;
procedure SixHourFix;
var
Trash: TVariantArray;
Refresh: Integer;
begin
FreeSRL;
Refresh := SmartGetRefresh;
SmartKillClient(SmartCurrentClient);
SetupSRL;

try
CallProc('SMART_FreeDebug', Trash);
CallProc('SMART_SetupDebug', Trash);
except
end;

SmartSetRefresh(Refresh);

try
if (not LoginPlayer) then
srl_Warn('SixHourFix', 'Could not log in player', warn_Terminate);
except
srl_Warn('SixHourFix', 'Players not declared', warn_Terminate);
end;
end;


(*
PairSmart
~~~~~~~~~

.. code-block:: pascal

function PairSmart(ID: Integer): Boolean;

Pairs A Client To The Current Controller.

.. note::

By: Benland100, Brandon.

Example:

.. code-block:: pascal

*)
function PairSmart(ID: Integer): Boolean;
var
I, Count: Integer;
IDs: TIntegerArray;
begin
IDs := SmartGetClientIDs;
Count := Length(IDs);
If (Count > 0) then
For I:= 0 To (Count - 1) Do
If (IDs[I] = ID) and SmartPairClient(ID) then
begin
SetEIOSTarget('libsmartremote', ToStr(ID));
Writeln('Paired with SMART[' + ToStr(ID) + ']');
Result := True;
Exit;
end;
Writeln('** Failed To Pair Client: ' + ToStr(ID) + '; Client Does Not exist **');
end;

(*
InitSmart
~~~~~~~~~

.. code-block:: pascal

function InitSmart(ForceNew: Boolean): Integer;

Initializes A Smart Remote Client.
Terminates the current script upon failure.
Terminates all clients of the current remote upon failure.
ForceNew Creates a new client.

.. note::

By: Benland100, Mormanman, Brandon.

Example:

.. code-block:: pascal

*)
function InitSmart(ForceNew: Boolean): Integer;
var
I, Count: Integer;
IDs: TIntegerArray;
Params: TStringArray;
begin
If (Not ForceNew) then
begin
Ids := SmartGetClientIDs;
Count := Length(IDs);
If (Count > 0) then
For I:= 0 To (Count - 1) Do
begin
If SmartPairClient(IDs[I]) then
begin
Result := IDs[I];
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Paired with SMART[' + ToStr(Result) + ']');
Exit;
end;
end;
end;

Params := GetSmartParams;
If (Length(Params) <> 2) then
begin
Writeln('** Failed To Grab Smart Parameters **');
Writeln('** Please check your internet connection/firewall **');
TerminateScript;
Exit;
end;

{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

If (Result > 0) Then
begin
try
SetEIOSTarget('libsmartremote', ToStr(Result));
Writeln('Loading SMART: ' + Params[0] + Params[1]);
except
WriteLn('** Fatal Error: Pairing Clients; Terminating Script **');
TerminateScript;
end;
end else
begin
Writeln('** Smart Cannot Spawn Clients **');
TerminateScript;
end;
end;

(*
SetupSmart
~~~~~~~~~~

.. code-block:: pascal

procedure SetupSmart(ForceNewClient: Boolean);

Sets Up a new Smart Client and waits until it's on screen.
Terminates The current script upon failure.

.. note::

By: Mormanman.
Modified By: Brandon.

Example:

.. code-block:: pascal

*)
procedure SetupSmart(ForceNewClient: Boolean);
var
T: Integer;
begin
T:= GetSystemTime + 120000;
Smart_CurrentClient:= InitSmart(ForceNewClient);
if (Smart_CurrentClient <= 0) then
begin
writeln('*** Smart Failed To Load ***');
TerminateScript;
end;

if (SRL_SixHourFix) then
SRL_Procs[SRL_OnRSUpdate]:= @SixHourFix;

While (GetColor(382, 252) <> 0) Do
begin
if RSReady then
break;

Wait(100);
if (GetTimeRunning >= 120000) then
begin
Writeln('*** Failed To Detect Clients ***');
TerminateScript;
end;
end;
end;





{* Functions Below Here are From the Original Smart.Simba *}


{*
By: Unknown Author.
Finds a Windows by partial title and Sets it as the target.
*}
function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
var
T : TSysProcArr;
I : Integer;
begin
T := GetProcesses;
for I := High(T) downto 0 do
if Pos(TitlePrefix, T[I].Title) <> 0 then
begin
Result := True;
if SetAsTarget then SetTarget(T[I]);
Exit;
end;
end;

{*
By: Unknown Author.
Gets the position of the actual mouse (Not Smart's Mouse).
*}
procedure GetRealMousePos(var X, Y : Integer);
var
KMTarget, ITarget: Integer;
begin
{$IFDEF LAPE}
writeln('GetRealMousePos not implemented yet in SRL-5 Lape!');
TerminateScript;
{$ELSE}
KMTarget := GetKeyMouseTarget;
ITarget := GetImageTarget;
FindAndSetTarget('SMART', True);
GetTClient.IOManager.GetMousePos(X, Y);
FreeTarget(GetImageTarget);
SetKeyMouseTarget(KMTarget);
SetImageTarget(ITarget);

// These are not universial offsets, but works somewhat for some Windows themes.
X := X - 8;
Y := Y - 25;
{$ENDIF}
end;

{*
By: Unknown Author.
Returns if the "Real Mouse" (Not Smart's Mouse) Is Within a given Box.
*}
function IsRealMouseInBox(B : TBox): Boolean;
var
P : TPoint;
begin
GetRealMousePos(P.X, P.Y);
Result := PointInBox(P, B);
end;

Silentcore

2013-02-07 18:23:36

Soo According to the setup, this script has to start at castle wars and teleports to the barbarian place and then goes into the caverns and to leave it teleports back to castle wars?

zeplin

2013-02-07 18:25:06

Ok, now this:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(293:131): Invalid number of parameters at line 292

haha:)

King

2013-02-07 18:26:02

From: Silentcore
Soo According to the setup, this script has to start at castle wars and teleports to the barbarian place and then goes into the caverns and to leave it teleports back to castle wars?


Yes it starts at the castle wars bank, grabs food and a games necklace (soon to grab potions and familiar pouch and summon), then to bank it teleports with a ring of duelling.

From: zeplin
Ok, now this:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(293:131): Invalid number of parameters at line 292

haha:)


Do you have smart 8 downloaded?

zeplin

2013-02-07 18:28:36

No, I guess I should:P

zeplin

2013-02-07 18:43:13

I start at Castle Wars and get this…
No longer fighting
looking for a waterfiend
We are at the bank
No longer fighting
No longer fighting
No longer fighting
looking for a waterfiend
We are no longer fighting

King

2013-02-07 18:46:56

From: zeplin
I start at Castle Wars and get this…
No longer fighting
looking for a waterfiend
We are at the bank
No longer fighting
No longer fighting
No longer fighting
looking for a waterfiend
We are no longer fighting


Im glad that fixed it! Uploaded non commented copy, re-download and then run, should work :P

E* redownload again, just fixed some errors

Silentcore

2013-02-07 18:49:35

Actually you mentioned earlier this:
{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

and it has to go like this:

{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ENDIF}

King

2013-02-07 18:51:55

From: Silentcore
Actually you mentioned earlier this:
{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
{$ENDIF}

and it has to go like this:

{$IFDEF SMART8}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ELSE}
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
{$ENDIF}


I thought defining smart 8 Fixed that problem now? Mine still has the -1.

Silentcore

2013-02-07 18:53:44

From: SRLKing
I thought defining smart 8 Fixed that problem now? Mine still has the -1.


Remove the "-1" and then save it and close it..

King

2013-02-07 18:59:55

From: Silentcore
Remove the "-1" and then save it and close it..


Mine works perfectly fine? Im saying that I have the -1 and my smart params works fine. He didnt have smart v8 Downloaded. {$Define smart8} should take care of the -1 issue

Stayon

2013-02-07 19:05:07

What bow do you use for water fiends? I know that their weakness is bolts however I don't have a royal crossbow/hand cannon. What could I use that's under 5-10M?

King

2013-02-07 19:08:31

From: stayon
What bow do you use for water fiends? I know that their weakness is bolts however I don't have a royal crossbow/hand cannon. What could I use that's under 5-10M?


I'm 99 ranged and just use Dual rune crossbows with broad bolts and that seems to work fine(: I'm not sure the best setup, I just assume maybe karils pistols or karils bow?(:

Stayon

2013-02-07 19:10:59

From: SRLKing
I'm 99 ranged and just use Dual rune crossbows with broad bolts and that seems to work fine(: I'm not sure the best setup, I just assume maybe karils pistols or karils bow?(:


Meh might just go out there with that too. Range is only 81 but with EoC I don't think level directly correlate like it used to right? It's more so about "tier" level of your equipment(aka baller).

Silentcore

2013-02-07 19:13:55

From: stayon
What bow do you use for water fiends? I know that their weakness is bolts however I don't have a royal crossbow/hand cannon. What could I use that's under 5-10M?


The best weapon you can use is a black salamander with Harrlander tar as ammo.. It works great..

King

2013-02-07 19:14:50

From: stayon
Meh might just go out there with that too. Range is only 81 but with EoC I don't think level directly correlate like it used to right? It's more so about "tier" level of your equipment(aka baller).

Yessir

From: Silentcore
The best weapon you can use is a black salamander with Harrlander tar as ammo.. It works great..

And totally forgot about this XD

zeplin

2013-02-07 19:17:36

Nice it works now:) First noticeable suggestion would be to have it rotate the action bar, it seems to just click the first ability for a while before going onto the next. I would have it use the first then go straight to the next one to maximise dps.

zeplin

2013-02-07 19:20:08

The time between attacking the next waterfiend could be faster too, looks a bit bot like when you kill something then wait for a bit.

Stayon

2013-02-07 19:20:41

From: Silentcore
The best weapon you can use is a black salamander with Harrlander tar as ammo.. It works great..


Been away too long. Sweeeeet tip. Thank you so much!!

Silentcore

2013-02-07 19:29:54

From: stayon
Been away too long. Sweeeeet tip. Thank you so much!!


Enjoy your charm hunting..

HolyWord

2013-02-07 20:46:49

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.02Public.simba'

Downloaded the file and put it in my Includes folder then I run into this. Any help?

Silentcore

2013-02-07 20:50:56

From: HolyWord
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.02Public.simba'

Downloaded the file and put it in my Includes folder then I run into this. Any help?


You are missing the new DTM's and have to redownload them, here follow this link: http://villavu.com/forum/showthread.php?t=68112&highlight=object

HolyWord

2013-02-07 21:05:49

From: Silentcore
You are missing the new DTM's and have to redownload them, here follow this link: http://villavu.com/forum/showthread.php?t=68112&highlight=object


Mkay I did that and am still getting the same issue :/

E: It's saying that there is no new updates for it though is that strange?

fredoguy

2013-02-07 21:22:21

im having the same problem, and i did the extension adding.

King

2013-02-07 21:29:13

From: fredoguy
im having the same problem, and i did the extension adding.


From: HolyWord
Mkay I did that and am still getting the same issue :/

E: It's saying that there is no new updates for it though is that strange?


You can try re installing simba if you already have DTM's installed and they are not working.

King

2013-02-07 21:30:15

From: zeplin
The time between attacking the next waterfiend could be faster too, looks a bit bot like when you kill something then wait for a bit.


I will improve speed, I have to play around with it for a bit

From: zeplin
Nice it works now:) First noticeable suggestion would be to have it rotate the action bar, it seems to just click the first ability for a while before going onto the next. I would have it use the first then go straight to the next one to maximise dps.
It should be randomly selecting them to use with the first one being weighted slightly heavier than the rest.

footballjds

2013-02-08 10:22:34

I know it can be hard but refraining from double/triple posting is good :)

does this thing keep accurate track of charms looted? What's your crims and blue charm rate(combined)?

King

2013-02-08 12:43:38

From: footballjds
I know it can be hard but refraining from double/triple posting is good :)

does this thing keep accurate track of charms looted? What's your crims and blue charm rate(combined)?


I'm trying on the double post thing, Im new to actual rules of the forum XD I will get it down! It's more out of habit :P

It does not keep track of charms as of right now, however I'm putting that in the progress report, along with location tracking to keep it in the area, it attacks waterfiends by the dragons and gets slower kills over there. I can just make it mark it every time it picks one up(: It should be in tonight! I want on screen proggy, potions, and summoning, then Ill apply! Let me know if you have any suggestions :P

footballjds

2013-02-08 13:05:19

From: SRLKing
I'm trying on the double post thing, Im new to actual rules of the forum XD I will get it down! It's more out of habit :P

It does not keep track of charms as of right now, however I'm putting that in the progress report, along with location tracking to keep it in the area, it attacks waterfiends by the dragons and gets slower kills over there. I can just make it mark it every time it picks one up(: It should be in tonight! I want on screen proggy, potions, and summoning, then Ill apply! Let me know if you have any suggestions :P


i don't have suggestions because i have my own waterfiend script :p

You can look at it but don't copy it, or else YoHoJo will find you ;)

King

2013-02-08 15:02:35

Lol I wont copy it(;

Mjordan

2013-02-09 13:40:31

I know these posts are annoying, but….

I have zero idea about fighting after EOC, I haven't even fought since it's been out. So what would be the optimal setup for this script? Action bar, armour, weapon, etc? I've heard that a black salamander is good for waterfiends?

EDIT: Well I got it working pretty good. Just using royal dhide and a black salamander. It doesn't seem to be looting charms though? Only loots like once every 3-4 kills.

King

2013-02-09 14:55:17

From: Mjordan
I know these posts are annoying, but….

I have zero idea about fighting after EOC, I haven't even fought since it's been out. So what would be the optimal setup for this script? Action bar, armour, weapon, etc? I've heard that a black salamander is good for waterfiends?


I would use armadyll, black Sally, haralander tar ect. Then setup the ability bar starting with basic ranging abilities to ultimate(: there are some really good EOC guides by jakee to look at!

Mjordan

2013-02-09 15:37:36

@SRLKing Ok thanks for the equipment advice. Still having the problem with it not looting though. I've watched it for the last thirty minutes and it only gets maybe 2 out of 10 charms.

King

2013-02-09 18:00:28

From: Mjordan
@SRLKing Ok thanks for the equipment advice. Still having the problem with it not looting though. I've watched it for the last thirty minutes and it only gets maybe 2 out of 10 charms.


I will look into it! It looks fine for me, it could be an issue with the red bar Dtm

Sotark

2013-02-10 14:39:05

[Error] C:\Simba\Includes\SRL\SRL\MISC\Paintsmart.simba(44:33): Unknown identifier 'SmartGetDebugDC' at line 43

Help please.

Crusade

2013-02-10 16:38:13

Can't wait to try it out and post a good proggie :)

King

2013-02-10 16:45:51

From: Crusade
Can't wait to try it out and post a good proggie :)

Post any issues :p I'm looking at looting tonight!

From: Sotark
[Error] C:\Simba\Includes\SRL\SRL\MISC\Paintsmart.simba(44:33): Unknown identifier 'SmartGetDebugDC' at line 43

Help please.


Do you have smart8? I'll edit the main post to include it.

Crusade

2013-02-10 16:53:59

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.03Public.simba' I get this error, and I think I'm running on Smart8 :s I always run updates before I start a script and there are no available updates

King

2013-02-10 16:56:06

From: Crusade
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.03Public.simba' I get this error, and I think I'm running on Smart8 :s I always run updates before I start a script and there are no available updates


Follow the guide to install them here

Crusade

2013-02-10 17:01:26

did that, now it open a new tab called smartparams and this error shows up; [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.

King

2013-02-10 18:04:02

From: Crusade
did that, now it open a new tab called smartparams and this error shows up; [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.


Either install smart8, or change {$ Define Smart 8$} to {$ define smart$}

Mjordan

2013-02-10 18:13:13

@Crusade the website that those files are hosted on are down. Go to one of the last pages in that thread and somebody has posted the files and how to install them etc… Once you do that the script will run.

You ever figure anything out with the looting King? Could it be caused by my computer lagging?

Crusade

2013-02-10 18:56:28

I got it to run. Seems like I got v7,2.. and I did the guide on the last page too on that DTM guide, however it seems to get fucked up after one kill, I get an error like this;

Using Basic Ability
We still have a target
Error: Exception: The Points you passed to FastGetPixels exceed the bitmap's bounds at line 431
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]


in gametab..
In does that after the log says using Basic ability, but I put all abilities on 0 so it wouldn't use EOC.. can that be the problem?

however, great work with the script so far that I can test it, such as walking, searching in bank etc:)

King

2013-02-10 19:24:05

From: Mjordan
@Crusade the website that those files are hosted on are down. Go to one of the last pages in that thread and somebody has posted the files and how to install them etc… Once you do that the script will run.

You ever figure anything out with the looting King? Could it be caused by my computer lagging?


Yes, lag will cause it not to detect the red bar after the monster dies, go into the looting procedure and change the wait times around In it after findDTM(redbar1) ect and see what works for you, I can't test without seeing how your computer runs and adding longer waits significantly lowers its speed be asus of how often it is repeated. You can also alter the main fighting procedure, FightFiends to include the looting procedure a few more times if it is lagging badly(:

E* when I get home I can upload a version to work with lagg if you rather not play around with it, you'll just have to let me know if it works(:

From: Crusade
I got it to run. Seems like I got v7,2.. and I did the guide on the last page too on that DTM guide, however it seems to get fucked up after one kill, I get an error like this;

Using Basic Ability
We still have a target
Error: Exception: The Points you passed to FastGetPixels exceed the bitmap's bounds at line 431
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]


in gametab..
In does that after the log says using Basic ability, but I put all abilities on 0 so it wouldn't use EOC.. can that be the problem?

however, great work with the script so far that I can test it, such as walking, searching in bank etc:)

Yes, it has to use abilities :p

Crusade

2013-02-10 19:55:04

Oh okay, I added abilities and it workied :)

But at the end of low hp, about 2k and thats what I but the setting to, it didnt eat but logged out after this message;
Trying to open the bank
Failed to find and open the bank
Trying to open the bank
Failed to find and open the bank
Player is not Active…
All players not active!
NextPlayer(False)

King

2013-02-10 21:22:56

From: Crusade
Oh okay, I added abilities and it workied :)

But at the end of low hp, about 2k and thats what I but the setting to, it didnt eat but logged out after this message;
Trying to open the bank
Failed to find and open the bank
Trying to open the bank
Failed to find and open the bank
Player is not Active…
All players not active!
NextPlayer(False)


Hmmm…It should have teleported to castle wars, Ill look at it(: The logging out was a failsafe :P

Mjordan

2013-02-10 22:14:11

From: SRLKing
Yes, lag will cause it not to detect the red bar after the monster dies, go into the looting procedure and change the wait times around In it after findDTM(redbar1) ect and see what works for you, I can't test without seeing how your computer runs and adding longer waits significantly lowers its speed be asus of how often it is repeated. You can also alter the main fighting procedure, FightFiends to include the looting procedure a few more times if it is lagging badly(:

E* when I get home I can upload a version to work with lagg if you rather not play around with it, you'll just have to let me know if it works(:
Ok I'll play around with the wait times and see what I can get to work. If you feel like uploading one for slower computers feel free to though please.

King

2013-02-10 23:05:24

From: Mjordan
Ok I'll play around with the wait times and see what I can get to work. If you feel like uploading one for slower computers feel free to though please.


Just got home, Ill tinker tomorrow(:

Sotark

2013-02-11 00:47:47

From: SRLKing
Post any issues :p I'm looking at looting tonight!



Do you have smart8? I'll edit the main post to include it.

I've updated to SMART8.
I now get this error,
'[Error] C:\Simba\Includes\SRL\SRL\MISC\Paintsmart.simba(44:33): Unknown identifier 'SmartGetDebugDC' at line 43'
If I remove the 8 I get,
'[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(282:145): Invalid number of parameters at line 281'

Sjoe

2013-02-11 04:06:20

From: Sotark
I've updated to SMART8.
I now get this error,
'[Error] C:\Simba\Includes\SRL\SRL\MISC\Paintsmart.simba(44:33): Unknown identifier 'SmartGetDebugDC' at line 43'
If I remove the 8 I get,
'[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(282:145): Invalid number of parameters at line 281'


Re-install simba or force update it.
And keep the 8, it's used for smart8

King

2013-02-11 10:46:10

From: Sjoekeloe
Re-install simba or force update it.
And keep the 8, it's used for smart8


:ninja:'d me too it :p sorry mate, was asleep

Crusade

2013-02-11 11:23:21

It doesn't eat :s When it's supposed to eat, it tries to search for bank.

King

2013-02-11 12:59:31

From: Crusade
It doesn't eat :s When it's supposed to eat, it tries to search for bank.


Hmmm..Will look into it(:

Just looked through the code, I cant tell you what the problem is, Ill reupload my script and see if that helps, because it works for me. Do you have your food bound to a key and everything setup properly?

Crusade

2013-02-11 14:54:25

From: SRLKing
Hmmm..Will look into it(:

Just looked through the code, I cant tell you what the problem is, Ill reupload my script and see if that helps, because it works for me. Do you have your food bound to a key and everything setup properly?



Ye, ill try change the key binding again, incase = doesnt work.

Finally ate one, lol.. Will post proggie later :)

******************************************************************
*/////////————– Kings Waterfiends —————\\\\\\\*
*/////////———-____________________________———-\\\\\\\*
******************************************************************

*/////////——— Progress Report for: Cassy ——–\\\\\\\\\*
*///////// Loads done: 0 //// 0 Loads/Hour
*///////// XP gained: 58914 //// 69174 XP/Hour
*///////// Crimson charms: 0//// 0 Crimson Charms/Hour
*///////// Blue charms: 0//// 0 Blue Charms/Hour
*///////// Green charms: 0//// 0 Green Charms/Hour
*///////// Gold charms: 0//// 0 Gold Charms/Hour

Doesn't teleport back to the bank for more food, just continues to fight. Almost died lol.. do I have to have the Ring of Duel in inv or equip?

Theron

2013-02-12 19:26:03

Looks great. I will try it out after I finish getting 99 woodcutting. :D

King

2013-02-12 20:17:13

From: Crusade
Ye, ill try change the key binding again, incase = doesnt work.

Finally ate one, lol.. Will post proggie later :)

******************************************************************
*/////////————– Kings Waterfiends —————\\\\\\\*
*/////////———-____________________________———-\\\\\\\*
******************************************************************

*/////////——— Progress Report for: Cassy ——–\\\\\\\\\*
*///////// Loads done: 0 //// 0 Loads/Hour
*///////// XP gained: 58914 //// 69174 XP/Hour
*///////// Crimson charms: 0//// 0 Crimson Charms/Hour
*///////// Blue charms: 0//// 0 Blue Charms/Hour
*///////// Green charms: 0//// 0 Green Charms/Hour
*///////// Gold charms: 0//// 0 Gold Charms/Hour

Doesn't teleport back to the bank for more food, just continues to fight. Almost died lol.. do I have to have the Ring of Duel in inv or equip?


Equipped :P I thought I posted that lol, is it counting charms for you? When it does the proggy it should be switching to the main tab(inv)

CaptainObvious

2013-02-13 09:37:27

Hey buddy. Sorry to be a pain, but I can't get it to work. Having this error, like many; Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba'

All other scripts still work and I HAVE installed the extensions and updated so I'm kind of at a loss as this is the only script that I have not working. (Not saying it's a bad script, just saying it's the only one not working on my pc)
Have you got any other suggestions?
I'm no programmer but I can't find the file 'objDTMInclude.simba' in any folder, only the ObjDTM.sex file. Would love some help with this.

Thanks in advanced :)

Ian

2013-02-13 10:01:09

From: CaptainObvious
Hey buddy. Sorry to be a pain, but I can't get it to work. Having this error, like many; Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba'

All other scripts still work and I HAVE installed the extensions and updated so I'm kind of at a loss as this is the only script that I have not working. (Not saying it's a bad script, just saying it's the only one not working on my pc)
Have you got any other suggestions?
I'm no programmer but I can't find the file 'objDTMInclude.simba' in any folder, only the ObjDTM.sex file. Would love some help with this.

Thanks in advanced :)


The following worked for me and others, although ideally getting the files from the updater would be the best.

1. Make a folder in your Includes folder called ObjectDTM.

2. Download these two files, and put them in the folder. One is used for generating ObjectDTMs, the other is what is used to make the ObjDTM part work (the include). Get both.

3. Close Simba, and open it again. Run the script again.

CaptainObvious

2013-02-13 10:22:06

You, sir, are a God amongst men. Thank you for making it so clear and easy to follow. It's loading the client now, just to start the script and see how it goes!
Thanks again BMW :)

EDIT: After loading the main screen I get this message :
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

I've read through the forums and I keep seeing the same answer - To reinstall Java. But if all other scripts work, is it definitely my Java and a reinstall job, or is it something else I'm missing?

Sorry for being the Bonehead in these situations

King

2013-02-13 11:49:44

From: BMWxi
The following worked for me and others, although ideally getting the files from the updater would be the best.

1. Make a folder in your Includes folder called ObjectDTM.

2. Download these two files, and put them in the folder. One is used for generating ObjectDTMs, the other is what is used to make the ObjDTM part work (the include). Get both.

3. Close Simba, and open it again. Run the script again.


Thanks for that :P I'm going to post it on the main page, at school on my phone ATM

From: CaptainObvious
You, sir, are a God amongst men. Thank you for making it so clear and easy to follow. It's loading the client now, just to start the script and see how it goes!
Thanks again BMW :)

EDIT: After loading the main screen I get this message :
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

I've read through the forums and I keep seeing the same answer - To reinstall Java. But if all other scripts work, is it definitely my Java and a reinstall job, or is it something else I'm missing?

Sorry for being the Bonehead in these situations


Dont be sorry, you are actually searching around and I appreciate that :P Pull out your scripts folder(save it on the desktop), reinstall simba, delete Java, reinstall it and restart the computer. Then put the scripts folder back in the Simba directory.

But before all that, do you have smart8?

CaptainObvious

2013-02-13 11:56:53

From: SRLKing

But before all that, do you have smart8?


Yeah, I'm using smart8, had a few issues changing over in the first place :P
But it's just this script that's not loading. Is that normal for the other scripts to work, if it is indeed a Java issue?

King

2013-02-13 12:12:25

From: CaptainObvious
Yeah, I'm using smart8, had a few issues changing over in the first place :P
But it's just this script that's not loading. Is that normal for the other scripts to work, if it is indeed a Java issue?

I cant really say as I've never had this issue before, worth a try though :P

Crusade

2013-02-13 14:23:28

It's not counting charms:s and ye, u did post it but I thought i'd double check :D

Ye, I jsut got hacked by this IP. http://i50.tinypic.com/2lsvasg.png
Simba is the only bot I use on this computer, and this is the only computer I use for RS.. Anyone knows who that can be?

King

2013-02-13 15:16:54

From: Crusade
It's not counting charms:s and ye, u did post it but I thought i'd double check :D

Ye, I jsut got hacked by this IP. http://i50.tinypic.com/2lsvasg.png
Simba is the only bot I use on this computer, and this is the only computer I use for RS.. Anyone knows who that can be?


Pm an admin, they can access all Ip's through the site and check it against them(:, also I will look into charm counting as it works fine on my comp

CaptainObvious

2013-02-13 15:25:13

Well I've tried reinstalling and nothing has changed. I'm sure it's just me doing something wrong, as I can see it working for others.
I honestly don't know what else I can do as I'm not very good at this script reading and stuff, so I'm going to give up trying :P
It's a shame, but thank you very much for trying and I wish you the best of luck :)

King

2013-02-13 15:32:15

From: CaptainObvious
Well I've tried reinstalling and nothing has changed. I'm sure it's just me doing something wrong, as I can see it working for others.
I honestly don't know what else I can do as I'm not very good at this script reading and stuff, so I'm going to give up trying :P
It's a shame, but thank you very much for trying and I wish you the best of luck :)

Of course, thankyou(: pm if you ever want more help!

Stayon

2013-02-13 16:22:15

Any idea of numbers in terms of GP p/h here? Just kinda curious.

King

2013-02-13 16:23:18

From: stayon
Any idea of numbers in terms of GP p/h here? Just kinda curious.


200-300k is my best guess atm

Stayon

2013-02-13 16:25:22

Thank you! More than sufficient for me lol XD.

fredoguy

2013-02-13 19:18:34

do u have a video tutorial? im having a lot of problems setting up everything. I think i might need certain updates?

eduardo230

2013-02-13 20:20:07

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Users\Home\Downloads\KingsWaterFiendsV.01Public.simba'

I got this error :/ just downloaded the extension and still doesn't works. any help? :)

edit: nvm I just make an override update and it worked.
edit 2: I got this errer now :/
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]
line 1281 is: SetArrayLength(proggy, HowManyPlayers);

King

2013-02-13 21:18:05

From: eduardo230
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Users\Home\Downloads\KingsWaterFiendsV.01Public.simba'

I got this error :/ just downloaded the extension and still doesn't works. any help? :)

edit: nvm I just make an override update and it worked.
edit 2: I got this errer now :/
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]
line 1281 is: SetArrayLength(proggy, HowManyPlayers);


Ill look around, never had that error :P

Sotark

2013-02-14 00:42:41

[Hint] C:\Users\Austin\Documents\RuneScape\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba(701:10): Variable 'Result' never used at line 700
Compiled successfully in 1888 ms.
SRL Compiled in 15 msec
Paired with SMART[5052]
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

When trying to run script.

King

2013-02-15 21:28:56

From: Sotark
[Hint] C:\Users\Austin\Documents\RuneScape\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba(701:10): Variable 'Result' never used at line 700
Compiled successfully in 1888 ms.
SRL Compiled in 15 msec
Paired with SMART[5052]
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

When trying to run script.


Second error, Ill look into it tonight since I'm feeling better

MangoStyle

2013-02-16 02:12:06

i have the same problem as above

King

2013-02-16 11:38:43

I'm getting the same error on all the copies of the script, even ones that I haven't changed..I'll ask around as to why it's happening. It worked fine last time I used it. I opened an old version that worked and had no changes and still got this error.

Stayon

2013-02-24 22:56:00

Did you get a chance to look into the issue?

Sawyer

2013-03-03 08:34:11

Is using an armadyl crossbow and adamant bolts or better just as good as a black salamander?

astrokayo

2013-03-04 06:25:21

right it says this =[ [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.
and i read that i need smart8? but im not sure how to get smart 8 looked around but cant find anything sorry to be a pain

astrokayo

2013-03-04 06:42:04

hey can you add unicorn support or is that difficult and possibly fairy ring access if they can be used? sorry i'm new to simba so if your unable to do it i understand just trying to suggest some ideas :)
and im also having this error: Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]
[Hint] C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba(701:10): Variable 'Result' never used at line 700
[Error] C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba(1282:43): Identifier expected at line 1281
Compiling failed.

Hooker_Puncher

2013-03-13 06:54:31


From: astrokayo
right it says this =[ [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(281:149): Invalid number of parameters at line 280
Compiling failed.
and i read that i need smart8? but im not sure how to get smart 8 looked around but cant find anything sorry to be a pain


if you have already installed simba, I can assume it's Smart 8. you just need to change the command on start up from SMART to SMART8

Ferhya

2013-03-18 16:26:10

Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba'

Dunno what to do now:O


EDIT: Figured that out by reading the thread,, sorrryyyy!!!

Compiled successfully in 562 ms.
SRL Compiled in 15 msec
Paired with SMART[2032]
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

Now that messes with me.

King

2013-03-18 18:51:45

From: Ferhya
Exception in Script: Unable to find file 'ObjectDTM\ObjDTMInclude.simba' used from 'C:\Simba\Scripts\KingsWaterFiendsV.05PublicLaggyComp.simba'

Dunno what to do now:O


EDIT: Figured that out by reading the thread,, sorrryyyy!!!

Compiled successfully in 562 ms.
SRL Compiled in 15 msec
Paired with SMART[2032]
Object DTM Include: Setup complete.
Error: Could not call proc at line 1281
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap]

Now that messes with me.


Comment out the progress report and then run it.

Peace Falls

2013-03-25 14:27:33

From: SRLKing
Comment out the progress report and then run it.


I commented it out and some other stuff after it gave me a couple more errors, and it's running now. Lol.

I'll let you know how it does. :)

Edit: It seems to be misclicking the "x" on the bank screen. It also keeps trying to pick items up when the inv is full. It also is not recharging summoning points.

Why does this not support multiple bunyip pouches?

King

2013-03-25 20:11:45

From: Peace Falls
I commented it out and some other stuff after it gave me a couple more errors, and it's running now. Lol.

I'll let you know how it does. :)

Edit: It seems to be misclicking the "x" on the bank screen. It also keeps trying to pick items up when the inv is full. It also is not recharging summoning points.

Why does this not support multiple bunyip pouches?


Its been outdated for a while, thought I updated the title :P Ill update the script over spring break, do a full rewrite, Ive gotten much better at coding since this!

Im New Sry

2013-03-26 09:16:07

From: Peace Falls
I commented it out and some other stuff after it gave me a couple more errors, and it's running now. Lol.

I'll let you know how it does. :)

Edit: It seems to be misclicking the "x" on the bank screen. It also keeps trying to pick items up when the inv is full. It also is not recharging summoning points.

Why does this not support multiple bunyip pouches?


It's the bug in SRL include itself. Just add this somewhere in the end of banking procedure (where closebank is)

repeat
closebank;
until not (bankscreen);

Peace Falls

2013-03-27 18:18:38

From: SRLKing
Its been outdated for a while, thought I updated the title :P Ill update the script over spring break, do a full rewrite, Ive gotten much better at coding since this!


Looking forward to this! ;)

King

2013-03-27 18:43:25

From: Peace Falls
Looking forward to this! ;)


One more dya of school(;

King

2013-03-29 00:47:02

Made some progress on the code tonight :P

noob447

2013-03-29 21:41:29

I haven't been to Waterfiends since pre-eoc and I planned on using this after mining cape. I was reading about an update jagex made that made waterfiends more powerful and thus not worth camping anymore?

King

2013-03-29 22:34:33

From: noob447
I haven't been to Waterfiends since pre-eoc and I planned on using this after mining cape. I was reading about an update jagex made that made waterfiends more powerful and thus not worth camping anymore?


Getting 200 charms an hour.

noob447

2013-03-30 00:33:46

That's still good. Wtf are folks whining about than? lol..


E: I meant to ask, what is the decent set-up for these now? As I said, I haven't been to them since before EoC. I'm used to just bringing Bunyips, Zs or Ss, Karils, etc. What works best as far as gear and inv? Does Momentum work better than ability spam?

THANKS

King

2013-03-30 00:59:54

From: noob447
That's still good. Wtf are folks whining about than? lol..


E: I meant to ask, what is the decent set-up for these now? As I said, I haven't been to them since before EoC. I'm used to just bringing Bunyips, Zs or Ss, Karils, etc. What works best as far as gear and inv? Does Momentum work better than ability spam?

THANKS

Abilities with black sally and royal dhide work well, bring prayer pots, bunyip and food, drops should cover costs.

masterv11

2013-03-30 10:13:56

when do u think ull finish the script?

King

2013-03-30 12:38:47

From: masterv11
when do u think ull finish the script?




Hopefully the rewrite will be done this week :p