NewNPCBots - zergrush1213/LordPsyanBots2017 GitHub Wiki

Installation:

  • Note 1: You are supposed to install LordPsyanBots using this wiki
  • Note 2: Check and make sure your LordPsyanBots repo is up-to-date.
  • Note 3: If you want to add the patch manually to your TrinityCore source, follow these instructions:
  1. Download patch from Bitbucket
  2. 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)
  3. (Re)run CMake
  4. Compile
  5. Apply SQL files from //sql/TrinityCore-Patches/ folder to your DB
  6. Find file //src/server/worldserver/worldserver.conf.dist and merge it with your worldserver.conf file
  7. 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.

  1. Use '.npcbot lookup ' command to find a npcbot you want to spawn (.npcbot loo (no arguments) to list classes).
  2. Use '.npcbot spawn ' command to spawn a npcbot (creature will be added to DB also).
  3. Use '.npcbot delete' command to despawn selected npcbot (creature will be deleted from DB also).
  4. 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:

  1. Characters database:
  • Tables created: 1 (characters_npcbot).
  • Tables used directly: 3 (characters_npcbot(SEL,INS,DEL,UPD), character_inventory(DEL), item_instance(SEL,UPD)).
  • Table entries used:
  1. characters_npcbot: ANY
  2. character_inventory: ANY
  3. item_instance: ANY

World database:

Tables created: 1 (creature_template_outfits).
Tables used directly: 5 (creature(INS,DEL), creature_equip_template(INS,DEL), creature_template(INS,DEL), creature_template_outfits(SEL,INS,DEL), npc_text(INS,DEL)).
Table entries used:

  1. creature: guid - ANY, id - 70001-71000
  2. creature_equip_template: 70001-71000
  3. creature_template: 70001-71000
  4. creature_template_outfits: ANY (70001-71000)
  5. npc_text: 70001-71000

Memory Usage: Please read carefully

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

⚠️ **GitHub.com Fallback** ⚠️