Tonekray
2014-05-17 18:20:39
Hey guys,
I just recently got back into the whole runescape fad for the summer, so I'm trying my hand at scripting again. I've done a few small things so far, but for the life of me, I cannot seem to detect any trees using reflection.
Painting R_GetAllObjects doesn't seem to pick up any trees.
I took at look at some reflection yew cutter, and it was making use of R_GetObjectAt with tiles, so I tried that as well, but I'm just not getting anything. I can pick up ground tiles, but it's like the trees don't exist.
Does anyone have any ideas? This is the code I'm using to find things.
I just recently got back into the whole runescape fad for the summer, so I'm trying my hand at scripting again. I've done a few small things so far, but for the life of me, I cannot seem to detect any trees using reflection.
Painting R_GetAllObjects doesn't seem to pick up any trees.
I took at look at some reflection yew cutter, and it was making use of R_GetObjectAt with tiles, so I tried that as well, but I'm just not getting anything. I can pick up ground tiles, but it's like the trees don't exist.
Does anyone have any ideas? This is the code I'm using to find things.
procedure findTreeID();
var
i: integer;
trees: TRSObjectArray;
treePos: TPoint;
begin
trees := R_GetObjectsDistance( 0, 10 );
writeln( length( trees ) );
for i := 0 to high( trees ) do begin
treePos := R_TileToMS( trees[ i ].Tile );
if ( treePos.x > 0 ) then begin
SMART_DrawDot( false, treePos, clYellow );
SMART_DrawText( treePos.x, treePos.y, 'UpChars', inttostr( trees[ i ].ID ), clGreen );
end;
end;
end;