SRL Archive - General Botting Help

[RSPS] RSPS include bank.simba error


xX4m4zingXx

2014-03-28 15:11:12

i got the rsps include but i got an error in bank.simba
Exception in Script: Unknown declaration "upCharsEx" at line 20, column 57 in file "C:\Program Files (x86)\Simba\Includes\RSPS\core\bank.simba"

this is bank.simba
{$include_once interface.simba}
//{$include_once misc/datatypes/string.simba}
{$include_once RSPS/misc/datatypes/string.Simba}

(*
File name: Bank.simba
Description: Bank functions
Authors: Officer Barbrady
*)



(*
Author: Officer Barbrady
Description: Returns true if finds bank text
*)

function _724_BankScreen: Boolean;
begin
exit(findTextTPA(4106994, 20, 20, 22, 400, 45, 'ank', upCharsEx, nothing));
end;

(*
Author: Officer Barbrady
Description: Returns true if interface text contains ank of
*)

function _317_bankScreen:boolean;
var
f:string;
begin
f := _317_getInterfaceName();
result := (f.contains('ank of'));
end;

(*
Author: Officer Barbrady
Description: Closes bank, just calls closeInterface called close bank
for naming purposes (and old timers)
*)

procedure _317_closeBank();
begin
_317_closeInterface();
end;

rj

2014-03-29 10:10:35

Can you show me a picture of your fonts folder @xX4m4zingXx;

xX4m4zingXx

2014-03-29 15:27:49


xX4m4zingXx

2014-03-29 15:30:32

wow it now just works but it attacks a monster and then it sees that the thing changes and then it just stops the script
this is my code right now:
Program AttachMonster;
{$I RSPS/srlRSPS.Simba}
function differentCount(time:integer): Boolean;
var
_white_count:integer;
begin
_white_count := countColorTolerance(16646143, 429, 80, 516, 95, 5);
Wait(time);
result := (_white_count <> countColorTolerance(16646143, 429, 80, 516, 95, 5));
end;

function inCombat:boolean;
begin
result := differentCount(3300);
end;

Procedure AttackMonster
var
X,Y:Integer;
begin
if FindColorTolerance (X, Y, 10337744, 44, 91, 556, 425, 2) then
begin
MouseSpeed := 15;
Mouse(x, y);
end
else
begin
writeln('Couldnt find any monsters')
end;
end;
begin
while (not inCombat()) do
AttackMonster;
end.

Foundry

2014-03-29 16:57:07

Put the while loop in a repeat loop.


begin
repeat
while not inCombat() do
attackMonster();
until(false);
end.

E: You may want to put a small wait in there so the game has time to show that it is in combat.

xX4m4zingXx

2014-03-29 19:59:35

Ok, ty that works.
but now i want to add something whole new.
i want it that it drinks potions.
do i do that with color finding or something like the same as incombat thing in my script?