Page 3 of 3 FirstFirst 123
Results 51 to 74 of 74

Thread: [OSR][Reflection]Basic Scripting and Setup Guide

  1. #51
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by ry0240 View Post
    Since last night I've been getting this problem for all reflection scripts

    [Error] C:\Simba\Includes\SRL-OSR\SRL\Reflection\Core\MapWalk.simba(518:11): Unknown identifier 'R_FindNormalRandoms' at line 518
    Compiling failed.
    Is there a official section to report reflection bugs?

    Fixed, Re Download for the proper fix! And Yes, you can report bugs to:
    https://code.google.com/p/osrreflection/issues/list
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  2. #52
    Join Date
    Mar 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Im having a problem when trying to run the update code that you provided, i keep getting this error:
    Exception in Script: Operator expected at line 281, column 26 in file "C:\Simba\Includes\SRL-OSR\SRL\Reflection\Core\Tiles.simba"
    Any help would be greatly appreciated

  3. #53
    Join Date
    Dec 2008
    Posts
    135
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    i had the same problem, u got to switch the interpreter to pascal script

  4. #54
    Join Date
    Mar 2013
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Hello:

    I was wondering if you could help me with opening doors. I am making a script to kill Al Kharid guards. This is what I have so far:
    Code:
    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;
    var
      center, south, east, west: tPoint;
    
    procedure AntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      R_FindNormalRandoms;
      case Random(8) of
       0:
       begin
         HoverSkill('Woodcutting', false);
         wait(2453+Random(432));
       end;
       1: PickUpMouse;
       2:
       begin
         MakeCompass('N');
         wait(100+random(133));
         MakeCompass('S');
         wait(50+random(133));
         MakeCompass('N');
         R_FindNormalRandoms;
       end;
      end;
    end;
    
    procedure ResetPosition;
    begin
    end;
    
    procedure OpenDoor;
    var
      CloseObjects: TRSObjectArray;
      DoorPoint: TPoint;
      i: Integer;
    begin
    R_get
    
      for i := 0 To high(CloseObjects) do
      begin
        DoorPoint:= R_TileToMs(CloseObjects[i].Tile);
        MMouse(DoorPoint.x, DoorPoint.y, 0, 0);
      end;
        //writeln(CloseObjects[i].Tile);
    
    
      //
      //ClickMouse2(mouse_Right);
      //if R_WaitUptext('Open', 200) then
        //ClickMouse2(mouse_Left);
    end;
    
    procedure AttackWarrior;
    var
      Warrior: TNPC;
      WarriorPoint: TPoint;
    begin
      if R_FindNpc('Al-Kharid warrior', Warrior) then // Loads the record for Guard.
      begin
        WarriorPoint := R_TileToMs(Warrior.Tile);   //Get guard tile location
        MMouse(WarriorPoint.x, WarriorPoint.y, 0, 0);
        if R_WaitUptext('Al-Kharid warrior', 200) then
        begin
          ClickMouse2(Mouse_Left);
          wait(100+random(50));
          if not(R_IsWalking) and not(R_InFight) then
            OpenDoor;
        end;
        while (Warrior.InCombat) and (R_InFight) do  // waits until guard is dead to move on
        begin
            R_FindNormalRandoms;
            wait(400+random(250));
            AntiBan;
        end;
      end;
    end;
    
    procedure Main;
    begin
      repeat
        R_FindNormalRandoms;
        AttackWarrior;
      until(InvFull);
    end;
    
    begin
      SetupSrl;
      SetupReflection;
      ActivateClient;
      DeclarePlayers;
      LoginPlayer;
      Main;
    end.
    I know its pretty rough but I just started today. Would it be best to save the locations of the doors in Tpoints and just use R_opendoor on the nearest door if I am stuck against a wall? Is there a better way? Is there an example you could provide. Thanks!

    [edit]
    i skyped hope you do not mind
    Last edited by MrMonotone; 06-10-2014 at 05:59 AM.

  5. #55
    Join Date
    Jun 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    When running the test, I get error: Exception in Script: Operator expected at line 281, column 26 in file "C:\Simba\Includes\SRL-OSR\SRL\Reflection\Core\Tiles.simba".
    Any idea what operator I need to add and where?

  6. #56
    Join Date
    Feb 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Is reflection only for rs3? Does it still work? Should I do this for osrs?

  7. #57
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by roguered View Post
    Is reflection only for rs3? Does it still work? Should I do this for osrs?
    Well, its called "Reflection Include for Osr" so ill let you drawn your own conclusions from that.
    Need a little more help? Its posted in the "Old School Runescape Help and Tutorials" forum. sooo.

  8. #58
    Join Date
    Apr 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I was trying to run joulaha's catherby fisher and I got this message:

    Attempting to spawn a client
    Grabbing your best world...
    Succesfully spawned a client, attempting to target...
    Set SMART[4168] as Simba's target
    Reflection Hooks are outdated
    No need to post about it, we are currently working on it. ~ Reflection dev's
    Succesfully freed SMART[4168]
    Successfully executed.

    I have reflection and have used this script many times in the past.

  9. #59
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by dan8808 View Post
    I was trying to run joulaha's catherby fisher and I got this message:

    Attempting to spawn a client
    Grabbing your best world...
    Succesfully spawned a client, attempting to target...
    Set SMART[4168] as Simba's target
    Reflection Hooks are outdated
    No need to post about it, we are currently working on it. ~ Reflection dev's
    Succesfully freed SMART[4168]
    Successfully executed.

    I have reflection and have used this script many times in the past.
    Reflection Hooks are outdated
    No need to post about it, we are currently working on it. ~ Reflection dev's
    No need to post about it, we are currently working on it.
    No need to post about it.
    ...
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  10. #60
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Quote Originally Posted by xPeritus View Post
    When running the test, I get error: Exception in Script: Operator expected at line 281, column 26 in file "C:\Simba\Includes\SRL-OSR\SRL\Reflection\Core\Tiles.simba".
    Any idea what operator I need to add and where?

    make sure it's pascalscript

  11. #61
    Join Date
    Sep 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm having an issue getting the script writer up on my mac, can you help me?

  12. #62
    Join Date
    Nov 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    reflection.jpg

    Exception in Script: Unable to find file 'SRL-OSR/SRL/Reflection/Reflection.simba' used from ''

    getting this code, I have all my files correct I believe

  13. #63
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Quote Originally Posted by Woodcutters View Post
    reflection.jpg

    Exception in Script: Unable to find file 'SRL-OSR/SRL/Reflection/Reflection.simba' used from ''

    getting this code, I have all my files correct I believe
    If you read it properly it also tells you to rename the osr reflection master folder to just reflection.
    Solar from RiD.

  14. #64
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by Woodcutters View Post
    reflection.jpg

    Exception in Script: Unable to find file 'SRL-OSR/SRL/Reflection/Reflection.simba' used from ''

    getting this code, I have all my files correct I believe
    Re-name the file to Reflection
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  15. #65
    Join Date
    Nov 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    okay great thanks I got it up and running

  16. #66
    Join Date
    Jun 2007
    Posts
    310
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Thank you

  17. #67
    Join Date
    Mar 2015
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    thanks, this helped

  18. #68
    Join Date
    Apr 2015
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Seems like i cant run it,any ideas?

    program New;
    //{$DEFINE SMART}
    {$I SRL-OSR/SRL.Simba}
    {$i Reflection/Reflection.Simba}

    begin
    SetupSrl;
    SetupReflection;
    end.

    And i get this error :

    Error: Duplicate declaration "Skill_Attack" at line 220
    Compiling failed.

  19. #69
    Join Date
    Sep 2015
    Posts
    32
    Mentioned
    1 Post(s)
    Quoted
    4 Post(s)

    Default

    so if i use R_TileOnMM(Tile: TPoint): boolean; does it returns true if i am standing on the tile or if it is showing in the minimap?

  20. #70
    Join Date
    Nov 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Hi there, I have been trying to get the tile my player is standing on, but can't seem to do so. All I'm getting is "{X = 2046021779, Y = -989860132}"
    May I know what I'm doing wrong? :O

    Code:
    {$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}
    {$i Reflection/Reflection.simba}
    
    var
      MyPlayer  : TReflectLocalPlayer;
    
    begin
      initAL;
      MyPlayer.Create;
      repeat
        writeln(MyPlayer.GetTile);
        wait(1000);
      until(false);
    end;

  21. #71
    Join Date
    Jun 2016
    Posts
    23
    Mentioned
    3 Post(s)
    Quoted
    15 Post(s)

    Default

    Im also getting Duplicate declaration "Skill_Attack" error. Downloaded the lape include, extracted, tried to compile but failed. Anybody could help?

  22. #72
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Quote Originally Posted by hawkzz View Post
    Im also getting Duplicate declaration "Skill_Attack" error. Downloaded the lape include, extracted, tried to compile but failed. Anybody could help?
    Don't include SRL-OSR together with reflection... They dont go well together
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  23. #73
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default Attack multiple NPCs

    I have tried many different way to try store multiple NPCs

    Code:
    function TReflectNpc.FindFree(Name: string): Boolean;
    var
      Npcs: TReflectNPCArray;  <--- this is an array so multiple NPC are being searchesd
      I: Integer;
    begin
      Npcs.Get('Chicken','Cow'); <--- this is obviously overloaded
      for I := 0 to High(Npcs) do
        if (Npcs[I].IsFree) and (NPCs[I].GetInteractingIndex = -1) then
        begin
          Self := Npcs[I];
          Exit(True);
        end;
    end;
    I have been bored recently and wanting to make more in depth scripts; attacking multiple npcs is a great anti-ban =D

    <------------------>



  24. #74
    Join Date
    Dec 2017
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the guide

Page 3 of 3 FirstFirst 123

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
  •