Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 101 to 125 of 193

Thread: All Around Chicken Fighter [R]

  1. #101
    Join Date
    Jun 2009
    Posts
    147
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Give him a break lol, he was in Turkey when Jagex decided to update everything and made all scripts go kabloom

  2. #102
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  3. #103
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Why a .rar file?

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  4. #104
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  5. #105
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pure1993 View Post
    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.
    Use my program xD.
    Search 'Hermen PictureDatabase for scripters' or download it from the webs(the picture).
    ~Hermen

  6. #106
    Join Date
    Jan 2007
    Posts
    101
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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!

  7. #107
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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:
    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                                              |
    |                                                                      |
    |______________________________________________________________________|
    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.
    There is nothing right in my left brain and there is nothing left in my right brain.

  8. #108
    Join Date
    Jun 2008
    Location
    Stocking you
    Posts
    264
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  9. #109
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  10. #110
    Join Date
    Jun 2008
    Location
    Stocking you
    Posts
    264
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  11. #111
    Join Date
    Jul 2007
    Location
    Australia
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 661: [Error] (22229:58): Type mismatch in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Reflection\Characters.Scar

    ??


  12. #112
    Join Date
    Dec 2008
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by awesom View Post
    Line 661: [Error] (22229:58): Type mismatch in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Reflection\Characters.Scar

    ??
    I got the exact same error.
    You're doing it wrong

  13. #113
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by xSaintias View Post
    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.
    Hmm, I'll have a look at it... what does the debug say before the proggies? Thanks for testing.

    Quote Originally Posted by awesom View Post
    Line 661: [Error] (22229:58): Type mismatch in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Reflection\Characters.Scar

    ??
    Quote Originally Posted by loony383 View Post
    I got the exact same error.

    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.

  14. #114
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you add my downloading?
    ~Hermen

  15. #115
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    Did you add my downloading?
    download and find out, but I think I did credit you somewhere... oh wait, I forgot to add that to the main post... (credited you on the update post) sorry, will add it to the main post right now. But you could have just downloaded it to find out...
    There is nothing right in my left brain and there is nothing left in my right brain.

  16. #116
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pure1993 View Post
    download and find out, but I think I did credit you somewhere... oh wait, I forgot to add that to the main post... (credited you on the update post) sorry, will add it to the main post right now. But you could have just downloaded it to find out...
    I did but it fails it gives scar acces violation.
    ~Hermen

  17. #117
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    I did but it fails it gives scar acces violation.
    No it doesn't... you only have to press "allow all" in the firewall options...
    There is nothing right in my left brain and there is nothing left in my right brain.

  18. #118
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pure1993 View Post
    No it doesn't... you only have to press "allow all" in the firewall options...
    SCAR Code:
    ThreadSafeCall('Form', v);
    ^Gives the error.
    ~Hermen

  19. #119
    Join Date
    Jun 2008
    Location
    Stocking you
    Posts
    264
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pure1993 View Post
    Hmm, I'll have a look at it... what does the debug say before the proggies? Thanks for testing.
    it wil say that the player is false (even though he is still in the pen and running fine) and itll log him out. Then it will go to the second player ( which is the exact same account) and it will work. it finds my player false for no aparent reason.
    rainbows are red, violets are blue, shut the heck up,
    or I will crush you...

    Don't Poems just make you happy?

  20. #120
    Join Date
    Jun 2008
    Location
    Stocking you
    Posts
    264
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    SCAR Code:
    ThreadSafeCall('Form', v);
    ^Gives the error.
    thats not really telling us much about what the error is. Be a little more specific?
    Last edited by xSaintias; 08-19-2009 at 04:19 AM.
    rainbows are red, violets are blue, shut the heck up,
    or I will crush you...

    Don't Poems just make you happy?

  21. #121
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  22. #122
    Join Date
    Jul 2007
    Location
    USA
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The scripts seems to compile fine, only response it gives after compileing is:

    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
    After starting the script it gives me this:

    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
    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?

  23. #123
    Join Date
    Jan 2008
    Location
    Frankfurt, Germany
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by i_reklaw View Post
    The scripts seems to compile fine, only response it gives after compileing is:



    After starting the script it gives me this:



    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?
    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

    Quote Originally Posted by Tad View Post
    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 -
    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.

  24. #124
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Pure1993 View Post
    \


    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?

    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 -

    [Runtime Error] : Out Of Range in line 2080 in script C:\Program Files\SCAR 3.21\Scripts\Pure's The Fox.scar
    Your NextTruePlayer function

    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.

  25. #125
    Join Date
    Jun 2008
    Location
    Stocking you
    Posts
    264
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Tad View Post
    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

    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;

    just wondering... is that why it is causing my players to become false even though they are not?
    rainbows are red, violets are blue, shut the heck up,
    or I will crush you...

    Don't Poems just make you happy?

Page 5 of 8 FirstFirst ... 34567 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •