Results 1 to 12 of 12

Thread: Best Fighting Procedure?

  1. #1
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Best Fighting Procedure?

    I'm trying to kill chickens, so I'm wondering what the best fighting procedure or function would be to use.

    Here's what I'm using atm, and it just seems like it could easily screw up.

    SCAR Code:
    begin
      if (not(LoggedIn)) then nextplayer(false)
      AttackMonster(ChickenColor1, ChickenColor2, ChickenColor3,
      'chicken', 30);
    end;

    So should I just try to make my own function or is there a good one I can use. And that procedure isn't totally finished, I'm just wondering whether or not to use the AttackMonster function. I think the colors should be fairly accurate, since I'm using the gobblers on the chickens for colors, rather than the brown or beige on them. Seemed like I'd be able to attack both that way, and it wouldn't get mixed up with the other colors in the enviornment, as there aren't too many reds in the area.

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    if(not(LoggedIn))then Exit;

    If you don't understand why you should change that, read Nielsie95's multiplayer tutorial
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    As I stated above, I haven't finished the procedure. I just need to know if the function AttackMonster will work in my case or not. The procedure is fucked up, I know. Mostly because I figure I'm going to be changing it.

  4. #4
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    KAttackMonster might work for you but it definitely doesn't for me. Try making your own, use a FindObj or something...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  5. #5
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright thanks. I didn't think any of the ones included in SRL would work perfect anyway. This is gonna be a bitch to make though. . .

  6. #6
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Nah lmao...:

    SCAR Code:
    FindObjectMulti(x, y, 'Att', 'ack', MonsterName, OneColour, TwoColour, ThreeColour, 15, 5, True, True)
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  7. #7
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Eh, I just hate doing that because whenever I try to, it lags like a bitch and takes longer than I would like to find it. I'll give something like that a shot though, thanks.

    Plus, I suck at scripting, so it's easier for you I need to learn more of the color-finding functions.

    Edit: I couldn't even find that function in the Extended Objects of SRL lol.

    Edit2: Probably because it's been changed. Now called FindObjMultiTimes. Says it only finds the object a selected number of times. . .not real sure I understand that.

    Edit3: I'm an idiot. I might just scrap this. . .

  8. #8
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    It's not in extended. Core/Object.scar is where you'll find it.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  9. #9
    Join Date
    Jun 2007
    Location
    Kentucky, United States of America
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    True enough. . .Thanks for your patience, I'll test out.

    Yeah, the AttackMonster function didn't work. Just lagged huge until I logged out.

  10. #10
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need failsafes, otherwise it'll just keep looking forever....

    Add a wait in there too, e.g. Wait(500 + random(200));

    -Pancakes
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Look at the fighting procedures from Ratz overdrive. They are the best fighting-procs I ever made
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  12. #12
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Might be a bit hard for him to understand Fawki. It's got so many procedures and functions involved.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. monster fighting
    By Lt Mays in forum OSR Help
    Replies: 13
    Last Post: 11-21-2007, 10:06 PM
  2. Fighting script
    By Bobzilla69 in forum First Scripts
    Replies: 4
    Last Post: 09-10-2007, 07:36 PM

Posting Permissions

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