Advertisement
Guest User

bot

a guest
May 22nd, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. Installation:
  2. Note 1: You are supposed to install TrinityCore using this wiki
  3. Note 2: Check your TrinityCore revision before install (you can see last supported rev on the front page of this wiki)
  4. Note 3: If you don't know how to apply patches to source read about git commands here
  5. 1) Download patch (master branch)
  6. 2) Put patch file into your source root folder (folder you cloned repo into) and apply patch to your source using Git
  7. 3) (Re)run CMake
  8. 4) Compile
  9. 5) Apply SQL files from /<source>/sql/Bots/ folder to your DB
  10. 6) Find file /<source>/src/server/worldserver/worldserver.conf.dist and merge it with your worldserver.conf file
  11. 7) That's it
  12. Spawning bots:
  13. After you installed npcbots, you must add npcbots to world
  14. Bots are spawned through commands used while in world (just as if spawning a npc)
  15. Note 1: bots' entries are located in range 70001-71000
  16. Note 2: each bot can be spawned only once
  17. Warning! using '.npc add' command with npcbot entries WILL crash your server!
  18. 1) Use '.npcbot lookup <class>' command to find a npcbot you want to spawn (.npcbot loo (no arguments) to list classes).
  19. 2) Use '.npcbot spawn <entry>' command to spawn a npcbot (creature will be added to DB also).
  20. 3) Use '.npcbot delete' command to despawn selected npcbot (creature will be deleted from DB also).
  21. 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).
  22. Performance
  23. Database Usage:
  24. 1) Characters database:
  25. Tables created: 1 (charactes_npcbot).
  26. Tables used directly: 3 (charactes_npcbot(SEL,INS,DEL,UPD), character_inventory(DEL), item_instance(SEL,UPD)).
  27. Table entries used:
  28. 1. charactes_npcbot: ANY
  29. 2. character_inventory: ANY
  30. 3. item_instance: ANY
  31. 2) World database:
  32. Tables created: 1 (creature_template_outfits).
  33. 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)).
  34. Table entries used:
  35. 1. creature: guid - ANY, id - 70001-71000
  36. 2. creature_equip_template: 70001-71000
  37. 3. creature_template: 70001-71000
  38. 4. creature_template_outfits: ANY (70001-71000)
  39. 5. npc_text: 70001-71000
  40. Memory Usage:
  41. Please read carefully
  42. Bots are counted as active objects (keep grids loaded like players).
  43. Bots are being added to world at server loading (along with grids).
  44. If 2 or more bots are located in same grid, only one grid is loaded.
  45. If bot leaves grid where he was spawned (following player), that grid can be unloaded.
  46. Grid size is 533.333 (yd).
  47. Each grid loaded uses 30-50 Mb of memory.
  48. Each bot loaded (without grid) uses less than 0.2 Mb of memory.
  49. Maximum bots to spawn: 245 (creature_template bot entries amount).
  50. This is only a quick info, playing manual / bots' behavior documentation coming soon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement