From 410fa4059f78f31ca4b21ce2ad464c984e1896ee Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 30 Jul 2015 18:12:42 +0300 Subject: [PATCH] Add documentation for SpawnCreature types. Fix https://github.com/ElunaLuaEngine/Eluna/issues/114 --- WorldObjectMethods.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index 06de155..9621a83 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -652,6 +652,20 @@ namespace LuaWorldObject /** * Spawns the creature at specified location. * + * 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 + * TEMPSUMMON_TIMED_OOC_OR_CORPSE_DESPAWN = 9, // despawns after a specified time (OOC) OR when the creature dies + * TEMPSUMMON_TIMED_OOC_OR_DEAD_DESPAWN = 10 // despawns after a specified time (OOC) OR when the creature disappears + * }; + * * @param uint32 entry : [Creature]'s entry ID * @param float x * @param float y