Results 1 to 5 of 5

Thread: What's wrong with this script.

  1. #1
    Join Date
    May 2007
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default What's wrong with this script.

    Okay now first you have to realize I know nothing about scripting, but from what I thought I knew I tried to make this. It was simply supposed to prevent me from logging out, use the declare players line to detect randoms and that's it. Check skill tabs, rotate the camera angle and perform anti randoms. This is what I did so far and it won't even compile.

    program dontlogout;
    {.include SRL/SRL/Misc/Smart.Scar}
    {.include srl/srl.scar}

    procedure declarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;
    Players[0].Name := ''; //username
    Players[0].Pass := ''; //password
    Players[0].Nick := ''; //3-4 letters from your username
    Players[0].Active := True;
    end;

    function FindNormalRandoms: Boolean;
    var
    i: Integer;
    begin
    for i := 1 to 8 do
    begin
    case I of
    1: SolveNonTalkingRandoms;
    2: Respond;
    3: Result := FindTalk;
    4: Result := FindDead;
    5: Result := FindLamp(LampSkill);
    6: if FindBox then
    Result := SolveBox;
    7: Result := RC;
    8: Result := FindMod;
    end;
    if Result then
    Break;
    //Wait(1);
    end;
    end;

    begin
    setupscript;
    login;
    FindNormalRandoms;
    repeat;
    repeat;
    end

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    obviously it wont compile, you are naming a function as 'FindNormalRandoms' and SRL has a function with the same name...


  3. #3
    Join Date
    May 2007
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    obviously it wont compile, you are naming a function as 'FindNormalRandoms' and SRL has a function with the same name...
    i thought that's how u add functions to your scripts. i went thru the SRL folder and found that function -.-

  4. #4
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by igotgrapes View Post
    i thought that's how u add functions to your scripts. i went thru the SRL folder and found that function -.-
    Changing the name of the function... use your brain.


  5. #5
    Join Date
    May 2007
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    u can delete this i'll just play the character legit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. What's wrong with this script?
    By daniiboy69 in forum OSR Help
    Replies: 1
    Last Post: 10-09-2008, 06:25 AM
  2. What Am I doing wrong with script?
    By mrpickle in forum OSR Help
    Replies: 6
    Last Post: 08-17-2008, 04:44 PM
  3. Replies: 3
    Last Post: 01-20-2008, 05:29 PM
  4. What's wrong with my script?
    By Zeta in forum OSR Help
    Replies: 2
    Last Post: 08-01-2007, 08:19 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
  •