Results 1 to 3 of 3

Thread: Odd error beginner script

  1. #1
    Join Date
    Oct 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Odd error beginner script

    I keep getting an error
    "CreateFile - Exception. Could not create file: C:\Simba\Includes\SRL-OSR\SRL\//w,w,w.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png
    Fatal error writing to C:\Simba\Includes\SRL-OSR\SRL\//w,w,w.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png!!
    Exception in Script: Out Of Range" and i just cant figure out why

    Any help would be appreciated there is no commas in the google link I'm just a new member so its restricted to post links.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    You need to post the script.

  3. #3
    Join Date
    Oct 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program R_Test;
    {$DEFINE SMART8}
    {$I SRL-OSR/SRL.Simba}
    {$I SRL-OSR/SRL/Reflection/Reflection.simba}


    Procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    Players[0].Name :='';
    Players[0].Pass :='';
    Players[0].Nick :='';
    Players[0].Active:=True;
    end;

    procedure AttGuard;
    var
    Chicken: TNPC;
    Tp : Tpoint;
    begin
    if R_FindNpc('Chicken', Chicken) then // Loads the record for Guard.
    begin
    if Chicken.InCombat then // if he is in combat, don't attack, since we are on a loop, This acts as a wait also
    exit;
    Tp := Chicken.Tile; //Get guard tile location
    Tp := R_TileToMs(Tp); //Changes Tile into a Onscreen Point
    Mmouse(Tp.x, Tp.y, 0, 0);
    if R_WaitUptext('Chicken', 200) then
    ClickMouse2(Mouse_Left);
    while (Chicken.InCombat) and (R_InFight) do // waits until guard is dead to move on
    wait(500);
    end;
    end;


    begin
    setupsrl;
    SetupReflection;
    repeat
    AttGuard;
    until false;
    end.

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
  •