Skip to content

Commit

Permalink
Adjust creature query for AC structure changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
valberlimabr committed Oct 11, 2024
1 parent f1621ae commit 11462bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions data/sql/db-world/base/development.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ SET
@NpcDisplayID:=24877;

DELETE FROM `creature_template` WHERE `entry` IN (@NpcEntry);
INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `ScriptName`) VALUES
(@NpcEntry, @NpcDisplayID, @NpcName , @NpcSubname, "Speak", 0, 80, 80, 35, 1, 1, 1.14286, 1, 0, 1, 2, 7, 138936390, 1, 2, "TemplateNPC");
INSERT INTO `creature_template` (`entry`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `unit_class`, `unit_flags`, `type`, `type_flags`, `RegenHealth`, `flags_extra`, `ScriptName`) VALUES
(@NpcEntry, @NpcName , @NpcSubname, "Speak", 0, 80, 80, 35, 1, 1, 1.14286, 1, 0, 1, 2, 7, 138936390, 1, 2, "TemplateNPC");

DELETE FROM `creature_template_model` WHERE `CreatureID` = @NpcEntry;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (@NpcEntry, 0, @NpcDisplayID, 1, 1, 0);

DELETE FROM `npc_text` WHERE `ID` = @NpcEntry;
INSERT INTO `npc_text` (`ID`, `text0_0`, `text0_1`) VALUES
Expand Down

0 comments on commit 11462bf

Please sign in to comment.