03-08-2008, 05:04 PM
I had the same problem with my quests man. It really is strange. I tried every variant I could think of to make sure the code was executed only when the npc isn't attackable. I ended up making a function that checks if you're standing next to a friendly npc with a quest and say the the words "hi", "hey", and "hello" to start the quest process.