Give him a break lol, he was in Turkey when Jagex decided to update everything and made all scripts go kabloom
Give him a break lol, he was in Turkey when Jagex decided to update everything and made all scripts go kabloom
Alright alright, script updated and continued... should be stable again... finally...![]()
There is nothing right in my left brain and there is nothing left in my right brain.
Why a .rar file?
"Failure is the opportunity to begin again more intelligently" (Henry Ford)
The form has a rather huge background image. I could implement it into the script, but that would be a huge waste of space in the script itself.![]()
There is nothing right in my left brain and there is nothing left in my right brain.
Good thing you decided to pick it up again, and for the sake of keeping your good work up and updated, i'm giving you a huge thanks!
Hmm, thanks for the advice Hermen, I'll look into it. The next version is sure to include that option.
Well, here is a little proggy which I have just recieved... maybe it will encourage people to use this script.
I got this while using the pause option and it was competing with 6 players, so this is far from it's maximum capacity:
I'll call the ranging flawless... the only bug I encountered was that it thought it successfully attacked a chicken, even though it missed... can't think of any reason why that happened, but I'll look into it tomorrow, while testing the melee throroughly... need to get quite a few attack and strength levels.Code:______________________________________________________________________ | | | The Fox Proggy | |______________________________________________________________________| | | | Script running time: 6 Hours, 15 Minutes and 3 Seconds | |______________________________________________________________________| | | | Player 1 : | | Nick: hail | | Active: True | | Total Feathers: 9105 | | | | Range Level: 39 | | Range Experience Gain: 15920 | | Range Level Gain: 7 | | | | Defence Level: 11 | | Defence Experience Gain: 0 | | Defence Level Gain: 0 | | | | Hitpoints Level: 30 | | Hitpoints Experience Gain: 5258 | | Hitpoints Level Gain: 4 | | | |______________________________________________________________________|![]()
There is nothing right in my left brain and there is nothing left in my right brain.
Reserved for proggies. btw nice script (well at least it looks like it from a quick glance from me :P)
il try to post a lot of proggies on ranging.
| |
| The Fox Proggy |
|_________________________________________________ _____________________|
| |
| Script running time: 6 Hours, 1 Minutes and 51 Seconds |
|_________________________________________________ _____________________|
| |
| Player 1 : die again5 |
| Nick: agai |
| Active: False |
| Total Feathers: 21725 |
| |
| Attack Level: 40 |
| Attack Experience Gain: 0 |
| Attack Level Gain: 0 |
| |
| Strength Level: 48 |
| Strength Experience Gain: 28364 |
| Strength Level Gain: 4 |
| |
| Defence Level: 40 |
| Defence Experience Gain: 0 |
| Defence Level Gain: 0 |
| |
| Hitpoints Level: 46 |
| Hitpoints Experience Gain: 9371 |
| Hitpoints Level Gain: 2 |
| |
|_________________________________________________ _____________________|
Successfully executed
this got me a lot of feathers for fishing.... witch is what i wanted! Thank you.
P.s. this is fox 1.1
Last edited by xSaintias; 08-17-2009 at 07:40 PM.
rainbows are red, violets are blue, shut the heck up,
or I will crush you...
Don't Poems just make you happy?
Alright, updated to Version 1.1!
Updates:
-The forum background picture is now online, so it is now a .scar file, which i guess is more userfriendly than a .rar file... Thanks go to Hermen for supplying the database and the needed function!
-The attacking is now pretty much flawless... no more false attack recognition after a missed click.
Enjoy
There is nothing right in my left brain and there is nothing left in my right brain.
this is truly amazing... one suggestion though. it keeps saying player is false even though i am actually still in the pen. it would only go for 6 hours. but when i have it set on 2 players ( both the same RS account) it ran for more time... about 11 hours! idk.
rainbows are red, violets are blue, shut the heck up,
or I will crush you...
Don't Poems just make you happy?
Hmm, I'll have a look at it... what does the debug say before the proggies? Thanks for testing.
When the Path of the script in which the error occurs isn't my script, then the problem isn't my script.... "C:\Program Files\SCAR 3.21\includes\SRL\SRL\" gives ya a pointer that the problem is in the includes... try re-downloading the reflection... but remember, you need the dev ref to run this script...![]()
There is nothing right in my left brain and there is nothing left in my right brain.
Did you add my downloading?
~Hermen
There is nothing right in my left brain and there is nothing left in my right brain.
rainbows are red, violets are blue, shut the heck up,
or I will crush you...
Don't Poems just make you happy?
Running this at the moment, just saw a bug happen. A chicken was off the MS, so it tried walking to it via MM. It ended up walking outside the pen on the west side and tried attacking chickens there, which didn't work. Even though it was outside -
Are InPen : True
The scripts seems to compile fine, only response it gives after compileing is:
After starting the script it gives me this:Successfully compiled (3760 ms)
Line 49: [Hint] (27963:1): Variable 'BMP' never used in script C:\Program Files (x86)\SCAR 3.21\Scripts\Chickens\TheFox 1.1.scar
I have my char placed in the chicken pen below Falador, but it doesent ever seem to be able to find a chicken. Any idea's why its not working?Smart Style Changing...
FR[0] = 1
FR[1] = 11
FR[2] = 1
FR[3] = -1
FR[4] = 88
FR[5] = -1
High = 4
Players[0].Strings[1] = Defence
Setting fight mode...
Fight Mode Set!
Smart Style Changing Completed!
Acting...
Setting fight mode...
Fight Mode Set!
Looking for fight...
Attacking the chicken...
>>InPen Check<<
Chicken Found: 0
Are InPen : True
The first part is just a hint saying that I haven't used a variable, this doesn't cause any problems what so ever. ^^
Hmm, the chicken in Fallador may have a different ID... I'll check it out now, if they do, expect a quick fix.
Until then, I would suggest you use the chicken pen in lumbridge, it is flawless there, well at least for me.... :S
Quick question: where were you running the script? Lumby or somewhere else?
Anyway, let me see if I got this right: it clicked on the MM to get to a chicken, but it ended up clicking too far to the west, so you exited the pen, and then the script tried to attack chicken there but failed? What exactly do you mean? Did it click the chicken, but it was not detected as an attack (debug: "Attacked Chicken: False")? Or did it not even click on a chicken?
The problem is, that this script is flawless for me... so I am having problems fixing bugs, because for some reason they don't appear when I am running a script...
Oh well, I'll try to fix anything that has potential to go wrong. Thanks for testing guys.
There is nothing right in my left brain and there is nothing left in my right brain.
Yeah, I was running it at Lumby. You have it right, and what I mean by it couldn't attack the chickens from there is that when it clicked to attack a chicken it automatically just walked next to the fence and stood there mirroring the chicken. I think this occurred because in the time it took to walk over to the west, somebody closed the gate (otherwise it should have automatically walked to the chicken around the pen, right?).
My suggestion for a fix: When you click to walk to a chicken, use GetFlag(Tile : TPoint): boolean which returns true if a flag is present and also stores the flag's tile in Tile (Not sure if I got that completely right, check it out in the include). Then check if Tile is in the chicken pen; if not, automatically recalibrate to the pen by going to the center tile or something. Nice script though (<3 the form)
EDIT: Another bug. After going through all my 6 players once -
Your NextTruePlayer function[Runtime Error] : Out Of Range in line 2080 in script C:\Program Files\SCAR 3.21\Scripts\Pure's The Fox.scar
SCAR Code:function NextTruePlayer: Integer;
var
i : integer;
begin
if AllPlayersInactive then
begin
Writeln('All Players are false!');
Proggy;
TerminateScript;
end;
i := CurrentPlayer + 1;
while Players[i].Active = False do
begin
if i = High(Players) then
i := 0 else
Inc(i);
end;
Result := i;
end;
That won't work because as soon as it gets to the end of the player array it will continue to add on, causing an out of range. What you need to do is
SCAR Code:function NextTruePlayer: Integer;
var
i : integer;
begin
if AllPlayersInactive then
begin
Writeln('All Players are false!');
Proggy;
TerminateScript;
end;
if CurrentPlayer < HowManyPlayers - 1 then
i := CurrentPlayer + 1
else
i := 0;
while Players[i].Active = False do
begin
if i = High(Players) then
i := 0 else
Inc(i);
end;
Result := i;
end;
![]()
Last edited by Runescapian321; 08-20-2009 at 05:21 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)