Results 1 to 6 of 6

Thread: [Help] How do i make a fighter wait?

  1. #1
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Help] How do i make a fighter wait?

    How do i make an auto-fighter wait until the fight is over? This is my current fighting proc.


    Code:
    procedure Fighting;
    begin
    if not InFight then begin
        FindMonster(MColor1, MColor2, MColor3,tolerance, MonsterName);
        KAttackMonster(MColor1,MColor2,MColor3,tolerance,MonsterName);
      end; end;
    Any ideas?

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    Procedure Fighting;
    begin
      if not InFight then
      begin
        FindMonster(MColor1, MColor2, MColor3,tolerance, MonsterName);
        KAttackMonster(MColor1,MColor2,MColor3,tolerance,MonsterName);
      end;
      while InFight do
        randomstuffhere;
    end;
    I think this may be what oyu want? if no, then give me more info please.

  3. #3
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That's pretty much what i was looking for. But what it will do is wait until it's done fighting then fight again? Or do i have to call on the procedure in the randomstuffhere; part?

  4. #4
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, you wld have to do something along the lines of,

    while inFight do
    repeat
    wait(100);
    until(not inFight)

    or sumthign like that
    you would need to add to that for more randomness and failsafes and such. but you get the basic idea

  5. #5
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, i'll try and if then begin else statement first. I'v got a lot of help to as my mom is a programmer .

  6. #6
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol that is awesome

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Wait Until Something.....
    By FortAsh in forum OSR Help
    Replies: 5
    Last Post: 01-29-2009, 05:09 PM
  2. Full Idea for how to make a fighter for RS3!
    By Nexhou in forum RS3 Outdated / Broken Scripts
    Replies: 4
    Last Post: 07-07-2008, 05:06 PM
  3. I can't wait =D
    By Eugeniu in forum News and General
    Replies: 18
    Last Post: 09-28-2007, 12:59 AM
  4. Planning to make auto fighter that only eats!
    By ShowerThoughts in forum First Scripts
    Replies: 1
    Last Post: 09-14-2007, 05:20 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
  •