Results 1 to 6 of 6

Thread: Help With Script

  1. #1
    Join Date
    Apr 2018
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Help With Script

    Hey, i got a RSPS <zulrah> script i have been working on. but got some problems (im new to simba scripting). The problem is that it just repeat the pray switches over and over again, so it turns off/on the pray like 10 times on every zulrah face. i have no idea how i can loop it so that it will wait for zulrah to switch face before it repeats. Thanks

    program Simbabot;

    procedure zulrahstart;
    begin
    MoveMouse(928, 104);
    ClickMouse(928, 104, 1);
    wait(400);
    MoveMouse(733, 179);
    wait(400);
    ClickMouse(733, 179, 1);
    wait(400);
    MoveMouse(563, 119);
    wait(400);
    ClickMouse(563, 119, 1);
    wait(400);
    MoveMouse(583, 261);
    wait(400);
    ClickMouse(583, 261, 1);
    wait(200);
    MoveMouse(747, 213);
    wait(400);
    ClickMouse(747, 213,1);
    wait(400);
    MoveMouse(666,283);
    wait(400);
    ClickMouse(666, 283, 1);
    wait(400);
    MoveMouse(80, 167);
    wait(1000);
    ClickMouse(80, 167, 1);
    wait(400);
    MoveMouse(232, 239);
    wait(1000);
    ClickMouse(232, 239, 1);
    wait(5000);
    end;

    procedure KillZulrahRange;
    var
    i, x, y:Integer;
    begin
    if FindColor(x, y, 1625528 , 12, 34, 516, 364) then
    begin
    MoveMouse(x, y);
    wait(400);
    ClickMouse(x, y, 1);
    MoveMouse(713, 215);
    wait(400);
    ClickMouse(713, 215, 1);
    wait(1000);
    MoveMouse(647, 363);
    wait(400);
    ClickMouse(647, 363, 1);
    end else
    if FindColor(x, y, 1595588 , 12, 34, 516, 364) then
    begin
    MoveMouse(713, 215);
    wait(400);
    ClickMouse(713,215, 1);
    wait(400);
    MoveMouse(682, 364);
    wait(1000);
    ClickMouse(682, 364, 1);
    wait(1000);
    MoveMouse(x, y);
    wait(400);
    GetMousePos(x, y);
    wait(400);
    ClickMouse(x, y, 1);
    end else
    if FindColor(x, y, 11935608 , 12, 34, 516, 364) then
    MoveMouse(713, 215);
    wait(400);
    ClickMouse(713,215, 1);
    wait(400);
    MoveMouse(608, 365);
    wait(400);
    ClickMouse(608, 365, 1);
    End;



    begin
    ActivateClient;
    Zulrahstart;
    repeat
    Killzulrahrange;
    until (false)
    end.

  2. #2
    Join Date
    Jan 2016
    Posts
    26
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    Hey Eyoo, welcome to villavu.com! I see no one replied and and hate an answered questions. So to take a stab at it and maybe get someone with more knowledge to reply because im probably wrong I'd like to make some suggestions for you.

    So you need to create conditions for every condition that you may encounter and by properly using functions like else you can take the proper steps to build logic into your script to do something else what doing something if that makes sense. LOL! so I seen end else, but where is else itself?

    No idea if this will help you at all but don't get discouraged and keep the scripts coming. If you fix something share it again and explain how you go there. Good luck,òzz

  3. #3
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Hi, I highly recommend you to start reading tutorials:
    https://villavu.com/forum/forumdisplay.php?f=492


    I tried to write up something quick for you but don't think you'd understand it.

  4. #4
    Join Date
    Apr 2018
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by P1nky View Post
    Hi, I highly recommend you to start reading tutorials:



    I tried to write up something quick for you but don't think you'd understand it.
    Been reading a few guides. would be nice if you post it so i can check if i understand it

  5. #5
    Join Date
    Jul 2014
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Quote Originally Posted by Eyoo View Post
    i have no idea how i can loop it so that it will wait for zulrah to switch face before it repeats. Thanks
    Read the section on loops from https://villavu.com/forum/showthread.php?t=58935

    You need to add functions for each phase or different action you want to do. Then add a loop that will continue one action until a condition is met, i.e. the phase change of zulrah, and afterwards does action 2.

    Why are you using only static coords? Does this private server have zulrah always in the same place?

    In regards to your problem with prayer, frankly that requires someone using your code with the specific rsps and figuring out what you meant by each coordinat since you used specific coords, so you'll have to figure that out on your own. Granted it could be the same gameframe but how would we know. This may not be what you want to hear, but you may be better off trying something simpler. You are learning to drive stick with a touchy sports car.

  6. #6
    Join Date
    May 2018
    Location
    Toronto (Canada)
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Eyoo View Post
    Been reading a few guides. would be nice if you post it so i can check if i understand it
    Yeap, I also think it's a good idea to read tutorials. You'll definitely find what you want or more

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
  •