mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Structure
* implemented changes from 9a3b28894d (broadcastText localization)
This commit is contained in:
@@ -972,10 +972,7 @@ class NpcPage extends GenericPage
|
|||||||
ct.TextRange AS `range`,
|
ct.TextRange AS `range`,
|
||||||
IFNULL(bct.`Language`, ct.`language`) AS lang,
|
IFNULL(bct.`Language`, ct.`language`) AS lang,
|
||||||
IFNULL(NULLIF(bct.MaleText, ""), IFNULL(NULLIF(bct.FemaleText, ""), IFNULL(ct.`text`, ""))) AS text_loc0,
|
IFNULL(NULLIF(bct.MaleText, ""), IFNULL(NULLIF(bct.FemaleText, ""), IFNULL(ct.`text`, ""))) AS text_loc0,
|
||||||
IFNULL(NULLIF(lbct.MaleText_loc2, ""), IFNULL(NULLIF(lbct.FemaleText_loc2, ""), IFNULL(lct.text_loc2, ""))) AS text_loc2,
|
{IFNULL(NULLIF(bctl.MaleText, ""), IFNULL(NULLIF(bctl.FemaleText, ""), IFNULL(lct.text_loc?d, ""))) AS text_loc?d,}
|
||||||
IFNULL(NULLIF(lbct.MaleText_loc3, ""), IFNULL(NULLIF(lbct.FemaleText_loc3, ""), IFNULL(lct.text_loc3, ""))) AS text_loc3,
|
|
||||||
IFNULL(NULLIF(lbct.MaleText_loc6, ""), IFNULL(NULLIF(lbct.FemaleText_loc6, ""), IFNULL(lct.text_loc6, ""))) AS text_loc6,
|
|
||||||
IFNULL(NULLIF(lbct.MaleText_loc8, ""), IFNULL(NULLIF(lbct.FemaleText_loc8, ""), IFNULL(lct.text_loc8, ""))) AS text_loc8,
|
|
||||||
IF(bct.SoundId > 0, bct.SoundId, ct.sound) AS soundId
|
IF(bct.SoundId > 0, bct.SoundId, ct.sound) AS soundId
|
||||||
FROM
|
FROM
|
||||||
creature_text ct
|
creature_text ct
|
||||||
@@ -983,11 +980,11 @@ class NpcPage extends GenericPage
|
|||||||
locales_creature_text lct ON ct.entry = lct.entry AND ct.groupid = lct.groupid AND ct.id = lct.id
|
locales_creature_text lct ON ct.entry = lct.entry AND ct.groupid = lct.groupid AND ct.id = lct.id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
broadcast_text bct ON ct.BroadcastTextId = bct.ID
|
broadcast_text bct ON ct.BroadcastTextId = bct.ID
|
||||||
LEFT JOIN
|
{LEFT JOIN
|
||||||
locales_broadcast_text lbct ON ct.BroadcastTextId = lbct.ID
|
broadcast_text_locale bctl ON ct.BroadcastTextId = bctl.ID AND bctl.locale = ?}
|
||||||
WHERE
|
WHERE
|
||||||
ct.entry = ?d',
|
ct.entry = ?d',
|
||||||
$this->typeId
|
User::$localeId ?: DBSIMPLE_SKIP, User::$localeId, User::$localeId ? Util::$localeStrings[User::$localeId] : DBSIMPLE_SKIP, $this->typeId
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($quoteSrc as $text)
|
foreach ($quoteSrc as $text)
|
||||||
|
|||||||
Reference in New Issue
Block a user