SRL Archive - OSR Help

smart modification


ogustuce

2013-01-08 19:20:02

hi so when you click(on smart window) 'enable' the script starts and it disable you mouse and keyboard on smart. so if i want to not disable my mouse and keyboard when i press 'enable',

-what is the name of the file and where is it? ( i guess its smart.simba lol)
-what code should i look for?

thanks

Mr[S]

2013-01-08 19:20:54

Yeah this happens sometimes, just use your onscreen mouse on chat box and all should be revived

ogustuce

2013-01-08 19:27:48

From: Mr[S]
Yeah this happens sometimes, just use your onscreen mouse on chat box and all should be revived


sometimes? it happens all the times u press 'enable' and run a script..
i think u dont get what i meant lol i want to press 'enable' and be able to use my mouse on runescape while the script is running

Mr[S]

2013-01-08 19:31:11

From: ogustuce
sometimes? it happens all the times u press 'enable' and run a script..
i think u dont get what i meant lol i want to press 'enable' and be able to use my mouse on runescape while the script is running


Oh, you can't do that I don't think…

ogustuce

2013-01-08 19:32:35

yeah u can but you have to modify a core .simba file but idk which one exactly…….thats what im asking for in this thread lol

Brandon

2013-01-08 19:32:58

You can't.. Why bother using smart if you're going to use your mouse while the script is running? You're just going to be fighting with the smart mouse..

Secondly, if you want to disable that stuff, re-write smart itself.. Remove the event queuing/nazi. This has nothing to do with the simba includes.. This is smart's C++ and Java files.

ogustuce

2013-01-08 19:40:24

because the script tht i want to use uses no mouse. the script is just a 'checker'. i like to afk slay and watch tv. the problem is when i afk i often forgets to check hp,pray left, antifire and stuff like that so when i come back i died and have to run back to the spot and take back my stuff…. to give you a better idea of the script, here it is.


program OgyAFK;

{$DEFINE SMART}
{$I SRL/SRL.Simba}


procedure DeclarePlayers;
begin
HowManyPlayers := 1; // Number of Players to use
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // Player to start with, first one is 0
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Active := True; // just leave it as is.
Players[0].Pin := ''; // Bank Pin. Leave it if you don't have one.
Players[0].Integers[1] := 10000; // Number of loads
Players[0].Integers[2] := 375; // Xp For 1 Pouch Made <----------------------------------------
end;

var
SoundPath:string;

Procedure Alert;
begin
SoundPath:=ScriptPath+'bang.wav';
PlaySound(SoundPath);
wait(1000);
end;


Procedure CheckAntiFire;
begin
if FindChatBoxText('dragon',8,127) then
alert;
end;

Procedure HealthCheck;
begin
if (HPpercent < 50) then
alert;
end;

Procedure PrayCheck;
begin
if GetSkillLevel('pray') <= 30 then

alert;
end;

begin
SRL_SixHourFix := True;
Smart_FixSpeed := True;
SetupSRL;
DeclarePlayers;
LogInPlayer;



repeat
checkantifire;;

until (false)
end.


ogustuce

2013-01-08 19:43:00

From: Brandon
You can't.. Why bother using smart if you're going to use your mouse while the script is running? You're just going to be fighting with the smart mouse..

Secondly, if you want to disable that stuff, re-write smart itself.. Remove the event queuing/nazi. This has nothing to do with the simba includes.. This is smart's C++ and Java files.


so what im asking is impossible to do without rewriting the whole smart code =o?

xtrapsp

2013-01-08 19:43:41

From: ogustuce
because the script tht i want to use uses no mouse. the script is just a 'checker'. i like to afk slay and watch tv. the problem is when i afk i often forgets to check hp,pray left, antifire and stuff like that so when i come back i died and have to run back to the spot and take back my stuff…. to give you a better idea of the script, here it is.


program OgyAFK;

{$DEFINE SMART}
{$I SRL/SRL.Simba}


procedure DeclarePlayers;
begin
HowManyPlayers := 1; // Number of Players to use
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // Player to start with, first one is 0
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Active := True; // just leave it as is.
Players[0].Pin := ''; // Bank Pin. Leave it if you don't have one.
Players[0].Integers[1] := 10000; // Number of loads
Players[0].Integers[2] := 375; // Xp For 1 Pouch Made <----------------------------------------
end;

var
SoundPath:string;

Procedure Alert;
begin
SoundPath:=ScriptPath+'bang.wav';
PlaySound(SoundPath);
wait(1000);
end;


Procedure CheckAntiFire;
begin
if FindChatBoxText('dragon',8,127) then
alert;
end;

Procedure HealthCheck;
begin
if (HPpercent < 50) then
alert;
end;

Procedure PrayCheck;
begin
if GetSkillLevel('pray') <= 30 then

alert;
end;

begin
SRL_SixHourFix := True;
Smart_FixSpeed := True;
SetupSRL;
DeclarePlayers;
LogInPlayer;



repeat
checkantifire;;

until (false)
end.



Going back to what Brandon said. Learn C++ And Java to make your own afk-smart

Ashaman88

2013-01-08 19:51:24

Why don't you just not use smart? just run it on the reg client, since it won't be using your mouse it shouldn't mess anything up?

Kasi

2013-01-08 21:13:15

From: Ashaman88
Why don't you just not use smart? just run it on the reg client, since it won't be using your mouse it shouldn't mess anything up?


i think he wants to be able to minimize SMART too. best option would be to decompile and make your changes.