• Log in or sign up for an account here: https://www.sythe.org/login

Dumping NPCs

  • Thread starter Thread starter Anime
  • Start date Start date
Status
Not open for further replies.
A

Anime

Guest
Code:
procedure DumpNPCs;
var
  NPCs: array of TNPC;
  i : Integer;
begin
  NPCs := GetNPCs;
  for i := 0 to GetArrayLength(NPCs)-1 do
  begin
    Writeln('Name: '+NPCs[i].name);
    Writeln('ID: '+IntToStr(NPCs[i].NPCType));
    Writeln('------------------');
  end;
end;

Causing error at line:99 in Characters.scar
Code:
if TileOnMS(Result[i].Tile, Result[i].Height / 2) then

Any ideas why?

EDIT: Solved. It was a bug in the latest reflection.
The height in GetNPCs was just being divided by 2. Instead of being Multiplied by 2 then divided by 3.
 
Hehe, I could have told you how to fix... but I guess updating makes it a bit easier. thanks for this. try making it save into a .ini file :D
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top