Results 1 to 4 of 4

Thread: FindFight Trouble

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default FindFight Trouble

    Like some of you know, i'm working on a power chopper. To ensure the safety of everyone's account, i added this procedure to check if we are getting attacked.

    PHP Code:
    procedure CheckFight;
    begin
      
    if HPPercent>50 then
      begin
        DCDebug
    ('Found Fight!');
        
    RandomRunTo;
      
    end;
      if 
    not HPPercent>50 then Exit;
    end
    (Not use scar tags because unavailable)

    There's a problem though, whenever i start the script to test it, it quickly does RunTo even though the player still has full life. i've been working on this for an hour or so. What am i doing wrong?

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

    Default

    you have
    SCAR Code:
    if HPPercent > 50/// change > to < !

  3. #3
    Join Date
    Mar 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    wahts this for?

  4. #4
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    you have
    SCAR Code:
    if HPPercent > 50/// change > to < !
    whoops! i can't believe how i didn't see that.. thanks.

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
  •