Log in

View Full Version : Narcle's Fast Fighter!



Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21]

Cokedrip
06-18-2012, 07:22 PM
I'm having an issue use this script now. Now whenever I start it, it checks my attack option, stats, and what not then from there it just very quickly hops between the given targets (colors I set). I tried ghouls, and the cursor would literally just hop from ghoul to ghoul without clicking at all and without movement inbetween the hop. I tried changing colors, then just figured it was a ghoul problem, so I tried lesser demons. I tried changing colors there, had same problem, tried tweaking the threshold and messing around with options. One thing i noticed is that the client is in safemode graphic options and won't let me switch off, could this be the reason? I have all graphic settings off and brightness up. Please help, cause other scripts are working. (specifically other fighting scripts such as the ghouler.)

MotorMouse
06-19-2012, 11:47 AM
2k slower then epicbot.
That is amazing for a collour bot!

Brandon02852
06-19-2012, 01:58 PM
how do i set it to train magic? i have a skill set to autocast

golden saint
06-20-2012, 05:29 AM
Thanks the Script works great

Wildo
06-20-2012, 07:28 AM
Does this script support the use of weapon specials? example: I am wielding a saradomin godsword and my hp is getting a little low will it know to use the special to regen hp and prayer? I Know this seems a little advanced but im sure it is do-able.

Wildo
06-20-2012, 08:56 AM
Sorry to say, but I simply cant get your bot to work correctly. I set it up looked at all the guides and then it kills 5 monsters flawlessly and after that it starts randomly selecting the right target but it never clicks on it to attack it just stands there and these blue boxes start popping up like crazy. It looks like the bot is on cocaine going like overdrive mode until the point where it just shuts off. I have tried picking many different colors from several parts of the monsters body, all in one grouping...etc. Any ideas of why it wont work?

Brandon02852
06-20-2012, 01:29 PM
Sorry to say, but I simply cant get your bot to work correctly. I set it up looked at all the guides and then it kills 5 monsters flawlessly and after that it starts randomly selecting the right target but it never clicks on it to attack it just stands there and these blue boxes start popping up like crazy. It looks like the bot is on cocaine going like overdrive mode until the point where it just shuts off. I have tried picking many different colors from several parts of the monsters body, all in one grouping...etc. Any ideas of why it wont work?

Even though you said you picked different colors, I think it is a color issue...sorry to say but keep experimenting with different colors.

Ivo09
06-21-2012, 06:30 AM
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Main | True | 09:34:13 | 2224 | 232 | 360738 | 37693 ]
[================================================== ==============]

Also in f2p.
Without smart manager.



Sorry to say, but I simply cant get your bot to work correctly. I set it up looked at all the guides and then it kills 5 monsters flawlessly and after that it starts randomly selecting the right target but it never clicks on it to attack it just stands there and these blue boxes start popping up like crazy. It looks like the bot is on cocaine going like overdrive mode until the point where it just shuts off. I have tried picking many different colors from several parts of the monsters body, all in one grouping...etc. Any ideas of why it wont work?

Remove the capital letters in the name, or just change it to ttack. Another problem is the ground might have similar colours to the mobs, turn your graphics down as much as you can and make sure you aren't fighting rock crabs :)

cock knocker
06-21-2012, 08:08 PM
wish it supported B2P

i lol i
06-22-2012, 05:38 PM
I've been using this script for quite a long time now, and my proggy's are usually 400k+ per session. But I recently went to turn it on, and now it just starts up, kills a monster, and logs out, any idea why?

strat3g
06-23-2012, 05:32 PM
Maybe just re-setup script (delete and setup again) or re-instal simba.

solarit
06-28-2012, 10:18 AM
i put it at cave crawlers in slayer cave and it detects them but all it does is hover mouse on each crawler without attacking anyone...

solarit
06-28-2012, 01:55 PM
put it at ghouls and again all it does is detect them one by one and blue squares pop out but doesn't attack anyone....epic fail

John
06-29-2012, 10:15 AM
put it at ghouls and again all it does is detect them one by one and blue squares pop out but doesn't attack anyone....epic fail

It sounds like you have your Uptext setup wrong. It is case sensitive.

Juggalo812
06-29-2012, 04:39 PM
Alright, been reading through how to set this up and different guides. Deleted and reinstalled Simba still getting an issue with this. It will log in, choose attack style, click stats tab, then log out. I even tried using a set up on the page for training spots just to see if I was choosing wrong colors it does the same thing when I try getting it to attack a level 2 man even.

bricks
06-30-2012, 01:38 AM
Make sure the name is exact even capitalization, also make sure your brightness is all the way up. The script does eventually stop for no reason, please look into it.

zamserv
06-30-2012, 01:40 AM
Alright, been reading through how to set this up and different guides. Deleted and reinstalled Simba still getting an issue with this. It will log in, choose attack style, click stats tab, then log out. I even tried using a set up on the page for training spots just to see if I was choosing wrong colors it does the same thing when I try getting it to attack a level 2 man even.

wrong setup, make sure the monsters color are correct, and the name, if you are killing "Zombie" make sure you write "ombie"

Ala
06-30-2012, 06:44 PM
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Alai | True | 03:23:42 | 234 | 69 | 68998 | 20322 ]
[================================================== ==============]
Very nice script. I did my own edits since cockroach workers have a few differently colored variants.
I like how you made it possible to fill out a GUI for people not so familiar with filling it out manually. It was a nice touch.

Solar
07-02-2012, 01:18 PM
Should probably move to a better spot, anyway;

[===============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 5 Hr 51 Min 33 Sec ]
[ Killed : 901 ]
[ XP : 113111 ]
[===============================]

ISRA3L
07-03-2012, 10:52 AM
thanks, its working good

sammgill
07-04-2012, 10:42 PM
Will this walk towards yellow dots on the map if any of the monsters are on screen?

ISRA3L
07-05-2012, 07:13 PM
[==============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[==============================]
[ Time Ran : 7 Hr 20 Min 5 Sec ]
[ Killed : 1029 ]
[ XP : 187387 ]
[==============================]
[ Fast Fighter 4.13 ]
[==============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ M1STER | False | 07:18:10 | 1029 | 141 | 187387 | 25659 ]
[================================================== ==============]

nave27
07-07-2012, 11:08 AM
I cant get it to attack anything, I tried it with ogres and now with the lesser demon. A blue square pops up around the monster and nothing happens. I'm pretty sure I put in 'gre' for 'ogre' and used the colors provided. Can someone help?

Narcle
07-08-2012, 10:32 PM
I've been using this script for quite a long time now, and my proggy's are usually 400k+ per session. But I recently went to turn it on, and now it just starts up, kills a monster, and logs out, any idea why?

Most likely the colors changed. They have been increasing the color changes heavily. Try a higher tolerance and/or update colors.

What they do:
Colors are same soon as u log on, but change during a 'session' and need to be updated and/or try increasing tolerance. I've changed the way it detects Monsters (from previous versions), I've been able to use a tolerance up to 30 for some areas.

Godric
07-10-2012, 04:13 PM
I cant get it to attack anything, I tried it with ogres and now with the lesser demon. A blue square pops up around the monster and nothing happens. I'm pretty sure I put in 'gre' for 'ogre' and used the colors provided. Can someone help?

This usuriously happens when you enter the npc wrong!
Let me try it myself, i ll let you know!

Footy
07-10-2012, 04:40 PM
for lesser demon, put emon. I dont see why it wouldnt work, everything is working fine for me, except the proggy is reaaally messed up.
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== ================]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ================]
[ **** | True | 01:37:33 | 173 | 106 | 7363275 | 4528488 ]
[================================================== ================]

kazzos
07-11-2012, 12:46 AM
how would I go about adding super strength potions into the loop?

ice_cold_water
07-11-2012, 04:02 AM
Error: Exception: "" is not a valid boolean. at line 516
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]

I can't run the script because of this, what do i do?

deadmess
07-11-2012, 08:52 PM
Just wanted to say thanks for this script got me from 25 ranged to 65 ranged in 2 days! would've 70 ranged today but due the patch is SMART or whatever down so couldn't use it! anyways queit stable script, love it!

Main
07-11-2012, 09:23 PM
Here is the no smart version requested by sickle.
Please pm me narcle if you want me to remove this, and don't ban pl0x :(

nitroxx0025
07-12-2012, 02:06 AM
Just wanted to say thanks for this script got me from 25 ranged to 65 ranged in 2 days! would've 70 ranged today but due the patch is SMART or whatever down so couldn't use it! anyways queit stable script, love it!

ween ween jochem xD

in33dp1e
07-13-2012, 08:06 PM
I tested it out yesterday. Didn't work well. Was fighting cows on a new account and it never ate food and died as a result (tried several times, same thing each time). Otherwise responds pretty well. Good job =)

Godric
07-13-2012, 11:21 PM
doesn't work for me! :(

Narcle
07-13-2012, 11:27 PM
I've heard there's problems with SRL atm (what I've heard so don't quote me). I've made this script to be dependent on SRL so that its kept up to date with SRL updates.

When the new fighting stuff comes out it WILL be broken then (99% positive).

shstiger2009
07-13-2012, 11:42 PM
doesn't work for me! :(

Check the most viewed thread at the moment...


I've heard there's problems with SRL atm (what I've heard so don't quote me). I've made this script to be dependent on SRL so that its kept up to date with SRL updates.

When the new fighting stuff comes out it WILL be broken then (99% positive).

Narcle, it's the new client problem stuff...it's all of SRL. It should be fixed in the next day or so, be patient Godric.

Godric
07-17-2012, 07:52 PM
Narcle, it's the new client problem stuff...it's all of SRL. It should be fixed in the next day or so, be patient Godric.

Alright...
thanks!

Solar
07-27-2012, 02:23 PM
I've updated Simba to 991 and updated extensions, SPS, MSI and SRL.

I have changed this;


{$i SRL/SRL/misc/smart.simba}
{$i SRL/SRL.simba}
{$i SRL/SRL/skill/fighting.simba}
{$i SRL/SRL/skill/ranging.simba}
{$i SRL/SRL/misc/Reports.simba}
{$i srl/srl/misc/paintsmart.simba}

to this;


{$Define SMART}
{$i SRL/SRL.simba}
{$i SRL/SRL/skill/fighting.simba}
{$i SRL/SRL/skill/ranging.simba}
{$i SRL/SRL/misc/Reports.simba}
{$i srl/srl/misc/smartgraphics.simba}

The problem I get now is with this;

SMART_DrawBoxEx(False, BoxArr[i], clBlue);
and in at the bottom it says

[Error] C:\Simba\Scripts\Fast Fighter [SRL5][v4.13].simba(926:52): Invalid number of parameters at line 925
Compiling failed.

Can anyone help please?

