DB Updates
This commit is contained in:
@@ -1216,7 +1216,28 @@ INSERT INTO `build_auth_key` VALUES
|
|||||||
(62493,'Mac','x64','WoWC',0x15B0A1D7EA355891634507CD840B2E16),
|
(62493,'Mac','x64','WoWC',0x15B0A1D7EA355891634507CD840B2E16),
|
||||||
(62493,'Win','A64','WoW',0x043025D94567792FA8284C282E77E57F),
|
(62493,'Win','A64','WoW',0x043025D94567792FA8284C282E77E57F),
|
||||||
(62493,'Win','x64','WoW',0x5B038E707AB60E3A862C2E03A8487220),
|
(62493,'Win','x64','WoW',0x5B038E707AB60E3A862C2E03A8487220),
|
||||||
(62493,'Win','x64','WoWC',0x1A65B9347FD44EF0A77479173D098226);
|
(62493,'Win','x64','WoWC',0x1A65B9347FD44EF0A77479173D098226),
|
||||||
|
(62680,'Mac','A64','WoW',0x52D3CFF8AE101B720C4DF1B5288A1E8B),
|
||||||
|
(62680,'Mac','A64','WoWC',0x7FBBF2377E83B980B2501106B2F88CA9),
|
||||||
|
(62680,'Mac','x64','WoW',0xE8E4D9C538DAB507F623EBF3F7A503A8),
|
||||||
|
(62680,'Mac','x64','WoWC',0xACAF4F2E279ECFCD00787BB199F92F2C),
|
||||||
|
(62680,'Win','A64','WoW',0xFB08879F4B65374123CF59A650885A58),
|
||||||
|
(62680,'Win','x64','WoW',0x2E4DDEDE233C86BE7967901A85134A89),
|
||||||
|
(62680,'Win','x64','WoWC',0x539619B1D95663BBB7AB003BB6D0BA5E),
|
||||||
|
(62706,'Mac','A64','WoW',0x7372D28C666F784572DD68134C7BE334),
|
||||||
|
(62706,'Mac','A64','WoWC',0x051D00671FF57B9EDB916F132486DB36),
|
||||||
|
(62706,'Mac','x64','WoW',0xC38F4C4BE255E157128BC8A37B462F13),
|
||||||
|
(62706,'Mac','x64','WoWC',0xBCFAE421FED4748F8B02AE95E967EEED),
|
||||||
|
(62706,'Win','A64','WoW',0x30ACDD80A1EB57C6A7F2E42F00FC7D23),
|
||||||
|
(62706,'Win','x64','WoW',0xE2D46634684B91376459DB726284F1E2),
|
||||||
|
(62706,'Win','x64','WoWC',0xB09CA7D4EC722C8F3D8190A540AD4146),
|
||||||
|
(62748,'Mac','A64','WoW',0x9CAC1407FB10E3FDA83DAC1853428221),
|
||||||
|
(62748,'Mac','A64','WoWC',0x871EA7435FE7EF66FB7DA5608907D071),
|
||||||
|
(62748,'Mac','x64','WoW',0x831C90A6467734EB2F25E19A08216731),
|
||||||
|
(62748,'Mac','x64','WoWC',0x0EB9A67428B9A658EC5A1FEA4A3CFAC3),
|
||||||
|
(62748,'Win','A64','WoW',0x56C59031E7D37485DAD25A2BC4A49B86),
|
||||||
|
(62748,'Win','x64','WoW',0x099FE6DC3AD0811C751C0DA819D032B4),
|
||||||
|
(62748,'Win','x64','WoWC',0x6ECA332852D9BFF77CE2A9D71A976D55);
|
||||||
/*!40000 ALTER TABLE `build_auth_key` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `build_auth_key` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
@@ -1613,7 +1634,10 @@ INSERT INTO `build_info` VALUES
|
|||||||
(62213,11,2,0,NULL),
|
(62213,11,2,0,NULL),
|
||||||
(62417,11,2,0,NULL),
|
(62417,11,2,0,NULL),
|
||||||
(62438,11,2,0,NULL),
|
(62438,11,2,0,NULL),
|
||||||
(62493,11,2,0,NULL);
|
(62493,11,2,0,NULL),
|
||||||
|
(62680,11,2,0,NULL),
|
||||||
|
(62706,11,2,0,NULL),
|
||||||
|
(62748,11,2,0,NULL);
|
||||||
/*!40000 ALTER TABLE `build_info` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `build_info` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
@@ -3226,7 +3250,7 @@ CREATE TABLE `realmlist` (
|
|||||||
`timezone` tinyint unsigned NOT NULL DEFAULT '0',
|
`timezone` tinyint unsigned NOT NULL DEFAULT '0',
|
||||||
`allowedSecurityLevel` tinyint unsigned NOT NULL DEFAULT '0',
|
`allowedSecurityLevel` tinyint unsigned NOT NULL DEFAULT '0',
|
||||||
`population` float NOT NULL DEFAULT '0',
|
`population` float NOT NULL DEFAULT '0',
|
||||||
`gamebuild` int unsigned NOT NULL DEFAULT '62493',
|
`gamebuild` int unsigned NOT NULL DEFAULT '62748',
|
||||||
`Region` tinyint unsigned NOT NULL DEFAULT '1',
|
`Region` tinyint unsigned NOT NULL DEFAULT '1',
|
||||||
`Battlegroup` tinyint unsigned NOT NULL DEFAULT '1',
|
`Battlegroup` tinyint unsigned NOT NULL DEFAULT '1',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
@@ -3241,7 +3265,7 @@ CREATE TABLE `realmlist` (
|
|||||||
LOCK TABLES `realmlist` WRITE;
|
LOCK TABLES `realmlist` WRITE;
|
||||||
/*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
|
/*!40000 ALTER TABLE `realmlist` DISABLE KEYS */;
|
||||||
INSERT INTO `realmlist` VALUES
|
INSERT INTO `realmlist` VALUES
|
||||||
(1,'Trinity','127.0.0.1','127.0.0.1',NULL,NULL,'255.255.255.0',8085,0,0,1,0,0,62493,1,1);
|
(1,'Trinity','127.0.0.1','127.0.0.1',NULL,NULL,'255.255.255.0',8085,0,0,1,0,0,62748,1,1);
|
||||||
/*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
@@ -3752,7 +3776,10 @@ INSERT INTO `updates` VALUES
|
|||||||
('2025_07_14_00_auth.sql','5F975A202CF84F2BFEA366E0BEDF8FA63035CD62','ARCHIVED','2025-07-14 23:10:54',0),
|
('2025_07_14_00_auth.sql','5F975A202CF84F2BFEA366E0BEDF8FA63035CD62','ARCHIVED','2025-07-14 23:10:54',0),
|
||||||
('2025_07_21_00_auth.sql','44AA781EE1B1C66E8433E50A2E20916EB1BEFE23','ARCHIVED','2025-07-21 22:51:05',0),
|
('2025_07_21_00_auth.sql','44AA781EE1B1C66E8433E50A2E20916EB1BEFE23','ARCHIVED','2025-07-21 22:51:05',0),
|
||||||
('2025_08_13_00_auth.sql','5F67141AB407AEC202E8048765256AB11C5621EA','ARCHIVED','2025-08-12 19:26:13',0),
|
('2025_08_13_00_auth.sql','5F67141AB407AEC202E8048765256AB11C5621EA','ARCHIVED','2025-08-12 19:26:13',0),
|
||||||
('2025_08_16_00_auth.sql','DCAB779D0FC212FDF964D055BEC17AC1255A013C','ARCHIVED','2025-08-16 14:58:22',0);
|
('2025_08_16_00_auth.sql','DCAB779D0FC212FDF964D055BEC17AC1255A013C','ARCHIVED','2025-08-16 14:58:22',0),
|
||||||
|
('2025_08_19_00_auth.sql','A6FCCF57663965E7DDA3796C8C202D4AEBF5C76D','RELEASED','2025-08-19 22:09:06',0),
|
||||||
|
('2025_08_20_00_auth.sql','88263DAF5D8BF6B2B8F9D279135B9747E4931B51','RELEASED','2025-08-20 21:27:33',0),
|
||||||
|
('2025_08_23_00_auth.sql','4C543EB13488D5885EB41DBC1DF036125C92D999','RELEASED','2025-08-23 14:43:33',0);
|
||||||
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
|||||||
@@ -3821,8 +3821,9 @@ INSERT INTO `updates` VALUES
|
|||||||
('2025_05_31_00_characters.sql','C240EB5C4008B6AA0514802A18D7DD875680DE82','ARCHIVED','2025-05-31 19:45:56',0),
|
('2025_05_31_00_characters.sql','C240EB5C4008B6AA0514802A18D7DD875680DE82','ARCHIVED','2025-05-31 19:45:56',0),
|
||||||
('2025_06_27_00_characters.sql','35088BA5BA4BD3B7FAAD6FD4FAE38E52A5B71CD8','ARCHIVED','2025-06-27 14:22:08',0),
|
('2025_06_27_00_characters.sql','35088BA5BA4BD3B7FAAD6FD4FAE38E52A5B71CD8','ARCHIVED','2025-06-27 14:22:08',0),
|
||||||
('2025_07_21_00_characters.sql','056A99B9AA90186E5B3177BF54C86607B6518BE9','ARCHIVED','2025-07-21 22:51:05',0),
|
('2025_07_21_00_characters.sql','056A99B9AA90186E5B3177BF54C86607B6518BE9','ARCHIVED','2025-07-21 22:51:05',0),
|
||||||
('2025_08_13_00_characters.sql','9C2321777E6C34F18799C8967B1CA0C44F17DA18','ARCHIVED','2025-08-12 20:17:45',0),
|
('2025_08_13_00_characters.sql','0A559553A1DD9FC973AB01C3B1A9284B07CFBB36','ARCHIVED','2025-08-12 20:17:45',0),
|
||||||
('2025_08_16_00_characters.sql','8DF6284B6C7BEDAB599F7E4802FF8BCD80613A92','ARCHIVED','2025-08-16 14:58:22',0);
|
('2025_08_16_00_characters.sql','8DF6284B6C7BEDAB599F7E4802FF8BCD80613A92','ARCHIVED','2025-08-16 14:58:22',0),
|
||||||
|
('2025_08_19_00_characters.sql','EC197D88883CDA2B885675FE096DD56CCB143608','RELEASED','2025-08-19 01:03:26',0);
|
||||||
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,15 @@
|
|||||||
ALTER TABLE `characters`
|
DELIMITER ;;
|
||||||
|
|
||||||
|
CREATE PROCEDURE apply_if_not_exists_2025_08_13_00()
|
||||||
|
this_proc: BEGIN
|
||||||
|
|
||||||
|
IF NOT EXISTS (SELECT * FROM `information_schema`.`tables` WHERE `table_schema`=SCHEMA() AND `table_name`='character_void_storage') THEN
|
||||||
|
-- all was good, executed last statement here (DROP TABLE)
|
||||||
|
LEAVE this_proc;
|
||||||
|
END IF;
|
||||||
|
|
||||||
|
IF NOT EXISTS (SELECT * FROM `information_schema`.`columns` WHERE `table_schema`=SCHEMA() AND `table_name`='characters' AND `column_name`='bankTabs') THEN
|
||||||
|
ALTER TABLE `characters`
|
||||||
ADD `bankTabs` tinyint unsigned NOT NULL DEFAULT 0 AFTER `bankSlots`,
|
ADD `bankTabs` tinyint unsigned NOT NULL DEFAULT 0 AFTER `bankSlots`,
|
||||||
DROP `bankBagSlotFlags1`,
|
DROP `bankBagSlotFlags1`,
|
||||||
DROP `bankBagSlotFlags2`,
|
DROP `bankBagSlotFlags2`,
|
||||||
@@ -7,19 +18,21 @@ ALTER TABLE `characters`
|
|||||||
DROP `bankBagSlotFlags5`,
|
DROP `bankBagSlotFlags5`,
|
||||||
DROP `bankBagSlotFlags6`,
|
DROP `bankBagSlotFlags6`,
|
||||||
DROP `bankBagSlotFlags7`;
|
DROP `bankBagSlotFlags7`;
|
||||||
|
END IF;
|
||||||
|
|
||||||
UPDATE `characters` SET `bankTabs`=LEAST(6,GREATEST(
|
UPDATE `characters` SET `bankTabs`=LEAST(6,GREATEST(
|
||||||
`bankSlots`,
|
`bankSlots`,
|
||||||
IF((`playerFlags` & 0x20000000)<>0,6,0), -- unlocked void storage
|
IF((`playerFlags` & 0x20000000)<>0,6,0), -- unlocked void storage
|
||||||
IF((`playerFlagsEx` & 0x1)<>0,4,0), -- unlocked reagent bank
|
IF((`playerFlagsEx` & 0x1)<>0,4,0), -- unlocked reagent bank
|
||||||
IF(`level`>=80,6,0)
|
IF(`level`>=80,6,0),
|
||||||
));
|
1
|
||||||
|
));
|
||||||
|
|
||||||
--
|
IF NOT EXISTS (SELECT * FROM `information_schema`.`tables` WHERE `table_schema`=SCHEMA() AND `table_name`='character_bank_tab_settings') THEN
|
||||||
-- Table structure for table `character_bank_tab_settings`
|
--
|
||||||
--
|
-- Table structure for table `character_bank_tab_settings`
|
||||||
DROP TABLE IF EXISTS `character_bank_tab_settings`;
|
--
|
||||||
CREATE TABLE `character_bank_tab_settings` (
|
CREATE TABLE `character_bank_tab_settings` (
|
||||||
`characterGuid` bigint unsigned NOT NULL,
|
`characterGuid` bigint unsigned NOT NULL,
|
||||||
`tabId` tinyint unsigned NOT NULL,
|
`tabId` tinyint unsigned NOT NULL,
|
||||||
`name` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`name` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||||
@@ -27,52 +40,64 @@ CREATE TABLE `character_bank_tab_settings` (
|
|||||||
`description` varchar(2048) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`description` varchar(2048) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||||
`depositFlags` int DEFAULT '0',
|
`depositFlags` int DEFAULT '0',
|
||||||
PRIMARY KEY (`characterGuid`,`tabId`)
|
PRIMARY KEY (`characterGuid`,`tabId`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,0,'Tab 1',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 1;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,0,'Tab 1',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 1;
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,1,'Tab 2',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 2;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,1,'Tab 2',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 2;
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,2,'Tab 3',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 3;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,2,'Tab 3',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 3;
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,3,'Reagents',NULL,NULL,0x80 FROM `characters` WHERE `bankTabs` >= 4;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,3,'Reagents',NULL,NULL,0x80 FROM `characters` WHERE `bankTabs` >= 4;
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,4,'Void Storage 1',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 5;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,4,'Void Storage 1',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 5;
|
||||||
INSERT INTO `character_bank_tab_settings` SELECT `guid`,5,'Void Storage 2',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 6;
|
INSERT INTO `character_bank_tab_settings` SELECT `guid`,5,'Void Storage 2',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 6;
|
||||||
|
END IF;
|
||||||
|
|
||||||
-- helper columns
|
SET @item_guid := 0;
|
||||||
-- character_inventory.bag_slot (inventory slot where the bag is stored)
|
SELECT MAX(guid) INTO @item_guid FROM item_instance;
|
||||||
-- character_inventory.new_slot
|
|
||||||
-- character_inventory.slot temporarily changed type to SMALLINT
|
IF EXISTS (SELECT * FROM `information_schema`.`columns` WHERE `table_schema`=SCHEMA() AND `table_name`='character_inventory' AND `column_name`='bag_slot') THEN
|
||||||
ALTER TABLE `character_inventory`
|
-- rerunning in case of partially failed update
|
||||||
|
UPDATE `characters` SET `bankTabs` = 1 WHERE `bankTabs` = 0;
|
||||||
|
|
||||||
|
-- create missing tab
|
||||||
|
INSERT INTO `character_inventory` (`guid`,`bag`,`slot`,`item`)
|
||||||
|
SELECT c.guid, 0, 63, (@item_guid := @item_guid + 1) FROM `characters` c LEFT JOIN `character_bank_tab_settings` cbts ON c.guid = cbts.characterGuid
|
||||||
|
WHERE c.`bankTabs` = 1 AND cbts.characterGuid IS NULL;
|
||||||
|
|
||||||
|
INSERT IGNORE INTO `character_bank_tab_settings` SELECT `guid`,0,'Tab 1',NULL,NULL,0 FROM `characters` WHERE `bankTabs` >= 1;
|
||||||
|
ELSE
|
||||||
|
-- helper columns
|
||||||
|
-- character_inventory.bag_slot (inventory slot where the bag is stored)
|
||||||
|
-- character_inventory.new_slot
|
||||||
|
-- character_inventory.slot temporarily changed type to SMALLINT
|
||||||
|
ALTER TABLE `character_inventory`
|
||||||
ADD `bag_slot` INT,
|
ADD `bag_slot` INT,
|
||||||
ADD `new_slot` INT,
|
ADD `new_slot` INT,
|
||||||
MODIFY `slot` SMALLINT UNSIGNED NOT NULL;
|
MODIFY `slot` SMALLINT UNSIGNED NOT NULL;
|
||||||
|
|
||||||
UPDATE `character_inventory` ci1
|
UPDATE `character_inventory` ci1
|
||||||
LEFT JOIN `character_inventory` ci2 ON ci1.bag = ci2.item
|
LEFT JOIN `character_inventory` ci2 ON ci1.bag = ci2.item
|
||||||
SET ci1.bag_slot = COALESCE(ci2.slot, 0);
|
SET ci1.bag_slot = COALESCE(ci2.slot, 0);
|
||||||
|
|
||||||
-- move items that need moving out of the way
|
-- move items that need moving out of the way
|
||||||
UPDATE `character_inventory` SET `slot`=`slot`+1000 WHERE `bag`=0 AND `slot` BETWEEN 63 AND 97; -- BankItemSlots/BankBagSlots
|
UPDATE `character_inventory` SET `slot`=`slot`+1000 WHERE `bag`=0 AND `slot` BETWEEN 63 AND 97; -- BankItemSlots/BankBagSlots
|
||||||
UPDATE `character_inventory` SET `slot`=`slot`+1000 WHERE `bag`=0 AND `slot` BETWEEN 110 AND 207; -- ReagentSlots
|
UPDATE `character_inventory` SET `slot`=`slot`+1000 WHERE `bag`=0 AND `slot` BETWEEN 110 AND 207; -- ReagentSlots
|
||||||
|
|
||||||
-- adjust BuyBackSlots/ChildEquipmentSlots/EquipableSpellSlots/AccountBankBagSlots
|
-- adjust BuyBackSlots/ChildEquipmentSlots/EquipableSpellSlots/AccountBankBagSlots
|
||||||
UPDATE `character_inventory` SET `slot`=`slot`-29 WHERE `bag`=0 AND `slot` BETWEEN 98 AND 109; -- BuyBackSlots
|
UPDATE `character_inventory` SET `slot`=`slot`-29 WHERE `bag`=0 AND `slot` BETWEEN 98 AND 109; -- BuyBackSlots
|
||||||
UPDATE `character_inventory` SET `slot`=`slot`-127 WHERE `bag`=0 AND `slot` BETWEEN 208 AND 231; -- ChildEquipmentSlots/EquipableSpellSlots/AccountBankBagSlots
|
UPDATE `character_inventory` SET `slot`=`slot`-127 WHERE `bag`=0 AND `slot` BETWEEN 208 AND 231; -- ChildEquipmentSlots/EquipableSpellSlots/AccountBankBagSlots
|
||||||
|
|
||||||
SET @item_guid := 0;
|
-- create new bags
|
||||||
SELECT MAX(guid) INTO @item_guid FROM item_instance;
|
INSERT INTO `character_inventory` (`guid`,`bag`,`slot`,`item`)
|
||||||
|
SELECT cbts.characterGuid, 0, 63 + cbts.`tabId`, (@item_guid := @item_guid + 1) FROM `character_bank_tab_settings` cbts;
|
||||||
|
|
||||||
-- create new bags
|
INSERT INTO `item_instance` (`guid`,`itemEntry`,`owner_guid`,`charges`,`flags`,`enchantments`,`playedTime`,`createTime`,`text`,`bonusListIDs`)
|
||||||
INSERT INTO `character_inventory` (`guid`,`bag`,`slot`,`item`)
|
SELECT ci.`item`, 242709, ci.`guid`, '', 0x1, '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ', c.totaltime, UNIX_TIMESTAMP(),'',''
|
||||||
SELECT cbts.characterGuid, 0, 63 + cbts.`tabId`, (@item_guid := @item_guid + 1) FROM `character_bank_tab_settings` cbts;
|
FROM `character_inventory` ci
|
||||||
|
LEFT JOIN `characters` c ON c.`guid` = ci.`guid`
|
||||||
|
WHERE ci.`bag` = 0 AND ci.`slot` BETWEEN 63 AND 68;
|
||||||
|
|
||||||
INSERT INTO `item_instance` (`guid`,`itemEntry`,`owner_guid`,`charges`,`flags`,`enchantments`,`playedTime`,`createTime`,`text`,`bonusListIDs`)
|
-- calculate new slots for old banked items
|
||||||
SELECT ci.`item`, 242709, ci.`guid`, '', 0x1, '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ', c.totaltime, UNIX_TIMESTAMP(),'',''
|
UPDATE `character_inventory` ci
|
||||||
FROM `character_inventory` ci
|
LEFT JOIN (
|
||||||
LEFT JOIN `characters` c ON c.`guid` = ci.`guid`
|
|
||||||
WHERE ci.`bag` = 0 AND ci.`slot` BETWEEN 63 AND 68;
|
|
||||||
|
|
||||||
-- calculate new slots for old banked items
|
|
||||||
UPDATE `character_inventory` ci
|
|
||||||
LEFT JOIN (
|
|
||||||
SELECT item, new_slot
|
SELECT item, new_slot
|
||||||
FROM (
|
FROM (
|
||||||
SELECT guid, bag, slot, item, IF(@prev <> guid, @row_num:=0,@row_num:=@row_num+1) AS new_slot, @prev:=guid
|
SELECT guid, bag, slot, item, IF(@prev <> guid, @row_num:=0,@row_num:=@row_num+1) AS new_slot, @prev:=guid
|
||||||
@@ -82,47 +107,53 @@ LEFT JOIN (
|
|||||||
WHERE (bag_slot = 0 AND slot BETWEEN 1063 AND 1097) OR bag_slot BETWEEN 91 AND 97
|
WHERE (bag_slot = 0 AND slot BETWEEN 1063 AND 1097) OR bag_slot BETWEEN 91 AND 97
|
||||||
ORDER BY guid, bag_slot, slot
|
ORDER BY guid, bag_slot, slot
|
||||||
) `window`
|
) `window`
|
||||||
) new_slots ON new_slots.item = ci.item
|
) new_slots ON new_slots.item = ci.item
|
||||||
SET ci.new_slot = new_slots.new_slot;
|
SET ci.new_slot = new_slots.new_slot;
|
||||||
|
END IF;
|
||||||
|
|
||||||
-- assign new bags and slots
|
-- assign new bags and slots
|
||||||
UPDATE `character_inventory` ci
|
UPDATE `character_inventory` ci
|
||||||
LEFT JOIN `character_inventory` ci2 ON ci2.guid = ci.guid AND ci2.bag = 0 AND ci2.slot = (ci.new_slot DIV 98) + 63
|
LEFT JOIN `character_inventory` ci2 ON ci2.guid = ci.guid AND ci2.bag = 0 AND ci2.slot = (ci.new_slot DIV 98) + 63
|
||||||
SET ci.bag = ci2.item, ci.slot = ci.new_slot MOD 98
|
SET ci.bag = ci2.item, ci.slot = ci.new_slot MOD 98
|
||||||
WHERE (ci.bag_slot = 0 AND ci.slot BETWEEN 1063 AND 1097) OR ci.bag_slot BETWEEN 91 AND 97;
|
WHERE (ci.bag_slot = 0 AND ci.slot BETWEEN 1063 AND 1097) OR ci.bag_slot BETWEEN 91 AND 97;
|
||||||
|
|
||||||
-- move reagents as-is (bag is the same size)
|
-- move reagents as-is (bag is the same size)
|
||||||
UPDATE `character_inventory` ci
|
UPDATE `character_inventory` ci
|
||||||
LEFT JOIN `character_inventory` ci2 ON ci2.guid = ci.guid AND ci2.bag = 0 AND ci2.slot = 66
|
LEFT JOIN `character_inventory` ci2 ON ci2.guid = ci.guid AND ci2.bag = 0 AND ci2.slot = 66
|
||||||
SET ci.bag = ci2.item, ci.slot = ci.slot - 1110
|
SET ci.bag = ci2.item, ci.slot = ci.slot - 1110
|
||||||
WHERE (ci.bag_slot = 0 AND ci.slot BETWEEN 1110 AND 1207);
|
WHERE (ci.bag_slot = 0 AND ci.slot BETWEEN 1110 AND 1207);
|
||||||
|
|
||||||
-- void storage
|
-- void storage
|
||||||
ALTER TABLE `character_void_storage`
|
ALTER TABLE `character_void_storage`
|
||||||
ADD `itemGuid` BIGINT UNSIGNED,
|
ADD `itemGuid` BIGINT UNSIGNED,
|
||||||
ADD `bagGuid` BIGINT UNSIGNED;
|
ADD `bagGuid` BIGINT UNSIGNED;
|
||||||
|
|
||||||
-- generate guids for void storage
|
-- generate guids for void storage
|
||||||
UPDATE `character_void_storage` cvs
|
UPDATE `character_void_storage` cvs
|
||||||
SET
|
SET
|
||||||
cvs.`itemGuid` = (@item_guid := @item_guid + 1),
|
cvs.`itemGuid` = (@item_guid := @item_guid + 1),
|
||||||
cvs.`bagGuid` = (SELECT ci.`item` FROM `character_inventory` ci WHERE ci.`guid` = cvs.`playerGuid` AND ci.`bag` = 0 AND ci.`slot` = 67 + (cvs.`slot` DIV 80));
|
cvs.`bagGuid` = (SELECT ci.`item` FROM `character_inventory` ci WHERE ci.`guid` = cvs.`playerGuid` AND ci.`bag` = 0 AND ci.`slot` = 67 + (cvs.`slot` DIV 80));
|
||||||
|
|
||||||
-- create items from void storage
|
-- create items from void storage
|
||||||
INSERT INTO `item_instance` (`guid`, `itemEntry`, `owner_guid`, `creatorGuid`, `charges`, `flags`, `enchantments`, `randomBonusListId`, `durability`, `playedTime`, `createTime`, `text`, `context`, `bonusListIDs`)
|
INSERT INTO `item_instance` (`guid`, `itemEntry`, `owner_guid`, `creatorGuid`, `charges`, `flags`, `enchantments`, `randomBonusListId`, `durability`, `playedTime`, `createTime`, `text`, `context`, `bonusListIDs`)
|
||||||
SELECT cvs.`itemGuid`, cvs.`itemEntry`, cvs.`playerGuid`, cvs.`creatorGuid`, '', 0x1, '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ', cvs.`randomBonusListId`, 999, c.`totaltime`, UNIX_TIMESTAMP(), '', cvs.context, cvs.bonusListIDs FROM `character_void_storage` cvs
|
SELECT cvs.`itemGuid`, cvs.`itemEntry`, cvs.`playerGuid`, cvs.`creatorGuid`, '', 0x1, '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ', cvs.`randomBonusListId`, 999, c.`totaltime`, UNIX_TIMESTAMP(), '', cvs.context, cvs.bonusListIDs FROM `character_void_storage` cvs
|
||||||
LEFT JOIN `characters` c ON c.`guid` = cvs.`playerGuid`;
|
LEFT JOIN `characters` c ON c.`guid` = cvs.`playerGuid`;
|
||||||
|
|
||||||
INSERT INTO `item_instance_modifiers` (`itemGuid`, `fixedScalingLevel`, `artifactKnowledgeLevel`)
|
INSERT INTO `item_instance_modifiers` (`itemGuid`, `fixedScalingLevel`, `artifactKnowledgeLevel`)
|
||||||
SELECT cvs.`itemGuid`, COALESCE(cvs.`fixedScalingLevel`, 0), COALESCE(cvs.`artifactKnowledgeLevel`, 0) FROM `character_void_storage` cvs
|
SELECT cvs.`itemGuid`, COALESCE(cvs.`fixedScalingLevel`, 0), COALESCE(cvs.`artifactKnowledgeLevel`, 0) FROM `character_void_storage` cvs
|
||||||
WHERE cvs.`fixedScalingLevel` > 0 OR cvs.`artifactKnowledgeLevel` > 0;
|
WHERE cvs.`fixedScalingLevel` > 0 OR cvs.`artifactKnowledgeLevel` > 0;
|
||||||
|
|
||||||
INSERT INTO `character_inventory` (`guid`, `bag`, `slot`, `item`)
|
INSERT INTO `character_inventory` (`guid`, `bag`, `slot`, `item`)
|
||||||
SELECT cvs.`playerGuid`, cvs.`bagGuid`, cvs.`slot` MOD 80, cvs.`itemGuid` FROM `character_void_storage` cvs;
|
SELECT cvs.`playerGuid`, cvs.`bagGuid`, cvs.`slot` MOD 80, cvs.`itemGuid` FROM `character_void_storage` cvs;
|
||||||
|
|
||||||
ALTER TABLE `character_inventory`
|
ALTER TABLE `character_inventory`
|
||||||
DROP `bag_slot`,
|
DROP `bag_slot`,
|
||||||
DROP `new_slot`,
|
DROP `new_slot`,
|
||||||
MODIFY `slot` TINYINT UNSIGNED NOT NULL DEFAULT 0;
|
MODIFY `slot` TINYINT UNSIGNED NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `character_void_storage`;
|
DROP TABLE IF EXISTS `character_void_storage`;
|
||||||
|
END;;
|
||||||
|
|
||||||
|
DELIMITER ;
|
||||||
|
|
||||||
|
CALL apply_if_not_exists_2025_08_13_00();
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
DELETE FROM `build_info` WHERE `build` IN (62680);
|
||||||
|
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES
|
||||||
|
(62680,11,2,0,NULL);
|
||||||
|
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Win' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Win' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62680 AND `platform`='Win' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
INSERT INTO `build_auth_key` (`build`,`platform`,`arch`,`type`,`key`) VALUES
|
||||||
|
(62680,'Mac','A64','WoW',0x52D3CFF8AE101B720C4DF1B5288A1E8B),
|
||||||
|
(62680,'Mac','A64','WoWC',0x7FBBF2377E83B980B2501106B2F88CA9),
|
||||||
|
(62680,'Mac','x64','WoW',0xE8E4D9C538DAB507F623EBF3F7A503A8),
|
||||||
|
(62680,'Mac','x64','WoWC',0xACAF4F2E279ECFCD00787BB199F92F2C),
|
||||||
|
(62680,'Win','A64','WoW',0xFB08879F4B65374123CF59A650885A58),
|
||||||
|
(62680,'Win','x64','WoW',0x2E4DDEDE233C86BE7967901A85134A89),
|
||||||
|
(62680,'Win','x64','WoWC',0x539619B1D95663BBB7AB003BB6D0BA5E);
|
||||||
|
|
||||||
|
UPDATE `realmlist` SET `gamebuild`=62680 WHERE `gamebuild`=62493;
|
||||||
|
|
||||||
|
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int unsigned NOT NULL DEFAULT '62680';
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
DELETE FROM `build_info` WHERE `build` IN (62706);
|
||||||
|
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES
|
||||||
|
(62706,11,2,0,NULL);
|
||||||
|
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Win' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Win' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62706 AND `platform`='Win' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
INSERT INTO `build_auth_key` (`build`,`platform`,`arch`,`type`,`key`) VALUES
|
||||||
|
(62706,'Mac','A64','WoW',0x7372D28C666F784572DD68134C7BE334),
|
||||||
|
(62706,'Mac','A64','WoWC',0x051D00671FF57B9EDB916F132486DB36),
|
||||||
|
(62706,'Mac','x64','WoW',0xC38F4C4BE255E157128BC8A37B462F13),
|
||||||
|
(62706,'Mac','x64','WoWC',0xBCFAE421FED4748F8B02AE95E967EEED),
|
||||||
|
(62706,'Win','A64','WoW',0x30ACDD80A1EB57C6A7F2E42F00FC7D23),
|
||||||
|
(62706,'Win','x64','WoW',0xE2D46634684B91376459DB726284F1E2),
|
||||||
|
(62706,'Win','x64','WoWC',0xB09CA7D4EC722C8F3D8190A540AD4146);
|
||||||
|
|
||||||
|
UPDATE `realmlist` SET `gamebuild`=62706 WHERE `gamebuild`=62680;
|
||||||
|
|
||||||
|
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int unsigned NOT NULL DEFAULT '62706';
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
DELETE FROM `build_info` WHERE `build` IN (62748);
|
||||||
|
INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES
|
||||||
|
(62748,11,2,0,NULL);
|
||||||
|
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Mac' AND `arch`='A64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Mac' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Win' AND `arch`='A64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Win' AND `arch`='x64' AND `type`='WoW';
|
||||||
|
DELETE FROM `build_auth_key` WHERE `build`=62748 AND `platform`='Win' AND `arch`='x64' AND `type`='WoWC';
|
||||||
|
INSERT INTO `build_auth_key` (`build`,`platform`,`arch`,`type`,`key`) VALUES
|
||||||
|
(62748,'Mac','A64','WoW',0x9CAC1407FB10E3FDA83DAC1853428221),
|
||||||
|
(62748,'Mac','A64','WoWC',0x871EA7435FE7EF66FB7DA5608907D071),
|
||||||
|
(62748,'Mac','x64','WoW',0x831C90A6467734EB2F25E19A08216731),
|
||||||
|
(62748,'Mac','x64','WoWC',0x0EB9A67428B9A658EC5A1FEA4A3CFAC3),
|
||||||
|
(62748,'Win','A64','WoW',0x56C59031E7D37485DAD25A2BC4A49B86),
|
||||||
|
(62748,'Win','x64','WoW',0x099FE6DC3AD0811C751C0DA819D032B4),
|
||||||
|
(62748,'Win','x64','WoWC',0x6ECA332852D9BFF77CE2A9D71A976D55);
|
||||||
|
|
||||||
|
UPDATE `realmlist` SET `gamebuild`=62748 WHERE `gamebuild`=62706;
|
||||||
|
|
||||||
|
ALTER TABLE `realmlist` CHANGE `gamebuild` `gamebuild` int unsigned NOT NULL DEFAULT '62748';
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
DROP PROCEDURE IF EXISTS apply_if_not_exists_2025_08_13_00;
|
||||||
@@ -0,0 +1,248 @@
|
|||||||
|
SET @CGUID := 10006788;
|
||||||
|
SET @OGUID := 10001681;
|
||||||
|
|
||||||
|
SET @NPCTEXTID := 600116;
|
||||||
|
|
||||||
|
-- Creature
|
||||||
|
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+7;
|
||||||
|
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
|
||||||
|
(@CGUID+0, 235348, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1398.40625, -1134.265625, -3.10432958602905273, 6.232280731201171875, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- [DNT] Spell Target Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+1, 235348, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1212.74658203125, -1059.65283203125, -35.1666679382324218, 5.506845474243164062, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- [DNT] Spell Target Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+2, 235348, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1596.8663330078125, -1097.329833984375, -37.508331298828125, 3.536682605743408203, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- [DNT] Spell Target Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+3, 235348, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1626.265625, -716.84722900390625, -22.1847000122070312, 2.226778268814086914, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- [DNT] Spell Target Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+4, 235348, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1701.390625, -913.97918701171875, -75.6153335571289062, 0.731668353080749511, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- [DNT] Spell Target Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+5, 23837, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1310.90625, -1106.076416015625, -103.963172912597656, 1.595203638076782226, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- ELM General Purpose Bunny (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+6, 230736, 2738, 15336, 15792, '0', 25369, 0, 0, 0, 1328.7691650390625, -1034.5399169921875, -97.0651092529296875, 4.694455146789550781, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- Om'talad (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+7, 231820, 2738, 15336, 15792, '0', 25631, 0, 0, 0, 1329.8680419921875, -1041.6041259765625, -97.0377960205078125, 2.250078201293945312, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493); -- Ve'nari (Area: The Oasis - Difficulty: 0) CreateObject2 (Auras: 467288 - Create Area Trigger [DNT])
|
||||||
|
|
||||||
|
-- GameObject
|
||||||
|
DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+11;
|
||||||
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
|
||||||
|
(@OGUID+0, 516700, 2738, 15336, 15792, '0', 0, 0, 1281.8992919921875, -900.0555419921875, -119.790077209472656, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+1, 516700, 2738, 15336, 15792, '0', 0, 0, 1385.109375, -881.046875, -134.505523681640625, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+2, 516700, 2738, 15336, 15792, '0', 0, 0, 1336.2535400390625, -909.34552001953125, -119.464439392089843, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+3, 516700, 2738, 15336, 15792, '0', 0, 0, 1315.0538330078125, -895.3819580078125, -123.878517150878906, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+4, 516700, 2738, 15336, 15792, '0', 0, 0, 1294.41845703125, -854.38714599609375, -125.943008422851562, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+5, 516700, 2738, 15336, 15792, '0', 0, 0, 1382.439208984375, -859.00347900390625, -136.134963989257812, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+6, 516700, 2738, 15336, 15792, '0', 0, 0, 1255.28125, -892.125, -118.884857177734375, 0, 0, 0, 0, 1, 120, 255, 1, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+7, 516700, 2738, 15336, 15792, '0', 0, 0, 1253.8958740234375, -806.623291015625, -130.790115356445312, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+8, 516700, 2738, 15336, 15792, '0', 0, 0, 1359.7135009765625, -826.58160400390625, -138.333450317382812, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+9, 516700, 2738, 15336, 15792, '0', 0, 0, 1360.1041259765625, -804.28472900390625, -140.951812744140625, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+10, 516700, 2738, 15336, 15792, '0', 0, 0, 1414.7117919921875, -823.920166015625, -139.044769287109375, 0, 0, 0, 0, 1, 120, 255, 0, 62493), -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+11, 516700, 2738, 15336, 15792, '0', 0, 0, 1440.1319580078125, -832.04168701171875, -139.218246459960937, 0, 0, 0, 0, 1, 120, 255, 0, 62493); -- Oasis Animal Leavings (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
|
||||||
|
-- Template
|
||||||
|
UPDATE `creature_template` SET `faction`=35, `npcflag`=3, `BaseAttackTime`=2000, `unit_flags2`=0x800, `unit_flags3`=0x80000 WHERE `entry`=238239; -- Cartel Om Custodian
|
||||||
|
UPDATE `creature_template` SET `faction`=35, `BaseAttackTime`=2000, `unit_flags`=0x2000300, `unit_flags2`=0x800, `unit_flags3`=0x1000001, `flags_extra` = 128 WHERE `entry`=235348; -- [DNT] Spell Target Bunny
|
||||||
|
UPDATE `creature_template` SET `faction`=35, `npcflag`=3, `BaseAttackTime`=2000, `unit_flags`=0x100, `unit_flags2`=0x800 WHERE `entry`=231820; -- Ve'nari
|
||||||
|
UPDATE `creature_template` SET `faction`=35, `npcflag`=3, `BaseAttackTime`=2000, `unit_flags`=0x300, `unit_flags2`=0x800 WHERE `entry`=230736; -- Om'talad
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_template` WHERE `entry`=516700;
|
||||||
|
INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `Data33`, `Data34`, `ContentTuningId`, `VerifiedBuild`) VALUES
|
||||||
|
(516700, 3, 9572, 'Oasis Animal Leavings', 'questinteract', 'Collecting', '', 1, 1691, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19676, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130838, 0, 0, 0, 0, 3007, 62493); -- Oasis Animal Leavings
|
||||||
|
|
||||||
|
UPDATE `gameobject_template` SET `VerifiedBuild`=62493 WHERE `entry` IN (523491, 494777, 503267, 523512, 548694, 548689, 504210, 548690, 506585);
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_questitem` WHERE (`GameObjectEntry`=516700 AND `Idx`=0);
|
||||||
|
INSERT INTO `gameobject_questitem` (`GameObjectEntry`, `Idx`, `ItemId`, `VerifiedBuild`) VALUES
|
||||||
|
(516700, 0, 236416, 62493); -- Oasis Animal Leavings
|
||||||
|
|
||||||
|
-- Template Addon
|
||||||
|
DELETE FROM `creature_template_addon` WHERE `entry`=235348;
|
||||||
|
INSERT INTO `creature_template_addon` (`entry`, `PathId`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES
|
||||||
|
(235348, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 4, ''); -- 235348 ([DNT] Spell Target Bunny)
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_template_addon` WHERE `entry` IN (516700 /*Oasis Animal Leavings*/);
|
||||||
|
INSERT INTO `gameobject_template_addon` (`entry`, `faction`, `flags`, `WorldEffectID`, `AIAnimKitID`) VALUES
|
||||||
|
(516700, 0, 0x204004, 0, 0); -- Oasis Animal Leavings
|
||||||
|
|
||||||
|
-- Difficulty
|
||||||
|
DELETE FROM `creature_template_difficulty` WHERE (`DifficultyID`=0 AND `Entry` IN (238239,235348,231820,230736));
|
||||||
|
INSERT INTO `creature_template_difficulty` (`Entry`, `DifficultyID`, `HealthScalingExpansion`, `HealthModifier`, `ManaModifier`, `CreatureDifficultyID`, `TypeFlags`, `TypeFlags2`, `TypeFlags3`) VALUES
|
||||||
|
(238239, 0, 10, 1, 1, 317213, 0x0, 0, 0), -- Cartel Om Custodian
|
||||||
|
(235348, 0, 10, 1, 1, 314079, 0x400, 0, 0), -- [DNT] Spell Target Bunny
|
||||||
|
(231820, 0, 10, 50, 1, 283161, 0x0, 32768, 0), -- Ve'nari
|
||||||
|
(230736, 0, 10, 1, 1, 282040, 0x0, 32768, 0); -- Om'talad
|
||||||
|
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3008, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=238239 AND `DifficultyID`=0); -- 238239 (Cartel Om Custodian) - CanSwim
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3010, `StaticFlags1`=0x20000000, `VerifiedBuild`=62493 WHERE (`Entry`=235348 AND `DifficultyID`=0); -- 235348 ([DNT] Spell Target Bunny) - Floating
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2762, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=227709 AND `DifficultyID`=0); -- 227709 (Kaheti Citizen) - CanSwim
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3007, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=231820 AND `DifficultyID`=0); -- 231820 (Ve'nari) - CanSwim
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3008, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=230736 AND `DifficultyID`=0); -- 230736 (Om'talad) - CanSwim
|
||||||
|
|
||||||
|
-- Conversation
|
||||||
|
DELETE FROM `conversation_template` WHERE `Id`=28310;
|
||||||
|
INSERT INTO `conversation_template` (`Id`, `FirstLineID`, `TextureKitId`, `VerifiedBuild`) VALUES
|
||||||
|
(28310, 77831, 0, 62493);
|
||||||
|
|
||||||
|
DELETE FROM `conversation_actors` WHERE (`ConversationId`=28310 AND `Idx`=0);
|
||||||
|
INSERT INTO `conversation_actors` (`ConversationId`, `ConversationActorId`, `ConversationActorGuid`, `Idx`, `CreatureId`, `CreatureDisplayInfoId`, `NoActorObject`, `ActivePlayerObject`, `VerifiedBuild`) VALUES
|
||||||
|
(28310, 104996, 10006787, 0, 0, 0, 0, 0, 62493); -- Full: 0x203AE55640E8A0400057E6000021B129 Creature/0 R3769/S22502 Map: 2738 (K'aresh) Entry: 238209 (Cartel Om Custodian) Low: 2208041
|
||||||
|
|
||||||
|
DELETE FROM `conversation_line_template` WHERE `Id`=77831;
|
||||||
|
INSERT INTO `conversation_line_template` (`Id`, `UiCameraID`, `ActorIdx`, `Flags`, `ChatType`, `VerifiedBuild`) VALUES
|
||||||
|
(77831, 0, 0, 0, 0, 62493);
|
||||||
|
|
||||||
|
-- Phase
|
||||||
|
UPDATE `creature` SET `phaseId` = 25633 WHERE `guid` = 10006787;
|
||||||
|
|
||||||
|
DELETE FROM `phase_name` WHERE `ID` IN (25633,25369,25631);
|
||||||
|
INSERT INTO `phase_name` (`ID`, `Name`) VALUES
|
||||||
|
(25633, 'Cosmetic - See Cartel Om Custodian in The Oasis'),
|
||||||
|
(25369, 'Cosmetic - See Om''talad in The Oasis'),
|
||||||
|
(25631, 'Cosmetic - See Ve''nari in The Oasis');
|
||||||
|
|
||||||
|
DELETE FROM `phase_area` WHERE `PhaseId` IN (25633,25369,25631);
|
||||||
|
INSERT INTO `phase_area` (`AreaId`, `PhaseId`, `Comment`) VALUES
|
||||||
|
(15336, 25633, 'See Cartel Om Custodian in The Oasis'),
|
||||||
|
(15336, 25369, 'See Om''talad in The Oasis'),
|
||||||
|
(15336, 25631, 'See Ve''nari in The Oasis');
|
||||||
|
|
||||||
|
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId`=26 AND `SourceGroup` IN (25633,25369,25631) AND `SourceEntry` = 0);
|
||||||
|
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `Comment`) VALUE
|
||||||
|
(26, 25633, 0, 0, 0, 47, 0, 87337, 2|64, 0, 1, 'Apply Phase 25628 if Quest 87337 is not complete | rewarded'),
|
||||||
|
(26, 25369, 0, 0, 0, 47, 0, 87337, 2|64, 0, 0, 'Apply Phase 25628 if Quest 87337 is complete | rewarded'),
|
||||||
|
(26, 25631, 0, 0, 0, 47, 0, 87337, 2|64, 0, 0, 'Apply Phase 25628 if Quest 87337 is complete | rewarded');
|
||||||
|
|
||||||
|
-- Gamobject loot
|
||||||
|
DELETE FROM `gameobject_loot_template` WHERE `Entry` = 130838;
|
||||||
|
INSERT INTO `gameobject_loot_template` (`Entry`, `ItemType`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
|
||||||
|
(130838, 0, 236416, 100, 1, 1, 0, 1, 1, 'Oasis Animal Leavings');
|
||||||
|
|
||||||
|
-- Creature Text
|
||||||
|
DELETE FROM `creature_text` WHERE `CreatureID` = 238239;
|
||||||
|
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
|
||||||
|
(238239, 0, 0, 'Please stop! I didn\'t realize who you were! Ve\'nari has arrived. She\'s waiting for you.', 12, 0, 100, 1, 0, 0, 0, 5, 'Cartel Om Custodian to Player');
|
||||||
|
|
||||||
|
-- Gossip
|
||||||
|
DELETE FROM `creature_template_gossip` WHERE (`CreatureID`=238239 AND `MenuID`=38089) OR (`CreatureID`=231820 AND `MenuID`=37437) OR (`CreatureID`=230736 AND `MenuID`=37186);
|
||||||
|
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES
|
||||||
|
(238239, 38089, 62493), -- Cartel Om Custodian
|
||||||
|
(231820, 37437, 62493), -- Ve'nari
|
||||||
|
(230736, 37186, 62493); -- Om'talad
|
||||||
|
|
||||||
|
DELETE FROM `npc_text` WHERE `ID` BETWEEN @NPCTEXTID+0 AND @NPCTEXTID+2;
|
||||||
|
INSERT INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES
|
||||||
|
(@NPCTEXTID+0, 1, 0, 0, 0, 0, 0, 0, 0, 281555, 0, 0, 0, 0, 0, 0, 0, 62493), -- 238239 (Cartel Om Custodian)
|
||||||
|
(@NPCTEXTID+1, 1, 0, 0, 0, 0, 0, 0, 0, 277014, 0, 0, 0, 0, 0, 0, 0, 62493), -- 230736 (Om'talad)
|
||||||
|
(@NPCTEXTID+2, 1, 0, 0, 0, 0, 0, 0, 0, 278432, 0, 0, 0, 0, 0, 0, 0, 62493); -- 231820 (Ve'nari)
|
||||||
|
|
||||||
|
DELETE FROM `gossip_menu` WHERE (`MenuID`=38089 AND `TextID`=@NPCTEXTID+0) OR (`MenuID`=37186 AND `TextID`=@NPCTEXTID+1) OR (`MenuID`=37437 AND `TextID`=@NPCTEXTID+2);
|
||||||
|
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
|
||||||
|
(38089, @NPCTEXTID+0, 62493), -- 238239 (Cartel Om Custodian)
|
||||||
|
(37186, @NPCTEXTID+1, 62493), -- 230736 (Om'talad)
|
||||||
|
(37437, @NPCTEXTID+2, 62493); -- 231820 (Ve'nari)
|
||||||
|
|
||||||
|
-- Quest
|
||||||
|
DELETE FROM `creature_questender` WHERE (`id`=231820 AND `quest`=87337);
|
||||||
|
INSERT INTO `creature_questender` (`id`, `quest`, `VerifiedBuild`) VALUES
|
||||||
|
(231820, 87337, 62493); -- Custodian Duties ended by Ve'nari
|
||||||
|
|
||||||
|
DELETE FROM `quest_offer_reward` WHERE `ID`=87337;
|
||||||
|
INSERT INTO `quest_offer_reward` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `RewardText`, `VerifiedBuild`) VALUES
|
||||||
|
(87337, 1, 0, 0, 0, 0, 0, 0, 0, 'I apologize for the task my custodian gave you. Good help is difficult to find.', 62493); -- Custodian Duties
|
||||||
|
|
||||||
|
DELETE FROM `quest_objectives_completion_effect` WHERE `ObjectiveID` IN (457891,457878);
|
||||||
|
INSERT INTO `quest_objectives_completion_effect` (`ObjectiveID`, `GameEventID`, `SpellID`, `ConversationID`, `UpdatePhaseShift`, `UpdateZoneAuras`) VALUES
|
||||||
|
(457891, NULL, 1219736, NULL, 0, 0),
|
||||||
|
(457878, NULL, 1219735, NULL, 1, 0);
|
||||||
|
|
||||||
|
-- Spawntracking
|
||||||
|
DELETE FROM `spawn_tracking_template` WHERE `SpawnTrackingId` IN (2722672 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722673 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722675 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722674 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722670 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722671 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722676 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722677 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722680 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722679 /*Map: 2738 (K'aresh) - Phase: 0*/, 2722678 /*Map: 2738 (K'aresh) - Phase: 0*/, 2834475 /*Map: 2738 (K'aresh) - Phase: 0*/);
|
||||||
|
INSERT INTO `spawn_tracking_template` (`SpawnTrackingId`, `MapId`, `PhaseId`, `PhaseGroup`, `PhaseUseFlags`, `VerifiedBuild`) VALUES
|
||||||
|
(2722672, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722673, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722675, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722674, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722670, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722671, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722676, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722677, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722680, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722679, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2722678, 2738, 0, 0, 0, 62493), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2834475, 2738, 0, 0, 0, 62493); -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking_quest_objective` WHERE (`SpawnTrackingId` IN (2722672,2722673,2722675,2722674,2722670,2722671,2722676,2722677,2722680,2722679,2722678,2834475) AND `QuestObjectiveId`=457891);
|
||||||
|
INSERT INTO `spawn_tracking_quest_objective` (`SpawnTrackingId`, `QuestObjectiveId`, `VerifiedBuild`) VALUES
|
||||||
|
(2722672, 457891, 62493),
|
||||||
|
(2722673, 457891, 62493),
|
||||||
|
(2722675, 457891, 62493),
|
||||||
|
(2722674, 457891, 62493),
|
||||||
|
(2722670, 457891, 62493),
|
||||||
|
(2722671, 457891, 62493),
|
||||||
|
(2722676, 457891, 62493),
|
||||||
|
(2722677, 457891, 62493),
|
||||||
|
(2722680, 457891, 62493),
|
||||||
|
(2722679, 457891, 62493),
|
||||||
|
(2722678, 457891, 62493),
|
||||||
|
(2834475, 457891, 62493);
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking` WHERE (`SpawnType`=1 AND `SpawnId` IN (@OGUID+0,@OGUID+1,@OGUID+2,@OGUID+3,@OGUID+4,@OGUID+5,@OGUID+6,@OGUID+7,@OGUID+8,@OGUID+9,@OGUID+10,@OGUID+11));
|
||||||
|
INSERT INTO `spawn_tracking` (`SpawnTrackingId`, `SpawnType`, `SpawnId`, `QuestObjectiveIds`) VALUES
|
||||||
|
(2722672, 1, @OGUID+0, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722673, 1, @OGUID+1, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722675, 1, @OGUID+2, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722674, 1, @OGUID+3, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722670, 1, @OGUID+4, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722671, 1, @OGUID+5, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722676, 1, @OGUID+6, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722677, 1, @OGUID+7, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722680, 1, @OGUID+8, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722679, 1, @OGUID+9, 457891), -- Oasis Animal Leavings
|
||||||
|
(2722678, 1, @OGUID+10, 457891), -- Oasis Animal Leavings
|
||||||
|
(2834475, 1, @OGUID+11, 457891); -- Oasis Animal Leavings
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking_state` WHERE (`SpawnType`=1 AND `SpawnId` IN (@OGUID+0,@OGUID+1,@OGUID+2,@OGUID+3,@OGUID+4,@OGUID+5,@OGUID+6,@OGUID+7,@OGUID+8,@OGUID+9,@OGUID+10,@OGUID+11));
|
||||||
|
INSERT INTO `spawn_tracking_state` (`SpawnType`, `SpawnId`, `State`, `Visible`, `StateSpellVisualId`, `StateAnimId`, `StateAnimKitId`, `StateWorldEffects`) VALUES
|
||||||
|
(1, @OGUID+0, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+0, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+0, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+2, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+2, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+2, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+3, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+3, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+3, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+4, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+4, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+4, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+5, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+5, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+5, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+6, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+6, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+6, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+7, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+7, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+7, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+8, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+8, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+8, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+9, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+9, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+9, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+10, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+10, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+10, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+11, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+11, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+11, 2, 0, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
-- Cartel Om Custodian smart ai
|
||||||
|
SET @ENTRY := 238209;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 87337, 0, 0, 0, 0, 143, 28310, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player accepted quest Custodian Duties (87337) - Player who accepted quest: Start conversation 28310', '');
|
||||||
|
|
||||||
|
-- Cartel Om Custodian smart ai
|
||||||
|
SET @ENTRY := 238239;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'On just summoned - Owner/Summoner: Talk 0 to invoker', ''),
|
||||||
|
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 120000, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On just summoned - Self: Despawn in 120 s', '');
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
SET @CGUID := 10006796;
|
||||||
|
SET @OGUID := 10001693;
|
||||||
|
|
||||||
|
SET @NPCTEXTID := 600119;
|
||||||
|
|
||||||
|
-- Creature
|
||||||
|
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+1;
|
||||||
|
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
|
||||||
|
(@CGUID+0, 233346, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1514.1197509765625, -725.1319580078125, -129.7012939453125, 3.801227331161499023, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493), -- Thorntail Matriarch (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@CGUID+1, 232648, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1414.7239990234375, -808.06427001953125, -138.291824340820312, 3.996766090393066406, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62493); -- Slateback Alpha (Area: The Oasis - Difficulty: 0) CreateObject1 (Auras: 465256 - Foundation 1 - Spawn Aura)
|
||||||
|
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+1;
|
||||||
|
INSERT INTO `creature_addon` (`guid`, `PathId`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES
|
||||||
|
(@CGUID+1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, '465256'); -- Slateback Alpha - 465256 - Foundation 1 - Spawn Aura
|
||||||
|
|
||||||
|
-- GameObject
|
||||||
|
DELETE FROM `gameobject` WHERE `guid` = @OGUID+0;
|
||||||
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
|
||||||
|
(@OGUID+0, 494777, 2738, 15336, 15792, '0', 0, 0, 1335.2708740234375, -1029.0694580078125, -98.3940963745117187, 5.593780994415283203, 0, 0, -0.33791637420654296, 0.941176116466522216, 120, 255, 1, 62493); -- The Oasis Console (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
|
||||||
|
-- Template
|
||||||
|
UPDATE `creature_template` SET `faction`=190, `npcflag`=1, `BaseAttackTime`=2000, `unit_flags`=0x300, `unit_flags2`=0x800 WHERE `entry`=233346; -- Thorntail Matriarch
|
||||||
|
UPDATE `creature_template` SET `faction`=190, `npcflag`=1, `speed_run`=1, `BaseAttackTime`=2000, `unit_flags`=0x300, `unit_flags2`=0x800 WHERE `entry`=232648; -- Slateback Alpha
|
||||||
|
|
||||||
|
-- Difficulty
|
||||||
|
DELETE FROM `creature_template_difficulty` WHERE (`DifficultyID`=0 AND `Entry` IN (233346,232648));
|
||||||
|
INSERT INTO `creature_template_difficulty` (`Entry`, `DifficultyID`, `HealthScalingExpansion`, `HealthModifier`, `ManaModifier`, `CreatureDifficultyID`, `TypeFlags`, `TypeFlags2`, `TypeFlags3`) VALUES
|
||||||
|
(233346, 0, 10, 4, 1, 284932, 0x80080048, 0, 0), -- Thorntail Matriarch
|
||||||
|
(232648, 0, 10, 4, 1, 284072, 0x80080048, 0, 0); -- Slateback Alpha
|
||||||
|
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=2838, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=233346 AND `DifficultyID`=0); -- 233346 (Thorntail Matriarch) - CanSwim
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3007, `StaticFlags1`=0x10000000, `VerifiedBuild`=62493 WHERE (`Entry`=232648 AND `DifficultyID`=0); -- 232648 (Slateback Alpha) - CanSwim
|
||||||
|
|
||||||
|
-- Gossip
|
||||||
|
DELETE FROM `creature_template_gossip` WHERE (`CreatureID`=233346 AND `MenuID` IN (38098,37141)) OR (`CreatureID`=232648 AND `MenuID`=36878);
|
||||||
|
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES
|
||||||
|
(233346, 37141, 62493), -- Thorntail Matriarch
|
||||||
|
(232648, 36878, 62493); -- Slateback Alpha
|
||||||
|
|
||||||
|
DELETE FROM `npc_text` WHERE `ID` BETWEEN @NPCTEXTID+0 AND @NPCTEXTID+7;
|
||||||
|
INSERT INTO `npc_text` (`ID`, `Probability0`, `Probability1`, `Probability2`, `Probability3`, `Probability4`, `Probability5`, `Probability6`, `Probability7`, `BroadcastTextId0`, `BroadcastTextId1`, `BroadcastTextId2`, `BroadcastTextId3`, `BroadcastTextId4`, `BroadcastTextId5`, `BroadcastTextId6`, `BroadcastTextId7`, `VerifiedBuild`) VALUES
|
||||||
|
(@NPCTEXTID+0, 1, 0, 0, 0, 0, 0, 0, 0, 276994, 0, 0, 0, 0, 0, 0, 0, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(@NPCTEXTID+1, 1, 0, 0, 0, 0, 0, 0, 0, 276900, 0, 0, 0, 0, 0, 0, 0, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(@NPCTEXTID+2, 1, 0, 0, 0, 0, 0, 0, 0, 281603, 0, 0, 0, 0, 0, 0, 0, 62493), -- 232648 (Slateback Alpha)
|
||||||
|
(@NPCTEXTID+3, 1, 0, 0, 0, 0, 0, 0, 0, 281607, 0, 0, 0, 0, 0, 0, 0, 62493), -- 233346 (Thorntail Matriarch)
|
||||||
|
(@NPCTEXTID+4, 1, 0, 0, 0, 0, 0, 0, 0, 274867, 0, 0, 0, 0, 0, 0, 0, 62493), -- 232648 (Slateback Alpha)
|
||||||
|
(@NPCTEXTID+5, 1, 0, 0, 0, 0, 0, 0, 0, 276900, 0, 0, 0, 0, 0, 0, 0, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(@NPCTEXTID+6, 1, 0, 0, 0, 0, 0, 0, 0, 276787, 0, 0, 0, 0, 0, 0, 0, 62493), -- 233346 (Thorntail Matriarch)
|
||||||
|
(@NPCTEXTID+7, 1, 0, 0, 0, 0, 0, 0, 0, 276900, 0, 0, 0, 0, 0, 0, 0, 62493); -- 494777 (The Oasis Console)
|
||||||
|
|
||||||
|
DELETE FROM `gossip_menu` WHERE (`MenuID`=37164 AND `TextID`=@NPCTEXTID+0) OR (`MenuID`=37165 AND `TextID`=@NPCTEXTID+1) OR (`MenuID`=38097 AND `TextID`=@NPCTEXTID+2) OR (`MenuID`=38098 AND `TextID`=@NPCTEXTID+3) OR (`MenuID`=36878 AND `TextID`=@NPCTEXTID+4) OR (`MenuID`=37174 AND `TextID`=@NPCTEXTID+5) OR (`MenuID`=37141 AND `TextID`=@NPCTEXTID+6) OR (`MenuID`=37178 AND `TextID`=@NPCTEXTID+7);
|
||||||
|
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
|
||||||
|
(37164, @NPCTEXTID+0, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(37165, @NPCTEXTID+1, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(38097, @NPCTEXTID+2, 62493), -- 232648 (Slateback Alpha)
|
||||||
|
(38098, @NPCTEXTID+3, 62493), -- 233346 (Thorntail Matriarch)
|
||||||
|
(36878, @NPCTEXTID+4, 62493), -- 232648 (Slateback Alpha)
|
||||||
|
(37174, @NPCTEXTID+5, 62493), -- 494777 (The Oasis Console)
|
||||||
|
(37141, @NPCTEXTID+6, 62493), -- 233346 (Thorntail Matriarch)
|
||||||
|
(37178, @NPCTEXTID+7, 62493); -- 494777 (The Oasis Console)
|
||||||
|
|
||||||
|
DELETE FROM `gossip_menu_option` WHERE (`OptionID`=4 AND `MenuID`=37164) OR (`OptionID`=0 AND `MenuID` IN (37165,37174,37178)) OR (`OptionID`=1 AND `MenuID`=36878) OR (`OptionID`=3 AND `MenuID`=37164) OR (`OptionID`=2 AND `MenuID` IN (37141,37164));
|
||||||
|
INSERT INTO `gossip_menu_option` (`MenuID`, `GossipOptionID`, `OptionID`, `OptionNpc`, `OptionText`, `OptionBroadcastTextID`, `Language`, `Flags`, `ActionMenuID`, `ActionPoiID`, `GossipNpcOptionID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `SpellID`, `OverrideIconID`, `VerifiedBuild`) VALUES
|
||||||
|
(37164, 125344, 4, 0, 'Lapbugs', 0, 0, 0, 37178, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37165, 125355, 0, 0, 'Check another species.', 0, 0, 0, 37164, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(36878, 132138, 1, 0, '<Carefully reach out to the slateback alpha.>', 0, 0, 1, 38097, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37174, 132542, 0, 0, 'Check another species.', 0, 0, 0, 37164, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37164, 125345, 3, 0, 'Thorntails', 0, 0, 0, 37174, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37178, 125358, 0, 0, 'Check another species.', 0, 0, 0, 37164, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37141, 132139, 2, 0, '<Carefully reach out to the thorntail matriarch.>', 0, 0, 1, 0, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493),
|
||||||
|
(37164, 125346, 2, 0, 'Slatebacks', 0, 0, 0, 37165, 0, NULL, 0, 0, NULL, 0, NULL, NULL, 62493);
|
||||||
|
|
||||||
|
-- Quest
|
||||||
|
DELETE FROM `creature_queststarter` WHERE (`id`=231820 AND `quest` IN (87338,87339));
|
||||||
|
INSERT INTO `creature_queststarter` (`id`, `quest`, `VerifiedBuild`) VALUES
|
||||||
|
(231820, 87338, 62493), -- Day One Orientation offered by Ve'nari
|
||||||
|
(231820, 87339, 62493); -- Ongoing Activities offered by Ve'nari
|
||||||
|
|
||||||
|
DELETE FROM `creature_questender` WHERE (`id`=231820 AND `quest`=87338);
|
||||||
|
INSERT INTO `creature_questender` (`id`, `quest`, `VerifiedBuild`) VALUES
|
||||||
|
(231820, 87338, 62493); -- Day One Orientation ended by Ve'nari
|
||||||
|
|
||||||
|
DELETE FROM `quest_details` WHERE `ID` IN (87338 /*Day One Orientation*/, 87339 /*Ongoing Activities*/);
|
||||||
|
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
|
||||||
|
(87338, 1, 0, 0, 0, 0, 0, 0, 0, 62493), -- Day One Orientation
|
||||||
|
(87339, 1, 0, 0, 0, 0, 0, 0, 0, 62493); -- Ongoing Activities
|
||||||
|
|
||||||
|
DELETE FROM `quest_request_items` WHERE `ID`=87338;
|
||||||
|
INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `EmoteOnCompleteDelay`, `EmoteOnIncompleteDelay`, `CompletionText`, `VerifiedBuild`) VALUES
|
||||||
|
(87338, 0, 1, 0, 0, 'Have you familiarized yourself with the animals?', 62493); -- Day One Orientation
|
||||||
|
|
||||||
|
DELETE FROM `quest_template_addon` WHERE `ID` IN (87338,87339);
|
||||||
|
INSERT INTO `quest_template_addon` (`ID`, `MaxLevel`, `AllowableClasses`, `SourceSpellID`, `PrevQuestID`, `NextQuestID`, `ExclusiveGroup`, `BreadcrumbForQuestId`, `RewardMailTemplateID`, `RewardMailDelay`, `RequiredSkillID`, `RequiredSkillPoints`, `RequiredMinRepFaction`, `RequiredMaxRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepValue`, `ProvidedItemCount`, `SpecialFlags`, `ScriptName`) VALUES
|
||||||
|
(87338, 0, 0, 0, 87337, 87340, -87338, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ''),
|
||||||
|
(87339, 0, 0, 0, 87337, 87340, -87338, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '');
|
||||||
|
|
||||||
|
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` IN (36878));
|
||||||
|
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
|
||||||
|
(15, 36878, 1, 0, 0, 47, 0, 87338, 8, 0, '', 0, 'Player for which gossip text is shown has Day One Orientation (87338) in state incomplete'),
|
||||||
|
(15, 36878, 1, 0, 0, 48, 0, 457894, 0, 1, '', 1, 'Player for which gossip text is shown has quest objective 457894 == 1 (but hasn\'t rewarded quest yet)');
|
||||||
|
|
||||||
|
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` IN (37141));
|
||||||
|
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
|
||||||
|
(15, 37141, 2, 0, 0, 47, 0, 87338, 8, 0, '', 0, 'Player for which gossip text is shown has Day One Orientation (87338) in state incomplete'),
|
||||||
|
(15, 37141, 2, 0, 0, 48, 0, 457893, 0, 1, '', 1, 'Player for which gossip text is shown has quest objective 457893 == 1 (but hasn\'t rewarded quest yet)');
|
||||||
|
|
||||||
|
-- Slateback Alpha smart ai
|
||||||
|
SET @ENTRY := 232648;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 0, 62, 0, 100, 0, 36878, 1, 0, 0, 0, 33, 232648, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 1 from menu 36878 selected - Gossip player: Give kill credit Slateback Alpha (232648)', '');
|
||||||
|
|
||||||
|
-- Thorntail Matriarch smart ai
|
||||||
|
SET @ENTRY := 233346;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 1, 62, 0, 100, 0, 37141, 2, 0, 0, 0, 80, 23334600, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 37141 selected - Self: Start timed action list id #Thorntail Matriarch #0 (23334600) (update out of combat)', ''),
|
||||||
|
(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On gossip action 2 from menu 37141 selected - Gossip player: Close gossip', '');
|
||||||
|
|
||||||
|
-- Timed list 23334600 smart ai
|
||||||
|
SET @ENTRY := 23334600;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 9 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 149, 8, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'After 0 seconds - Self: Become personal clone for Last action invoker for 0 seconds (manual despawn)', ''),
|
||||||
|
(@ENTRY, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 33, 233346, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 'After 0 seconds - Owner/Summoner: Give kill credit 233346', ''),
|
||||||
|
(@ENTRY, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 0 seconds - Self: Set npc flags NONE', ''),
|
||||||
|
(@ENTRY, 9, 3, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 5, 377, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 1 seconds - Self: Play emote 377', ''),
|
||||||
|
(@ENTRY, 9, 4, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'After 8 seconds - Self: Despawn instantly', '');
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_critical_chaos';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(320413,'spell_dh_critical_chaos');
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (372152);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(372152,0x00,7,0x00000040,0x00000000,0x00000000,0x00000000,0x0,0x0,0x0,0x0,0x0,0x10,0x0,0,0,0,0); -- Dream of Cenarius
|
||||||
|
|
||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dru_dream_of_cenarius_guardian';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(372119,'spell_dru_dream_of_cenarius_guardian');
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (377210);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(377210,0x00,7,0x00000800,0x00000000,0x08000000,0x00000000,0x0,0x0,0x1,0x2,0x0,0x0,0x0,0,0,0,0); -- Ursoc's Fury
|
||||||
|
|
||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dru_ursocs_fury';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(377210,'spell_dru_ursocs_fury');
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (200854, 201671);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(200854,0x00,7,0x00000000,0x00000040,0x00000000,0x00000000,0x0,0x0,0x1,0x2,0x0,0x0,0x0,0,0,0,0), -- Gory Fur
|
||||||
|
(201671,0x00,7,0x00000000,0x00000000,0x00004000,0x00000000,0x0,0x0,0x4,0x2,0x0,0x10,0x0,0,0,0,0); -- Gory Fur
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dru_shooting_stars';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(202342,'spell_dru_shooting_stars');
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_penetrating_shots';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(459783,'spell_hun_penetrating_shots');
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (388004);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(388004,0x00,4,0x00000000,0x00000000,0x00000000,0x00000400,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0,0,0,0); -- Slaughtering Strikes
|
||||||
|
|
||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (393931);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(393931,0x00,4,0x00000000,0x00000000,0x00000000,0x00800000,0x0,0x0,0x0,0x4,0x0,0x0,0x0,0,0,0,1); -- Slaughtering Strikes
|
||||||
@@ -0,0 +1,160 @@
|
|||||||
|
SET @CGUID := 10006798;
|
||||||
|
SET @OGUID := 10001694;
|
||||||
|
|
||||||
|
SET @GOB_ENTRY := 10000000;
|
||||||
|
|
||||||
|
-- Creature
|
||||||
|
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+1;
|
||||||
|
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES
|
||||||
|
(@CGUID+0, 233187, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1302.4739990234375, -885.94793701171875, -126.032546997070312, 1.051946163177490234, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62706), -- Data Collection Drone (Area: The Oasis - Difficulty: 0) CreateObject1 (Auras: )
|
||||||
|
(@CGUID+1, 233187, 2738, 15336, 15792, '0', 0, 0, 0, 0, 1227.921142578125, -844.20733642578125, -124.653602600097656, 4.836744308471679687, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 62706); -- Data Collection Drone (Area: The Oasis - Difficulty: 0) CreateObject1 (Auras: )
|
||||||
|
|
||||||
|
DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+2;
|
||||||
|
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
|
||||||
|
(@OGUID+0, 516786, 2738, 15336, 15792, '0', 0, 0, 1297.3524169921875, -759.8367919921875, -137.005340576171875, 0, 0, 0, 0, 1, 120, 255, 1, 62706), -- Torn-up Earth (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+1, 516792, 2738, 15336, 15792, '0', 0, 0, 1394.41845703125, -803.27777099609375, -139.8629150390625, 0, 0, 0, 0, 1, 120, 255, 1, 62706), -- Watering Jug (Area: The Oasis - Difficulty: 0) CreateObject1
|
||||||
|
(@OGUID+2, @GOB_ENTRY, 2738, 15336, 15792, '0', 0, 0, 1412.061523, -800.647034, -138.438431, 0, 0, 0, 0, 1, 120, 255, 1, 62706); -- K'areshi Plant (Area: The Oasis - Difficulty: 0)
|
||||||
|
|
||||||
|
-- Template
|
||||||
|
UPDATE `creature_template` SET `faction`=35, `npcflag`=17196646400, `BaseAttackTime`=2000, `unit_flags`=0x300, `unit_flags2`=0x800, `unit_flags3`=0x20 WHERE `entry`=233187; -- Data Collection Drone
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_template` WHERE `entry` = @GOB_ENTRY;
|
||||||
|
INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `Data33`, `Data34`, `ContentTuningId`, `VerifiedBuild`) VALUES
|
||||||
|
(@GOB_ENTRY, 8, 0, 'K''areshi Plant', '', '', '', 1, 2222, 10, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -62706); -- K'areshi Plant (Spellfocus)
|
||||||
|
|
||||||
|
DELETE FROM `gameobject_template` WHERE `entry` IN (516792 /*Watering Jug*/, 516786 /*Torn-up Earth*/);
|
||||||
|
INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `Data33`, `Data34`, `ContentTuningId`, `VerifiedBuild`) VALUES
|
||||||
|
(516792, 3, 97887, 'Watering Jug', 'questinteract', '', '', 1, 2124, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130842, 0, 0, 0, 0, 3007, 62706), -- Watering Jug
|
||||||
|
(516786, 10, 75129, 'Torn-up Earth', 'questinteract', 'Leveling earth.', '', 3, 3723, 0, 0, 3000, 0, 0, 0, 0, 0, 0, 469881, 0, 0, 0, 276309, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62706); -- Torn-up Earth
|
||||||
|
|
||||||
|
-- Difficulty
|
||||||
|
DELETE FROM `creature_template_difficulty` WHERE (`DifficultyID`=0 AND `Entry` IN (233187));
|
||||||
|
INSERT INTO `creature_template_difficulty` (`Entry`, `DifficultyID`, `HealthScalingExpansion`, `HealthModifier`, `ManaModifier`, `CreatureDifficultyID`, `TypeFlags`, `TypeFlags2`, `TypeFlags3`) VALUES
|
||||||
|
(233187, 0, 10, 1, 1, 284677, 0x0, 0, 0); -- Data Collection Drone
|
||||||
|
|
||||||
|
UPDATE `creature_template_difficulty` SET `ContentTuningID`=3007, `VerifiedBuild`=62706 WHERE (`Entry`=233187 AND `DifficultyID`=0); -- 233187 (Data Collection Drone) -
|
||||||
|
|
||||||
|
-- Conversation
|
||||||
|
DELETE FROM `conversation_template` WHERE `Id`=28311;
|
||||||
|
INSERT INTO `conversation_template` (`Id`, `FirstLineID`, `TextureKitId`, `VerifiedBuild`) VALUES
|
||||||
|
(28311, 77832, 0, 62706);
|
||||||
|
|
||||||
|
DELETE FROM `conversation_actors` WHERE (`ConversationId`=28311 AND `Idx`=0);
|
||||||
|
INSERT INTO `conversation_actors` (`ConversationId`, `ConversationActorId`, `ConversationActorGuid`, `Idx`, `CreatureId`, `CreatureDisplayInfoId`, `NoActorObject`, `ActivePlayerObject`, `VerifiedBuild`) VALUES
|
||||||
|
(28311, 102228, 10006795, 0, 0, 0, 0, 0, 62706); -- Full: 0x203ADD5640E26300002A89000025D9CB Creature/0 R3767/S10889 Map: 2738 (K'aresh) Entry: 231820 (Ve'nari) Low: 2480587
|
||||||
|
|
||||||
|
DELETE FROM `conversation_line_template` WHERE `Id` IN (77834, 77833, 77832);
|
||||||
|
INSERT INTO `conversation_line_template` (`Id`, `UiCameraID`, `ActorIdx`, `Flags`, `ChatType`, `VerifiedBuild`) VALUES
|
||||||
|
(77834, 0, 0, 0, 0, 62706),
|
||||||
|
(77833, 0, 0, 0, 0, 62706),
|
||||||
|
(77832, 0, 0, 0, 0, 62706);
|
||||||
|
|
||||||
|
-- Creature Text
|
||||||
|
DELETE FROM `creature_text` WHERE `CreatureID` = 233187;
|
||||||
|
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
|
||||||
|
(233187, 0, 0, 'Would you be interested in filling out a satisfaction survey about your interaction today?', 12, 0, 100, 1, 0, 0, 0, 5, 'Data Collection Drone to Player');
|
||||||
|
|
||||||
|
-- Loot
|
||||||
|
DELETE FROM `gameobject_loot_template` WHERE `Entry` = 130842;
|
||||||
|
INSERT INTO `gameobject_loot_template` (`Entry`, `ItemType`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
|
||||||
|
(130842, 0, 236641, 100, 1, 1, 0, 1, 1, 'Watering Jug');
|
||||||
|
|
||||||
|
-- Spellclick
|
||||||
|
DELETE FROM `npc_spellclick_spells` WHERE `npc_entry` = 233187;
|
||||||
|
INSERT INTO `npc_spellclick_spells` (`npc_entry`, `spell_id`, `cast_flags`, `user_type`) VALUES
|
||||||
|
(233187, 469827, 1, 0);
|
||||||
|
|
||||||
|
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 18) AND (`SourceGroup` IN (233187));
|
||||||
|
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ConditionStringValue1`, `NegativeCondition`, `Comment`) VALUES
|
||||||
|
(18, 233187, 469827, 0, 0, 47, 0, 87339, 8, 0, '', 0, 'Clicker has Ongoing Activities (87339) in state incomplete'),
|
||||||
|
(18, 233187, 469827, 0, 0, 48, 0, 457923, 0, 1, '', 1, 'Clicker hasn\'t quest objective 457923 < 1 or has rewarded the quest');
|
||||||
|
|
||||||
|
-- Quest
|
||||||
|
DELETE FROM `quest_request_items` WHERE `ID`=87339;
|
||||||
|
INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `EmoteOnCompleteDelay`, `EmoteOnIncompleteDelay`, `CompletionText`, `VerifiedBuild`) VALUES
|
||||||
|
(87339, 0, 1, 0, 0, 'Have you been hard at work?', 0); -- Ongoing Activities
|
||||||
|
|
||||||
|
DELETE FROM `creature_questender` WHERE (`id`=231820 AND `quest`=87339);
|
||||||
|
INSERT INTO `creature_questender` (`id`, `quest`, `VerifiedBuild`) VALUES
|
||||||
|
(231820, 87339, 62706); -- Ongoing Activities ended by Ve'nari
|
||||||
|
|
||||||
|
-- Spawntracking
|
||||||
|
DELETE FROM `spawn_tracking_template` WHERE `SpawnTrackingId` IN (2723099 /*Map: 2738 (K'aresh) - Phase: 0*/, 2723111 /*Map: 2738 (K'aresh) - Phase: 25276*/);
|
||||||
|
INSERT INTO `spawn_tracking_template` (`SpawnTrackingId`, `MapId`, `PhaseId`, `PhaseGroup`, `PhaseUseFlags`, `VerifiedBuild`) VALUES
|
||||||
|
(2723099, 2738, 0, 0, 0, 62706), -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
(2723111, 2738, 0, 0, 0, 62706); -- Map: 2738 (K'aresh) - Phase: 0
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking_quest_objective` WHERE (`SpawnTrackingId`=2723099 AND `QuestObjectiveId`=457857) OR (`SpawnTrackingId`=2723111 AND `QuestObjectiveId`=457924);
|
||||||
|
INSERT INTO `spawn_tracking_quest_objective` (`SpawnTrackingId`, `QuestObjectiveId`, `VerifiedBuild`) VALUES
|
||||||
|
(2723099, 457857, 62706), -- 2723099
|
||||||
|
(2723111, 457924, 62706); -- 2723111
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking` WHERE (`SpawnType`=1 AND `SpawnId` IN (@OGUID+0,@OGUID+1));
|
||||||
|
INSERT INTO `spawn_tracking` (`SpawnTrackingId`, `SpawnType`, `SpawnId`, `QuestObjectiveIds`) VALUES
|
||||||
|
(2723099, 1, @OGUID+0, 457857), -- Torn-up Earth
|
||||||
|
(2723111, 1, @OGUID+1, 457924); -- Watering Jug
|
||||||
|
|
||||||
|
DELETE FROM `spawn_tracking_state` WHERE (`SpawnType`=1 AND `SpawnId` IN (@OGUID+0,@OGUID+1));
|
||||||
|
INSERT INTO `spawn_tracking_state` (`SpawnType`, `SpawnId`, `State`, `Visible`, `StateSpellVisualId`, `StateAnimId`, `StateAnimKitId`, `StateWorldEffects`) VALUES
|
||||||
|
(1, @OGUID+0, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+0, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+0, 2, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 0, 0, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 1, 1, NULL, NULL, NULL, NULL),
|
||||||
|
(1, @OGUID+1, 2, 0, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
-- Ve'nari smart ai
|
||||||
|
SET @ENTRY := 231820;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 0, 19, 0, 100, 0, 87339, 0, 0, 0, 0, 143, 28311, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On player accepted quest Ongoing Activities (87339) - Player who accepted quest: Start conversation 28311', '');
|
||||||
|
|
||||||
|
-- Data Collection Drone smart ai
|
||||||
|
SET @ENTRY := 233187;
|
||||||
|
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
|
||||||
|
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
|
||||||
|
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `action_param7`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`, `Difficulties`) VALUES
|
||||||
|
(@ENTRY, 0, 0, 0, 73, 0, 100, 0, 0, 0, 0, 0, 0, 54, 60000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'On spellclick - Self: Pause path for 60000 ms', ''),
|
||||||
|
(@ENTRY, 0, 1, 2, 8, 0, 100, 0, 469827, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spell 469827 hit - Self: Look at Caster', ''),
|
||||||
|
(@ENTRY, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spell 469827 hit - Caster: Talk 0 to invoker', ''),
|
||||||
|
(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 33, 244059, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'On spell 469827 hit - Caster: Give kill credit Kill Credit (244059)', '');
|
||||||
|
|
||||||
|
-- Path for Data Collection Drone
|
||||||
|
SET @MOVERGUID := @CGUID+0;
|
||||||
|
SET @ENTRY := 233187;
|
||||||
|
SET @PATHOFFSET := 0;
|
||||||
|
SET @PATH := @ENTRY * 100 + @PATHOFFSET;
|
||||||
|
DELETE FROM `waypoint_path` WHERE `PathId`= @PATH;
|
||||||
|
INSERT INTO `waypoint_path` (`PathId`, `MoveType`, `Flags`, `Velocity`, `Comment`) VALUES
|
||||||
|
(@PATH, 0, 0x0, NULL, 'Data Collection Drone - Cosmetic Path');
|
||||||
|
|
||||||
|
DELETE FROM `waypoint_path_node` WHERE `PathId`= @PATH;
|
||||||
|
INSERT INTO `waypoint_path_node` (`PathId`, `NodeId`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `Delay`) VALUES
|
||||||
|
(@PATH, 0, 1227.5354, -841.25183, -124.14137, NULL, 8328),
|
||||||
|
(@PATH, 1, 1223.7646, -880.0996, -123.935776, NULL, 28023),
|
||||||
|
(@PATH, 2, 1235.9968, -882.0809, -123.70522, NULL, 8376);
|
||||||
|
|
||||||
|
UPDATE `creature` SET `position_x`=1227.5354, `position_y`=-841.25183, `position_z`=-124.14137, `orientation`=0, `wander_distance`=0, `MovementType`=2 WHERE `guid`=@MOVERGUID;
|
||||||
|
DELETE FROM `creature_addon` WHERE `guid`=@MOVERGUID;
|
||||||
|
INSERT INTO `creature_addon` (`guid`, `PathId`, `SheathState`) VALUES
|
||||||
|
(@MOVERGUID, @PATH, 1);
|
||||||
|
|
||||||
|
-- Path for Data Collection Drone
|
||||||
|
SET @MOVERGUID := @CGUID+1;
|
||||||
|
SET @ENTRY := 233187;
|
||||||
|
SET @PATHOFFSET := 1;
|
||||||
|
SET @PATH := @ENTRY * 100 + @PATHOFFSET;
|
||||||
|
DELETE FROM `waypoint_path` WHERE `PathId`= @PATH;
|
||||||
|
INSERT INTO `waypoint_path` (`PathId`, `MoveType`, `Flags`, `Velocity`, `Comment`) VALUES
|
||||||
|
(@PATH, 0, 0x0, NULL, 'Data Collection Drone - Cosmetic Path');
|
||||||
|
|
||||||
|
DELETE FROM `waypoint_path_node` WHERE `PathId`= @PATH;
|
||||||
|
INSERT INTO `waypoint_path_node` (`PathId`, `NodeId`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `Delay`) VALUES
|
||||||
|
(@PATH, 0, 1317.0851, -853.60815, -127.79284, NULL, 17915),
|
||||||
|
(@PATH, 1, 1293.8005, -901.1426, -120.94093, NULL, 7988);
|
||||||
|
|
||||||
|
UPDATE `creature` SET `position_x`=1317.0851, `position_y`=-853.60815, `position_z`=-127.79284, `orientation`=0, `wander_distance`=0, `MovementType`=2 WHERE `guid`=@MOVERGUID;
|
||||||
|
DELETE FROM `creature_addon` WHERE `guid`=@MOVERGUID;
|
||||||
|
INSERT INTO `creature_addon` (`guid`, `PathId`, `SheathState`) VALUES
|
||||||
|
(@MOVERGUID, @PATH, 1);
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_hun_master_marksman';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||||
|
(260309,'spell_hun_master_marksman');
|
||||||
|
|
||||||
|
DELETE FROM `spell_proc` WHERE `SpellId` IN (260309);
|
||||||
|
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
|
||||||
|
(260309,0x00,9,0x00000000,0x00000000,0x00000000,0x00000000,0x0,0x0,0x1,0x2,0x2,0x0,0x0,0,0,0,0); -- Master Marksman
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
--
|
||||||
|
DELETE FROM `command` WHERE `name`='guild list';
|
||||||
|
INSERT INTO `command` (`name`, `help`) VALUES
|
||||||
|
('guild list','Syntax: .guild list. Lists every guild: ID | Name | Leader | Creation date | Members | Bank gold');
|
||||||
|
|
||||||
|
-- Strings for .guild list output
|
||||||
|
DELETE FROM `trinity_string` WHERE `entry` BETWEEN 1219 AND 1222;
|
||||||
|
INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES
|
||||||
|
-- Title
|
||||||
|
(1219,'%s=== Guild list ===%s'),
|
||||||
|
-- Header (6 string args for labels)
|
||||||
|
(1220,'%s ID | Name | Leader | Creation date | Members | Bank gold%s'),
|
||||||
|
-- Row (id, name, gm, created, members, bankGold)
|
||||||
|
(1221,'%6u | %-24.24s | %-16.16s | %-19s | %7u | %10u'),
|
||||||
|
-- Total
|
||||||
|
(1222,'%sTotal guilds: %u%s');
|
||||||
Reference in New Issue
Block a user