Player Bots updated

with the help of this community update player bots achieved anything like cooperating

/emoticons/default_biggrin.png

1.patch

Thanks Faiver!

Nice of you to update and release it for everyone… The title is a bit misleading though… This is NPCbots (minions) not playerbots. (not trying to be a douche, just saying… there is a definate difference). However; Thank you, I"m sure there are plenty of people that will really enjoy this.

Cant compile, it errors

errors? place them to help.

7>…TrinitytrtrsrcservergameAINpcBotsbot_paladin_ai.cpp(740): error C2039: ‘Category’ : is not a member of ‘SpellInfo’
7> D:/TRINITY CORE/Trinity/tr/tr/src/server/game/SpellsSpellInfo.h(290) : see declaration of ‘SpellInfo’
7>…TrinitytrtrsrcservergameAINpcBotsbot_paladin_ai.cpp(757): error C2039: ‘Category’ : is not a member of ‘SpellInfo’
7> D:/TRINITY CORE/Trinity/tr/tr/src/server/game/SpellsSpellInfo.h(290) : see declaration of ‘SpellInfo’

Use that little “Search Button” This was answered several times… here is just one of them → http://www.trinitycore.org/f/topic/224-player-bots/page-12

Really sorry for not using the search button, fixed Category to GetCategory, thanks guys /emoticons/default_smile.png

[COLOR=rgb(40,40,40)]Category → GetCategory()

[COLOR=rgb(40,40,40)]updated thx.

Some auth tables was altered a bit recently, here is the correct auth_rbac.sql:

SET @NPCB_PERM := ‘1000’;

DELETE FROM rbac_permissions WHERE id BETWEEN @NPCB_PERM AND @NPCB_PERM+9;
INSERT INTO rbac_permissions (id,name) VALUES
(@NPCB_PERM+0,‘npcbot’),
(@NPCB_PERM+1,‘npcbot add’),
(@NPCB_PERM+2,‘npcbot remove’),
(@NPCB_PERM+3,‘npcbot reset’),
(@NPCB_PERM+4,‘npcbot command’),
(@NPCB_PERM+5,‘npcbot distance’),
(@NPCB_PERM+6,‘npcbot info’),
(@NPCB_PERM+7,‘npcbot helper’),
(@NPCB_PERM+8,‘npcbot revive’),
(@NPCB_PERM+9,‘maintank (mt)’);

DELETE FROM rbac_default_permissions WHERE permissionId BETWEEN @NPCB_PERM AND @NPCB_PERM+9;
INSERT INTO rbac_default_permissions (secId,permissionId) VALUES
(‘1’,@NPCB_PERM+0),
(‘1’,@NPCB_PERM+1),
(‘1’,@NPCB_PERM+2),
(‘1’,@NPCB_PERM+3),
(‘1’,@NPCB_PERM+4),
(‘1’,@NPCB_PERM+5),
(‘1’,@NPCB_PERM+6),
(‘1’,@NPCB_PERM+7),
(‘2’,@NPCB_PERM+8),
(‘1’,@NPCB_PERM+9);

rbac_role_permissions (roleId) > rbac_default_permissions (secId)

  • Levitan.

Can’t use command as player… how to fix it?

Maybe the post directly before yours?

still not working

/* SQL Error (1451): Cannot delete or update a parent row: a foreign key constraint fails (`auth`.`rbac_default_permissions`, CONSTRAINT `fk__rbac_default_permissions__rbac_permissions` FOREIGN KEY (`permissionId`) REFERENCES `rbac_permissions` (`id`)) */
/* Affected rows: 0  Found rows: 0  Warnings: 0  Duration for 1 of 5 queries: 0.109 sec. */