Skip to content

Commit 567590b

Browse files
authored
Merge pull request #7 from azerothcore/sudlud-pach-42-5
fix codestyle and sql for creature_template_model changes
2 parents 48fd9c9 + a6e881b commit 567590b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

data/sql/db-world/npc_morph.sql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
2-
(55004, 0, 0, 0, 0, 0, 18, 0, 0, 0, 'Morph Master', 'AzerothCore', NULL, 0, 80, 80, 0, 35, 1, 1, 1.14286, 1, 1, 0, 1, 2000, 2000, 2, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 50, 50, 1, 0, 0, 1, 0, 0, 'npc_morph', 12340);
1+
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
2+
(55004, 0, 0, 0, 0, 0, 'Morph Master', 'AzerothCore', NULL, 0, 80, 80, 0, 35, 1, 1, 1.14286, 1, 1, 0, 1, 2000, 2000, 2, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 50, 50, 1, 0, 0, 1, 0, 0, 'npc_morph', 12340);
3+
4+
-- NPC MODEL
5+
DELETE FROM `creature_template_model` WHERE `CreatureID` = 55004;
6+
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
7+
(55004, 0, 18, 1, 1, 0);

src/npc_morph.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "ScriptMgr.h"
2-
#include "ScriptedGossip.h"
31
#include "Player.h"
2+
#include "ScriptedGossip.h"
3+
#include "ScriptMgr.h"
44

55
#define MSG_GOSSIP_TEXT_GETTING_STARTED "Welcome to AzerothCore morph service!"
66

@@ -20,7 +20,7 @@ class npc_morph : public CreatureScript
2020
public:
2121
npc_morph() : CreatureScript("npc_morph") { }
2222

23-
bool OnGossipHello(Player* player, Creature* creature)
23+
bool OnGossipHello(Player* player, Creature* creature) override
2424
{
2525
ClearGossipMenuFor(player);
2626
AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, MSG_GOSSIP_TEXT_MORTH_GNOME_MALE, GOSSIP_SENDER_MAIN, 2);
@@ -35,7 +35,7 @@ class npc_morph : public CreatureScript
3535
return true;
3636
}
3737

38-
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
38+
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
3939
{
4040
if (!player->getAttackers().empty())
4141
{

0 commit comments

Comments
 (0)