Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Hello. I have a noob question. Started playing around with AzerothCore, trying to learn how to add t

[DiscordArchive] Hello. I have a noob question. Started playing around with AzerothCore, trying to learn how to add t

[DiscordArchive] Hello. I have a noob question. Started playing around with AzerothCore, trying to learn how to add t

rektbyfaith
Administrator
0
03-22-2025, 01:20 PM
#1
Archived author: ravador • Posted: 2025-03-22T13:20:57.007000+00:00
Original source

Hello. I have a noob question. Started playing around with AzerothCore, trying to learn how to add things. I was trying to add a new hostile NPC. I edited tables creature_template, creature_template_addon, creature_template_model, creature_template_movement, creature_onkill_reputation, creature_equip_template, creature_loot_template, pickpocketing_loot_template and smart_scripts to define the creature and then I added a new instance of it in creature table. Everything seems to be okay, except the creature is not attacking. The name is red, since it is in a hostile faction, however, it does not attack and when I attack it, it doesn't attack back and simply regens its health. No, I am not in GM mode, hostile NPCs already present function correctly. I believe that I probably need to edit some DBC file to link the creatue to an AI module? But I don't know which one or what to do. In creature_template, I set AIName to SmartAI, which if I understand it correctly should then link to the smart_scripts table. This does not work for me, as previously explained. I also tried to use different AIName, AggressorAI, but it also does not work. What am I missing?
rektbyfaith
03-22-2025, 01:20 PM #1

Archived author: ravador • Posted: 2025-03-22T13:20:57.007000+00:00
Original source

Hello. I have a noob question. Started playing around with AzerothCore, trying to learn how to add things. I was trying to add a new hostile NPC. I edited tables creature_template, creature_template_addon, creature_template_model, creature_template_movement, creature_onkill_reputation, creature_equip_template, creature_loot_template, pickpocketing_loot_template and smart_scripts to define the creature and then I added a new instance of it in creature table. Everything seems to be okay, except the creature is not attacking. The name is red, since it is in a hostile faction, however, it does not attack and when I attack it, it doesn't attack back and simply regens its health. No, I am not in GM mode, hostile NPCs already present function correctly. I believe that I probably need to edit some DBC file to link the creatue to an AI module? But I don't know which one or what to do. In creature_template, I set AIName to SmartAI, which if I understand it correctly should then link to the smart_scripts table. This does not work for me, as previously explained. I also tried to use different AIName, AggressorAI, but it also does not work. What am I missing?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)