diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-06-12 14:50:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-12 14:50:58 +0200 |
| commit | f309cf79bbb032a0686b7d04feb8fec18e600a84 (patch) | |
| tree | 9ea7db08f0698ec9af213941307c83246c7b68a3 /docs/add-a-module.md | |
| parent | b2610fad21012673061f5af786b022c96625cc26 (diff) | |
| download | wiki-f309cf79bbb032a0686b7d04feb8fec18e600a84.tar.gz wiki-f309cf79bbb032a0686b7d04feb8fec18e600a84.tar.bz2 wiki-f309cf79bbb032a0686b7d04feb8fec18e600a84.zip | |
chore: file naming standard (#517)
* A
* file naming standard
Fixes #491
* Revert "A"
This reverts commit 1c225fed753554098069597a2bbcbe08213b76a1.
* rename
* Revert "rename"
This reverts commit 65fd916faf8530ce258cc2b475c93971468680fe.
* Revert "file naming standard"
This reverts commit 6ca5a703a9e9d59f9c773029e4c04bfd012b6abb.
* bye
* Hi
* Create the-staging-branch.md
* 1
* Delete how-to-create-a-PR.md
* Create how-to-create-a-pr.md
* werafgt
* Update the-modular-structure.md
* wef
Diffstat (limited to 'docs/add-a-module.md')
| -rw-r--r-- | docs/add-a-module.md | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/docs/add-a-module.md b/docs/add-a-module.md new file mode 100644 index 0000000..14a687d --- /dev/null +++ b/docs/add-a-module.md @@ -0,0 +1,68 @@ +--- +redirect_from: "/Add-a-module" +--- + +# Add a module + +## **How to add a module** + + +1. Get the module from this website [https://www.azerothcore.org/catalogue/](https://www.azerothcore.org/catalogue/) +2. Clone it using git (recommended) or just download it +3. I'll use this for Exmple: [https://www.azerothcore.org/catalogue/details.html?id=177019524](https://www.azerothcore.org/catalogue/details.html?id=177019524). +4. Once you downloaded it or cloned: ( Extract it, you will have than Folder looks like this : + + + +5. Copy this folder you will have to paste it in next steps: + + +6. Now go in your AzerothCore folder (for example C:\azerothcore-wotlk-master) + +7. When you are there, you will see there folder named modules like on this image: + + +8. Open that folder modules -> It will look like this : + + +9. Paste there your downloaded module ( That we use in step 4., in my case we use : NPC Services Module +And it will look like this when you paste it there : + + +10. Than, open Cmake -> Press Configure + + +11. Than press Generate : + + +12. And you are done. P.S You have also to check in the module folder (SQL folder) if there is any .sql file required to be executed in your database ( Like on this image ) : + + + then World : + + +- this module has an SQL file which needs to be executed in your World Database : + + +- Let's do it : +13. Open it with any text editor and copy all content from the file, or run it directly : ( I'll use Editor ) +This is what i have there : + +``` +DELETE FROM `creature_template` WHERE `entry` = 55003; +Set @NpcName = "Visual Weapon NPC", + @NpcSubname = "AzerothCore", + @NpcEntry = 55003, + @NpcDisplayID = 31833, + @NpcLevel = 80; + +INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES +(@NpcEntry, @NpcDisplayID, @NpcName, @NpcSubname, @NpcLevel, @NpcLevel, 35, 1, 1, 1.14286, 1, 1, 0, 2000, 2000, 2, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 50, 50, 1, 0, 0, 1, 0, 0, 'npc_visualweapon', 12340); +``` + +14. So, We have to run (paste) this query in the Database, Let's do it. +Open your DB Program ( Example : Navicat, HeidiSQL ) and run our code there, in this way : + + +15. We are done now. Go in game and spawn this NPC with command .npc add 55003 +@NpcEntry = 55003 <---- This is our NPC ENTRY |
