Jump to content
  • 0

SummonCreature respawning


terrorio

Question

Hello all,

I've been playing around with MangosOne and it seems that creatures summoned by SummonCreature respawn in dungeons(haven't tested world), even with ForcedDespawn().

This might be a general problem, not sure if other people experienced this.

Any clues?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime, bool asActiveObject)

enum TempSummonType
{
   TEMPSUMMON_TIMED_OR_DEAD_DESPAWN       = 1,             // despawns after a specified time OR when the creature disappears
   TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN     = 2,             // despawns after a specified time OR when the creature dies
   TEMPSUMMON_TIMED_DESPAWN               = 3,             // despawns after a specified time
   TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT = 4,             // despawns after a specified time after the creature is out of combat
   TEMPSUMMON_CORPSE_DESPAWN              = 5,             // despawns instantly after death
   TEMPSUMMON_CORPSE_TIMED_DESPAWN        = 6,             // despawns after a specified time after death
   TEMPSUMMON_DEAD_DESPAWN                = 7,             // despawns when the creature disappears
   TEMPSUMMON_MANUAL_DESPAWN              = 8              // despawns when UnSummon() is called
};

might be able to help you :)

Link to comment
Share on other sites

this depends on the type of how they are summoned.

Usually a good choice is TEMPSUMMON_DEAD_DESPAWN - then they won't respawn.

But for other types ofc they can respawn.

Also note that ForceDespawn indeed despawns them. Despawning has basicly no relation to respawning.

You seem to confuse this with UnSummon (which should only rarely be used, as this is normally not needed)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use