S.O.S. Fighter (Stronghold of Security)
Cazax
2009-02-02 16:03:01
S.O.S. Fighter
A stronghold of security monster fighter. Most of autofighters does not work in the s.o.s. mainly because the doors are the only way to escape from fight. But this script, does use these doors. It is mainly for pures, because it can only fight in the cave 1 and cave 2 (ATM). Can fight any monster - you input the colors and the uptext.
Features:
- Can eat trouts, salmons, pikes, lobsters and swordfishes
- Nice fighting detection
- Smart monster finder
- 100% non-reflection script
- AutoResponder
- Can pick up arrows
- Can train attack, strength, defense or ranged
Cazax
2009-02-02 16:04:01
Settings:
LampSkill: The skill to choose when lamp was found.
SRLID, SRLPassword: Your SRL Stats info.
HowManyPlayers: Number of players
CurrentPlayer: The player to start autoing with.
Players.Name: Your player's name
Players.Password: Your player's password
Players.Nick: 3-4 letters of your name
Players.Active: Set to true if you want to auto with it
SOS.AttackStyle: Skill to train. 'attack', 'strength', 'defense' or 'ranged'.
SOS.Fish: Fish to eat - 'trout', 'salmon', 'pike', 'lobster' or 'swordfish'.
SOS.PickUpArrows: Set to true if you want to pick arrows. It's a bit slow so I recommend you to use only if you mind loosing arrows.
SOS.MultiCombat: Set to true if the area is a multi combat zone.
SOS.WalkForMonsters: Set to true if you want the script to walk around if it couldn't find any monster.
SOS.HPEat: At what HP to eat.
SOS.TargetLvl: Level to reach with the desired combat style.
SOS.CaveNumber: The number of the cave you are fighting at - 1 or 2 atm
SOS.MonsterColors: The colors of the monster. Be smart and pick colors where there are no other object with that color.
SOS.MonsterUpText: The uptext of your monster. Example: ['ombie', 'Zombie']
How to fight more than once monster at the time - set uptexts and colors according to your monster. Example SOS.MonsterColors :=[WolfColor1, WolfColor2, MinotaurColor1, MinotaurColor2] and SOS.MonsterUpText := ['Wolf', 'Minotaur']
~Cazax
jakeyboy29
2009-02-02 16:04:54
yeh i like the setup, it seems deatiled, but to much so. i think this will be sureful for the pures among us
mormonman
2009-02-02 16:15:08
May I use your isoption function…? I will credit!(IMO I think it should be added to svn…)
Cazax
2009-02-02 16:17:24
From: mormonman
May I use your isoption function…? I will credit!(IMO I think it should be added to svn…)
I posted in the SVN section and I don't know if it will get in the SVN. Of course you can use it :)
mormonman
2009-02-02 16:25:31
do i need to add a wait?… cuz if i called that right after Mouse(x, y, 5, 5, False); then it won't find it… maybe something like this?
MarkTime(T);
Mouse(x, y, 5, 5, False);
repeat
Wait(500);
until (IsOption('option') or (TimeFromMark(T)>= 5000));{five seconds or so}
ChooseOption('option');
would that be good usage?… thats how I'm thinking of using it…
Baked0420
2009-02-02 16:34:37
I think you would use that more like this:
If(IsOption('option')) then
ChooseOption('option')
else
Exit;
I don't know but I think it'd be more useful like that, kind of like checking uptext.
mormonman
2009-02-02 16:40:32
From: Baked0420
I think you would use that more like this:
If(IsOption('option')) then
ChooseOption('option')
else
Exit;
I don't know but I think it'd be more useful like that, kind of like checking uptext.
you need a wait in there though… because of lag
Keep getting player 0 was set up wrong error
Players[0].Active := True;
SOS[0].AttackStyle := 'ranged';
SOS[0].Fish := 'salmon';
SOS[0].PickUpArrows := True;
SOS[0].MultiCombat := False;
SOS[0].WalkForMonsters := False;
SOS[0].HPEat := 15;
SOS[0].TargetLvl := 50;
SOS[0].CaveNumber := 1;
SOS[0].MonsterColors := [3815999, 8555660, 2500137, 2763309];
SOS[0].MonsterUpText := ['inotaur', 'Minotaur'];
Smarter Child
2009-02-02 20:12:08
Also mormonman, make it
Wait(400 + Random(250));
or whatever .
William
2009-02-02 20:29:52
it keeps saying my player was set up wrong but im pretty darn sure he wasn't..
Cazax
2009-02-02 21:43:21
Oh yes I set something wrong before releasing. Redownload.
mormonman
2009-02-02 22:55:12
[stillofftopic]
im using it like this everyone!
Function IsOptionMulti(Text : TStringArray): Boolean; {Changed it to help me!}
Var I : Integer;
Begin
For I:=0 To High(Text) do
If IsOption(Text) Then
Begin
Result := True;
Exit;
End;
End;
function IfIsOptionChooseEx(cx, cy : Integer; rx, ry : Integer; Option : String; MaxWait : Integer; ChooseThis : TStringArray) : Boolean;
var T : Integer;
begin
MarkTime(T);
Mouse(cx, cy, rx, ry, False);
repeat
Wait(300);
until (IsOptionMulti(ChooseThis) or (TimeFromMark(T)>= MaxWait));
Result := ChooseOptionMultiCustom(ChooseThis);
end;
[/stillofftopic]
Cazax this is a really nice script, i read through all of it! i don't have any need of it atm, but i love your isoption function!
Wolygon
2009-02-03 03:39:33
############################################
|Player: 0 - sus |
|Monsters Killed: 23 |
|Food eaten: 8 |
|Active: True |
|Arrows picked up: 0 |
|XP Gained: 368 |
|Location: fighting |
############################################
================HAPPY AUTOING===============
Found monster
New Monster Color = 8029316
Fighting
GTL: Pinball
Starting the pinball solver.
Pinball Solved.
NextPlayer(Active: False);
It solved the random fine although it still stopped…
Only got from 16-18 attack will try again.
Cazax
2009-02-03 07:11:00
I fixed the bug with randoms. Redownload.
@mormonman: I like it too :D
EDIT: Updated again!
Wolygon
2009-02-03 07:46:16
Ok thanks will run it soon and re-post proggress report. =]
EDIT**
|Ran for: 21 Minutes and 5 Seconds |
############################################
|Player: 0 - sus |
|Monsters Killed: 59 |
|Food eaten: 28 |
|Active: True |
|Arrows picked up: 0 |
|XP Gained: 1652 |
|Location: fighting |
############################################
================HAPPY AUTOING===============
Ran great I ran out of food btw. Well I guess you fixed the bugs =]. From 20-25 Attack =]
HarryJames
2009-02-04 12:27:42
Please spell right, i wanted to train 'defence' and it would let me becuase told the script to tell me it was wrong, I had to search the script and found out that you spelled it like 'defense'.
Thanks.
Cazax
2009-02-04 12:36:52
From: 05hartor
Please spell right, i wanted to train 'defence' and it would let me becuase told the script to tell me it was wrong, I had to search the script and found out that you spelled it like 'defense'.
Thanks.
The spell checker says it's right, it might by from US. So I'm not spelling it wrong. I updated it for you and fixed a bug while walking for more monsters.
William
2009-02-08 13:49:29
Hey i tested the new one out it worked great but i lost the proggy sorry :(
Cazax
2009-02-09 09:21:29
From: willie2oo8
Hey i tested the new one out it worked great but i lost the proggy sorry :(
The script saves the proggy in a folder named 'SOS Fighter'. Look there.
matthijsc
2009-02-10 14:32:00
really nice script, I've justed started to run it, will post proggy when my accounts run out of food. btw does he log out when out of food??
mc
"reserved for proggy"
Wolygon
2009-02-17 00:25:28
Yes it will run away then log out.
I will run this soon on a high level account to see how long a poggy I can get you.
EDIT**
Bad bug–
===============S.O.S. Fighter===============
|Ran for: 2 Minutes and 54 Seconds |
############################################
|Player: 0 - gts |
|Monsters Killed: 14 |
|Food eaten: 0 |
|Active: True |
|Arrows picked up: 0 |
|XP Gained: 392 |
|Location: fighting |
############################################
================HAPPY AUTOING===============
No monsters
NextPlayer(Active: False);
The player was there and nothing was wrong.
EDIT***
===============S.O.S. Fighter===============
|Ran for: 20 Minutes and 42 Seconds |
############################################
|Player: 0 - gts |
|Monsters Killed: 114 |
|Food eaten: 0 |
|Active: True |
|Arrows picked up: 0 |
|XP Gained: 7232 |
|Location: fighting |
############################################
================HAPPY AUTOING===============
No monsters
NextPlayer(Active: False);
Got that pole random thing so maybe if it can't find any monsters it could search for randoms….
Automotron
2009-02-19 23:04:53
Somehow it didn't work very well for me.
It would work, but it often froze for a minute at a time, mousing over the strength stat or clicking on the inventory tab repeatedly.
===============S.O.S. Fighter===============
|Ran for: 1 Minutes and 25 Seconds |
############################################
|Player: 0 - ren |
|Monsters Killed: 2 |
|Food eaten: 0 |
|Active: True |
|Arrows picked up: 0 |
|XP Gained: 36 |
|Location: fighting |
############################################
================HAPPY AUTOING===============
Successfully executed
Gave up after watching it for a couple minutes, sorry I didn't have any luck with it.
Might've been my color selections.
Cazax
2009-02-20 19:24:26
I'm back after a week of inactivity, So I will be fixing the script soon. Thank you for testing.
P.S Minotaurs aren't easy to find because of the colors, so try autoing with other monsters :)
It may not escape all the times when it eats all the food because of an oudate in the runner. It will work except from that.
noob-2
2009-02-21 18:27:01
Ill post a 1 hour proggy from my level 55 pure with 68 str. 1 defence ofc. I'll show you how much xp you can get in one hour max with these stats.
Cazax
2009-02-22 18:17:11
Updated. From now, I will be only updating the script if get more proggies. 41 views in total(not including other versions), ~23 hours running, and I only receive some proggies with a total time of 42 minutes running. Of 23 hours, I get only 2.9% percent of the total time. So the 97.1% of the time the script has run, hasn't been posted in proggies. Thanks to the people who has posted proggies, flaws or advice.
About the update…
As for now, the script should be fine.
faster789
2009-02-22 18:38:07
Alright, nice script :)
I've tested this twice and the first time I logged after it killed 1 goblin and picked up 1 arrow and said it's finished.
The second time I tried it, I told it to eat at 28hp, when my hp was 27hp it ran out the door and said "running for your life"
;)
Edit: I tried it a third time and ate full hp so it won't run and not eat. But then once again after 1 goblin died, it just gave a proggy, hovered over the range xp and executed.
Cazax
2009-02-22 18:41:48
From: faster789
Alright, nice script :)
I've tested this twice and the first time I logged after it killed 1 goblin and picked up 1 arrow and said it's finished.
The second time I tried it, I told it to eat at 28hp, when my hp was 27hp it ran out the door and said "running for your life"
;)
1: I haven't tested the arrow picker… I will look there.
2: The food must have been set incorrectly or no food was there, because it works for me. Or try using other food.
faster789
2009-02-22 18:54:32
Oops your right about the food lol, I was using tuna which this script cannot detect.;)
Btw,
marpis
2009-02-23 00:36:23
Worked perfectly for me! :) I think i dump NAF now ^^
Didn't get the proggy, sorry! But it wasnt anyways more than 30min, singleplayer.
I ran script for about 20 mins. Ran good at first but slowly started to stop. id check every 5 mins or so and it would log out or just be sitting there.
bug? or did i set something up wrong?
Wolygon
2009-02-23 04:42:00
Starts up mabye kills one monster then the mouse just wonders around the screen =[.
Cazax
2009-02-23 07:32:17
From: faster789
Oops your right about the food lol, I was using tuna which this script cannot detect.;)
Btw,
I totally forgot about tunas… :duh:
From: [JS]
I ran script for about 20 mins. Ran good at first but slowly started to stop. id check every 5 mins or so and it would log out or just be sitting there.
bug? or did i set something up wrong?
It may be what you said or it was sleeping.
From: jesus pwns zezima
Starts up mabye kills one monster then the mouse just wonders around the screen =[.
You probably set wrong colors or you were fighting minotaurs ;)
Wolygon
2009-02-23 07:44:34
You probably set wrong colors or you were fighting minotaurs
No I was fighting Goblins in the first room. So yeah…
Cazax
2009-02-23 08:28:39
From: jesus pwns zezima
No I was fighting Goblins in the first room. So yeah…
Were you using the colors I left there? It could also be that there were more people fighting goblins and the script was waiting for the goblin to die(should stop after a while).
faster789
2009-02-23 22:32:05
Update it please, so I can range and eat tunas ! :D
Automotron
2009-02-23 23:10:52
From: Cazax
Updated. From now, I will be only updating the script if get more proggies. 41 views in total(not including other versions), ~23 hours running, and I only receive some proggies with a total time of 42 minutes running. Of 23 hours, I get only 2.9% percent of the total time. So the 97.1% of the time the script has run, hasn't been posted in proggies. Thanks to the people who has posted proggies, flaws or advice.
About the update…
As for now, the script should be fine.
Nice to see you working on this. I honestly don't have much of a use for this though as I'm not a pure, but I'm glad to see you attempting to fix some of the problems I had.
Wolygon
2009-02-24 01:41:13
Were you using the colors I left there? It could also be that there were more people fighting goblins and the script was waiting for the goblin to die(should stop after a while).
Yes I was using the colours that were left there and there were tons of goblins free. Oh well I will run it again.
prime_subzer0
2009-03-01 12:11:13
i need help what do i puy under color evrytime i put something it says error
godspower55
2009-03-02 15:43:16
This script is good but the problem is that, it like logs out every 5 min and stops working then it just moves the mouse around the login screen thinking its logged in and it is looking for monsters
mohsin12331
2009-04-03 11:43:02
awesome script casax…honestly this is the first script that i have ever run sucessfully for a more then 15 seconds! lol im so proud of myself =D…but only one problem…it just sits there while im training on the goblins in the first room and it just sits there…i have only set up one player and is this right?
Const
SleepEvery = 60; // Sleep Every X Minutes. Random(10) will be added
SleepFor = 2; //Sleep for X minutes (if only 1 player is left)
like i only want it to sleep for like 2 minutes after each hour.
thx alot casax for the awesome script..and sorry for not gettin a proggy lol i'll get it after a day or so =0