I have tried the script as you posted but it does not work. I have modified it to work with [Kobold Camp Cleanup] (Non-auto accepted it aswell but no effect).
I placed the NPC on my custom map but when accepting the quest the mob does not spawn.
NPC is 197 (Marshal McBride) who gives the quest 7 (Kobold Camp Cleanup). NPC is 6 (Kobold Vermin).
function AcceptQuest(event, player, creature, quest)
if (quest:GetId() == 7) then
creature:SpawnCreature(6, -1017.955811, -3049.391357, 12.82-3728, 4.598485, 8, 0) -- NPCID, x, y, z, o, TEMPSUMMON, despawntimer
RegisterCreatureEvent(197, 31, AcceptQuest)