SRL Archive - Reflection Help

General Include Question


DeSnob

2010-09-12 13:59:32

I was wondering why my script couldn't find the "Advanced pickpocketing trainer" yesterday so I decided to debug him in his current tile.. Here are the results:
NPC: null
Index: 14853
ID: -1
Actions: []
Tile: (4626, 5791)
Animation: -1
Height: 837
Fighting: False
IsMoving: False
HPRatio: 0
Level: 0
Orientation: 270
Interacting: 32776

NPCs aren't working?? :(

Coh3n

2010-09-12 22:39:11

Moved to reflection help.

And last I heard NPCs weren't working, but also some of the hooks are still outdated I believe (from this weeks update).

pyroryan

2010-09-13 13:35:42

Updated the list to reflect my latest updates.

If you were wondering, this is the updated version of the not updated hook that probably caused your issues.

hook_npcdef_GetID = 'a';

DeSnob

2010-09-13 17:34:20

It did fix my issue, but not completely. I tried ValidNPC() and it returns as a non-valid NPC when I DO use the correct ID.
Details! ID: -1 on -1,-1
*Note, that was with
 Char := GetNPCsAt(11297);