Glad to be of help!
I wouldn't want my NPCs to walk into walls before they jump.
In Game Maker I used to check if there was an object located at the position ahead of the NPC about 30px away.
So I would check the NPC velocity, if it was negative, I would check NPC.X - 30, if there was a object at the position.
I can't think of any solution for this in C2 at the moment, too tired. But my workaround for now has always been to use a specific action collision box, like a "NPC touch this - jump collision object"