My scripd dont want to work

Discussion in 'Archives' started by ciffer, May 24, 2007.

My scripd dont want to work
  1. Unread #1 - May 24, 2007 at 11:25 AM
  2. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Hi. I am new user of SCAR but i readed tutorials and I think i know how to use it.
    So I wanted to write Dofus script for auto barley farming. I made this script:
    It is starting to work but i think it dont write the var x and y so it cant click in the place where i want to. Please help me and if you can suggest me any improvements i would be very happy ;]
     
  3. Unread #2 - May 24, 2007 at 11:27 AM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    Put it in a code box instead of a quote box.
     
  5. Unread #3 - May 24, 2007 at 11:29 AM
  6. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Okie here you are:
    Code:
    program New;
    var
    x, y, z: integer;
    
    Procedure Kolor;
    begin;
     z:=100+random(100);
     if FindColor(x, y, 2974, 6, 44, 1270, 778) then;
      begin;
        MoveMouseSmooth(x, y);
        wait(z);
        clickmouse(x,y,true);
        ClickMouse(x+20, y-20, true);
        wait(10400);
      end;
    end;
    begin;
     repeat;
      wait(1000);
      Kolor;
     until(false);
    end.
    
     
  7. Unread #4 - May 24, 2007 at 11:32 AM
  8. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    Don't put semi-colons after begin, repeat, or then.
     
  9. Unread #5 - May 24, 2007 at 11:36 AM
  10. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Um ok i made it because of annoying error "Missing semicolon". I've got mad and i did put it everywhere

    @Edit

    Yay it works now but it still didnt got it-I wrote y-20 but i think he ignores it.
     
  11. Unread #6 - May 24, 2007 at 2:27 PM
  12. Vaarberg
    Referrals:
    0

    Vaarberg Guest

    My scripd dont want to work

    well im new on it too.... i made my scar to work.... well but it cannot load some points in script :S
     
  13. Unread #7 - May 24, 2007 at 2:53 PM
  14. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    Put a wait in between.
     
  15. Unread #8 - May 25, 2007 at 4:57 AM
  16. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Ok i made this script work fully. I didn't only tested bank function (i added it) but everything else is working just fine. If someone want to use this script ask for it and i will translate it to english and give you final version of it.
     
  17. Unread #9 - May 25, 2007 at 8:43 AM
  18. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    I don't recommend making full scripts without the SRL. The SRL has a whole lot of procedures that will help you with your script and will also make it less detectable. Good luck scripting :)
     
  19. Unread #10 - May 26, 2007 at 7:42 AM
  20. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    I would be very happy if you can provide me with some link or something ;]
     
  21. Unread #11 - May 26, 2007 at 8:02 AM
  22. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

  23. Unread #12 - May 26, 2007 at 8:52 AM
  24. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Ok I have it and now I want to make class with bitmaps codes but I don't know how to make class. I want to use advanced mouse using and bitmap searching but i dont want to make it all in about 20 variables.
     
  25. Unread #13 - May 26, 2007 at 8:57 AM
  26. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

  27. Unread #14 - May 26, 2007 at 10:04 AM
  28. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Sorry to bother you again but I have another problem. I read that article and made an include script with 20 bitmaps. Itself there is no problem-Bitmap.scar executes and compiles without errors but when i want to include it to Start.scar
    it show this error:
    I will show here also beginning of each file:
    Start.scar
    Code:
    program Farmer;
    {.include Dofus\Bitmapa.scar}
    
    var
    x, y, z, ile: integer;
    end:boolean;
    ...
    
    Bitmap.scar
    Code:
    program BitmapClass;
    
    type
     bitmaps=record
     b1:integer;
     b2:integer;
     b3:integer;
     b4:integer;
     b5:integer;
     b6:integer;
     b7:integer;
     b8:integer;
     b9:integer;
     b10:integer;
     b11:integer;
     b12:integer;
     b13:integer;
     b14:integer;
     b15:integer;
     b16:integer;
     b17:integer;
     b18:integer;
     b19:integer;
     b20:integer;
    end;
    
    var
    bitmap:bitmaps;
    
    begin
     bitmap.b1:=BitmapFromString(51, 10, 'z78DAED9649B265370844B7A45E30' +
           '0435FB5F920FFAB7CA357038C273BFA8C8AFD2550349025297554' +
           'CB2D42C73CD9DFBE46F76F0942A4946D95244CB952A5A93579592' +
    ...
    
     
  29. Unread #15 - May 26, 2007 at 10:37 AM
  30. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    You are probably better off making that an array of integers. Then have Bitmap[1] := etc.
     
  31. Unread #16 - May 26, 2007 at 10:48 AM
  32. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Yeah i wanted to make it first but i didn't know how to do that but i will search forum ^_^
     
  33. Unread #17 - May 26, 2007 at 12:39 PM
  34. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    My scripd dont want to work

    Good example from Goblin Schredular:

    Code:
    
    var
      GoblinColors: array[1..16] of integer;
    
    procedure SetupGoblinColors;
    begin
     GoblinColors[1]  := 8635310;
     GoblinColors[2]  := 4372133;
     GoblinColors[3]  := 6269056;
     GoblinColors[4]  := 3058586;
     GoblinColors[5]  := 3058063;
     GoblinColors[6]  := 2595741;
     GoblinColors[7]  := 2129535;
     GoblinColors[8]  := 5075294;
     GoblinColors[9]  := 7050972;
     GoblinColors[10] := 7642334;
     GoblinColors[11] := 12832983;
     GoblinColors[12] := 7237495;
     GoblinColors[13] := 8700589;
     GoblinColors[14] := 6978694;
     GoblinColors[15] := 3844000;
     GoblinColors[16] := 7118991;
    end;
    Pretty much just like that except you have to declare the bitmaps first.
     
  35. Unread #18 - May 26, 2007 at 12:53 PM
  36. ciffer
    Referrals:
    0

    ciffer Guest

    My scripd dont want to work

    Man tnx you rule ;] You have helped me a lot but i dont see here any reputation points or + ;/
     
< Selling rune scimmy lvl 36 file (40 str) (1 def) | ScapeRune Woodcutter >

Users viewing this thread
1 guest


 
 
Adblock breaks this site