Results 1 to 6 of 6

Thread: Script logs in, then out

  1. #1
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default Script logs in, then out

    http://pastebin.com/f3beaa263

    hey guys, im working on a semi cool cow killer and hide banker...
    look at that!
    all it does is login, tell me it cant find the cow, and logout. i think its prob cuz FindObjTPA sucks, any other ideas for finding cows? (color).

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Because you have..
    SCAR Code:
    function FindCow: boolean;
    begin;
     if FindObjTPA(x, y, 12107202, 20, 2, 1, 1, 20, ['Attack']) then result := True
     else
     begin
      writeln('couldnt find cow, stopping')
      TerminateScript; //<-- this line ends it
     end;
    end;
    You tell the script to terminate if it doesn't find a cow.


    Also, I'm pretty sure the reason it doesn't find it is because where the uptext goes you have 'Attack'. The proper uptext for a cow would be something like 'ow'.
    Last edited by NCDS; 08-10-2009 at 01:37 PM.

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    ohhhh ok thx, i'll try that

    EDIT: no work, i think its FindObjTPA. any other ideas on finding the cows?
    Last edited by TomTuff; 08-10-2009 at 02:26 PM.

  4. #4
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try changing object width and height to 10 idk just keep trying

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You still have to remove the terminate script.
    You should loop though the searching procedure, since sometimes you don't find it at the first time.
    You have to change the uptext, I am not sure it is 'ow' like the person said above.(Highly possible)
    Need any help: Check my MSN.
    ~Hermen

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    You can always use FindColorsSpiralTolerance or something like that to find the cow's colors. You may have to use the black (or brown, whichever it is) because if you use white it will probably pick up the hides on the ground when you want to attack the cow.

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
  •