so im wondering, would it be possible to spawn a creature when a quest is being accepted, only ONCE, allowing the npc the be permanent?
For example, im using my script:
To spawn NPC x on coords x, but I want it to ignore the feature if NPC is present on coords X with Id x.
function AcceptQuest(event, player, creature, quest)
if (quest:GetId() == QUESTID) then
creature:SpawnCreature(CreatureID, X, Y, Z, O, 8, 0) -- CreatureID, x, y, z, o, TEMPSUMMON, despawntimer
RegisterCreatureEvent(entryofnpc, 31, AcceptQuest)
Anyone got any idea? :)