Results 1 to 2 of 2

Thread: Ent Finding?

  1. #1
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default Ent Finding?

    well i was trying to make a power chopper that will find ents(i believe thats when the tree turns evil) but i have the procedure :
    SCAR Code:
    Procedure EntFinding;
     Begin
     Status('Find Evil Trees');
    If(FindEnt(TreeColor1)) or
      (FindEnt(TreeColor2)) or
      (FindEnt(TreeColor3)) then
      Status('Done Finding Evil Trees!');
      RunAwayEnt;
       End;
    Then if it finds an ent then it performs runawayent;. Which clicks somewhere to stop from chopping. and then auto talk about it but even when there is no ent it always returns true. Why is it doing this?

  2. #2
    Join Date
    Nov 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    when you have an ent random the colour of the text at the top left changes so make a bitmap of that then your procedure would look like this

    Code:
    procedure findent;
    begin
    if(timefrommark(entmark))then
    begin
     mmouse(tree location);
     if(findbitmap(enttext,limited to the top area))then
     begin
      runaway(runawaydir);
     end;
    end;
    end;
    end;
    yes theres a lot of pseudo code in there but hopefully you'll get the jist

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding an NPC... I Need Help!
    By mormonman in forum OSR Help
    Replies: 9
    Last Post: 12-06-2008, 05:36 AM
  2. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  3. Gas finding help
    By Lancelot074 in forum OSR Help
    Replies: 9
    Last Post: 03-01-2008, 10:00 PM
  4. I need help with ENT finding
    By TravisV10 in forum OSR Help
    Replies: 23
    Last Post: 07-05-2007, 08:27 AM
  5. help with ent finding
    By Adamb_135 in forum OSR Help
    Replies: 4
    Last Post: 04-18-2007, 02:14 AM

Posting Permissions

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