PHP Code:
TRIGGERACTION npcx, npcy, foundPOSITION,;
Change this to something like this.
PHP Code:
triggeraction 30, 30, foundPOSITION,;
Obviously, edit the position (30, 30) to where the door is. [The x/y position of the door]
Then, inside the door add the other script. You'll see how it works.