Results 1 to 7 of 7

Thread: Need Help

  1. #1
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default Need Help

    problem is, i want it to do antiban everytime it kills the NPC 3 times.
    and than after another 3 it will repeat the antiban and so on.

    for some reason when it kills 2 it will do antiban and than kill another and do a other antiban on the 3rd 1 it killed instead of the 2nd.

    what do i need to do

    Code:
    SCAR Code:
    Killed:= Killed+ 1;
    begin
    if Killed > 2 then
     case Random(3) of
                    0: WhileFight;
                    1: MyAntiBan;
                    2: ChangeMouseSpeed;
    end;

    do i have to do this instead:

    SCAR Code:
    Killed:= Killed+ 1;
    begin
    if Killed > 2 then
    Killed :=0;
     case Random(3) of
                    0: WhileFight;
                    1: MyAntiBan;
                    2: ChangeMouseSpeed;
    end;

    thanks.

  2. #2
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes. That should work.

  3. #3
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    hm k ill have to test i guess again, i remmeber i got a diff bug when i did that but ill retest. any other suggestions?

  4. #4
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you might want
    SCAR Code:
    Killed:= Killed+ 1;
    begin
    if Killed > 2 then
     case Random(3) of
                    0: WhileFight;
                    1: MyAntiBan;
                    2: ChangeMouseSpeed;
    Killed :=0;
    end;
    so after it does the random(3) it will make killed :=0; idk tho just a suggestion

  5. #5
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Either way would work.

  6. #6
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Also I don't recommend having an antiban ever 3 kills cause that kills randomness. Have something like.
    SCAR Code:
    If Killed > (1+Random(3)) then
    or something at least
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

  7. #7
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what voice said would work because it will always be more than three unless you set that and maybe do what seroko said as well scar is all about randomness which you should no o.0


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
  •