Moved create new NPC command case (0) from NPCSpawnDB into method CreateNewNPCCommand

This commit is contained in:
Arthur Ice
2014-09-04 10:08:02 -07:00
parent 37d3daaf9a
commit 970f7e01a9
2 changed files with 85 additions and 75 deletions
+1
View File
@@ -372,6 +372,7 @@ public:
*/
const NPCType* GetNPCType(uint32 id);
uint32 NPCSpawnDB(uint8 command, const char* zone, uint32 zone_version, Client *c, NPC* spawn = 0, uint32 extra = 0); // 0 = Create 1 = Add; 2 = Update; 3 = Remove; 4 = Delete
uint32 CreateNewNPCCommand(uint8 command, const char* zone, uint32 zone_version, Client *c, NPC* spawn, uint32 extra);
bool SetSpecialAttkFlag(uint8 id, const char* flag);
bool GetPetEntry(const char *pet_type, PetRecord *into);
bool GetPoweredPetEntry(const char *pet_type, int16 petpower, PetRecord *into);