SRL Archive - Reflection Help

Floor level


CX gamer

2010-09-04 18:24:38

Hi,

I was wondering if Reflection can see the on which floor level the player is. I mean like dungeon, ground floor, 1st floor and second floor.
Can I add someone to msn or so, because I'm going to have a lot of small questions and I don't want to make a topic every time. :P

Thank you in advance,

CX

mormonman

2010-09-05 03:51:50

Dungeons usually have their own tile values…

{*******************************************************************************
function GetPlaneIndex : Integer;
By: lordsaturn
Description: Returns loaded plane index
*******************************************************************************}
function GetPlaneIndex : Integer;
begin
Result := SmartGetFieldInt(0,hook_static_LoadedPlane);
end;

CX gamer

2010-09-05 09:36:38

Oh right. But that can't detect wether someone is for example on the upper floor of varrock east bank or at the ground floor.

Cstrike

2010-09-05 11:25:09

From: CX gamer
Oh right. But that can't detect wether someone is for example on the upper floor of varrock east bank or at the ground floor.


I just tried it at Draynor and it seems that when you're on the ground floor it returns as 0, but on the floor above the ground floor = 1…

Does it do that at varrock east bank or is it different?

CX gamer

2010-09-05 13:31:54

Ooh right I'm sorry. I was being an idiot. XD

Cstrike

2010-09-05 14:38:23

From: CX gamer
Ooh right I'm sorry. I was being an idiot. XD


No worries :)
I'm glad you made this thread… I DEARLY needed some reflection code to figure this out for the worldwalker I'm making… so thank you! :D

mormonman

2010-09-05 15:50:49

From: cstrike
No worries :)
I'm glad you made this thread… I DEARLY needed some reflection code to figure this out for the worldwalker I'm making… so thank you! :D


It's from the include :duh:

Cstrike

2010-09-05 15:55:19

From: mormonman
It's from the include :duh:


I know, I just didn't actually know there was one– since (knowing me) I would have glided over "GetPlaneIndex" thinking something completely different.

:)