Put patch file into your source root folder (folder you cloned TrinityCore into) and apply patch to your source using Git (I recommend using the command patch -p1< patchname.patch but feel free to use git apply patchname.patch)
(Re)run CMake
Compile
Apply SQL files from //sql/TrinityCore-Patches/ folder to your DB
Find file //src/server/worldserver/worldserver.conf.dist and merge it with your worldserver.conf file
That's it
Spawning bots:
After you installed npcbots, you must add npcbots to world
Bots are spawned through commands used while in world (just as if spawning a npc)
Note 1: bots' entries are located in range 70001-71000
Note 2: each bot can be spawned only once
Using '.npc add' command with npcbot entries WILL work fine, but you still need to set faction.
Use '.npcbot lookup ' command to find a npcbot you want to spawn (.npcbot loo (no arguments) to list classes).
Use '.npcbot spawn ' command to spawn a npcbot (creature will be added to DB also).
Use '.npcbot delete' command to despawn selected npcbot (creature will be deleted from DB also).
Use '.npcbot set faction' command to set npcbot's faction (saved in DB). Npcbot's faction affects its behavior while free. Use '.npcbot set faction a', '.npcbot set faction h' or '.npcbot set faction m' to set faction to alliance (1802), horde (1801) or monsters (14, default).
Database Usage:
Characters database:
Tables created: 1 (characters_npcbot).
Tables used directly: 3 (characters_npcbot(SEL,INS,DEL,UPD), character_inventory(DEL), item_instance(SEL,UPD)).
Bots are counted as active objects (keep grids loaded like players).
Bots are being added to world at server loading (along with grids).
If 2 or more bots are located in same grid, only one grid is loaded.
If bot leaves grid where he was spawned (following player), that grid can be unloaded.
Grid size is 533.333 (yd).
Each grid loaded uses 30-50 Mb of memory.
Each bot loaded (without grid) uses less than 0.2 Mb of memory.
Maximum bots to spawn: 245 (creature_template bot entries amount).
This is only a quick info, playing manual / bots' behavior documentation coming soon