Page 3 of 4 FirstFirst 1234 LastLast
Results 51 to 75 of 90

Thread: [OSR] MiniReflection include

  1. #51
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    You should update the attachment on OP to an updated include, with smart 8.3 your include will not compile and therefore it can't be updated via the autoupdater.

  2. #52
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    You should update the attachment on OP to an updated include, with smart 8.3 your include will not compile and therefore it can't be updated via the autoupdater.
    oh good one, didnt think of that

  3. #53
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    @hoodz The hooks need updating I think.

  4. #54
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    @hoodz The hooks need updating I think.
    oh thanks, going to take a look at it asap
    edit: going to test them any minute now. i hope every hook is correct!

    should be working. you dont need to download the new version. autoupdater should download the new version

  5. #55
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    oh thanks, going to take a look at it asap
    edit: going to test them any minute now. i hope every hook is correct!

    should be working. you dont need to download the new version. autoupdater should download the new version
    Thanks buddy I appreciate it.

  6. #56
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    @hoodz Think they updated the hooks again. Not sure though. Getting math errors.

  7. #57
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    @hoodz Think they updated the hooks again. Not sure though. Getting math errors.
    Yes gwd just released. Im trying to fix the hooks tomorrow.

  8. #58
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    Yes gwd just released. Im trying to fix the hooks tomorrow.
    No problem. Take your time.

  9. #59
    Join Date
    Dec 2007
    Posts
    174
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

  10. #60
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by westkevin12 View Post
    how do we get our tile numbers to make a walk path?
    this returns the Tpoint (x, y) of your coordinates.
    Simba Code:
    Writeln('Point('+ IntToStr(R_GetTileGlobal.x)+', ' + IntToStr(R_GetTileGlobal.y) + ')');

  11. #61
    Join Date
    Dec 2007
    Posts
    174
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    this returns the Tpoint (x, y) of your coordinates.
    Simba Code:
    Writeln('Point('+ IntToStr(R_GetTileGlobal.x)+', ' + IntToStr(R_GetTileGlobal.y) + ')');
    thanks for the code!

  12. #62
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Does this work currently?

  13. #63
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Nebula View Post
    Does this work currently?
    Yes

  14. #64
    Join Date
    Aug 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I seem to get this error:
    Exception in Script: Unknown declaration "clWhite" at line 58, column 23 in file "C:\Users\MarcusJR\Simba\Includes\SRL-OSR\SRL\core\globals.simba"

  15. #65
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by guy3548 View Post
    I seem to get this error:
    Exception in Script: Unknown declaration "clWhite" at line 58, column 23 in file "C:\Users\MarcusJR\Simba\Includes\SRL-OSR\SRL\core\globals.simba"
    follow me install guide.


    OT: added a new function called R_NearTile

    example:
    Simba Code:
    If R_NearTile(Point(3000, 2000), 5) then
    writeln('we are near the point');

    R_NearTile(Tile: TPoint; Distance: integer): Boolean

    distance = the amount of tiles you want to be max away from the TPoint.

  16. #66
    Join Date
    Nov 2013
    Location
    PDX Oregon
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Note: You need the Al_functions by flight! (INCLUDE THEM BEFORE THE MINIREFLECTION INCLUDE!)
    I have tried searching for this in the forums and couldn't find it. Providing a link to this download or thread would have saved me like hours of searching.

    The Al function include buy flight can be checked for and downloaded from this thread below
    http://villavu.com/forum/showthread....t=Al_functions

    Following Hoodz install guide for osr should have the include as well.
    Last edited by Smoky; 12-06-2013 at 08:33 PM.

  17. #67
    Join Date
    Dec 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    where do I download smart version8.2 from??

  18. #68
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Smoky View Post
    I have tried searching for this in the forums and couldn't find it. Providing a link to this download or thread would have saved me like hours of searching.

    The Al function include buy flight can be checked for and downloaded from this thread below
    http://villavu.com/forum/showthread....t=Al_functions
    Quote Originally Posted by rap View Post
    where do I download smart version8.2 from??
    both follow me install guide for osr to get everything working

  19. #69
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    New Blind Walk change I recommend
    http://paste.villavu.com/show/5615/

    It handles any sort of teleportation in case a random and/or other event teleports you mid walking.

  20. #70
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    New Blind Walk change I recommend
    http://paste.villavu.com/show/5615/

    It handles any sort of teleportation in case a random and/or other event teleports you mid walking.
    thanks, but i have one question.

    what happens if there is a flag on the minimap and your character just stand still, this happens when a tile is unreachable for example. does it exit the blindwalk procedure?

  21. #71
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    thanks, but i have one question.

    what happens if there is a flag on the minimap and your character just stand still, this happens when a tile is unreachable for example. does it exit the blindwalk procedure?
    Well walking through reflection doesn't rely on the flag for the tile detection as far as I know, so it wouldn't care? It already has a set number of 20 maximum tries as is, my change is just to remove all those spare attempts that are guaranteed to fail by teleportation (random or other possible trigger).

  22. #72
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    Thanks for the new update, R_NearTile just undid 20 minutes of my scripting but made it look a lot nicer now :P
    Old Code:
    Code:
    if (PosX - 6 <= 3221) and (PosX + 6 >= 3221) and (PosY - 6 <= 3219) and (PosY + 6 >= 3219) then
    New Code:
    Code:
    if R_NearTile((3221, 3219), 6) then
    EDIT: Nevermind, seems to error all the time saying it's expecting closing parenthesis with this exact code:
    Code:
    if R_NearTile((3221, 3219), 6) then
    Result := True;
    The same result if I do this.
    Code:
    Result := R_NearTile((3221, 3219), 6);

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

    Default

    @Hoodz The Hooks are outdated
    Edit: Nvm, Not Anymore
    Last edited by Kyle; 12-17-2013 at 07:08 PM.
    “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

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

    Default

    Quote Originally Posted by Millenium View Post
    Thanks for the new update, R_NearTile just undid 20 minutes of my scripting but made it look a lot nicer now :P
    Old Code:
    Code:
    if (PosX - 6 <= 3221) and (PosX + 6 >= 3221) and (PosY - 6 <= 3219) and (PosY + 6 >= 3219) then
    New Code:
    Code:
    if R_NearTile(Point(3221, 3219), 6) then
    EDIT: Nevermind, seems to error all the time saying it's expecting closing parenthesis with this exact code:
    Code:
    if R_NearTile(Point(3221, 3219), 6) then
    Result := True;
    The same result if I do this.
    Code:
    Result := R_NearTile(Point(3221, 3219), 6);
    It's because you have to use a Tpoint. I fixed them in the quote for you.
    “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

  25. #75
    Join Date
    Aug 2012
    Location
    127.0.0.1
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    26 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    It's because you have to use a Tpoint. I fixed them in the quote for you.

    Hahahahahahahah wow.... can't believe I missed that, thanks.

Page 3 of 4 FirstFirst 1234 LastLast

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
  •