best way help

Discussion in 'Scar/Simba Help' started by kqkiller, Nov 7, 2008.

best way help
  1. Unread #1 - Nov 7, 2008 at 2:36 PM
  2. kqkiller
    Referrals:
    0

    kqkiller Guest

    best way help

    ok i am working on a cow killer. so far it can kill a cow (most the time) and picks up the hide and bones it drops(20% of the time).

    here is how i am doing it now. need help making this better or help getting a bitmap find to work in it.

    Code:
    procedure finditem;
    begin
      cowkilled:=false;
      wait(500);
      if(Findcolorspiraltolerance(cowx,cowy,hidecolor,mscx-70,mscy-70,mscx+70,mscy+70,4)
      and  Findcolorspiraltolerance(ncowx,ncowy,meatcolor,mscx-70,mscy-70,mscx+70,mscy+70,7))then
      begin
        wait(10);
        flag;
        Mouse(ncowx,ncowy,5,5,false);
        wait(300+random(100));
        ChooseOption('Bones');
        wait(30);
        flag;
        wait(900+random(100));
        If(Findcolorspiraltolerance(cowx,cowy,cowcolor,mscx-20,mscy-20,mscx+20,mscy+20,7))then
         begin
          Mouse(cowx,cowy,5,5,false);
          wait(400);
          ChooseOption('Cowhide');
          wait(10);
          flag;
        end;
      end;
    end;
     
  3. Unread #2 - Nov 7, 2008 at 2:52 PM
  4. snappie1000
    Joined:
    Apr 7, 2007
    Posts:
    464
    Referrals:
    1
    Sythe Gold:
    1
    Two Factor Authentication User

    snappie1000 Forum Addict

    best way help

    I should add more randomness like
    Code:
    wait(500+random(1000));
    Also, the "wait();" function will let the mouse wait the amount of MILISECONDS you filled in between the (). So like you have in your script the "wait(10);" is only a 1/100 of a seconds which is almost nothing.
     
  5. Unread #3 - Nov 7, 2008 at 2:58 PM
  6. kqkiller
    Referrals:
    0

    kqkiller Guest

    best way help

    ty! i will fix but right now i am looking to make it so it will pick up the items droped better then just 20% of the time. i made this script in 10mins so it needs work but tell i plan to run for more then 1 min or 2 i dont think i need to hide it from the man lol.
     
  7. Unread #4 - Nov 7, 2008 at 3:00 PM
  8. snappie1000
    Joined:
    Apr 7, 2007
    Posts:
    464
    Referrals:
    1
    Sythe Gold:
    1
    Two Factor Authentication User

    snappie1000 Forum Addict

    best way help

    If you would make the "wait();" a little longer I think it would function better. I think your script is to fast.
     
  9. Unread #5 - Nov 7, 2008 at 3:04 PM
  10. kqkiller
    Referrals:
    0

    kqkiller Guest

    best way help

    well right now it is finding the meat that dont have any bones or hide under them so any ideas how to fix that
     
  11. Unread #6 - Nov 7, 2008 at 3:55 PM
  12. Jethr0x
    Joined:
    Jan 24, 2007
    Posts:
    3,070
    Referrals:
    13
    Sythe Gold:
    0

    Jethr0x Grand Master
    Banned

    best way help

    just use smart w\ reflection :S
     
< Smart, Temporary Fix | Hi I want to make an auto login thing but.. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site