Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] DB/creature: Combatant Mount Quartermaster #19159

Closed
ArcaneFox opened this issue Feb 18, 2017 · 2 comments
Closed

[master] DB/creature: Combatant Mount Quartermaster #19159

ArcaneFox opened this issue Feb 18, 2017 · 2 comments

Comments

@ArcaneFox
Copy link

ArcaneFox commented Feb 18, 2017

Description:
Combatant Mount Quartermaster (mop) not spawned + missing items
http://www.wowhead.com/npc=73190/necrolord-sipe

Branch(es): master

TC rev. hash/commit: 06c1db0

TDB version: 703.00 + updates

Operating system: Windows 10 64-bit

@ArcaneFox
Copy link
Author

ArcaneFox commented Feb 18, 2017

Fix:

INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES
(452399, 73190, 0, 0, 0, 1, '0', 0, 0, 0, -8758.906, 385.1371, 101.1392, 0.6503221, 120, 0, 0, 0, 0, 0, 0, 0, 0, 23420); -- Necrolord Sipe (Area: Old Town)

DELETE FROM `creature_template_addon` WHERE `entry`=73190;
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `auras`) VALUES
(73190, 0, 51037, 0, 0, 0, 0, 0, 0, ''); -- 73190 (Necrolord Sipe)

DELETE FROM `npc_vendor` WHERE (`entry`=73190 AND `item`=140353 AND `ExtendedCost`=5214 AND `type`=1) OR (`entry`=73190 AND `item`=140350 AND `ExtendedCost`=5214 AND `type`=1) OR (`entry`=73190 AND `item`=124089 AND `ExtendedCost`=5214 AND `type`=1);
INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `ExtendedCost`, `type`, `PlayerConditionID`, `IgnoreFiltering`, `VerifiedBuild`) VALUES
(73190, 6, 140353, 0, 5214, 1, 0, 0, 23420), -- Vicious Gilnean Warhorse
(73190, 5, 140350, 0, 5214, 1, 0, 0, 23420), -- Vicious War Elekk
(73190, 4, 124089, 0, 5214, 1, 0, 0, 23420); -- Vicious War Mechanostrider


UPDATE `npc_vendor` SET `VerifiedBuild`=23420 WHERE (`entry`=73190 AND `item`=116777 AND `ExtendedCost`=5214 AND `type`=1); -- Vicious War Ram
UPDATE `npc_vendor` SET `VerifiedBuild`=23420 WHERE (`entry`=73190 AND `item`=70909 AND `ExtendedCost`=5214 AND `type`=1); -- Reins of the Vicious War Steed
UPDATE `npc_vendor` SET `VerifiedBuild`=23420 WHERE (`entry`=73190 AND `item`=102514 AND `ExtendedCost`=5214 AND `type`=1); -- Reins of the Vicious Warsaber

@ghost
Copy link

ghost commented Feb 21, 2017

Suggestion for a better query format (more readable and less redundant) based on the SQL above :

-- Necrolord Sipe (Area: Old Town)
DELETE FROM `creature` WHERE `guid`= 452603 AND `id`= 73190;
INSERT INTO `creature` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnMask`,`PhaseId`,`PhaseGroup`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`curmana`,`MovementType`,`npcflag`,`unit_flags`,`dynamicflags`,`VerifiedBuild`) VALUES
(452399, 73190, 0, 0, 0, 1, '0', 0, 0, 0, -8758.906, 385.1371, 101.1392, 0.6503221, 120, 0, 0, 0, 0, 0, 0, 0, 0, 23420);

DELETE FROM `creature_template_addon` WHERE `entry`= 73190;
INSERT INTO `creature_template_addon` (`entry`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`aiAnimKit`,`movementAnimKit`,`meleeAnimKit`,`auras`) VALUES
(73190, 0, 51037, 0, 0, 0, 0, 0, 0, '');

DELETE FROM `npc_vendor` WHERE `entry`=73190 AND `ExtendedCost`=5214 AND `type`=1 AND `item` IN (140353,140350,124089);
INSERT INTO `npc_vendor` (`entry`,`slot`,`item`,`maxcount`,`ExtendedCost`,`type`,`PlayerConditionID`,`IgnoreFiltering`,`VerifiedBuild`) VALUES
(73190, 6, 140353, 0, 5214, 1, 0, 0, 23420), -- Vicious Gilnean Warhorse
(73190, 5, 140350, 0, 5214, 1, 0, 0, 23420), -- Vicious War Elekk
(73190, 4, 124089, 0, 5214, 1, 0, 0, 23420); -- Vicious War Mechanostrider

UPDATE `npc_vendor` SET `VerifiedBuild`=23420 WHERE `entry`=73190 AND `item` IN (
116777, -- Vicious War Ram
102514, -- Reins of the Vicious Warsaber
70909); -- Reins of the Vicious War Steed

@ArcaneFox ArcaneFox changed the title [master] Combatant Mount Quartermaster [master] DB/creature: Combatant Mount Quartermaster Feb 27, 2017
conan513 pushed a commit to conan513/SingleCore_TC that referenced this issue Mar 30, 2017
Krudor pushed a commit to Krudor/TrinityCore that referenced this issue Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants