Page 1 of 22 12311 ... LastLast
Results 1 to 25 of 530

Thread: MultiFighter - Melee and Ranged

  1. #1
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default MultiFighter - Melee and Ranged

    READ BEFORE ASKING ANYTHING:
    This script has not been maintained since february, and I will not fix any bugs, add any features, or do anything to this script anymore. Read tutorials and learn to use Simba scripts before asking questions.

    I locked this thread because of all the stupid question. Please people, try to learn things yourself!
    SRL scripts are not just "download and click run".



    MultiFighter
    v4.20 Last update: 1/February/2011

    Ordinary features:
    - Item picking
    - Bone burying
    - Eating (one-bite only)
    - Clicking yellow MM dots
    - Sleeping

    Special features:
    - When about to die, will flee to RunDir, eating and using prayers.
    - Uses Bones to peaches tablets.


    Instructions:
    - Have only one type of food, if any. !! Only have food that is consumed by once, no pizzas, cakes or pies etc !!
    - If you don't want to pick up any loots, set PickupFocus := [0, 0];
    - UseMM: if true, will click yellow dots on MM if NPCs are not found on mainscreen. Be careful where to use this!
    - Multicombat zone: If false, it will rather attack an unattacked monster
    - if you want to use Bones to peaches tablets, set Others := [False, True];
    - !! IMPORTANT !! Fightmode: Attack, Strength, Defence, Even, Accurate, Rapid or Longrange
    - !! IMPORTANT !! If using ranged, do not carry arrows which you cannot use in your inv, do not also pick them up.


    Known bugs:
    - B2P only uses regular bones, I was too lazy to add big bones yet.

    Credits:
    - Torrent of Flame: TPAMods procedure, it's awesome!
    - Narcle: Most of my ideas are based on some of your functions
    - The Man: Testing my early betas
    - Da 0wner: Helping me fix the problem with filenames
    - TRiLeZ: SendEmail to proggies
    Last edited by marpis; 12-10-2011 at 09:35 AM.

  2. #2
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Hey sorry I haven't replied to your PM's am actually running now

    T~M

  3. #3
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by The Man View Post
    Hey sorry I haven't replied to your PM's am actually running now

    T~M
    oh that's ok! i had totally forgot that you tested my betas like a month ago, but now you're in credits too! thanks again! hope you like it

    (the only fighter working with new hp bars? not?)

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Code:
    [Runtime Error] : Exception: Filenames can not contain any of these characters: / : * ? " < > | in line 839 in script C:\DOCUME~1\Richard\LOCALS~1\Temp\MultiFighter 1.11.scar
    Trying it with SaveSS off now.

    EDIT: Nope, still get that. Going to have a look why now...
    Last edited by Rich; 05-29-2009 at 08:14 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That is probably because DateToStr has a '/' or a ':' in it. Do a replace / with \ for it .

  6. #6
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Ahh, I didn't think of that...But I've just taken the parts with the date in it out. Let's see how that goes.

    EDIT: Works good, now just getting the account into a decent spot.

    Richard
    Last edited by Rich; 05-29-2009 at 09:29 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  7. #7
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    that's a weird problem
    DateToTime uses '.' as separator
    29.5.2009

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    No it doesn't.
    SCAR Code:
    program Date;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      WriteLn(DateToStr(Date));
    end;
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  9. #9
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    No it doesn't.
    SCAR Code:
    program Date;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      WriteLn(DateToStr(Date));
    end;
    i assume you have 3.15?

  10. #10
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    3.20d.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  11. #11
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program Date;
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      WriteLn(Replace(DateToStr(Date), '/', '.'));
    end.
    Ftw .

  12. #12
    Join Date
    Nov 2006
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Whats best place to run this on a pure?

  13. #13
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where to use?
    Places where monsters have unique colors that don't appear elsewhere on the screen.
    for example not minotaurs. minotaurs are bad. don't do minotaurs. nor chickens.
    - Goblins in security stronghold (pick the green colors)
    - red spiders in varrock severs
    - scorpions in varrock severs
    - monks at the monastery (NW to barbarian village)
    Hmm, maybe one of those locations?

  14. #14
    Join Date
    Feb 2009
    Location
    In my uni room with my bong shooting people on css and programming
    Posts
    144
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well ive used lots of fighting scritps the lst day and been editing them lots but ive found this to be one of my faverites, after i took that darned door finding bit out otherwise u find urself stuck lots when it goes inbetween the barriers

    although my prbolem is the wait time between creatures it just seems too lnog if your fighting easy monsters, how would i solve this ?
    Yes i Have Dreads yes im White - my question how many black people do you see with dreads nowa days ?

  15. #15
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Z3r0Grav View Post
    well ive used lots of fighting scritps the lst day and been editing them lots but ive found this to be one of my faverites, after i took that darned door finding bit out otherwise u find urself stuck lots when it goes inbetween the barriers

    although my prbolem is the wait time between creatures it just seems too lnog if your fighting easy monsters, how would i solve this ?
    between what barriers? where? hmm i think in next update i make the door opening optional.

    in line 989 and 990 i have set the base fight times
    ranged: 130 seconds
    melee: 100 seconds
    in lines 1006 and 1011 i have set the effect of level difference.
    atm the formula is
    base + (MonsterLevel - YourLevel)*1700

    and the minimum fighting time with melee is 17sec, ranged 15 !! These are wrong, should be 10sec in both !!

    i haven't found the perfect formula yet, it's hard :-\
    you should try using the Reflection option, it is more accurate

    Thanks for using my fighter! Please post proggy next time you use it, OK?

    edit: New version available, with remade calculations. Hope you're satisfied with the new one!
    Last edited by marpis; 06-05-2009 at 11:51 PM.

  16. #16
    Join Date
    Dec 2006
    Posts
    399
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Line 1257: [Error] (18583:9): Unknown identifier 'skill_Attack' in script
    Hax0r


  17. #17
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Jethr0x View Post
    Line 1257: [Error] (18583:9): Unknown identifier 'skill_Attack' in script
    get the latest SRL rev #35

  18. #18
    Join Date
    Dec 2006
    Posts
    399
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I did
    Hax0r


  19. #19
    Join Date
    Dec 2006
    Posts
    399
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Still didn't work :/
    Hax0r


  20. #20
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Jethr0x View Post
    Still didn't work :/
    #1 don't double post.

    #2. My Updater In my signature.
    I do visit every 2-6 months

  21. #21
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Bump! Its working and better than ever!

  22. #22
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Code:
    function InCombat: boolean;
    begin
     {$IfDef Reflection}
      result := R_InCombat;
      exit;
     {$EndIf}
     case mFighter[currentplayer].UseRanged of
      true: result:= RangedInFight;
      false: result:= IsInFight(MSCX, MSCY-20);
     end;
    end;
    You shouldn't make it exit everytime after checking with reflection, because sometimes when the rs client slightly lags, reflection doesn't return right and you would get that you are not infight when a simple color check would tell you that you are still infight.

    this is what i would do.
    Code:
    function InCombat: boolean;
    begin
     {$IfDef Reflection}
      result := R_InCombat;
      if result then exit;
     {$EndIf}
     case mFighter[currentplayer].UseRanged of
      true: result:= RangedInFight;
      false: result:= IsInFight(MSCX, MSCY-20);
     end;
    end;

  23. #23
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    Code:
    function InCombat: boolean;
    begin
     {$IfDef Reflection}
      result := R_InCombat;
      exit;
     {$EndIf}
     case mFighter[currentplayer].UseRanged of
      true: result:= RangedInFight;
      false: result:= IsInFight(MSCX, MSCY-20);
     end;
    end;
    You shouldn't make it exit everytime after checking with reflection, because sometimes when the rs client slightly lags, reflection doesn't return right and you would get that you are not infight when a simple color check would tell you that you are still infight.

    this is what i would do.
    Code:
    function InCombat: boolean;
    begin
     {$IfDef Reflection}
      result := R_InCombat;
      if result then exit;
     {$EndIf}
     case mFighter[currentplayer].UseRanged of
      true: result:= RangedInFight;
      false: result:= IsInFight(MSCX, MSCY-20);
     end;
    end;
    actually the reflection fightcheck is for ranging, so that you wouldn't have to count arrows to see if you're in fight. That would pretty much kill the idea

  24. #24
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Great script, works amazing

    BUT!
    It picks up bones even when I set the pick up bones to false, and always logs me out randomly after 5 minutes, and just does nothing (doesn't log back in because it says "NEXT PLAYER INACTIVE" or something like that.

    If those two were fixed so I could run this script for 8 hours, I would.

  25. #25
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by marpis View Post
    actually the reflection fightcheck is for ranging, so that you wouldn't have to count arrows to see if you're in fight. That would pretty much kill the idea
    Ok, I only read that function, because I am developing my own atm.

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