SRL Archive - Reflection Discussion

Reflection outdated or am I doing something wrong?


Runescapian321

2009-04-23 04:22:06

Well there hasn't been an update requiring a reflection update for 1-2 weeks (only one in-game update, which I know didn't affect RSBot so I'm assuming it didn't affect Reflection either), so I find it hard to believe it's outdated at the moment.

The problem…

This code:

writeln('Distance from: '+inttostr(DistanceFrom(point(3188, 3435))));
writeln('X: '+IntToStr(GetMyPos.x)+' Y: '+IntToStr(GetMyPos.y));

Returns this:

Distance from: 45114
X: 33554431 Y: 33554430


What's up with those tiles? RSBot and Sumilion's pathmaker say it should be 3188, 3435 >_<


And I've updated to the latest reflection (revision 222).

Heysus

2009-04-23 05:09:51

Are your hooks updated?

Add SetupReflection; to your script.

Method

2009-04-23 05:12:13

I just had a look at the SVN and apparently the hooks haven't been updated to build 543.

For now, use the dev SVN to update. I'll work on setting up a respository on Ubuntu for myself so I can make commits directly to both the public and dev SVNs in the future.

Dev SVN: http://scardevreflection.googlecode.com/svn/trunk/

Runescapian321

2009-04-23 05:13:26

@Heysus

Whatdya know, it worked :D Never knew I had to do that, might have to do with the fact I've never read a reflection tutorial…

Thanks :)

Nava2

2009-04-23 07:21:24

From: Runescapian
@Heysus

Whatdya know, it worked :D Never knew I had to do that, might have to do with the fact I've never read a reflection tutorial…

Thanks :)


All setup reflection does is check if your hooks are out of date. If they are it will download the new ones.

ian.

2009-04-23 07:24:32

I think SetupReflection; should be added to SetupSRL; :) And someone will probably say that if they don't have Reflection.scar then it would mess up the script. No. Just add an if then statement :)

Edit: Ha ha, quick edit. But anyway, I just recalled Wizzup? or someone saying that Reflection won't be added to SRL by default because it's a different scripting type from color, or something along those lines. But it would still be a simple easy thing to add that would cause people to not post these kinds of things as much.