Ok, I tried the above with no luck, I just want an npc to summon another npc once they pop. Here is what I have so far , which doesn't work. any help would be great.
elsif($itemcount {24075} && $itemcount {22056} == 1) {
quest::say("Ha.");
quest::spawn2(12032,0,0,1719.9,-1468.9,-96,10

;
quest::castspell(1771,$12032);
quest::depop();
This is just a segment of the whole quest, btw. Just need this part working.
Or worst case, anyway the spawned npc can upon spawn goto the quest npc.