forked from MangosExtras/MangosOne_Localised
-
Notifications
You must be signed in to change notification settings - Fork 0
/
B_replace_BaseEnglish_with_English.sql
93 lines (78 loc) · 4.14 KB
/
B_replace_BaseEnglish_with_English.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
-- ----------------------------------------------------------------------------------------------------------------
-- WARNING: Running this script will replace the English text in the base World Database with the localised version
-- ----------------------------------------------------------------------------------------------------------------
-- 1/14
UPDATE `creature_template`
INNER JOIN `locales_creature` ON `creature_template`.`entry` = `locales_creature`.`Entry`
SET creature_template.`Name`=`locales_creature`.`name_loc0`,creature_template.`subName`=`locales_creature`.`subname_loc0`;
-- 2/14
UPDATE `creature_ai_texts`
SET `content_default` = `content_loc0`;
-- 3/14
UPDATE `db_script_string`
SET `content_default` = `content_loc0` ;
-- 4/14
UPDATE `gameobject_template`
INNER JOIN `locales_gameobject` ON `gameobject_template`.`entry` = `locales_gameobject`.`Entry`
SET gameobject_template.`Name` = `locales_gameobject`.`name_loc0`;
-- 5/14
UPDATE `gossip_texts`
SET `content_default` = `content_loc0` ;
-- 6/14
UPDATE `gossip_menu_option`
INNER JOIN `locales_gossip_menu_option` ON gossip_menu_option.`menu_id`=`locales_gossip_menu_option`.`menu_id` AND gossip_menu_option.`id`=`locales_gossip_menu_option`.`id`
SET gossip_menu_option.`option_text`=`locales_gossip_menu_option`.`option_text_loc0`, gossip_menu_option.`box_text`=`locales_gossip_menu_option`.`box_text_loc0`;
-- 7/14
UPDATE `item_template`
INNER JOIN `locales_item` ON item_template.`Entry`=`locales_item`.`entry`
SET item_template.`Name`=`locales_item`.`name_loc0`,item_template.`description`=COALESCE(`locales_item`.`description_loc0`,'');
-- 8/14
UPDATE `mangos_string`
SET `content_default` = `content_loc0` ;
-- 9/14
UPDATE `page_text`
INNER JOIN `locales_page_text` ON page_text.`entry`=`locales_page_text`.`entry`
SET page_text.`Text`=COALESCE(`locales_page_text`.`Text_loc0`,'');
-- 10/14
UPDATE `points_of_interest`
INNER JOIN `locales_points_of_interest` ON points_of_interest.`entry`=`locales_points_of_interest`.`entry`
SET points_of_interest.`icon_name`=COALESCE(`locales_points_of_interest`.`icon_name_loc0`,`locales_points_of_interest`.`icon_name_loc0`);
-- 11/14
UPDATE `quest_template`
INNER JOIN `locales_quest` ON quest_template.`entry`=`locales_quest`.`entry`
SET quest_template.`Title`=`locales_quest`.`Title_loc0`,
quest_template.`Details`=`locales_quest`.`Details_loc0`,
quest_template.`Objectives`=`locales_quest`.`Objectives_loc0`,
quest_template.`OfferRewardText`=`locales_quest`.`OfferRewardText_loc0`,
quest_template.`RequestItemsText`=`locales_quest`.`RequestItemsText_loc0`,
quest_template.`EndText`=`locales_quest`.`EndText_loc0`,
quest_template.`ObjectiveText1`=`locales_quest`.`ObjectiveText1_loc0`,
quest_template.`ObjectiveText2`=`locales_quest`.`ObjectiveText2_loc0`,
quest_template.`ObjectiveText3`=`locales_quest`.`ObjectiveText3_loc0`,
quest_template.`ObjectiveText4`=`locales_quest`.`ObjectiveText4_loc0`;
-- 12/14
UPDATE `script_texts`
SET `content_default` = `content_loc0`;
-- 13/14
UPDATE `npc_text`
INNER JOIN `locales_npc_text` ON npc_text.`id`=`locales_npc_text`.`entry`
SET npc_text.`Text0_0`=`locales_npc_text`.`Text0_0_loc0`,
npc_text.`Text0_1`=`locales_npc_text`.`Text0_1_loc0`,
npc_text.`Text1_0`=`locales_npc_text`.`Text1_0_loc0`,
npc_text.`Text1_1`=`locales_npc_text`.`Text1_1_loc0`,
npc_text.`Text2_0`=`locales_npc_text`.`Text2_0_loc0`,
npc_text.`Text2_1`=`locales_npc_text`.`Text2_1_loc0`,
npc_text.`Text3_0`=`locales_npc_text`.`Text3_0_loc0`,
npc_text.`Text3_1`=`locales_npc_text`.`Text3_1_loc0`,
npc_text.`Text4_0`=`locales_npc_text`.`Text4_0_loc0`,
npc_text.`Text4_1`=`locales_npc_text`.`Text4_1_loc0`,
npc_text.`Text5_0`=`locales_npc_text`.`Text5_0_loc0`,
npc_text.`Text5_1`=`locales_npc_text`.`Text5_1_loc0`,
npc_text.`Text6_0`=`locales_npc_text`.`Text6_0_loc0`,
npc_text.`Text6_1`=`locales_npc_text`.`Text6_1_loc0`,
npc_text.`Text7_0`=`locales_npc_text`.`Text7_0_loc0`,
npc_text.`Text7_1`=`locales_npc_text`.`Text7_1_loc0`;
-- 14/14
UPDATE `command`
INNER JOIN `locales_command` ON `command`.`id`=`locales_command`.`id`
SET `command`.`help_text`=`locales_command`.`help_text_loc0`;