Page 1 of 7 123 ... LastLast
Results 1 to 25 of 159

Thread: [R] Smarter Fighter!

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [R/R2] Smarter Fighter!

    [R] - Smarter Fighter!


    Fights any monster, anywhere in Runescape. Version 0.14 or 0.153
    SRL Stats!

    Instructions:

    • Place all your players next to the NPCs they will be fighting.
    • Setup the constants and Declareplayers
    • Press play
    • Post all feedback/progress reports her


    Just going to go over the declareplayers:
    • Name is the login name of your player
    • Pass is the runescape password
    • Nick is 3-4 letters of the player's in-game name
    • Booleans[0] is responsible for bone burying, set Booleans[0] := true; if you want that player to bury bones. false means don't bury bones
    • Arrays[1] are IDs of the object you would like to pickup. Leave it blank or as 0 if you don't want to pickup any items. [The IDs don't have to be in order of anything]
    • Arrays[0] are the name(s) of the monsters you want to fight, can be more than one, however I haven't tested multiple NPC support.
    • Skill is the fight style you would like the player to use, Ex. 'attack' = attack, 'strength' = strength, 'defense' = defense, 'shared' = shared. Sorry, I'll follow up on the Range support
    • Strings is the uptext[names] of the objects you would like to pickup, they don't have to be in any order, and you can leave it as Players[0].Strings := ['']; if you don't want to pickup anything.
    • Active, leave this true if you want to use your player
    • BoxRewards, this can be changed to your preference of rewards.



    The constants..
    Simba Code:
    Const
    SwitchTime = 6; //minutes before switching. Not in use currently, leave as whatever
    WORLD = 9; //Which World?
    MEMBERS = False; //Members = True, F2P = False
    SIGNED_CLIENT = True; //Signed Client = True, Unsigned Client = False.

    const
    RunDir = 'E'; //Direction run if out of food and in fight, not too important to worry about though

    {Regular Mouse Speed = 15 . [So if ExtraMouseSpeed = 2 then MouseSpeed = 17 ]}

    ExtraMouseSpeed = 0; // Amount in level of speed to increase the speed of the mouse.
    // ONLY CHANGE if you notice script can't keep up with NPC movement.
    // Don't put too high of a number because too high speed = ban hammer.



    Self-explanatory, I hope ?

    As for getting the IDs of RS objects:
    *** If you dont have the ID's of the object(s) you want the script to pickup
    then do:

    1 - Go to: Runescape Grand Exchange

    2 - Search the object you want, example "Feather"

    3 - It will send you to another page, and the link at the top will be:

    http://services.runescape.com/m=item...tem.ws?obj=314

    4 - obj=314 [ 314 is the OBJECT ID for "Feather". ]

    5 - By the way, if you don't know the correct uptext of a object, the G.E on RS website
    will give you it. Ex. /Feather/
    [ no / / ] Coin ID = 995 btw


    Anyways, I'd just like to say this script is roughly 95% reflection, the only color would be the SRL functions, and coordinates in Narcle's food function that I stole , don't worry I credited . It is pretty good, does multiplayer[TESTED ], and it took me about a day to write, and another couple days of testing. Hope you enjoy.


    Bugs:
    - Just realized food counting is off, will fix later as it isn't a big issue. Fixed in 0.11, I believe.
    - Experience won't be counted in proggy for 'shared', so try not to use "shared" mode as it won't update your XP and Stats. Will post a fix soon... Was fixed in a previous version ;]
    Last edited by Smarter Child; 08-22-2011 at 02:15 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Top one so far
    Progress Report:
    27
    Status: /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    Status: |     SRL Randoms Report       |
    Status: |       www.villavu.com        |
    Status: |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
    Status: | SRL Logs          :       94 |
    Status: | Sandwiches Solved :        1 |
    Status: | Reward Box Solved :        1 |
    Status: | Reward Box Missed :        4 |
    Status: \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
    --------------------------------------------------------------------------------------------
    * Smarter Fighter 0.13
    --------------------------------------------------------------------------------------------
    * Ran for = 18 Hours, 22 Minutes and 30 Seconds
    --------------------------------------------------------------------------------------------
    * Monsters Fought = 949
    --------------------------------------------------------------------------------------------
    * Food ate = 0
    --------------------------------------------------------------------------------------------
    * Player: 0 = [XP Gained = 39155] - [Levels Gained = 1]
    * Player: 1 = [XP Gained = 25018] - [Levels Gained = 27]
    * Player: 2 = [XP Gained = 629] - [Levels Gained = 2]
    --------------------------------------------------------------------------------------------
    * Total Bones Buried = 4
    --------------------------------------------------------------------------------------------

    player fighting zombies, ran out of food so it stopped.
    Progress Report:
     
    Status: /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    Status: |     SRL Randoms Report       |
    Status: |       www.villavu.com        |
    Status: |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
    Status: | SRL Logs          :       62 |
    Status: | Sandwiches Solved :        1 |
    Status: | Reward Box Solved :        1 |
    Status: | Reward Box Missed :        4 |
    Status: \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
    --------------------------------------------------------------------------------------------
    * Smarter Fighter 0.13
    --------------------------------------------------------------------------------------------
    * Ran for = 10 Hours, 52 Minutes and 28 Seconds
    --------------------------------------------------------------------------------------------
    * Monsters Fought = 612
    --------------------------------------------------------------------------------------------
    * Food ate = 0
    --------------------------------------------------------------------------------------------
    * Player: 0 = [XP Gained = 39155] - [Levels Gained = 1]
    * Player: 1 = [XP Gained = 13283] - [Levels Gained = 21]
    * Player: 2 = [XP Gained = 629] - [Levels Gained = 2]
    --------------------------------------------------------------------------------------------
    * Total Bones Buried = 3
    --------------------------------------------------------------------------------------------
    * Times Committed = 22
    --------------------------------------------------------------------------------------------

    Progress Report:
    --------------------------------------------------------------------------------------------   
    * Smarter Fighter 0.1                                                                          
    --------------------------------------------------------------------------------------------   
    * Ran for = 6 Hours, 1 Minutes and 39 Seconds                                                  
    --------------------------------------------------------------------------------------------   
    * Food ate = 14                                                                                
    --------------------------------------------------------------------------------------------   
    * Player: 0 = [XP Gained = 83611] - [Levels Gained = 2]                                        
    * Player: 1 = [XP Gained = 0] - [Levels Gained = 0]                                            
    --------------------------------------------------------------------------------------------   
    * Total Bones Gathered = 0                                                                     
    --------------------------------------------------------------------------------------------

    Progress Report:
    --------------------------------------------------------------------------------------------
    * Smarter Fighter 0.1
    --------------------------------------------------------------------------------------------
    * Ran for = 7 Hours, 26 Minutes and 12 Seconds
    --------------------------------------------------------------------------------------------
    * Food ate = 12
    --------------------------------------------------------------------------------------------
    * Player: 0 = [XP Gained = 106844] - [Levels Gained = 4]
    --------------------------------------------------------------------------------------------
    * Total Bones Gathered = 0
    --------------------------------------------------------------------------------------------
    Last edited by Smarter Child; 07-04-2011 at 02:55 AM.

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    You should add custom paths and banking

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    You should add custom paths and banking
    It's a global fighter, not a static-location fighter.

    Thank you SmarterChild. I'll give it a shot and if it works how I hope then I'll make a few scripts out of it.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  5. #5
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    It's a global fighter, not a static-location fighter.

    Thank you SmarterChild. I'll give it a shot and if it works how I hope then I'll make a few scripts out of it.
    No problem, global fighting isn't too difficult. The only thing you need to know when writing a function that fights any NPC is the height.
    Simba Code:
    mTile := TileToMS(Monster.Tile, monster.height*2/3);

    Basically, the height varies from one NPC to another and the solution I got from Drags111 was to use TNPC.Height*2/3

  6. #6
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    It's a global fighter, not a static-location fighter.
    Relevant how? I'm just saying he should give the user the option to walk a given path (with obstacle management) to the bank (Supplied by the user) and bank when out of food, and follow that same path back to monsters.

  7. #7
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by TomTuff View Post
    Relevant how? I'm just saying he should give the user the option to walk a given path (with obstacle management) to the bank (Supplied by the user) and bank when out of food, and follow that same path back to monsters.
    That would defeat the purpose of the script. You might as well make it a completely different script.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  8. #8
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Nice, will test this over the weekend.
    Today is the first day of the rest of your life

  9. #9
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    That would defeat the purpose of the script. You might as well make it a completely different script.
    How does that defeats the purpose of the script? I think the purpose of the script is that you can let you character fight anywhere. And then you could also bank anywhere.

  10. #10
    Join Date
    May 2011
    Location
    In an Island.
    Posts
    1,413
    Mentioned
    2 Post(s)
    Quoted
    149 Post(s)

    Default

    Not picking charms and other things...

  11. #11
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by UNKNOWN69 View Post
    Not picking charms and other things...
    Do you have the correct IDs of the charms?
    Paste your Declareplayers here [without user and password]

  12. #12
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    quick question. if i wanted to set this up to fight giant spiders in the stronghold, how could i get it to click the door to walk through instead of running in a certain direction?

  13. #13
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bolshak25 View Post
    quick question. if i wanted to set this up to fight giant spiders in the stronghold, how could i get it to click the door to walk through instead of running in a certain direction?
    Thing is, the run direction is called rarely in this script because it will log the player out anyways after the fight is over, so dying shouldn't be a big issue in the stronghold. However, I never intended on making this one big any dungeon fighting + walking + banking script. Simply, very time consuming on my end. I made this more to be a Powerfighter that you set up anywhere you like and it will get you combat xp without dying [, hopefully]You could modify the script yourself though,
    Simba Code:
    begin
            Writeln('No food left!');
            if not donefight then
            //something here like FindObjTPA(the door stuff)
            if not R_IsPlayerInCombat then
             NextPlayer(false);
          end;

    I could add a teleport option, if anyone wants?

    E- Added Version 0.11, took out the clear debugs from proggy, bad idea
    - Modified food counting option.

    Re-download please.
    Last edited by Smarter Child; 06-30-2011 at 03:32 PM.

  14. #14
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yeah I had trouble with if picking up the right item. I took out your UpText checks for items because, like Bolshak said, charms aren't 'ever' on top so they're uptext will never show but they're still there. But even if we find the charm on the ground, it'll pick up the wrong item. Sometimes it gets the item's tile completely wrong. If I had to guess, I'd say it's a reflection issue but dunno, I'll have to experiment some more.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  15. #15
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    that wasnt me that said charms. but i would love a tele option. for me itd be cabbage tele with explorers ring 4

  16. #16
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bolshak25 View Post
    that wasnt me that said charms. but i would love a tele option. for me itd be cabbage tele with explorers ring 4
    I know, check my post I wasn't replying to you about charms.
    Just curious, how's the script going? Any reports/bugs? As for the teleporting I could do it, it just varies on how you're going to teleport.

  17. #17
    Join Date
    Oct 2006
    Posts
    491
    Mentioned
    0 Post(s)
    Quoted
    41 Post(s)

    Default

    Hey even though you haven't added range support yet, is it still possible to just equip the bow and arrows and just have it fight like the strongholder script? I don't think that has range support either, but still works with it. So would it still run or would the script freak out and just log-out?

  18. #18
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ry0240 View Post
    Hey even though you haven't added range support yet, is it still possible to just equip the bow and arrows and just have it fight like the strongholder script? I don't think that has range support either, but still works with it. So would it still run or would the script freak out and just log-out?
    It would still fight, eat, everything, etc. Just when/if you run out of arrows it will run an infinite loop of antiban/waits. So you're character would be standing doing random antiban and waiting for something to happen

    So yeah you can range, just keep an eye on it.

    But don't fret, I'll be following up on the range support shortly.

  19. #19
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    I know, check my post I wasn't replying to you about charms.
    Just curious, how's the script going? Any reports/bugs? As for the teleporting I could do it, it just varies on how you're going to teleport.
    i was replying to flight about charms because he said i was talking about them, but it wasnt me.

    as for the script, i honestly havent used it. ive been running your fly fisher instead. i will get around to it after i finish up the 15k feathers i had(7k left)

  20. #20
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bolshak25 View Post
    i was replying to flight about charms because he said i was talking about them, but it wasnt me.

    as for the script, i honestly havent used it. ive been running your fly fisher instead. i will get around to it after i finish up the 15k feathers i had(7k left)
    Nice. I highly suggest this script, been watching it lately and it can pretty much run endlessly[unless random] and even more-so with multi-player
    Progress Report:
    --
    --------------------------------------------------------------------------------------------
    * Smarter Fighter 0.1
    --------------------------------------------------------------------------------------------
    * Ran for = 5 Hours, 57 Minutes and 43 Seconds
    --------------------------------------------------------------------------------------------
    * Food ate = 11
    --------------------------------------------------------------------------------------------
    * Player: 0 = [XP Gained = 87737] - [Levels Gained = 4]
    --------------------------------------------------------------------------------------------
    * Total Bones Gathered = 0
    ---------------------------------------------------------------------------------------


    Still going strong, single player

  21. #21
    Join Date
    Jan 2011
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    well sounds amazing lets see if it works will try

  22. #22
    Join Date
    Oct 2006
    Posts
    491
    Mentioned
    0 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by Smarter Child View Post
    It would still fight, eat, everything, etc. Just when/if you run out of arrows it will run an infinite loop of antiban/waits. So you're character would be standing doing random antiban and waiting for something to happen

    So yeah you can range, just keep an eye on it.

    But don't fret, I'll be following up on the range support shortly.
    Ok, cool I don't think the ammo would be a problem I always have 10K+ arrows equipped and Ava's accumulator because I'm training for 99 range, thanks.

    Oh and does this have srl stats implemented?
    Last edited by ry0240; 07-01-2011 at 12:45 AM.

  23. #23
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ry0240 View Post
    Ok, cool I don't think the ammo would be a problem I always have 10K+ arrows equipped and Ava's accumulator because I'm training for 99 range, thanks.

    Oh and does this have srl stats implemented?
    Yeah, your probably don't have to even check up on it since you have Ava's accumulator, as for stats; no stats yet.

  24. #24
    Join Date
    Jun 2006
    Location
    0:0:0:0:0:0:0:1
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should make this a SRL-members only script.
    The only difference between an SRL member and a non-member was the lack of a good combat script, i couldn't leech a good one so im writing my own.
    If any random person can bot combat, they can blend in. If they are stuck at level 3 it is a great incentive to learn SRL.
    ----------------------------------------------------------------------------------

    http://www.youtube.com/watch?v=uZIpc0LeJg8&t=3m3s

  25. #25
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    This script looks great, trying it now! (Lumbridge catacombs). Also, do you think you could add support for str pots? Thanks! will post proggy

Page 1 of 7 123 ... 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
  •