Footy
07-27-2012, 02:31 PM
Narcle will likely have to make some small updates to the script.

Cwil
07-27-2012, 07:26 PM
Yeah it will need to be updated to be compatible with the new thing.

Cwil
08-01-2012, 12:54 AM
Please update this script its awsome!!

Narcle
08-01-2012, 01:29 AM
Please update this script its awsome!!

When I have free time and catch up on to SRL updates and SMART changes I will. I can't give an ETA currently.

Cwil
08-01-2012, 06:16 AM
No problem... Take your time

Solar
08-01-2012, 06:17 AM
I edited it to work. It is quite an easy fix I think. (Should be easy if I can do it. :p)

Should I just post what I changed or not? I'm not sure if some people around the community might be a little annoyed if I do since it makes it easy to leech, and because it isn't my script.

Cwil
08-01-2012, 07:51 PM
Yes please post how you changed it... ireally want to use it bro.

Cwil
08-01-2012, 08:00 PM
I edited it to work. It is quite an easy fix I think. (Should be easy if I can do it. :p)

Should I just post what I changed or not? I'm not sure if some people around the community might be a little annoyed if I do since it makes it easy to leech, and because it isn't my script.

Yes please Post it. I've been trying to fix it and i just keep getting errors.

msemtex
08-02-2012, 02:32 AM
I did the above work around for compatibility, commented out other erroneous lines of code, pressed play 10x and it worked.

Solar
08-02-2012, 08:20 AM
{------------------------------Script Info-------------------------------------|
| ScriptName = Fast Fighter |
| Author = Narcle |
| Description = Fights any monster, food eating and HP regen. |
|================================================= =============================|
| Instructions |
|================================================= =============================|
| |
| Setup with Form: (Reccommended) |
| 1a. Read FAQ on first post of Fast Fighter thread. |
| 1b. OR Hit play now the form is pretty easy to use. |
| Click 'Help' in Form if you don't know how to grab/set colors. |
| |
| Setup with Declare Players: |
| 1. Make sure you use the Color picker and select 3 colors |
| from monster, and place them accordingly in DeclarePlayers. |
| 2. Setup players in DeclarePlayers |
| 3. Setup RuneScape (unless your using SMART) |
| 4. Push play! |
| |
| |
|_________________________________________________ _____________________________}
{$DEFINE SMART}
{$i SRL/SRL.simba}
{$i SRL/SRL/skill/fighting.simba}
{$i SRL/SRL/skill/ranging.simba}
{$i SRL/SRL/misc/Reports.simba}
{$i srl/srl/misc/smartgraphics.simba}
{------------------------------------------------------------------------------}
{===============================Player Setup===================================}
{------------------------------------------------------------------------------}
Const
LogoutIn = 29; //Logout every ?? Minutes; +/- 3 minutes for randomness
LogToFile = False; //File logging (helps me debug your problem) stores in /Scripts
DebugMode = False; //Debug mode
DisableSMARTPaint = False;//Might use less CPU if True


{ ATTENTION!!!
To use Forms just push play do NOT put anything in DeclarePlayers.
If you want to use DeclarePlayers fill it in (Forms should NOT come up then) }

procedure DeclarePlayers;
begin
With Players[0] do
begin
Name := ''; //Character Name
Pass := ''; //Character Pass
Active := True; //True if you want this player to be ran in the script, false if not
Strings[0] := '';//monster name
Strings[1] := '';//Fight style (str, att, def, crush etc. anything in your weapon info}
Integers[0] := 0;//1st color of monster
Integers[1] := 0;//2nd color of monster
Integers[2] := 0;//3rd color of monster
Arrays[0] := [3, false, false];
//[NPC Color Tolerance, Left click only, Right click only]
end;

{
With Players[1] do //copy and change number accordingly to add players
begin
Name :='';
Pass :='';
Active := True;
Strings[0] := '';//monster name
Strings[1] := '';//Fight Style
Integers[0] := 0;//1st color of monster
Integers[1] := 0;//2nd color of monster
Integers[2] := 0;//3rd color of monster
Arrays[0] := [3, false, false];
//[NPC Color Tolerance, Left click only, Right click only]
end;
}
end;

{------------------------------------------------------------------------------}
{===========Don't edit below this unless you know what your doing!=============}
{------------------------------------------------------------------------------}
Type
FUsers = Record
Range, Melee, Setup, OutOfFood, TPAFight: Boolean;
MobName: string;
NPCTol, Clicktype, AvgWeapTime, AvgAniChange, MaxAniTime, InvAmt, LastWeaptime: integer;
Colors, WeaponTimes, AniTimes, AniChanges: TIntegerArray;
Weapon: array of TStringArray;
end;

Const
Version = '4.13';
ScriptName = 'Fast Fighter';
PixelChange = 300;
WeaponTime = 4000;
PLAYERSET = 3;
TOTALNPCKILLS = 10;
FOODATE = 11;
NPCKILLS = 12;
KILLSperHour = 13;
XPGained = 14;
XPperHour = 15;
REPORTXP = 16;
CURRENTXP = 17;
LOGOUTIME = 19;
ATTACKTIME = 20;
STARTXP = 21;
DRAWXP = 22;

var
Playas: array [0..99] of FUsers;
TOTALKILLS, TOTALXP: integer;//Counters
LeftClickFail: boolean;
DebugFile: integer;
DebugModeOn: Boolean;
ReportTime: integer;
PlayerBox, AniBox: TBox;

const
FilePath = AppPath + 'FastFighter4Chars.ini';
var
frmDesign: TForm;
PButtons: Array [0..3] of TButton;
SButtons: Array of TButton;
frmLabels: Array of TLABEL;
frmEdits: Array of TEDIT;
CheckBoxs: Array [0..2] of TCHECKBOX;
CurPlayer: integer;
AKpf_SavePlayers, AKpf_Terminate: boolean;
Memo: TMemo;


procedure Debug(S: String);
begin
if LogToFile then
try
if (DebugFile <> -1) then
if (not WriteFileString(DebugFile, TheTime+' - '+S + #13+#10)) then
Writeln('Debug: Failed to write to file');
except
Writeln(ExceptionToString(ExceptionType, ExceptionParam));
end;
if DebugModeOn then
Writeln(S)
else
DebugLn(s);
end;

Procedure FormNotify(S: string);
begin
Writeln(S);
Memo.LINES.Add(s);
end;

Procedure SavePlayers(tofile: boolean);
var
i, ii: integer;
begin
try
With Players[CurPlayer] do
begin
Name := frmEdits[0].Caption;
Pass := frmEdits[1].Caption;
Active := CheckBoxs[0].CHECKED;
Strings[0] := frmEdits[6].Caption;//npc name
Strings[1] := frmEdits[11].Caption;//fight style
for ii := 0 to 2 do
Integers[ii] := StrToInt( ReplaceWrap( (frmEdits[ii+7].Caption), ' ', '', [rfReplaceAll]));
Arrays[0] := [frmEdits[10].Caption, CheckBoxs[1].CHECKED, CheckBoxs[2].CHECKED];
end;
except
Writeln('Failed to save Player '+ToStr(CurPlayer)+'.');
end;

if tofile then
begin
WriteINI('General', 'NumOfPlayers', IntToStr(HowManyPlayers), FilePath);
WriteINI('General', 'statsUser', frmEdits[4].Caption, FilePath);
WriteINI('General', 'statsPass', frmEdits[5].Caption, FilePath);
end;

if tofile then
for i := 0 to HowManyPlayers - 1 do
with Players[i] do
begin
WriteINI('Player['+IntToStr(i)+']', 'Name', Name, FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Pass', Pass, FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Active', BoolToStr(Active), FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Strings[0]', Strings[0], FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Strings[1]', Strings[1], FilePath);
for ii := 0 to 2 do
WriteINI('Player['+IntToStr(i)+']', 'Integers['+IntToStr(ii)+']', IntToStr(Integers[ii]), FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Arrays[0][0]', IntToStr(Arrays[0][0]), FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Arrays[0][1]', BoolToStr(Arrays[0][1]), FilePath);
WriteINI('Player['+IntToStr(i)+']', 'Arrays[0][2]', BoolToStr(Arrays[0][2]), FilePath);
end;
end;


Procedure NewPlayer(index: integer);
var
ii:integer;
begin
with Players[Index] do
begin
Name := '';
Pass := '';
Active := true;
Strings[0] := '';
Strings[1] := '';
for ii := 0 to 2 do
Integers[ii] := 0;
Arrays[0] := [9, false, false];//Color Tolerance, right click, left click
end;
end;

Procedure ShowPlayer(index: integer);
var
ii: integer;
begin
if Players[index].Name = '' then
NewPlayer(Index);
With Players[index] do
begin
frmEdits[0].Caption := Name;
frmEdits[1].Caption := Pass;
CheckBoxs[0].CHECKED := Active;
frmEdits[6].Caption := Strings[0];
frmEdits[11].Caption := Strings[1];
for ii := 0 to 2 do
frmEdits[ii+7].Caption := IntToStr(Integers[ii]);
frmEdits[10].Caption := IntToStr(Arrays[0][0]);//npc tol
CheckBoxs[1].Checked := Arrays[0][1];//Right click
CheckBoxs[2].Checked := Arrays[0][2];//Left click
end;
CurPlayer := index;
frmEdits[4].Caption := stats_Username;
frmEdits[5].Caption := stats_UserPass;
frmEdits[2].Caption := IntToStr(CurPlayer);
frmEdits[3].Caption := IntToStr(HowManyPlayers);
end;

Procedure LoadPlayers;
var
i,ii: integer;
begin
HowManyPlayers := StrToIntDef(ReadINI('General', 'NumOfPlayers', FilePath), 1);
stats_Username := ReadINI('General', 'statsUser', FilePath);
stats_UserPass := ReadINI('General', 'statsPass', FilePath);
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
CurPlayer := CurrentPlayer;
for i := 0 to HowManyPlayers - 1 do
with Players[i] do
begin
Name := ReadINI('Player['+IntToStr(i)+']', 'Name', FilePath);
Pass := ReadINI('Player['+IntToStr(i)+']', 'Pass', FilePath);
Active := StrToBool(ReadINI('Player['+IntToStr(i)+']', 'Active', FilePath));
Strings[0] := ReadINI('Player['+IntToStr(i)+']', 'Strings[0]', FilePath);
Strings[1] := ReadINI('Player['+IntToStr(i)+']', 'Strings[1]', FilePath);
for ii := 0 to 2 do
Integers[ii] := StrToInt(ReadINI('Player['+IntToStr(i)+']', 'Integers['+IntToStr(ii)+']', FilePath));
try
Arrays[0] := [StrToInt(ReadINI('Player['+IntToStr(i)+']', 'Arrays[0][0]', FilePath)),
StrToBool(ReadINI('Player['+IntToStr(i)+']', 'Arrays[0][1]', FilePath)),
StrToBool(ReadINI('Player['+IntToStr(i)+']', 'Arrays[0][2]', FilePath))];
except
Arrays[0] := [3, false, false];
end;
end;
end;

procedure OnLeftClick(Sender: TObject);
begin
Case Sender of
SButtons[0]: begin//Start
frmDesign.ModalResult := mrOk;
AKpf_SavePlayers := False;
AKpf_Terminate := False;
Writeln('Start.');
end;
SButtons[1]: begin//Save and start
frmDesign.ModalResult := mrOk;
AKpf_SavePlayers := True;
AKpf_Terminate := False;
Writeln('Save and Start.');
end;
SButtons[2]: begin//Save and Exit
frmDesign.MODALRESULT:= mrOk;
AKpf_SavePlayers := True;
AKpf_Terminate := True;
Writeln('Save and Exit.');
end;
SButtons[3]: begin//Exit
frmDesign.MODALRESULT:= mrOk;
AKpf_SavePlayers := False;
AKpf_Terminate := True;
Writeln('Exit.');
end;
SButtons[4]: Memo.LINES.Clear;
SButtons[5]: Memo.LINES.Add(GetClipBoard);
SButtons[6]: OpenWebPage('http://villavu.com/forum/showthread.php?t=67793');

PButtons[0]: begin//Previous player
SavePlayers(false);
if CurPlayer = 0 then
ShowPlayer(HowManyPlayers - 1)
else
ShowPlayer(CurPlayer - 1);
end;
PButtons[1]: begin//New player
Debugln('Trying to add new player.');
Inc(HowManyPlayers);
NumberOfPlayers(HowManyPlayers);
CurPlayer := HowManyPlayers-1;
ShowPlayer(CurPlayer);
FormNotify('Player '+IntToStr(CurPlayer)+' added.');
end;
PButtons[2]: begin//Next player
SavePlayers(false);
if CurPlayer = HowManyPlayers - 1 then
ShowPlayer(0)
else
ShowPlayer(CurPlayer + 1);
end;
PButtons[3]: begin//Delete player
if (HowManyPlayers > 1) and (CurPlayer = 0) then
FormNotify('Can''t delete player 0.')
else
if (HowManyPlayers = 1) then
begin
if not (MessageDlg('Delete?', 'Do you want to reset Player '+ToStr(CurPlayer)+'?', mtConfirmation, [mbYes,mbNo]) = mrYes) then
Exit;
NewPlayer(CurPlayer);
FormNotify('Player '+ToStr(CurPlayer)+' reset.');
end
else
if (MessageDlg('Delete?', 'Do you want to delete Player '+ToStr(CurPlayer)+'?', mtConfirmation, [mbYes,mbNo]) = mrYes) then
begin
FormNotify('Player '+ToStr(CurPlayer)+' deleted.');
Swap(Players[CurPlayer], Players[HowManyPlayers - 1]);
IncEx(HowManyPlayers, -1);
ShowPlayer(Max(CurPlayer - 1, 0));
SavePlayers(true);
end;
end;
CheckBoxs[1]: begin
if CheckBoxs[2].CHECKED then
CheckBoxs[2].CHECKED := false;
end;
CheckBoxs[2]: begin
if CheckBoxs[1].CHECKED then
CheckBoxs[1].CHECKED := false;
end;
end;
end;

procedure InitForm;
var
i: integer;
PCaps, Labels, Hints: TStringArray;
Ws, Ls, Ts: TIntegerArray;
begin
frmDesign := Tform.Create(nil);
With frmDesign do
begin
setBounds(100, 100, 600, 330);
Caption := ScriptName+' v'+Version+' by Narcle';
Color := ClWhite;
Font.Color := ClBlack;
end;


PCaps := ['Previous Player', 'New Player', 'Next Player', 'Delete Player'];
for i := 0 to 3 do
begin
PButtons[i] := TBUTTON.Create(frmDesign);
with PButtons[i] do
begin
Parent := frmDesign;
Height := 22;
if i = 3 then
Width := 80//Delete Player
else
Width := 120;
Left := 10+i*125;
Top := 8;
CAPTION := PCaps[i];
ONCLICK := @OnLeftClick;
if i = 3 then
begin
Left := 135;
Top := 34;
end;
end;
end;

PCaps := ['Start', 'Save and Start', 'Save and Exit', 'Exit', 'Clear', 'Paste', 'Help!'];
Hints := ['Clear the memo','Paste from clip board','Open help in default web browser.'];
SetArrayLength(SButtons, Length(PCaps));
for i := 0 to High(SButtons) do
begin
SButtons[i] := TBUTTON.Create(frmDesign);
with SButtons[i] do
begin
Parent := frmDesign;
Height := 22;
Width := 90;
Left := 6+i*96;
Top := 300;
FONT.Size := 8;
CAPTION := PCaps[i];
OnClick := @OnLeftClick;
if InIntArray([4,5,6],i) then
begin
Width := 50;
Left := 430+(i-4)*55;
ShowHint := true;
Hint := Hints[i-4];
end;
end;
end;



Labels := ['Username:', 'Password:', 'Active', 'Right click only', 'Left click only',
'SRL Stats User:', 'SRL Stats Password:', 'Player:', 'Total Players:',
'NPC Color 1:', 'NPC Color 2:', 'NPC Color 3:', 'NPC Name:','NPC Color Tolerance:', 'Fight Style:'];
Hints := ['Login name for the character you are using.','Login password','Will you be using this character?',
'Left click attack only', 'Right click attack only', 'SRL Stats goto stats.villavu.com to sign up!',
'SRL Stats goto stats.villavu.com to sign up!','','','Color of the NPC/Monster you''ll be fighting, use the color picker',
'Color of the NPC/Monster you''ll be fighting, use the color picker',
'Color of the NPC/Monster you''ll be fighting, use the color picker', 'Name of the NPC your fighting, check forums for details',
'Lower this number if the mouse hovers over other objects.', 'Read instructions on thread for more info'];
SetArrayLength(frmLabels, Length(Labels));
Ts := [62, 108, 186, 208, 230, 280, 280, 38, 38, 126, 156, 186, 62, 216, 160];
Ls := [10, 10, 30, 30, 30, 34, 198, 20, 260, 182, 182, 182, 200, 182, 10];
for i := 0 to High(Labels) do
begin
frmLabels[i] := TLABEL.Create(frmDesign);
with frmLabels[i] do
begin
Parent := frmDesign;
Height := 20;
Width := 50;
Top := Ts[i];
Left := Ls[i];
Font.Size := 8;
Caption := Labels[i];
if (Hints[i] <> '') then
Hint := Hints[i];
ShowHint := true;
end;
end;

Ws := [150, 150, 28, 28, 76, 76, 150, 100, 100, 100, 40, 80];
Ts := [ 80, 126, 34, 34, 274, 274, 80, 120, 150, 180, 210, 154];
Ls := [ 10, 10, 60, 330, 112, 300, 200, 250, 250, 250, 290, 80];
SetArrayLength(frmEdits, Length(Ws));
for i := 0 to High(frmEdits) do
begin
frmEdits[i] := TEDIT.Create(frmDesign);
with frmEdits[i] do
begin
Parent := frmDesign;
Height := 21;
Width := Ws[i];
top := Ts[i];
Left := Ls[i];
Font.Size := 8;
end;
end;

for i := 0 to High(CheckBoxs) do
begin
CheckBoxs[i] := TCHECKBOX.Create(frmDesign);
with CheckBoxs[i] do
begin
Parent := frmDesign;
Top := 184+i*22;
Left := 10;
ShowHint := true;
ONCLICK := @OnLeftClick;
end;
end;

Memo := TMemo.Create(frmDesign);
with Memo do
begin
Parent := frmDesign
Left := 390;
Top := 10;
Width := 200;
Height := 280;
end;

Memo.Lines.Add(ScriptName+' v'+Version+' by Narcle');
if FileExists(FilePath) then
begin
LoadPlayers;
ShowPlayer(0);
end
else
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
CurPlayer := 0;
ShowPlayer(CurPlayer);
end;
frmDesign.ShowModal;
end;

procedure SafeInitForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('InitForm', v);
end;

procedure AntiBan;
begin
if not LoggedIn then Exit;
case Random(99) of
0: wait(500+random(3000));
1: begin
RandomMovement;
SetAngle(SRL_ANGLE_HIGH);
end;
3: PickUpMouse;
end;
end;

Function HpCheck: boolean;
var
c, T, i:Integer;
RunDir: String;
begin
if (HPPercent < 50) and LoggedIn then
begin
Result := True;
Debug('HP low doing HP checks...');
if not InvEmpty then
for c := 0 to 1 do
begin
if (c > 0) then//in case uptext fails
MakeCompass(rs_GetCompassAngleDegrees+60+random(50 ));
for i := 1 to 28 do //Begin food eating proc
if ExistsItem(i) then
begin
MMouseItem(i);
if WaitUpTextMulti(['Eat', 'obster', 'onkfish', 'hark'], 400) then
begin
ClickMouse2(False);
if WaitOption('Eat', 400) then
begin
Debug('Eating food...');
t := GetSystemTime;
while ExistsItem(i) and ((GetSystemTime-t) < 2000) do
wait(20);
if not ExistsItem(i) then
Inc(Players[CurrentPlayer].Integers[FOODATE]);
if (HPPercent > 60) then
Exit;
end;
end;
end;//End food eating
end;
if (not LoggedIn) or (HPPercent > 50) then
Exit;

if (HPPercent < 50) then
begin
if (HPPercent < 25) then
if (InFight) then
begin
RunDir := 'nsewns';
Debug('Running away HP% < 25...');
RunAway(RunDir[random(6)+1], true, 1, 10000 + random(2000));
end;
T := GetSystemTime;
repeat
if not IsResting then
SetRest;
Wait(200+random(200));
FindNormalRandoms;
If ((GetSystemTime - T) > (50000+random(50000)) ) then
begin
case random(2) of
0: BoredHuman;
1: RandomMovement;
end;
T := GetSystemTime;
end;
if not LoggedIn then
Exit;
until (HPPercent > 60);
SetAngle(SRL_ANGLE_HIGH);
end;
end;
end;

procedure Report;
var
xp,i: integer;
begin

if not LoggedIn then
Exit;

with Players[CurrentPlayer] do
begin
IncEx(TOTALKILLS, Integers[NPCKILLS]);//Total Kills
stats_IncVariable('Monsters Killed', Integers[NPCKILLS]);

for i := 0 to 3 do
xp := Max(xp, GetXPBarTotal);
if (xp > Integers[REPORTXP]) then
Integers[CURRENTXP] := xp;
stats_IncVariable('Total EXP Gained', Integers[CURRENTXP]-Integers[REPORTXP]);
IncEx(Integers[XPGained], Integers[CURRENTXP]-Integers[REPORTXP]);
IncEx(TOTALXP, Integers[CURRENTXP]-Integers[REPORTXP]);
Integers[REPORTXP] := Integers[CURRENTXP];

if ((PlayerWorked(CurrentPlayer)/60000.0) > 0) then
Integers[KILLSperHour] := round( (Integers[TOTALNPCKILLS]*60.0)/(PlayerWorked(CurrentPlayer)/60000.0))//XP Per hour
else
Integers[KILLSperHour] := -1;

if ((PlayerWorked(CurrentPlayer)/60000.0) > 0) then
Integers[XPperHour] := round( (Integers[XPGained]*60.0)/(PlayerWorked(CurrentPlayer)/60000.0))//XP Per hour
else
Integers[XPperHour] := -1;

SRLProgressReport(ResultDebugBox, ScriptName, 'Narcle', Version,
['Time Ran','Killed', 'XP'],
[MsToTime(GetTimeRunning, Time_Abbrev), TOTALKILLS, TOTALXP]);

SRLPlayerReport(ResultDebugBox, 0, False,
[True, false, false, false, false, false],
['Kills', 'Kills/H', 'XP Gained', 'XP/H'],
[], [TOTALNPCKILLS, KILLSperHour, XPGained, XPperHour], [], []);

Integers[NPCKILLS] := 0;
end;
ReportTime := GetSystemTime + 5*61000;
stats_Commit;
end;

procedure LogoutSeq(reason:string);
begin
while InFight and LoggedIn do
begin
HpCheck;
wait(100);
end;
Debug('Logout sequence...');
if (reason = '') then
begin
if HowManyPlayers = 1 then
begin
LogOut;
Wait(RandomRange(1*60000, 3*60000));
NextPlayer(true);
end
else
NextPlayer(true);
end
else
begin
Writeln(reason+' '+Players[Currentplayer].Name+' is now inactive.');
NextPlayer(false);
end;
end;

procedure SitAndWait;//Super advance I know :P
var
T: integer;
begin
T := GetSystemTime + 30000;
Debug('No NPCs detected on screen, waiting...');
repeat
if not LoggedIn then
Exit;
Wait(50+random(50));
FindNormalRandoms;
AntiBan;
HpCheck;
until (GetSystemTime > T) or (Length(GetMMDotsOnMS('npc')) > 0);
end;

function ChangeCamera: boolean;
var
i, II, PosNeg:integer;
begin
Case random(2) of
0: PosNeg := 1;
1: PosNeg := -1;
end;
i := Round(rs_GetCompassAngleDegrees/45 - 1);
if i < 0 then i := 0;
if i > 7 then i := 7;
For II := 0 to 4+Random(4) do
begin
if (Length(GetMMDotsOnMS('npc')) > 0) then
begin
Result := true;
exit;
end;
i := i+PosNeg;
if i > 7 then i := 0;
if i < 0 then i := 7;
MakeCompass(inttostr(i*(40+random(6))));
end;
end;

procedure WaitFight;
Var
T, C, s, x, i, Time, L, Remove, H, Pixs, LastXP: integer;
P: TIntegerArray;
WeapTime, TimeOut: integer;
begin
//if DebugMode then
//SMART_DrawBoxEx(False, False, AniBox, clPurple);

if Length(Playas[CurrentPlayer].WeaponTimes) > 49 then
Playas[CurrentPlayer].AvgWeapTime := AverageTIA(Playas[CurrentPlayer].WeaponTimes);
if Length(Playas[CurrentPlayer].AniChanges) > 199 then
Begin
Playas[CurrentPlayer].AvgAniChange := Round(AverageTIA(Playas[CurrentPlayer].AniChanges)*0.9);
Debug('Pixs changed to: '+ToStr(Playas[CurrentPlayer].AvgAniChange));
end;

with Playas[CurrentPlayer] do
if AvgWeapTime > 0 then
begin
H := High(WeaponTimes);
for i := 0 to H do
if not InRange(WeaponTimes[i], AvgWeapTime-400, AvgWeapTime+400) then
begin
Swap(WeaponTimes[i], WeaponTimes[H-Remove]);
Inc(Remove);
end;
SetLength(WeaponTimes, Length(WeaponTimes)-Remove);
AvgWeapTime := AverageTIA(Playas[CurrentPlayer].WeaponTimes);

WeapTime := Round(AvgWeapTime+0.0*1.15);
if LastWeaptime <> WeapTime then
Debug('Weapon time switched too: '+ToStr(WeapTime));
LastWeaptime := WeapTime;
end;

if (WeapTime = 0) then
WeapTime := WeaponTime;


for i := 0 to 2 do
With Players[CurrentPlayer] do
Integers[CURRENTXP] := Max(Integers[CURRENTXP], GetXPBarTotal);
s := Players[CurrentPlayer].Integers[CURRENTXP];
x := s;
C := GetSystemTime;
T := C;
TimeOut := C + 8000+random(3000);
Repeat
P := PixelShiftMulti([AniBox], 200);

if Playas[CurrentPlayer].AvgAniChange > 0 then
Pixs := Playas[CurrentPlayer].AvgAniChange-20
else
Pixs := PixelChange;

if (P[0] > Pixs) then
begin
//Debugln('Ani Time: '+Padl(ToStr(GetSystemTime-(T-WeapTime)), 5)+' Ani Change: '+ToStr(P[0]));
Time := GetSystemTime-T;
if (Playas[CurrentPlayer].AvgAniChange < 1) then
begin
L := Length(Playas[CurrentPlayer].AniChanges);
SetArrayLength(Playas[CurrentPlayer].AniChanges, L+1);
Playas[CurrentPlayer].AniChanges[L] := P[0];
end;
T := GetSystemTime;
TimeOut := T + WeapTime;
end;

With Players[CurrentPlayer] do
Integers[CURRENTXP] := Max(Integers[CURRENTXP], GetXPBarTotal);

if (Players[CurrentPlayer].Integers[CURRENTXP] > x) then
begin
LastXP := Players[CurrentPlayer].Integers[CURRENTXP] - x;
Time := GetSystemTime - C;
x := Players[CurrentPlayer].Integers[CURRENTXP];
if InRange(Time, 1000, 5000) then
begin
L := Length(Playas[CurrentPlayer].WeaponTimes);
SetArrayLength(Playas[CurrentPlayer].WeaponTimes, L+1);
Playas[CurrentPlayer].WeaponTimes[L] := Time;
end;
C := GetSystemTime;
Debugln('| Hit~ '+ToStr(Round(LastXP*1.9))+' Speed: '+Tostr(Time));
end;

FindNormalRandoms;
if HpCheck then
TimeOut := GetSystemTime + 4000;
until (GetSystemTime > TimeOut) or (not LoggedIn);
Debugln('Ani Time: '+Padl(ToStr(GetSystemTime-T), 5));
Debug('Fighting Done.');
if ((Players[CurrentPlayer].Integers[CURRENTXP]-s) > 12) then
begin
Inc(Players[CurrentPlayer].Integers[TOTALNPCKILLS]);
Inc(Players[CurrentPlayer].Integers[NPCKILLS]);
end;
end;

Procedure SetupBackGround;
var
TPA: TPointArray;
B: TBox;
begin
if DisableSMARTPaint then
Exit;
B := IntToBox(8, 345, 497, 379);
TPA := TPAFromBox(B);
SMART_DrawDotsEx(True, TPA, 725267);
B := IntToBox(8, 378, 497, 378);
TPA := TPAFromBox(B);
SMART_DrawDotsEx(false, TPA, 2570567);
//SMART_DrawTextEx(False, 378, 346, UpChars, ScriptName, 2570567);
SMART_DrawTextEx(False, 344, 345, BigChars, 'by Narcle', 2570567);
SMART_DrawTextEx(False, 282, 345, UpCharsEx, ' Fast', 2570567);
SMART_DrawTextEx(False, 280, 344+17, UpCharsEx, 'Fighter', 2570567);
SMART_DrawTextEx(False, 9, 347, UpChars, ' Kills: ', clYellow);
SMART_DrawTextEx(False, 154, 347, UpChars, ' K/H: ', clYellow);
SMART_DrawTextEx(False, 8, 347+17, UpChars, ' XP: ', clYellow);
SMART_DrawTextEx(False, 153, 347+17, UpChars, 'XP/H: ', clYellow);
end;

procedure PrintOnSmart(Str: String; Placement: TPoint); //y1 345, y2 377
var
TPA: TPointArray;
B: TBox;
begin
B := IntToBox(Placement.x, Placement.y, Placement.x+Length(Str)*8 , Placement.y+15);
TPA := TPAFromBox(B);
SMART_DrawDotsEx(False, TPA, 725267);
SMART_DrawTextEx(False, Placement.x, Placement.y, UpChars, Str, clYellow);
end;

Procedure SMARTDrawDisplay;
var
xp, x: integer;
begin
if DisableSMARTPaint then
Exit;
SMART_ClearCanvasArea(IntToBox(0, 0, MSX2, MSY2));
With Players[CurrentPlayer] do
begin
x := GetXPBarTotal;
if InRange(x, Integers[CURRENTXP], Integers[CURRENTXP]+1000) then
Integers[CURRENTXP] := x;

if Integers[DRAWXP] = Integers[CURRENTXP] then
Exit;
xp := (Integers[CURRENTXP]-Integers[STARTXP]);

if ((PlayerWorked(CurrentPlayer)/60000.0) > 0) then
Integers[KILLSperHour] := round( (Integers[TOTALNPCKILLS]*60.0)/(PlayerWorked(CurrentPlayer)/60000.0))//XP Per hour
else
Integers[KILLSperHour] := -1;

if ((PlayerWorked(CurrentPlayer)/60000.0) > 0) then
Integers[XPperHour] := round( (xp*60.0)/(PlayerWorked(CurrentPlayer)/60000.0))//XP Per hour
else
Integers[XPperHour] := -1;

Integers[DRAWXP] := Integers[CURRENTXP];

PrintOnSmart(ToStr(Integers[TOTALNPCKILLS]), Point(40, 347));
PrintOnSmart(ToStr(Integers[KILLSperHour]), Point(188, 347));
PrintOnSmart(ToStr(XP), Point(40, 347+17));
PrintOnSmart(ToStr(Integers[XPperHour]), Point(188, 347+17));
end;
end;

Function FightIt: Boolean;
var
i, ii, r, L, P: integer;
T: TPoint;
NPCs, TPA: TPointArray;
ATPA: T2DPointArray;
BoxArr: TBoxArray;
begin
P := GetSystemTime;
NPCs := GetMMDotsOnMS('npc');
L := Length(NPCs);
if L < 1 then
Exit;
SetLength(BoxArr, L);
for i := 0 to L-1 do
begin
T := MMtoMS(NPCs[i]);
BoxArr[i] := IntToBox(Max(T.x-40, MSX1), Max(T.y-40, MSY1), Min(T.x+40, MSX2), Min(T.y+40, MSY2));
end;

With Playas[CurrentPlayer] do
for i := 0 to L-1 do
with BoxArr[i] do
begin
SetLength(ATPA, Length(Colors));
For ii := 0 to High(Colors) do //Color array
FindColorsTolerance(ATPA[ii], Colors[ii], X1, Y1, X2, Y2, NPCTol);
TPA := MergeATPA(ATPA);
if Length(TPA) > 0 then
begin
ATPA := SplitTPA(TPA, 6);
SortATPASize(ATPA, True);
T := MiddleTPA(ATPA[0]);
if IsFightAt(T.x, T.y) then
Continue;

if not DisableSMARTPaint then
begin
SMARTDrawDisplay;
SMART_DrawBoxEx(False, False, BoxArr[i], clBlue);
SMART_DrawDotsEx(False, ATPA[0], clRed);
end;
MMouse(T.x, T.y, 3, 3);
if WaitUpTextMulti([MobName], 150+random(100)) then//Text array
begin
Case ClickType of
0: r := Random(3);
1: r := 1;
2: r := 2;
end;
if (ClickType = 0) then
if LeftClickFail then
r := 2;
case r of
0..1: begin
ClickMouse2(True);
Result := DidClick(True, 100);
end;
2: begin
ClickMouse2(False);
Result := ChooseOption('ttack');
end;
end;
LeftClickFail := not result;
if Result then
begin
Debug('Attacked '+Inttostr(GetsystemTime - P)+'ms');
MarkTime(Players[CurrentPlayer].Integers[ATTACKTIME]);
FFlag(0);
Exit;
end Else Continue;
end;
end;
end;
end;

procedure SetupPlayer;
var
ammo, i, N: integer;
begin
if not LoggedIn then
Exit;
MouseSpeed := RandomRange(15, 17);
SetupBackGround;
ToggleXPBar(True);

with Players[CurrentPlayer] do
begin
if not Booleans[PLAYERSET] then
begin
Debug('Setting Angle');
SetAngle(SRL_ANGLE_HIGH);
SetAngle(SRL_ANGLE_HIGH);//just in case of lag
Debug('Setting Retaliate');
Retaliate(True);
Debug('Getting Weapon Info');
GetWeaponData(Playas[CurrentPlayer].Weapon);

if (Players[CurrentPlayer].Strings[1] <> '') then
if SetWeaponMode(Players[CurrentPlayer].Strings[1], Playas[CurrentPlayer].Weapon, True) then
Debug('Weapon set');
N := StrToIntDef(Players[CurrentPlayer].Strings[1], 0);
if InRange(N, 1, 4) then
SetFightMode(N);
Playas[CurrentPlayer].Range := SetWeaponMode('ange', Playas[CurrentPlayer].Weapon, false);
Playas[CurrentPlayer].Melee := SetWeaponMode('ttack', Playas[CurrentPlayer].Weapon, false);
Debug('Getting Levels');
GetAllLevels;
If Playas[CurrentPlayer].Range then
Writeln(Capitalize(Players[CurrentPlayer].Name)+ ' is Ranging.');
if Playas[CurrentPlayer].Melee then
Writeln(Capitalize(Players[CurrentPlayer].Name)+ ' is Meleeing.');
if not (Playas[CurrentPlayer].Range or Playas[CurrentPlayer].Melee) then
Writeln('[WARNING] Failed to get weapon data. Can''t detect if ranging or meleeing.');
for i := 0 to 9 do
Integers[STARTXP] := Max(GetXPBarTotal, Integers[STARTXP]);
Integers[CURRENTXP] := Integers[STARTXP];
Integers[REPORTXP] := Integers[STARTXP];
Booleans[PLAYERSET] := true;
end;
end;

if Playas[CurrentPlayer].Range then
begin
GameTab(tab_Equip);
ammo := ArrowAmount;
Debug('Ammo left: '+IntToStr(ammo));
if (ammo < 200) then
LogoutSeq('Low Ammo');
end;

SetRun(True);

Players[CurrentPlayer].Integers[LOGOUTIME] := Getsystemtime + RandomRange((LogoutIn-3)*60000, (LogoutIn+3)*60000);
MarkTime(Players[CurrentPlayer].Integers[ATTACKTIME]);
end;

procedure EndOfScript;
begin
FreeSRL;
if LogToFile then
CloseFile(DebugFile);
Disguise('ENDED');
writeln('');
writeln('Thanks for using Fast Fighter!');
writeln('Please post proggies on forums!');
writeln(' -Narcle');
end;

Procedure FFStartUp;
var
i, ii, c: integer;
ScriptStart: string;
begin
SRL_SixHourFix := True;
Smart_FixSpeed := True;
SetupSRL;
if DisableSMARTPaint then
SmartSetDebug(False);
DebugModeOn := True;
MouseSpeed := 16+random(3);
Disguise(scriptname);
ScriptStart := TheDate(DATE_DAY) + ' at ' + TheTime;
ScriptStart := Replace(scriptStart, ':', ' ');
Writeln('');
Writeln(ScriptName+' v'+version);
Writeln(' By Narcle');
Writeln('');
NumberOfPlayers(100);
DeclarePlayers;
if (Players[0].Name = '') then
begin
SafeInitForm;
if AKpf_SavePlayers then
SavePlayers(True);
if AKpf_Terminate then
TerminateScript;
end else
begin
HowManyPlayers := 0;
CurrentPlayer := 0;
DeclarePlayers;
for i := 0 to High(Players) do
if (Players[i].Name <> '') then
Inc(HowManyPlayers)
else
Break;
NumberOfPlayers(HowManyPlayers);
end;

if LogToFile then
DebugFile := CreateFile(AppPath+'Scripts\'+ScriptName+' Log ' + ScriptStart + '.txt');

AddOnTerminate('EndOfScript');
SetupSRLStats(19, stats_Username, stats_Userpass);

SRL_Procs[srl_OnLogIn] := @SetupPlayer;
SRL_Procs[srl_OnLogOut] := @Report;
for i := 0 to HowManyPlayers - 1 do
begin
if Players[i].Nick = '' then
Players[i].Nick := Capitalize(Copy(Players[i].Name, 1, 4));
try
if (Length(Players[i].Arrays[0]) <> 3) then
Debug('[ERROR] '+Capitalize(Players[i].Name)+' settings array is wrong length');
except
Debug('[ERROR] '+Capitalize(Players[i].Name)+' settings array is wrong length - '+ExceptionToString(ExceptionType, ExceptionParam));
end;
Try
Playas[i].NPCTol := Players[i].Arrays[0][0];
except
Debug('[ERROR] '+Capitalize(Players[i].Name)+' NPCTol setting is incorrect - '+ExceptionToString(ExceptionType, ExceptionParam));
end;
try
Playas[i].Colors := [Players[i].Integers[0], Players[i].Integers[1], Players[i].Integers[2]];
except
Debug('[ERROR] '+Capitalize(Players[i].Name)+' color array is incorrect - '+ExceptionToString(ExceptionType, ExceptionParam));
end;
if trim(Players[i].Strings[0]) = '' then
begin
Playas[i].MobName := 'tack';
Writeln('[WARNING] '+Capitalize(Players[i].Name)+' has no NPC name given to attack.');
end
else
Playas[i].MobName := Players[CurrentPlayer].Strings[0];
If (i > 0) and (Players[i].Integers[0] = 0) then
begin
Playas[i].Colors := Playas[0].Colors;
Playas[i].MobName := Playas[0].MobName;
end;
c := 0;
for ii := 0 to 2 do
if (Playas[i].Colors[ii] <> 0) then
inc(c);
if (c = 0) then
begin
Writeln('[ERROR] '+Capitalize(Players[i].Name)+' has no colors entered.');
Writeln('[HELP] If you don''t know how to get colors please read this tutorial:');
Writeln('[HELP] http://villavu.com/forum/showthread.php?t=67793');
TerminateScript;
end;
if c < 3 then
Writeln('[WARNING] '+Capitalize(Players[i].Name)+' only has '+ToStr(c)+' color(s) entered.');
try
Playas[i].Clicktype := 0;
if (Players[i].Arrays[0][1]) and (Players[i].Arrays[0][2]) then
begin
Debug('[WARNING] '+Capitalize(Players[i].Name)+' can''t have both Right & Left clicks. Setting to Default.');
Continue;
end;
if Players[i].Arrays[0][1] then
Playas[i].Clicktype := 1;//Left
if Players[i].Arrays[0][2] then
Playas[i].Clicktype := 2;//Right
except
Debug(Capitalize(Players[i].Name)+' click array is incorrect - '+ExceptionToString(ExceptionType, ExceptionParam));
end;
end;
for i := 0 to HowManyPlayers-1 do
if Players[i].Active then
begin
CurrentPlayer := i;
Break;
end;
Writeln('CurrentPlayer = '+Players[CurrentPlayer].Name);
PlayerBox := IntToBox(240, 137, 278, 185);
AniBox := IntToBox(MSCX-10, MFBox.y2-4, MSCX+10, MFBox.y2+16);
DebugModeOn := DebugMode;
ReportTime := GetSystemTime + 5*61000;
Loginplayer;
end;


//============================Main Execution==================================\\
begin
FFStartUp;
repeat
if not LoggedIn then
LogoutSeq('');

if FightIt then
WaitFight;

if (Length(GetMMDotsOnMS('npc')) = 0) then
if not ChangeCamera then
SitAndWait;

if (Getsystemtime > Players[CurrentPlayer].Integers[LOGOUTIME]) then
LogoutSeq('');

if TimeFromMark(Players[CurrentPlayer].Integers[ATTACKTIME]) > 10*60000 then
LogoutSeq('Failed to attack after 10 minutes');//Major fail safe, I suggest leaving it

if (GetSystemTime > ReportTime) then
Report;

SMARTDrawDisplay;
HpCheck;
Antiban;//delete for no antiban call
FindNormalRandoms;
until (AllPlayersInactive);
end.
:thumbsup:

msemtex
08-02-2012, 08:32 AM
I tried your above code and all it does is scans for the npc's and it never clicks on them. That problem developed for the script I was using.

Solar
08-02-2012, 08:34 AM
I think that might be an uptext issue. Try changing it. I believe it is case sensitive too.

msemtex
08-02-2012, 08:37 AM
I removed the name of the npc in the script and all is well.

HolyWord
08-03-2012, 08:39 AM
This script works for me. The paint is off and there seems to be a problem with the SRL highscores but other then that works well for me.

Edit: I am removing my copy of the script, because Fruit's is much better.

Solar
08-03-2012, 10:11 AM
I've since learnt that by changing
SMART_DrawBoxEx(False, BoxArr[i], clBlue);
to
SMART_DrawBoxEx(False, False, BoxArr[i], clBlue);
the script works as it did before, better than just commenting it out.
This is because SMART_DrawBoxEx has an additional parameter to fill the box or not.

illuminatiswag
08-03-2012, 02:28 PM
Hey were is a good place to train where i wont really need food im 45 def 92 atk 99 str

kozak94
08-03-2012, 02:55 PM
hey guys! Everytime I run Fruit's script, I keep running into this error.
Line: Integers[0] := ;//1st color of monster
Error: [Error] (53:20): Syntax error at line 52
Compiling failed.

What is the problem here?

Solar
08-03-2012, 03:24 PM
Read the OP and select some colours. :duh:

blowsmoke1
08-03-2012, 05:17 PM
hey guys! Everytime I run Fruit's script, I keep running into this error.
Line: Integers[0] := ;//1st color of monster
Error: [Error] (53:20): Syntax error at line 52
Compiling failed.

What is the problem here?

[you're basically trying to fight an invisible monster atm lol]
Check Here : http://villavu.com/forum/showthread.php?t=71507
This is the Color Guide.

1st Color of monster should have 9 Numbers after the = sign
//Line: Integers[0] := ;//1st color of monster //OLD CODE
--------------------------------------------------------------------------
Line: Integers[0] :=4363920 ;//1st color of monster //NEW LINE

The Above Was an example of adding the First Color of Goblins to the script you must read the link above to figure out the rest for yourself its quite simple if you take the time to read it.
[P.S: Also skim your script to see where you need to make all of the required changes.]
Hope This Helped.

HolyWord
08-03-2012, 07:55 PM
Hey were is a good place to train where i wont really need food im 45 def 92 atk 99 str

Are you f2p or p2p?

kozak94
08-06-2012, 09:29 PM
Hey! I'm here to say thanks for the great script. It seems like Smart issue has been fized. He is a short proggy I got today:


[===============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 3 Hr 42 Min 56 Sec ]
[ Killed : 613 ]
[ XP : 71914 ]
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Koza | True | 03:41:00 | 613 | 166 | 71914 | 19524 ]
[================================================== ==============]

Cwil
08-07-2012, 04:05 AM
only problem is it clicks other monsters before im even done killing one.

BGXD
08-07-2012, 04:33 PM
One of the best scripts!

jtraininsane
08-08-2012, 12:04 AM
I'm getting error when compiling (sry im a complete noob)

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52
Compiling failed.

Does this have to do with a color thing? I can't even get smart started here...

the_mcroer
08-08-2012, 03:27 AM
Sorry if this is a stupid question, but how do I set it to choose lamp and prayer as lampskill after a random event?

Instead it chooses mystery box, which is really useless for me compared to the lamp.

Solar
08-09-2012, 09:46 AM
Is there anywhere in the script setup that I can enter my SRL Stats user and pass instead of using the forms to setup?

Ian
08-09-2012, 11:36 AM
Im not sure. But I tried just deleting the 4 smart_ lines and the form came up alright but didn't log in. When I logged in manually it shouted my name and pass. Oops.

lolaller
08-09-2012, 12:33 PM
I love this script. Here's a proggy from today

[===============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 2 Hr 43 Min 39 Sec ]
[ Killed : 340 ]
[ XP : 15327 ]
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== =============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== =============]
[ Fast | True | 01:29:05 | 241 | 163 | 9890 | 6681 ]
[ Chri | True | 01:13:04 | 99 | 81 | 5437 | 4464 ]
[================================================== =============]

lanoi
08-10-2012, 06:14 AM
getting error while trying to run the script. I got this

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52
Compiling failed.

HolyWord
08-11-2012, 01:08 AM
[================================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[================================]
[ Time Ran : 14 Hr 24 Min 39 Sec ]
[ Killed : 3354 ]
[ XP : 313410 ]
[================================]
[ Fast Fighter 4.13 ]
[================================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Dave | False | 14:17:36 | 3354 | 235 | 313410 | 21927 ]
[================================================== ==============]

Thanks to SRL_SixHourFix we now have longer proggys :) Thanks for the awesome script Narcle. Going for 99 str.

gunman82
08-15-2012, 11:39 AM
Broken script.

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52
Compiling failed.

please fix asap.

warrkin
08-16-2012, 05:44 PM
I've got this problem, im new on this bot, would only love if this script would work for me, I've updated and set all it said on guide to install i've updated everything but script doenst work for me it says :
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52
Compiling failed.

plz help :/

Scorched
08-16-2012, 09:17 PM
Seems like everyone is getting this error "Invalid number of parameters at line 52". As far as I know the SRL is outdated and the SixHourFix is not a solution to this. This is all I know, I have not seen a fix for it yet.

Solar
08-16-2012, 09:22 PM
Seems like everyone is getting this error "Invalid number of parameters at line 52". As far as I know the SRL is outdated and the SixHourFix is not a solution to this. This is all I know, I have not seen a fix for it yet.

Look back a page and you'll find a working script posted by me in simba tags.
:frusty:

Scorched
08-16-2012, 10:09 PM
Look back a page and you'll find a working script posted by me in simba tags.
:frusty:

Thanks for the help. I have encountered a similar error with several other scripts, none of which had the solution postd on their respective threads. I spend quite a bit of time searching and sifting. But to be honest I did not bother to read through all 200+ pages of this thread.

stonerdan663
08-19-2012, 02:24 AM
Loading extension C:\Simba\Extensions\associate.sex
Extension Enabled
Loading extension C:\Simba\Extensions\extension.sex
Extension Enabled
Extensions Updater Enabled!
Loading extension C:\Simba\Extensions\srl.sex
Extension Enabled
SRL Updater Enabled!
Plugins Updater Enabled!
SPS Updater Enabled!
MSI Updater Enabled!
Simba news:

Simba 0.99 has been released. The release pages will be updated in a few
days.

The latest Simba is Simba 991. Once you've updated to Simba 991, update SRL
and your plugins as well.

Updating instructions can be found here:

http://villavu.com/forum/showthread.php?t=87258

Theoretically all the updates should result in a working Simba/SRL again.
We will find out in the next few days. :-)


Thank you for using Simba,
Hakuna Matata.

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(53:19): Invalid number of parameters at line 52
Compiling failed.

warrkin
08-20-2012, 04:54 PM
I've downlaoded script from previus page, but now when i press start, nothing happens. Help?

nt4rz
08-23-2012, 02:30 PM
do i have to pick color when i open the script all the time?
i mean cant i just save the color and just start the script if i am at the same place all the time?

Solar
08-23-2012, 04:20 PM
If you are using the form setup, which I assume you are, then I think there is an option to save.
You could just use the script setup, the instructions in the comments are simple enough, and then save the script.

xColoris
08-30-2012, 02:35 AM
Look back a page and you'll find a working script posted by me in simba tags.
:frusty:

I used your script but I am still getting this error:

http://i.imgur.com/a4DvE.png

^^ That's at line 1124

xColoris
08-30-2012, 02:54 AM
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\randomtool.simba(215:3): Variable 'T' never used at line 214
[Error] C:\Users\Makram\Desktop\Combat.simba(1125:78): Identifier expected at line 1124
Compiling failed.

any solutions? thanks

Solar
08-30-2012, 08:11 AM
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\randomtool.simba(215:3): Variable 'T' never used at line 214
[Error] C:\Users\Makram\Desktop\Combat.simba(1125:78): Identifier expected at line 1124
Compiling failed.

any solutions? thanks

Try not to double post, simple edit your previous post.

Change line 1124 to this;
Writeln('[HELP] http://villavu.com/forum/showthread.php?t=67793');
It compiles for me now.

alskinso
09-03-2012, 07:12 AM
IDK why but Ghoul just dont work for me, ive tried several colours many names and tolerances ive tried naming it houl or oul with no luck like 5 different colour sets including the one from the guide it recognises them barely but switches between them wayyy too fast and never attacks even though it does hover over them briefly

Please help

print
09-03-2012, 05:41 PM
this script never works for me so i just use dagith killer its flawless ha=0

Solar
09-03-2012, 05:59 PM
this script never works for me so i just use dagith killer its flawless ha=0

What was you having trouble with when trying to get this script to run?

alskinso
09-08-2012, 10:36 AM
Thanks ive gotten almost 5m xp on this, only problem is when im ranging ogres it never realises its being attacked and always tries to attack the next one before its finished :/ this dramatically slows the xp/h

Anyone know how to fix?

raymondzheng
09-09-2012, 09:50 AM
[Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\randomtool.simba(215:3): Variable 'T' never used at line 214
[Error] C:\Users\Makram\Desktop\Combat.simba(1125:78): Identifier expected at line 1124
Compiling failed.

any solutions? thanks

just fix that small like typo in that line or just previous with the previous line

Writeln('[HELP] If you don''t know how to get colors please read this tutorial:');
line 1124 is useless anyways

satkan
09-16-2012, 10:00 AM
[==========================]
[ Fast Fighter 4.13 ]
[==========================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Zezi | True | 00:30:39 | 128 | 251 | 25594 | 50091 ]
[================================================== ==============]


^ in barb stronghold on some lvl 26/ 44's using salve amulet and d scim.

(Btw, 80str, 80att, 80def. No healing needed EVER! At least with regen brace and full rune.)


Well, luckely no1 ever bots the spot i do.
In 36 hours time, nobody ever stood in the zone i'm in.

Solar
09-21-2012, 05:05 PM
[===============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 8 Hr 17 Min 33 Sec ]
[ Killed : 1650 ]
[ XP : 276174 ]
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ **** | True | 08:12:56 | 1650 | 201 | 276174 | 33616 ]
[================================================== ==============]
Nice little run. Stopped manually too.

snoker
09-24-2012, 02:12 AM
[==========================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[==========================]
[ Time Ran : 34 Min 41 Sec ]
[ Killed : 63 ]
[ XP : 9978 ]
[==========================]
[ Fast Fighter 4.13 ]
[==========================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Ired | True | 00:32:13 | 63 | 117 | 9978 | 18579 ]
[================================================== ==============]

Still Works.. Eating works to

Rezozo
09-24-2012, 02:58 AM
Wow, didn't know this actually works! Its been here for ages!

ninoqino
09-28-2012, 10:56 AM
thanks for the fix SOLAR/Fruity! it works wonders

Solar
09-28-2012, 04:07 PM
thanks for the fix SOLAR/Fruity! it works wonders

No problem. :) The SMART drawing (which isn't actually required) isn't really right because of the navbar offset.

zertunami
10-01-2012, 02:43 AM
[==========================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[==========================]
[ Time Ran : 48 Min 36 Sec ]
[ Killed : 84 ]
[ XP : 4129 ]
[==========================]
[ Fast Fighter 4.13 ]
[==========================]
[================================================== =============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== =============]
[ Rpra | True | 00:48:14 | 84 | 104 | 4129 | 5136 ]
[================================================== =============]

Did a short little run, works very well!

therealdeal
10-02-2012, 10:21 PM
everytime i run it i get...

Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

i got the script straight from the download... any suggestions

Ashaman88
10-02-2012, 10:34 PM
everytime i run it i get...

Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

i got the script straight from the download... any suggestions

http://villavu.com/forum/showthread.php?t=88578

Tilley661
10-03-2012, 02:53 PM
http://villavu.com/forum/showthread.php?t=88578


hey man im getting this aswell, i looked through the thread but i cant see anything that would need changing, simba is fully updated so im not sure what to look for any ideas?

zertunami
10-03-2012, 02:59 PM
hey man im getting this aswell, i looked through the thread but i cant see anything that would need changing, simba is fully updated so im not sure what to look for any ideas?

Just change the lines that need to be changed, like {$i SRL/SRL/Misc/SMART.simba} to {$DEFINE SMART} in the script.

I think the other changes needed are SMART_DrawBoxEx(False,BoxHere,ClRed) to SMART_DrawBoxEx(False,False,BoxHere,ClRed) in SmartGraphics.simba
and
Smart_Server := 26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;

to SRL_SixHourFix := True;
SMART_FixSpeed := True;

near the end of narcle's script.

Tilley661
10-03-2012, 03:02 PM
shit my bad, when i checked the script i was looking in the smart script not the actuall fighter script... dont blame me im quite ill at the moment :) cheers

Tilley661
10-03-2012, 03:19 PM
still getting this:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(278:134): Invalid number of parameters at line 277

i have a feeling its something to do with allding an extra false somewere, but im not sure where

zertunami
10-03-2012, 06:23 PM
still getting this:

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(278:134): Invalid number of parameters at line 277

i have a feeling its something to do with allding an extra false somewere, but im not sure where

I think that's the parameters of the spawn client. Go to line 287 and change it to Result:= SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');

InF3RNOuS
10-05-2012, 09:35 PM
Hey guys used simba before but not In a few months, Have an error iv'e never had on previous laptops Iv'e used. I Don't have much experience debugging/error solving. If there is anyone who could help me fix this it would be awsome.

At the moment the error I have is:


[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

I downloaded Simba and Installed it to C: , I then updated and set it up step by step according to SRLHarry's YouTube video, And got that error when trying to run Narcles Fast Fighter. Any help would be greatly appreciated

zertunami
10-05-2012, 10:07 PM
Hey guys used simba before but not In a few months, Have an error iv'e never had on previous laptops Iv'e used. I Don't have much experience debugging/error solving. If there is anyone who could help me fix this it would be awsome.

At the moment the error I have is:


[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

I downloaded Simba and Installed it to C: , I then updated and set it up step by step according to SRLHarry's YouTube video, And got that error when trying to run Narcles Fast Fighter. Any help would be greatly appreciated

Refer to my post above.

InF3RNOuS
10-05-2012, 10:19 PM
Refer to my post above.

After repairing some errors, im now getting this.. any help?

[Error] D:\Users\Josh\Downloads\Fast Fighter [SRL5][v4.13].simba(926:52): Invalid number of parameters at line 925

litoris
10-06-2012, 12:47 PM
After repairing some errors, im now getting this.. any help?

[Error] D:\Users\Josh\Downloads\Fast Fighter [SRL5][v4.13].simba(926:52): Invalid number of parameters at line 925

Post lines 924-926.

InF3RNOuS
10-06-2012, 01:02 PM
Post lines 924-926.

SMARTDrawDisplay;
SMART_DrawBoxEx(False, BoxArr[i], clBlue);
SMART_DrawDotsEx(False, ATPA[0], clRed);

litoris
10-06-2012, 01:09 PM
SMART_DrawBoxEx(False, False, BoxArr[i], clBlue);


Change that like this(another false basically, parameters changed). If you had followed that walkthrough to fix the issues with SMART, you'd have done that already. Check it out next time.

sublime2293
10-06-2012, 07:03 PM
Exception in Script: Unable to find file 'SRL/SRL/misc/smart.simba' used from 'C:\Users\Cullerea\Desktop\fighter.simba'


Please help?

Ashaman88
10-06-2012, 07:18 PM
Exception in Script: Unable to find file 'SRL/SRL/misc/smart.simba' used from 'C:\Users\Cullerea\Desktop\fighter.simba'


Please help?

read link couple posts up

sublime2293
10-06-2012, 07:24 PM
Whos link?

Ashaman88
10-06-2012, 07:28 PM
http://villavu.com/forum/showthread.php?t=88578

InF3RNOuS
10-06-2012, 09:01 PM
After a while of the script running, it logs me out of RS. How do i change this so that it will constantly run?

Thanks..

Tilley661
10-08-2012, 01:54 PM
Still having issues with this, the params change made a differance and now i think its just params in the code,

[error] Invalid number of parameters at line 925

and line 925 reads:


SMART_DrawBoxEx(False, BoxArr[i], clBlue);

any ideas?

my bad... sorry i didnt see the new post about the extra false, changed to:


SMART_DrawBoxEx(False, False, BoxArr[i], clBlue);

i was wondering when this new extra false came into play

NKN
10-09-2012, 12:05 AM
still having issues with this, the params change made a differance and now i think its just params in the code,

[error] invalid number of parameters at line 925

and line 925 reads:


smart_drawboxex(false, boxarr[i], clblue);

any ideas?

My bad... Sorry i didnt see the new post about the extra false, changed to:


smart_drawboxex(false, false, boxarr[i], clblue);

i was wondering when this new extra false came into play

smart v7.2

sublime2293
10-09-2012, 01:21 PM
The program can't start because MSVCR71.dll is missing from your computer. Try reinstalling the program to fix this problem.

Any suggestions?

litoris
10-09-2012, 01:58 PM
The program can't start because MSVCR71.dll is missing from your computer. Try reinstalling the program to fix this problem.

Any suggestions?

Search your error on the SRL FAQ thread, you are not the first to encounter it.

sublime2293
10-09-2012, 03:18 PM
Cant find it anywhere else on the FAQ

litoris
10-09-2012, 03:41 PM
Cant find it anywhere else on the FAQ

Then you have some serious problems, because it is right on this thread (http://villavu.com/forum/showthread.php?p=851555).
CTRL+F msvcr and it shows two links.

Solar
10-13-2012, 06:17 PM
[===============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 7 Hr 12 Min 35 Sec ]
[ Killed : 1173 ]
[ XP : 230970 ]
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ **** | True | 07:08:36 | 1173 | 164 | 230970 | 32333 ]
[================================================== ==============]
Ran out of ammo.

InF3RNOuS
10-14-2012, 03:29 AM
Can anyone tell me how I can get the script to run continuously like the above 7 hours. Mine wants to log me out, sometimes after an hour sometimes about 20 minutes. Any ideas?

Thanks

NKN
10-14-2012, 04:54 AM
Read the OP please.
It explains how to do this.

Tilley661
10-14-2012, 08:30 PM
[ Fast Fighter 4.13 ]
[ by Narcle ]
[===============================]
[ Time Ran : 3 Hr 18 Min 55 Sec ]
[ Killed : 471 ]
[ XP : 177331 ]

nice script man thanks

Mongolen
10-17-2012, 06:39 PM
Rewrote it a bit so it could be used with the new simba :D Works awesome! Thanks!
[==============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[==============================]
[ Time Ran : 2 Hr 11 Min 8 Sec ]
[ Killed : 336 ]
[ XP : 116647 ]
[==============================]
[ Fast Fighter 4.13 ]
[==============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ **** | True | 02:10:08 | 336 | 155 | 116647 | 53777 ]
[================================================== ==============]

Parfilo
10-17-2012, 11:15 PM
I need to test this script out asap!

aaronaboyd2
10-22-2012, 06:31 AM
hmmmm.... worked this morning, then got this message:

Error: Out Of Range at line 869
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]

anyone know what's wrong??

chrcoe
10-23-2012, 04:46 PM
will have to test script this out this week, thanks!

zertunami
10-23-2012, 07:58 PM
hmmmm.... worked this morning, then got this message:

Error: Out Of Range at line 869
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]

anyone know what's wrong??

What's line 869

mr. pali
11-02-2012, 11:06 PM
[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== =============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== =============]
[ Mone | True | 04:15:41 | 831 | 195 | 37761 | 8861 ]
[================================================== =============]

This is still working. Best free script I've ever used. Thanks.

I used to script scar, and I'm finally getting back into it. I quit right when SRL was coming into play. I'm very excited to see scar has been reborn, and in good fashion! Keep up the good work.

By the way, this was on cows in lumbridge. level 45ish range. Iron arrows.

Footy
11-02-2012, 11:08 PM
This script has been working for ages! I doubt it will break until the Combat Evolution thingy. If you need help starting to script, send me or anyone else a PM! :)

mr. pali
11-03-2012, 03:07 AM
Wow, thanks for the gracious offer, Footy.

Does anyone have a fix for the fighter switching between monsters while still fighting another? I'm ranging ogres at the training grounds, and it switches every 5-10 seconds, never finishing off one entirely before going on to another.

I wouldn't care, I get the same xp/hr, but it does look a little suspicious...

thanks

-pali

superfly29rr
11-04-2012, 07:03 AM
Yea i'm having the same problem. It half kills a monster then switches to another. Not only does this look really sus, it also sucks as i want to move up to higher lvl'ed targets for better xp but i cant do this effectively while im getting owned by several monsters at a time(using up too much food).

Iv heard something about changing wait values or something to counter this, if anyone has a fix or can point me in the right direction, would be greatly appreciated!

calvinr
11-04-2012, 03:17 PM
every time i try and run the script this pops up
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
not sure what to do I am new to this

superfly29rr
11-04-2012, 03:52 PM
every time i try and run the script this pops up
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
not sure what to do I am new to this

You need to run through these steps to update the script to the new SMART system as this script is out dated.

http://villavu.com/forum/showthread.php?t=88578

Also the form may not work but u can just manually put the required values into 'DeclarePlayers' and it should work

Skr
11-04-2012, 04:38 PM
every time i try and run the script this pops up
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
not sure what to do I am new to this

same here idk what to do

zertunami
11-04-2012, 08:03 PM
same here idk what to do

Look at the post above you...

mr. pali
11-05-2012, 01:57 AM
[==============================]
[ Fast Fighter 4.13 ]
[ by Narcle ]
[==============================]
[ Time Ran : 6 Hr 2 Min 51 Sec ]
[ Killed : 1330 ]
[ XP : 153325 ]
[==============================]
[ Fast Fighter 4.13 ]
[==============================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Mone | True | 06:01:30 | 1330 | 221 | 153325 | 25448 ]
[================================================== ==============]

Amazing... I'm going to start scripting soon, hopefully this week. An end goal would be to make something as reliable as this script... fantastic work Narcle.

Rezozo
11-05-2012, 02:04 AM
It is really surprising! With only 5 updates in the last year or so, Damn.
Even after the E.O.C Update, this probably wont break. And even if it does, it should be a simple fix!

Everyone, let the horde of PM'ing begin to Footy :D

FullForce
11-07-2012, 08:32 AM
I keep getting the errors:
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(55:19): Invalid number of parameters at line 54
Compiling failed.

Is there any fix for this? I cant open the form either

Ashaman88
11-07-2012, 11:53 AM
I keep getting the errors:
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(55:19): Invalid number of parameters at line 54
Compiling failed.

Is there any fix for this? I cant open the form either

Make sure you read through the last few pages of the thread first!

http://villavu.com/forum/showthread.php?t=88578

tennis159
11-07-2012, 08:35 PM
I thought I had this script working but when I start it, it finds the NPC but wont click it. No errors in simba.

mr. pali
11-07-2012, 09:28 PM
I thought I had this script working but when I start it, it finds the NPC but wont click it. No errors in simba.

You most likely have the monster name entered incorrectly. Try entering it without the first letter. i.e. 'Ogre' = 'gre' or if you want to enter the full name, make sure everything is capitalized properly.

P.S.

:spot:
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Mone | True | 10:06:22 | 2878 | 285 | 348626 | 34496 ]
[================================================== ==============]

night fox6928
11-13-2012, 07:18 AM
Object DTM Extension: Failed to grab remote extension.
ODTM Updater Enabled!
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

Ashaman88
11-13-2012, 12:13 PM
Object DTM Extension: Failed to grab remote extension.
ODTM Updater Enabled!
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

http://villavu.com/forum/showthread.php?t=88578

OGxGURU
11-13-2012, 10:40 PM
The mouse moves over the monster but doesn't click. I've tried many different name combinations including the name without the first letter, and I'm sure the colors are correct. I'm trying to fight Hellhounds. Any help would greatly appreciated.

Solar
11-14-2012, 07:36 AM
The mouse moves over the monster but doesn't click. I've tried many different name combinations including the name without the first letter, and I'm sure the colors are correct. I'm trying to fight Hellhounds. Any help would greatly appreciated.

Try changing the name setting that you put in. I think that's usually what happens when the mouse hovers over the target.

MasterXehanort
11-20-2012, 02:07 PM
Still working during EOC, just doesn't change attack style because of old layout. EXP is ALOT slower without combos and original training monsters provide different xp rates.

ishaang12
11-26-2012, 10:11 AM
Best fighting script ever

OGxGURU
12-02-2012, 04:52 PM
Everything works great except the HPcheck procedure, and I can't figure out how to get it working. If anyone has got the HPcheck working please help me out.

widaca
12-04-2012, 12:36 AM
To get it to eat I added a zero to the HPPercent checks:

if (HPPercent < 50) and LoggedIn then
To:
if (HPPercent < 500) and LoggedIn then
And :
if (HPPercent > 60) then
To:
if (HPPercent > 600) thenetc.

Hope this helps.
Script works great. Thank's Narcle :)

zachprinz
12-05-2012, 12:50 AM
I set up the fighter and it checks weapon and then just sits there. It doesn't attack anything or scan for any colors. Anyone have any idea whats wrong? SMART is enabled. Debug disabled. Not sure what else to do.

Ian
12-05-2012, 01:25 AM
I set up the fighter and it checks weapon and then just sits there. It doesn't attack anything or scan for any colors. Anyone have any idea whats wrong? SMART is enabled. Debug disabled. Not sure what else to do.

If you look pages back in the thread, footy (I think) posted an updated version. Are you using that? Also did you follow the guide linked in the op for picking colors as well as npc colors? I was using it not too long ago, but before eoc, so that could have broken it.

DeiJaiVui
12-05-2012, 07:37 AM
If you look pages back in the thread, footy (I think) posted an updated version. Are you using that? Also did you follow the guide linked in the op for picking colors as well as npc colors? I was using it not too long ago, but before eoc, so that could have broken it.

Could you perhaps tell me what page? Can't find it. :p

Ian
12-05-2012, 11:35 AM
Later today, on my phone atm not a computer.

zachprinz
12-05-2012, 01:07 PM
I figured out my problem, I was using player 2. I changed all the settings to player 1 in the gui and it worked.

clodoveo1
12-12-2012, 01:21 AM
I know this is outdated but can it be updated by someone to use abilities?

Slashed
12-14-2012, 07:00 PM
I know this is outdated but can it be updated by someone to use abilities?

You could update it yourself, you have the knowledge here to do that.

Start by looking into the Tutorial Island section forum here.

NCDS
12-21-2012, 03:56 AM
I would just like to say I still use this on a daily basis. I don't think I've made any real changes or updates either..


http://www2.picturepush.com/photo/a/11734660/640/11734660.gif

Narcle
01-04-2013, 11:18 AM
I can't guarantee when but I will do an update on this script. First I have to update SRL's MMtoMS then testing and fixing of the script will happen afterwards. If I get 'into it again' other scripts may be updated as I have free time this winter.

Syntax
01-12-2013, 01:21 AM
I can't guarantee when but I will do an update on this script. First I have to update SRL's MMtoMS then testing and fixing of the script will happen afterwards. If I get 'into it again' other scripts may be updated as I have free time this winter.

Thank you Narcle, your work is very much appreciated :)

