Results 1 to 15 of 15

Thread: i need some help with my first script...

  1. #1
    Join Date
    Apr 2008
    Location
    hy71194 made my change -.-
    Posts
    356
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default i need some help with my first script...

    ok i want to make my auto talker compatible i know how to set up the includes but it gets an error here is my script

    SCAR Code:
    {
    +++++++++++++++++++++++++++++++++++++++++++++++++++
    +               6 Stair Auto Talker               +
    +               By:sk8terbitu                     +
    +                                                 +
    + This script uses scar!                          +
    + Please post proggies and Errors                 +
    +++++++++++++++++++++++++++++++++++++++++++++++++++
    }

    // setup
    // specify client dont work with smart yet
    // setup what you want to say
    // give me some pointers on how to inprove

    program StairTalker;

    const
    talk1='type what to say here';// what to say

    procedure Talk;
    begin
      wait(1000)
      SendKeys(talk1);
    end;


    begin
     repeat
       Talk;
     until(false)
    end.



    [/URL

  2. #2
    Join Date
    Apr 2008
    Location
    hy71194 made my change -.-
    Posts
    356
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    what do i need to do??
    this belongs in help because im asking for help



    [/URL

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

    Default

    SCAR Code:
    {
    +++++++++++++++++++++++++++++++++++++++++++++++++++
    +               6 Stair Auto Talker               +
    +               By:sk8terbitu                     +
    +                                                 +
    + This script uses scar!                          +
    + Please post proggies and Errors                 +
    +++++++++++++++++++++++++++++++++++++++++++++++++++
    }

    // setup
    // specify client dont work with smart yet
    // setup what you want to say
    // give me some pointers on how to inprove
     
    program StairTalker;
    {.Include SRL/SRL.scar}
    const
    talk1='type what to say here';// what to say
     
    procedure Talk;
    begin
      wait(1000)
      SendKeys(talk1);
    end;
     
     
    begin
     repeat
       Talk;
     until(false)
    end.
    ~Hermen

  4. #4
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    I tried adding SMART for you but it didn't work it says:

    Line 54: [Error] (12779:4): period ('.') expected in script

    maybe someone knows how to fix that, well SMART is still in the script along with a declare players and antirandom now.

    {
    ++++++++++++++++++++++++++++++++++++++++++++++++++ +
    + 6 Stair Auto Talker +
    + By:sk8terbitu +
    + +
    + This script uses scar! +
    + Please post proggies and Errors +
    ++++++++++++++++++++++++++++++++++++++++++++++++++ +
    }
    // setup
    // setup what you want to say
    // give me some pointers on how to improve


    program StairTalker;

    {.include SRL/SRL/misc/Smart.scar}
    {.include SRL/SRL.scar}

    const

    talk1='type what you want to say here';


    procedure declareplayers;
    begin

    HowManyPlayers := 1; //don't change unless you know what you're doing
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);

    Players[0].Name := ''; //Runescape acc. name
    Players[0].Pass := ''; //Runescape acc. pass
    Players[0].Nick := ''; //Nickname - 3 or 4 letters from the middle of your R.S. name
    Players[0].Active := True; // Set to false if you don't want to use this player
    end;

    procedure AntiRandom;
    begin
    FindNormalRandoms;
    end;

    procedure Talk;
    begin
    wait(1000)
    SendKeys(talk1);
    end;


    begin
    repeat
    Talk;
    until(false)
    end;

    begin
    SmartSetupEx(141, False, True); //substitute 141 with the world you want
    While Not SmartReady Do Wait(100);
    SetTargetDC(SmartGetDC);
    SetupSRL;
    ActivateClient;
    DeclarePlayers;
    end.

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

    Default

    Here we go:

    SCAR Code:
    {
    ++++++++++++++++++++++++++++++++++++++++++++++++++ +
    + 6 Stair Auto Talker +
    + By:sk8terbitu +
    + +
    + This script uses scar! +
    + Please post proggies and Errors +
    ++++++++++++++++++++++++++++++++++++++++++++++++++ +
    }

    // setup
    // setup what you want to say
    // give me some pointers on how to improve
    //Credits NaumanAkhlAQ

    program StairTalker;

    {.include SRL/SRL/misc/Smart.scar}
    {.include SRL/SRL.scar}

    const

    talk1='type what you want to say here';


    procedure declareplayers;
    begin

    HowManyPlayers := 1; //don't change unless you know what you're doing
    CurrentPlayer := 0;
    NumberOfPlayers(HowManyPlayers);

    Players[0].Name := ''; //Runescape acc. name
    Players[0].Pass := ''; //Runescape acc. pass
    Players[0].Nick := ''; //Nickname - 3 or 4 letters from the middle of your R.S. name
    Players[0].Active := True; // Set to false if you don't want to use this player
    end;

    procedure AntiRandom;
    begin
    FindNormalRandoms;
    end;

    procedure Talk;
    begin
    wait(1000)
    SendKeys(talk1);
    end;

    Procedure Talkz1;
    begin
    repeat
    Talk;
    until(false)
    end;

    begin
    SmartSetupEx(141, False, True); //substitute 141 with the world you want
    While Not SmartReady Do Wait(100);
    SetTargetDC(SmartGetDC);
    SetupSRL;
    ActivateClient;
    DeclarePlayers;
    Talkz1;
    end.

    You can never have any procedure without the first declaration line except of course the main loop.

    Hope I Helped

  6. #6
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    You can never have any procedure without the first declaration line except of course the main loop.

    Hope I Helped
    wait...what?? I'm sorry just that's a little confusing to me, I'm obviously new, and I'm surpised I was right about adding in ActivateClient; & DeclarePlayers; (under SetupSRL) I thought it should be in there but wasn't completely sure.

    I see what you changed, but I don't get why it makes a difference.

    EDIT: I guess what I don't understand is what the first declaration line is.

  7. #7
    Join Date
    Apr 2008
    Location
    hy71194 made my change -.-
    Posts
    356
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    aww thanks guys i needed help im still learning how to script.



    [/URL

  8. #8
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    no problem, I'll help whenever I can but I'm still really knew too so I hope you'll help me too if I ever need it. oh, and do you know what nauman means by first declaration line, sorry if I sound noobish to anyone, haven't heard that before though, anywhere.

  9. #9
    Join Date
    Apr 2008
    Location
    Northwest england
    Posts
    1,179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    when he saya first declaation lne he means

    procedure name; nuaman put talkz1
    Blank!

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

    Default

    Yeah you can have a begin on its own you need a Procedure line before it basically

    Unless it's the Main Loop

  11. #11
    Join Date
    Apr 2008
    Location
    hy71194 made my change -.-
    Posts
    356
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    so how would i do a log in procedure i know the declare players but what would be the log in function?



    [/URL

  12. #12
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    in the main loop just put in DeclarePlayers; or whatever procedure you named it, if you named it players then in your main loop you'd put players; and I'm not sure but you might need to put in ActivateClient; a line above that and I put a wait after activateclient.

    so it'd look something like this

    ActivateClient;
    Wait (1000 + random (500))
    DeclarePlayers;
    EDIT:OHHHH looking up now I see the mistake, someone put an include in, and didn't do SetupSRL, which made me think that your main loop was part of your last procedure, so now your old main loop is a procedure that makes ur main loop easier by not having

    repeat
    talk
    until (false) (i just wrote that real fast, didnt look exactly like that)

    so I tried putting in a main loop with a main loop already in there causing me to get that error, so basically what you were telling me was that everything needs procedure above it except the main loop, you can't have two begins without a procedure above them both (unless the 2nd and so on begin is in the main loop) right??

  13. #13
    Join Date
    Apr 2008
    Location
    hy71194 made my change -.-
    Posts
    356
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    thank you guys soo much i under stand it now!!! and thank you NaumanAkhlaQ
    for showing me how to do the declare players and smart setup im releasing now!
    and thanks baked for help with declare players



    [/URL

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

    Default

    Quote Originally Posted by sk8terbitu View Post
    thank you guys soo much i under stand it now!!! and thank you NaumanAkhlaQ
    for showing me how to do the declare players and smart setup im releasing now!
    and thanks baked for help with declare players
    No Problem Always glad to help

  15. #15
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    No problem, also I threw in SMART for you, if you forgot you can throw that in the top where you said some stuff bout your script like it uses scar.

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
  •