Results 1 to 10 of 10

Thread: i need help whit script!

  1. #1
    Join Date
    Jun 2007
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    i need help whit script!

    ok hi i need help whit do a new scrip
    have done this script whit som help

    program New;

    var
    x,y: Integer;

    const
    Color = 16711680; // Change the 0 to your color
    // Hit F1 to stop the script
    begin
    repeat
    KeyDown(GetKeyCode('a'));
    KeyUp(GetKeyCode('a'));
    if(FindColor(x,y,Color,667, 374,667,374))then // You could change the coordinates
    begin
    KeyDown(VK_Right);
    Wait(500);
    KeyUp(VK_Right);
    end;
    until(IsFKeyDown(1));
    end.

    i used it on a game to traine run skill
    but now i need a mine scrip
    this how i have thinked to have it

    dont know much so i gona explaine it

    have done this my self besed on Bat script and the other one
    but i need help whit get commands real have done my owne comands XD

    you dont need to read my plan but i need this commands
    1:a keydowne and upevent that works whit 2 keys downe and upp at once
    2:and goto commad like go to line 120 or go to 2 like i did
    3:a if find color comand whit x,y and color and everyting but if it find color it do that is on 2:
    4:and if dont find color go to 2 Like 2:
    5:and a command like if find color

    if(FindColor(x,y,Color,Z,Z,Z,Z))go to 2/if it find color it go to 2:
    if (Dontfindcolor(x,y,color,Z,Z,Z,Z) go to 1/if it dont find that color it go to 1:


    1:
    key downe (left-key+downe-key )
    w8 random time 5-10
    key up (left-key+downe-key)
    if(FindColor(x,y,Color,Z,Z,Z,Z))go to 2/
    key downe( a+downe-key)
    wenn find color go to 3:

    2:
    if(dontfindcolor)x,y,color) go to 2
    if(findcolor)x,y,color) go to 1


    3:
    Key downe(up-key)
    w8 0.1 sec
    Key up(up-key)
    if(FindColor(x,y,Color,Z,Z,Z,Z))go to 2/
    Key down (a)
    w8 1 sec
    key up (a)
    if(FindColor(x,y,Color,Z,Z,Z,Z))go to 2/
    key downe (left-key+downe-key )
    w8 random time 5-10
    key up (left-key+downe-key)
    if(FindColor(x,y,Color,Z,Z,Z,Z))go to 2/
    go to 1

    it is much for ask for but i hope i get help whit find the comands

  2. #2
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    ok your kinda confuzing me, but i think this will help:

    SCAR Code:
    If FindColor(x, y, {color}, MSX1, MSY1, MSX2, MSY2) Then
    Begin
      // you can paste the step you want to do if the color is found here
    End Else
    Begin
      // you can pastle the step you want to do if the color is NOT found here
    End;

    If you wan't to know all functions and how they work just simpely press F1 when you have scar open, that will give you a list of evrything.

    Also we have a lot of beginners turials here

    good luck scripting

  3. #3
    Join Date
    Jun 2007
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    M4st3rK1ll
    Thx for find that pice of scrip

    i cant find a command for this
    it will not stop until it finds the color i want it for look for

  4. #4
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Repeat
      If Not LoggedIn Then Exit; // fail save very important
      Wait(1000);
    Until FindColor(x, y, {color}, MSX1, MSY1, MSX2, MSY2)

    {<-------- OR -------->}

    While Not FindColor(x, y, {color}, MSX1, MSY1, MSX2, MSY2) Do
    Wait(1000);

    Hint:
    Look trough other people there scripts, and see how they do it.

  5. #5
    Join Date
    Jun 2007
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    M4st3rK1ll THX for every thing will PM you if it is somthing more = D

  6. #6
    Join Date
    Jun 2007
    Posts
    58
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i need a comman that wait random time like 50-500 sec

  7. #7
    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can someone help my whit this one plz

    http://www.villavu.com/forum/showthr...d=1#post423971

    plz can someone help my

  8. #8
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    @RangeSaw. Use the Search Button

  9. #9
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    For the waiting thingy you don't even need a command just use :

    If its EITHER 5 secs or 500 secs and if it should be random use :

    SCAR Code:
    Case random(2) of //this uses randomisation so it can be either 1 or 2
     1: Wait(5000); // if its 1 then it will wait 5000 MS (AKA 5 secs)
     2: Wait(500000); // and if 2 then it will wait 500000 MS (AKA 500 secs)
    end; // IF YOU USE CASE RANDOM... THEN YOU MUST HAVE AN "end;" AFTER THE DIFFERENT CASES !!!

    If its ANYTHING between 5 secs and 500 secs then it should be :

    SCAR Code:
    Wait(225000+random(225000)) //The problem here is that it'll be between 0 secs and 500 secs...

    For the second one i don't know what do to...

  10. #10
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Case random(2) of //this uses randomisation so it can be either 1 or 2
    1: Wait(5000); // if its 1 then it will wait 5000 MS (AKA 5 secs)
    2: Wait(500000); // and if 2 then it will wait 500000 MS (AKA 500 secs)


    WRONG!

    it's 0 or 1.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need Help Whit A Form
    By Puffo in forum OSR Help
    Replies: 7
    Last Post: 11-29-2007, 08:20 PM
  2. Help whit includes?
    By Siikanen in forum OSR Help
    Replies: 3
    Last Post: 10-27-2007, 01:31 PM
  3. Problems whit MSN
    By Home in forum News and General
    Replies: 5
    Last Post: 04-12-2006, 12:55 PM

Posting Permissions

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