Replaced npcspecialatk with special_attacks, needs more testing also gotta export new api for it as I can't remove the legacy one. Too many quests rely on the legacy functionality.

This commit is contained in:
KimLS
2013-07-06 03:45:06 -07:00
parent 0c675c33e2
commit 63d678ce29
32 changed files with 355 additions and 663 deletions
+4 -4
View File
@@ -1035,7 +1035,7 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) {
"npc_types.mindmg,"
"npc_types.maxdmg,"
"npc_types.attack_count,"
"npc_types.npcspecialattks,"
"npc_types.special_abilities,"
"npc_types.npc_spells_id,"
"npc_types.d_meele_texture1,"
"npc_types.d_meele_texture2,"
@@ -1130,7 +1130,7 @@ const NPCType* ZoneDatabase::GetNPCType (uint32 id) {
tmpNPCType->min_dmg = atoi(row[r++]);
tmpNPCType->max_dmg = atoi(row[r++]);
tmpNPCType->attack_count = atoi(row[r++]);
strcpy(tmpNPCType->npc_attacks,row[r++]);
tmpNPCType->special_abilities = row[r++];
tmpNPCType->npc_spells_id = atoi(row[r++]);
tmpNPCType->d_meele_texture1 = atoi(row[r++]);
tmpNPCType->d_meele_texture2 = atoi(row[r++]);
@@ -1345,7 +1345,7 @@ const NPCType* ZoneDatabase::GetMercType(uint32 id, uint16 raceid, uint32 client
"vwMercNpcTypes.mindmg,"
"vwMercNpcTypes.maxdmg,"
"vwMercNpcTypes.attack_count,"
"vwMercNpcTypes.npcspecialattks,"
"vwMercNpcTypes.special_abilities,"
// "vwMercNpcTypes.npc_spells_id,"
"vwMercNpcTypes.d_meele_texture1,"
"vwMercNpcTypes.d_meele_texture2,"
@@ -1440,7 +1440,7 @@ const NPCType* ZoneDatabase::GetMercType(uint32 id, uint16 raceid, uint32 client
tmpNPCType->min_dmg = atoi(row[r++]);
tmpNPCType->max_dmg = atoi(row[r++]);
tmpNPCType->attack_count = atoi(row[r++]);
strcpy(tmpNPCType->npc_attacks,row[r++]);
tmpNPCType->special_abilities = row[r++];
//tmpNPCType->npc_spells_id = atoi(row[r++]);
tmpNPCType->d_meele_texture1 = atoi(row[r++]);
tmpNPCType->d_meele_texture2 = atoi(row[r++]);