Enchanter mez code
SO looking through some of the code I found an agro check and thought I'd start there.
But my C++ knowledge hasn't quite gotten to pointers. Ive only taken early classes at this point and am hoping somone can help. Code:
//Criimson: Testing AI mez code Here is the actual code I am calling: Code:
int EntityList::GetHatedCount(Mob *attacker, Mob *exclude) { I'm guessing I'm missing something simple Criimson |
If you add in the mez spells to the enchanter bot spell list in the database with the proper spell type (i think 256?) they will mez adds.
|
Thank you
I'll try that. I did notice that the code seemed to be in place, but wasnt behaving. Criimson |
I added a couple mes spells to the chanter bot list from:
Mes spells Code:
INSERT INTO `npc_spells_entries` (`id`, `npc_spells_id`, `spellid`, `type`) VALUES (8146, 705, 292, 2048); Testing with a level 15 group. Code:
case SpellType_Mez: { |
Got it working after getting spells set up better. I think the Bot was trying to use a spell it couldn't on first tests, but unsure. Kind of weird, but after I added the line
Code:
//Criimson Added - Test code Thank you for the advice of where to start work. Criimson |
All times are GMT -4. The time now is 08:47 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.