Results 1 to 7 of 7

Thread: Script Help!

  1. #1
    Join Date
    Dec 2008
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script Help!

    procedure IfFight;
    var Fight: integer;
    begin
    If (FindFight) Then
    begin
    RunAway('N', False, 1, 1000 + Random(500));
    Inc(Fight);
    end;

    im in rimmington cutting willows and it doesnt run away please help

  2. #2
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I am not completely sure about how you have whatever it may be setup... but I would suggest trying something more like this...

    SCAR Code:
    Program RunawaySlice;
    {.include srl/srl.scar}

    var
    InFight : Boolean;

    procedure IfAttacked;
    begin
     If (InFight) Then
      begin
       RunAway('N', False, 1, 1000 + Random(500));
       Inc(InFight);
      end;
     end;

    Begin
     SetupSRL;
     IfAttacked;
    end.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  3. #3
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    InFight only registers when you get hit for a red number, other than that - it should work
    Project: Welcome To Rainbow

  4. #4
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Well.... I am assuming that if he takes damage... then that would be equivalent to him being in a fight...
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  5. #5
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by anonymity View Post
    I am not completely sure about how you have whatever it may be setup... but I would suggest trying something more like this...

    SCAR Code:
    Program RunawaySlice;
    {.include srl/srl.scar}

    var
    InFight : Boolean;

    procedure IfAttacked;
    begin
     If (InFight) Then
      begin
       RunAway('N', False, 1, 1000 + Random(500));
       Inc(InFight);
      end;
     end;

    Begin
     SetupSRL;
     IfAttacked;
    end.
    can u increase a boolean???

  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by pur3b100d View Post
    can u increase a boolean???
    Yup. False = 0, True = anything else.

  7. #7
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Change InFight to FindFight

    like this:

    SCAR Code:
    Program RunawaySlice;
    {.include srl/srl.scar}
     
    var
      Fights: Integer;
     
    procedure IfAttacked;
    begin
      If (FindFight) Then
      begin
        RunAway('N', False, 1, 1000 + Random(500));
        Inc(Fights);
      end;
    end;
     
    Begin
      SetupSRL;
      IfAttacked;
    end.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

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
  •