yoan282
04-17-2013, 01:12 PM
Okay can someone explain me how I get scripts to work? Every times I try to run ANY scripts it's always getting me unexpected errors or something like that.


EDIT: it's getting me this error: [Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

EDIT2: or this [Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55

Maydin28
04-17-2013, 04:29 PM
Okay can someone explain me how I get scripts to work? Every times I try to run ANY scripts it's always getting me unexpected errors or something like that.


EDIT: it's getting me this error: [Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

EDIT2: or this [Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55

Got the same thing:
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

And after i change Smart to Smart8 it gives me: [Error] C:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55

Zamalega
04-18-2013, 07:31 AM
Hi there guys! I'm no script boffin as the likes that we have here on this amazing forum, but since I've been helped out a lot recently I decided to give back a bit and try to get this script to work somewhat...

Please bare in mind I'm a complete idiot with these kinds of things (for now) but I have successfully tweaked this script so that it now actually does attack in a loop, tested on cows currently.

Please use the attached script. Also, look below for the edits you'll need to make if not fighting cows, etc.

Lines 47-54;



Name := ''; //Character Name
Pass := ''; //Character Pass
Active := True; //True if you want this player to be ran in the script, false if not
Strings[0] := 'Cow';//monster name
Strings[1] := '';//Fight style (str, att, def, crush etc. anything in your weapon info}
Integers[0] := 6581108;//1st color of monster
Integers[1] := 7180195;//2nd color of monster
Integers[2] := 14673129;//3rd color of monster


You will have to change the line 50 to the name of the monster you're fighting.
The lines 52-54 you will have to use the color picker tool inside Simba to get the right colors, if you're not planning on fighting cows...

Leave everything else as is. If you get any errors post back and I'll see if I can't help! :)

The guide I used;
http://villavu.com/forum/showthread.php?t=67793

This is very basic, as a lot of the intended features don't work, but I haven't found an issue so far and it seems to be doing well. Just make sure the weapon you wish to use is equipped. It will give an error saying it can't determine the weapon, but you can just ignore that.


[WARNING] Failed to get weapon data. Can't detect if ranging or meleeing.

Here's my current proggie!



[==========================]
[ Fast Fighter 4.13 ]
[==========================]
[================================================== ==============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== ==============]
[ Nick | True | 00:25:46 | 94 | 219 | 4589 | 10683 ]
[================================================== ==============]


So as you can see it's working quite well! Please note there isn't any anti-ban as far as I can tell, so not sure if that may cause any issues? But if anyone here has some scripting experience you're more than welcome to edit this script and even work with me to bring it back to its former glory!

New Proggie:


[===============================]
[ Fast Fighter 4.13 ]
[===============================]
[================================================== =============]
[ Nick | Active | Worked | Kills | Kills/H | XP Gained | XP/H ]
[================================================== =============]
[ Nick | True | 06:09:41 | 1202 | 195 | 60295 | 9786 ]
[================================================== =============]

I'm quite happy with this, but worried about no anti-ban, any serious issues gonna happen? :/

BIG EDIT: Apparently I am not allowed to make an edit of this script without permission, of which I did not know, I thought I wasn't causing any harm by attempting to fix a broke script. :( So Narcle, please do let me know if I am allowed to keep this edit, or if I should remove it, I honestly mean no offence.

t4q
04-18-2013, 06:38 PM
Is there any good place for F2P to train melee? Mosses are always full, red spiders are too strong.
ATT, DEF and STR 90

tickerlord
04-18-2013, 07:06 PM
hey guys im getting this problem can anyone pm me some help pleasE?

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.

i found a away to fix line 294 but cant figure out how to fix this any help is appreciated and those of you who want to no how to fix line 294 and have smart 8 and everything recommened but still get the error PM me i think ive figured it out PRIVATE MESSAGE ME SO I CAN GET NOTIFIED thanksss

EastyD
04-19-2013, 09:37 PM
im getting these error messages;

[Error] D:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] D:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.

Anyone have any idea how to fix this?

The Mayor
04-19-2013, 09:38 PM
hey guys im getting this problem can anyone pm me some help pleasE?

[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.

i found a away to fix line 294 but cant figure out how to fix this any help is appreciated and those of you who want to no how to fix line 294 and have smart 8 and everything recommened but still get the error PM me i think ive figured it out PRIVATE MESSAGE ME SO I CAN GET NOTIFIED thanksss


im getting these error messages;

[Error] D:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.
[Error] D:\Simba\Includes\SRL\SRL\misc\smart.simba(56:19): Invalid number of parameters at line 55
Compiling failed.

Anyone have any idea how to fix this?

This script was outdated in August 2012. Read the 1st post.

Phasmatys
04-20-2013, 02:29 AM
[Error] C:\Simba\Includes\SRL/SRL/misc/smart.simba(46:19): Invalid number of parameters at line 45
Compiling failed.

? This happened when i first downloaded the script and tried to run it, I am trying to use the form so nothing was changed.