Hello everyone.
I would like to create my own Mob-NPC that cast some spells and says something when enter combat etc. in Trinity2 core (mangos branch).
For some days I'm looking for an examples, guides etc. and found practically nothing.
As far I see, simple mobs like Arcane Wraith (Entry ID: 15273) casts their spells, but there are not any scripts with them, only bosses are scripted in C++. I've noted that this kind mobs, simple units are "scripted in database" I say. Arcane Wraith's arcane bolt is added in creature_ai_scripts table in DB.
In my opinion there are 2 ways to create my own scripted mob-npc:
- 1st way: By database like most simple npcs are.
- 2nd way: By C++ script.
Ok, and here is the problem:
- I've found some complicated boss script in C++ that is too complicated for me, beginner.
- DataBase method is too complicated for me aswell since I can't figure out it in 100%
And here is what I ask You for:
- Simple mob-npc (unit) script in C++ as an example that I could modify for my own requiment.
- Link or what ever to some nice guide about scripting npcs by DataBase method.
I believe that C++ method would be easier for me since "all is in one" - making npc say something, casting spell, timers etc. and it is easier to figure out, at least for me I guess.
Thanks in advice, +Rep awaits for helpful post![]()