mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
Load single-player NPC spawns from local AzerothCore SQL assets
This commit is contained in:
parent
5f519e77e3
commit
ae37e5592e
164 changed files with 1862344 additions and 60 deletions
6
assets/sql/updates/2016_11_18_00.sql
Normal file
6
assets/sql/updates/2016_11_18_00.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE version_db_world CHANGE COLUMN 2016_11_06_02 2016_11_18_00 bit;
|
||||
|
||||
--
|
||||
-- Do not remove this file when we archive sql under this folder
|
||||
-- it is needed for pending sql importer
|
||||
--
|
||||
23
assets/sql/updates/2016_11_19_00.sql
Normal file
23
assets/sql/updates/2016_11_19_00.sql
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
-- DB update 2016_11_18_00 -> 2016_11_19_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2016_11_18_00 2016_11_19_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1477236823674130000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
INSERT INTO version_db_world(`sql_rev`) VALUES ('1477236823674130000');
|
||||
|
||||
UPDATE `quest_template` SET `SpecialFlags` = "0", `RequiredItemId1` = "31811", `RequiredItemCount1` ="1", `Flags` = "0" WHERE `ID` = "10923";
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END;
|
||||
//
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
26
assets/sql/updates/2016_11_26_00.sql
Normal file
26
assets/sql/updates/2016_11_26_00.sql
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
-- DB update 2016_11_19_00 -> 2016_11_26_00
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2016_11_19_00 2016_11_26_00 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1478948588825091300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
INSERT INTO version_db_world(`sql_rev`) VALUES ('1478948588825091300');
|
||||
|
||||
-- Mute for player
|
||||
DELETE FROM trinity_string WHERE entry = 30000;
|
||||
INSERT INTO trinity_string(`entry`,`content_default`,`content_loc6`,`content_loc7`,`content_loc8`) VALUES
|
||||
(30000, 'Speaking is allowed after playing for at least %d. You may use party and guild chat.','Podrás hablar cuando hayas jugado durante al menos %d. Puedes usar el chat de grupo y de hermandad.','Podrás hablar cuando hayas jugado durante al menos %d. Puedes usar el chat de grupo y de hermandad','Вы сможете говорить после %d проведенных минут в игре, но можете использовать чат гильдии и группы.');
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END;
|
||||
//
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
66
assets/sql/updates/2016_11_26_01.sql
Normal file
66
assets/sql/updates/2016_11_26_01.sql
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
-- DB update 2016_11_26_00 -> 2016_11_26_01
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
DELIMITER //
|
||||
CREATE PROCEDURE updateDb ()
|
||||
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2016_11_26_00 2016_11_26_01 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1479653240477084000'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1479653240477084000');
|
||||
|
||||
DROP TABLE IF EXISTS `creature_questitem`;
|
||||
CREATE TABLE `creature_questitem` (
|
||||
`CreatureEntry` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`Idx` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`ItemId` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`CreatureEntry`,`Idx`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `gameobject_questitem`;
|
||||
CREATE TABLE `gameobject_questitem` (
|
||||
`GameObjectEntry` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`Idx` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`ItemId` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`GameObjectEntry`,`Idx`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 0, gameobject_template.questItem1 FROM gameobject_template WHERE gameobject_template.questItem1 != 0);
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 1, gameobject_template.questItem2 FROM gameobject_template WHERE gameobject_template.questItem2 != 0);
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 2, gameobject_template.questItem3 FROM gameobject_template WHERE gameobject_template.questItem3 != 0);
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 3, gameobject_template.questItem4 FROM gameobject_template WHERE gameobject_template.questItem4 != 0);
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 4, gameobject_template.questItem5 FROM gameobject_template WHERE gameobject_template.questItem5 != 0);
|
||||
INSERT INTO gameobject_questitem (`GameObjectEntry`, `Idx`, `ItemId`)
|
||||
(SELECT gameobject_template.entry, 5, gameobject_template.questItem6 FROM gameobject_template WHERE gameobject_template.questItem6 != 0);
|
||||
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 0, creature_template.questItem1 FROM creature_template WHERE creature_template.questItem1 != 0);
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 1, creature_template.questItem2 FROM creature_template WHERE creature_template.questItem2 != 0);
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 2, creature_template.questItem3 FROM creature_template WHERE creature_template.questItem3 != 0);
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 3, creature_template.questItem4 FROM creature_template WHERE creature_template.questItem4 != 0);
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 4, creature_template.questItem5 FROM creature_template WHERE creature_template.questItem5 != 0);
|
||||
INSERT INTO creature_questitem (`CreatureEntry`, `Idx`, `ItemId`)
|
||||
(SELECT creature_template.entry, 5, creature_template.questItem6 FROM creature_template WHERE creature_template.questItem6 != 0);
|
||||
|
||||
ALTER TABLE `creature_template` DROP `questItem1`, DROP `questItem2`, DROP `questItem3`, DROP `questItem4`, DROP `questItem5`, DROP `questItem6`;
|
||||
ALTER TABLE `gameobject_template` DROP `questItem1`, DROP `questItem2`, DROP `questItem3`, DROP `questItem4`, DROP `questItem5`, DROP `questItem6`;
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END;
|
||||
//
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
12390
assets/sql/updates/2016_12_02_00.sql
Normal file
12390
assets/sql/updates/2016_12_02_00.sql
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue