Azerothcore-wotlk: [DB/Creature] Prairie Wolf/Stalker/Wolf Alpha not using abilities

Created on 31 Jul 2020  路  7Comments  路  Source: azerothcore/azerothcore-wotlk

CURRENT BEHAVIOUR:

The mentioned mobs are only attacking melee, they don't use any ability.

EXPECTED BLIZZLIKE BEHAVIOUR:

They should use the described abilities:

https://wotlkdb.com/?npc=2958
https://wotlkdb.com/?npc=2959
https://wotlkdb.com/?npc=2960

STEPS TO REPRODUCE THE PROBLEM:

Engage the mobs and observe.

AC HASH/COMMIT:

f56ef23

OPERATING SYSTEM:

Docker under Ubuntu 20.04

MODULES:

AutoBalance

DB Fix included

Most helpful comment

Most of them have to be fixed, cause they are made long time ago.
I'm 80% done with all zones and classic/tbc dungeons so all of them should be up in 2-3 weeks.

All 7 comments

UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (2958, 2959, 2960);

INSERT INTO `smart_scripts` VALUES
    (2958, 0, 0, 1, 1, 0, 100, 0, 30000, 600000, 120000, 600000, 0, 4, 1018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf - Out of Combat - Play Sound 1018'),
    (2958, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 5, 393, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf - Out of Combat - Play Emote 393'),
    (2958, 0, 2, 0, 0, 0, 100, 0, 6000, 10000, 35000, 45000, 0, 11, 5781, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf - In Combat - Cast Threatening Growl');

INSERT INTO `smart_scripts` VALUES
    (2959, 0, 0, 1, 1, 0, 100, 0, 30000, 600000, 120000, 600000, 0, 4, 1018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Stalker - Out of Combat - Play Sound 1018'),
    (2959, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 5, 393, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Stalker - Out of Combat - Play Emote 393');

INSERT INTO `smart_scripts` VALUES
    (2960, 0, 0, 1, 1, 0, 100, 0, 30000, 600000, 120000, 600000, 0, 4, 1018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf Alpha - Out of Combat - Play Sound 1018'),
    (2960, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 5, 393, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf Alpha - Out of Combat - Play Emote 393'),
    (2960, 0, 2, 0, 0, 0, 100, 0, 6000, 10000, 35000, 45000, 0, 11, 5781, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Prairie Wolf Alpha - In Combat - Cast Threatening Growl');

@r0m1ntik94 @FrancescoBorzi @Kitzunu Tested and seems to work fine! There are a lot more of NPC's that present the same behavior. Is there any way to fix them all? Maybe extract those values from an established database like the one from TrinityCore?

@ninjaskija TC have 9075 creature scripted SmartAI and AzerothCore have 7927. Need extract this 馃憤

SELECT entry FROM world_tc.creature_template WHERE maxlevel <= 80 AND AIName = 'SmartAI' AND entry NOT IN (SELECT entry FROM creature_template WHERE AIName = 'SmartAI' AND maxlevel <= 80);

1958 scripts in TC and not in AzerothCore

- 4 scripts (coded in c++ in AzerothCore)

1954

Whole Mulgore zone is fixed, but not merged yet.

You can check https://github.com/azerothcore/azerothcore-wotlk/pull/3144

Yesterday I transferred more than 2k scripts from trinity, testers are checking, I did not do it by zone.

Most of them have to be fixed, cause they are made long time ago.
I'm 80% done with all zones and classic/tbc dungeons so all of them should be up in 2-3 weeks.

but yes, shouldn't we import the SQL for creatures that are not scripted? because there is no risk of overwriting our work if these creatures are NOT scripted at all

And if so, how to get only the unscripted ones?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Wokwer picture Wokwer  路  4Comments

fragcamp picture fragcamp  路  4Comments

lineagedr picture lineagedr  路  3Comments

wowissues picture wowissues  路  3Comments

wetbrownsauce picture wetbrownsauce  路  3Comments