mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Localization/Chinese
* added support for locale 4 * some strings are missing and will need to be translated at a later date * thx @qyh214 for a lot of content Co-authored-by: qyh214 <sandy0214qin@msn.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,6 +21,7 @@ class CLISetup
|
||||
'' => LOCALE_EN, 'enGB' => LOCALE_EN, 'enUS' => LOCALE_EN,
|
||||
'frFR' => LOCALE_FR,
|
||||
'deDE' => LOCALE_DE,
|
||||
'zhCN' => LOCALE_CN, 'enCN' => LOCALE_CN,
|
||||
'esES' => LOCALE_ES, 'esMX' => LOCALE_ES,
|
||||
'ruRU' => LOCALE_RU
|
||||
);
|
||||
@@ -41,8 +42,8 @@ class CLISetup
|
||||
if (!empty($_['locales']))
|
||||
{
|
||||
// engb and enus are identical for all intents and purposes
|
||||
$from = ['engb', 'esmx'];
|
||||
$to = ['enus', 'eses'];
|
||||
$from = ['engb', 'esmx', 'encn'];
|
||||
$to = ['enus', 'eses', 'zhcn'];
|
||||
$_['locales'] = str_ireplace($from, $to, strtolower($_['locales']));
|
||||
|
||||
self::$locales = array_intersect(Util::$localeStrings, explode(',', $_['locales']));
|
||||
|
||||
@@ -40,21 +40,21 @@ if (!CLI)
|
||||
*/
|
||||
class DBC
|
||||
{
|
||||
private $_formats = array( // locales block for copy pasta: sxssxxsxsxxxxxxxx | xxxxxxxxxxxxxxxxx
|
||||
'achievement' => 'niiisxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxiiiiisxssxxsxsxxxxxxxxii',
|
||||
'achievement_category' => 'nisxssxxsxsxxxxxxxxx',
|
||||
'achievement_criteria' => 'niiiiiiiisxssxxsxsxxxxxxxxiixii',
|
||||
'areatable' => 'niixixxiiixsxssxxsxsxxxxxxxxixxxxxxx',
|
||||
private $_formats = array( // locales block for copy pasta: sxsssxsxsxxxxxxxx | xxxxxxxxxxxxxxxxx
|
||||
'achievement' => 'niiisxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxiiiiisxsssxsxsxxxxxxxxii',
|
||||
'achievement_category' => 'nisxsssxsxsxxxxxxxxx',
|
||||
'achievement_criteria' => 'niiiiiiiisxsssxsxsxxxxxxxxiixii',
|
||||
'areatable' => 'niixixxiiixsxsssxsxsxxxxxxxxixxxxxxx',
|
||||
'areatrigger' => 'niffxxxxxx',
|
||||
'battlemasterlist' => 'niixxxxxxixxxxxxxxxxxxxxxxxxixii',
|
||||
'charbaseinfo' => 'bb',
|
||||
'charstartoutfit' => 'nbbbXiiiiiiiiiiiiiiiiiiiixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'chartitles' => 'nxsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxi',
|
||||
'chrclasses' => 'nxixsxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsxixi',
|
||||
'chrraces' => 'niixxxxixxxsxisxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi',
|
||||
'chartitles' => 'nxsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxi',
|
||||
'chrclasses' => 'nxixsxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxsxixi',
|
||||
'chrraces' => 'niixxxxixxxsxisxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxi',
|
||||
'creaturedisplayinfo' => 'niiixxssssxxixxx',
|
||||
'creaturedisplayinfoextra' => 'nxxxxxxxxxxxxxxxxxxxs',
|
||||
'creaturefamily' => 'nxxxxixiiisxssxxsxsxxxxxxxxs',
|
||||
'creaturefamily' => 'nxxxxixiiisxsssxsxsxxxxxxxxs',
|
||||
'creaturemodeldata' => 'nxxxxxxxxxxxxixxxxxxxxxxxxxx',
|
||||
'creaturesounddata' => 'niiiixiiiiiiiiixxxxixxxxixiiiiixxiiiix',
|
||||
'currencytypes' => 'niix',
|
||||
@@ -63,9 +63,9 @@ class DBC
|
||||
'durabilityquality' => 'nf',
|
||||
'emotes' => 'nxixxxx',
|
||||
'emotestext' => 'nsiixxxixixxxxxxxxx',
|
||||
'emotestextdata' => 'nsxssxxsxsxxxxxxxx',
|
||||
'emotestextdata' => 'nsxsssxsxsxxxxxxxx',
|
||||
'emotestextsound' => 'niiii',
|
||||
'faction' => 'niiiiiiiiiiiiiixxxiffixsxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'faction' => 'niiiiiiiiiiiiiixxxiffixsxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'factiontemplate' => 'nixiiiiiiiiiii',
|
||||
'gemproperties' => 'nixxi',
|
||||
'glyphproperties' => 'niii',
|
||||
@@ -79,20 +79,20 @@ class DBC
|
||||
'gtregenmpperspt' => 'f',
|
||||
'gtregenhpperspt' => 'f',
|
||||
'holidays' => 'nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixxxxxxxxxxiisxix',
|
||||
'holidaydescriptions' => 'nsxssxxsxsxxxxxxxx',
|
||||
'holidaynames' => 'nsxssxxsxsxxxxxxxx',
|
||||
'holidaydescriptions' => 'nsxsssxsxsxxxxxxxx',
|
||||
'holidaynames' => 'nsxsssxsxsxxxxxxxx',
|
||||
'itemdisplayinfo' => 'nssxxsxxxxxiixxxxxxxxxxxx',
|
||||
'itemgroupsounds' => 'niixx',
|
||||
'itemextendedcost' => 'niiiiiiiiiiiiiix',
|
||||
'itemlimitcategory' => 'nsxssxxsxsxxxxxxxxii',
|
||||
'itemrandomproperties' => 'nsiiiiisxssxxsxsxxxxxxxx',
|
||||
'itemrandomsuffix' => 'nsxssxxsxsxxxxxxxxsiiiiiiiiii',
|
||||
'itemset' => 'nsxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiiiiiiiiii',
|
||||
'itemlimitcategory' => 'nsxsssxsxsxxxxxxxxii',
|
||||
'itemrandomproperties' => 'nsiiiiisxsssxsxsxxxxxxxx',
|
||||
'itemrandomsuffix' => 'nsxsssxsxsxxxxxxxxsiiiiiiiiii',
|
||||
'itemset' => 'nsxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiiiiiiiiii',
|
||||
'itemsubclass' => 'iixxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'lfgdungeons' => 'nsxssxxsxsxxxxxxxxiiiiiiixiixixixxxxxxxxxxxxxxxxx',
|
||||
'lfgdungeons' => 'nsxsssxsxsxxxxxxxxiiiiiiixiixixixxxxxxxxxxxxxxxxx',
|
||||
'lock' => 'niiiiixxxiiiiixxxiiiiixxxxxxxxxxx',
|
||||
'mailtemplate' => 'nsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxx',
|
||||
'map' => 'nsixisxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiffxixi',
|
||||
'mailtemplate' => 'nsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxx',
|
||||
'map' => 'nsixisxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiffxixi',
|
||||
'mapdifficulty' => 'niixxxxxxxxxxxxxxxxxxis',
|
||||
'material' => 'nxxii',
|
||||
'npcsounds' => 'niiix',
|
||||
@@ -103,33 +103,33 @@ class DBC
|
||||
'randproppoints' => 'niiiiiiiiiiiiiii',
|
||||
'scalingstatdistribution' => 'niiiiiiiiiiiiiiiiiiiii',
|
||||
'scalingstatvalues' => 'xniiiiiiiiiiiiiiiiiiiiii',
|
||||
'skillline' => 'nixsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxixxxxxxxxxxxxxxxxxx',
|
||||
'skillline' => 'nixsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxixxxxxxxxxxxxxxxxxx',
|
||||
'skilllineability' => 'niiiixxixiiixx',
|
||||
'skillraceclassinfo' => 'niiiiixx',
|
||||
'soundambience' => 'nii',
|
||||
'soundemitters' => 'nffxxxxiix',
|
||||
'soundentries' => 'nisssssssssssxxxxxxxxxxsxixxxx',
|
||||
'spell' => 'niiiuuuuuuuuixixxxixxxxxxxxxiiixxxxiiiiiiiiiiiixxiiiiiiiiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffiiiiiiiiiiiiixsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxsxssxxsxsxxxxxxxxiiiiiiiiiixxfffxxxiixiixifffii',
|
||||
'spell' => 'niiiuuuuuuuuixixxxixxxxxxxxxiiixxxxiiiiiiiiiiiixxiiiiiiiiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffiiiiiiiiiiiiixsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxsxsssxsxsxxxxxxxxiiiiiiiiiixxfffxxxiixiixifffii',
|
||||
'spellcasttimes' => 'nixx',
|
||||
'spelldescriptionvariables' => 'ns',
|
||||
'spelldifficulty' => 'xiiii',
|
||||
'spellduration' => 'nixx',
|
||||
'spellfocusobject' => 'nsxssxxsxsxxxxxxxx',
|
||||
'spellfocusobject' => 'nsxsssxsxsxxxxxxxx',
|
||||
'spellicon' => 'ns',
|
||||
'spellitemenchantment' => 'niiiiiiixxxiiisxssxxsxsxxxxxxxxxxxiiii',
|
||||
'spellitemenchantment' => 'niiiiiiixxxiiisxsssxsxsxxxxxxxxxxxiiii',
|
||||
'spellitemenchantmentcondition' => 'nbbbbbxxxxxbbbbbbbbbbiiiiiXXXXX',
|
||||
'spellradius' => 'nfxf',
|
||||
'spellrange' => 'nffffisxssxxsxsxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'spellrange' => 'nffffisxsssxsxsxxxxxxxxxxxxxxxxxxxxxxxxx',
|
||||
'spellrunecost' => 'niiii',
|
||||
'spellshapeshiftform' => 'nxsxssxxsxsxxxxxxxxiixxiixxiiiiiiii',
|
||||
'spellshapeshiftform' => 'nxsxsssxsxsxxxxxxxxiixxiixxiiiiiiii',
|
||||
'spellvisual' => 'niiiiiixxxxiixiixxxxxxiiiixxxxxx',
|
||||
'spellvisualkit' => 'nxxxxxxxxxxxxxxixxxxxxxxxxxxxxxxxxxxxx',
|
||||
'talent' => 'niiiiiiiixxxxixxixxixii',
|
||||
'talenttab' => 'nsxssxxsxsxxxxxxxxiiiiis',
|
||||
'taxinodes' => 'niffxsxssxxsxsxxxxxxxxxx',
|
||||
'talenttab' => 'nsxsssxsxsxxxxxxxxiiiiis',
|
||||
'taxinodes' => 'niffxsxsssxsxsxxxxxxxxxx',
|
||||
'taxipath' => 'niix',
|
||||
'taxipathnode' => 'niiiffxxxxx',
|
||||
'totemcategory' => 'nsxssxxsxsxxxxxxxxiu',
|
||||
'totemcategory' => 'nsxsssxsxsxxxxxxxxiu',
|
||||
'vocaluisounds' => 'nxiiixx',
|
||||
'weaponimpactsounds' => 'nixiiiiiiiiiiiiiiiiiiii',
|
||||
'weaponswingsounds2' => 'nixi',
|
||||
@@ -142,20 +142,20 @@ class DBC
|
||||
);
|
||||
|
||||
private $_fields = array(
|
||||
'achievement' => 'id,faction,map,previous,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,description_loc0,description_loc2,description_loc3,description_loc6,description_loc8,category,points,orderInGroup,flags,iconId,reward_loc0,reward_loc2,reward_loc3,reward_loc6,reward_loc8,reqCriteriaCount,refAchievement',
|
||||
'achievement_category' => 'id,parentCategory,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'achievement_criteria' => 'id,refAchievementId,type,value1,value2,value3,value4,value5,value6,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,completionFlags,groupFlags,timeLimit,order',
|
||||
'areatable' => 'id,mapId,areaTable,flags,soundAmbience,zoneMusic,zoneIntroMusic,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,factionGroupMask',
|
||||
'achievement' => 'id,faction,map,previous,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,description_loc0,description_loc2,description_loc3,description_loc4,description_loc6,description_loc8,category,points,orderInGroup,flags,iconId,reward_loc0,reward_loc2,reward_loc3,reward_loc4,reward_loc6,reward_loc8,reqCriteriaCount,refAchievement',
|
||||
'achievement_category' => 'id,parentCategory,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'achievement_criteria' => 'id,refAchievementId,type,value1,value2,value3,value4,value5,value6,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,completionFlags,groupFlags,timeLimit,order',
|
||||
'areatable' => 'id,mapId,areaTable,flags,soundAmbience,zoneMusic,zoneIntroMusic,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,factionGroupMask',
|
||||
'areatrigger' => 'id,mapId,posY,posX',
|
||||
'battlemasterlist' => 'id,mapId,moreMapId,areaType,maxPlayers,minLevel,maxLevel',
|
||||
'charbaseinfo' => 'raceId,classId',
|
||||
'charstartoutfit' => 'id,raceId,classId,gender,item1,item2,item3,item4,item5,item6,item7,item8,item9,item10,item11,item12,item13,item14,item15,item16,item17,item18,item19,item20',
|
||||
'chartitles' => 'id,male_loc0,male_loc2,male_loc3,male_loc6,male_loc8,female_loc0,female_loc2,female_loc3,female_loc6,female_loc8,bitIdx',
|
||||
'chrclasses' => 'id,powerType,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,fileString,flags,expansion',
|
||||
'chrraces' => 'id,flags,factionId,baseLanguage,fileString,side,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,expansion',
|
||||
'chartitles' => 'id,male_loc0,male_loc2,male_loc3,male_loc4,male_loc6,male_loc8,female_loc0,female_loc2,female_loc3,female_loc4,female_loc6,female_loc8,bitIdx',
|
||||
'chrclasses' => 'id,powerType,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,fileString,flags,expansion',
|
||||
'chrraces' => 'id,flags,factionId,baseLanguage,fileString,side,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,expansion',
|
||||
'creaturedisplayinfo' => 'id,modelId,creatureSoundId,extraInfoId,skin1,skin2,skin3,iconString,npcSoundId',
|
||||
'creaturedisplayinfoextra' => 'id,textureString',
|
||||
'creaturefamily' => 'id,skillLine1,petFoodMask,petTalentType,categoryEnumID,name_loc0,name_loc2,name_loc3,name_lo6,name_loc8,iconString',
|
||||
'creaturefamily' => 'id,skillLine1,petFoodMask,petTalentType,categoryEnumID,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,iconString',
|
||||
'creaturemodeldata' => 'id,creatureSoundId',
|
||||
'creaturesounddata' => 'id,exertion,exertionCritical,injury,injuryCritical,death,stun,stand,footstepTerrainId,aggro,wingFlap,wingGlide,alert,fidget,customAttack,loop,jumpStart,jumpEnd,petAttack,petOrder,petDismiss,birth,spellcast,submerge,submerged',
|
||||
'currencytypes' => 'id,itemId,category',
|
||||
@@ -165,8 +165,8 @@ class DBC
|
||||
'emotes' => 'id,animationId',
|
||||
'emotestext' => 'id,command,emoteId,targetId,noTargetId,selfId',
|
||||
'emotestextsound' => 'id,emotesTextId,raceId,gender,soundId',
|
||||
'emotestextdata' => 'id,text_loc0,text_loc2,text_loc3,text_loc6,text_loc8',
|
||||
'faction' => 'id,repIdx,baseRepRaceMask1,baseRepRaceMask2,baseRepRaceMask3,baseRepRaceMask4,baseRepClassMask1,baseRepClassMask2,baseRepClassMask3,baseRepClassMask4,baseRepValue1,baseRepValue2,baseRepValue3,baseRepValue4,repFlags1,parentFaction,spilloverRateIn,spilloverRateOut,spilloverMaxRank,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'emotestextdata' => 'id,text_loc0,text_loc2,text_loc3,text_loc4,text_loc6,text_loc8',
|
||||
'faction' => 'id,repIdx,baseRepRaceMask1,baseRepRaceMask2,baseRepRaceMask3,baseRepRaceMask4,baseRepClassMask1,baseRepClassMask2,baseRepClassMask3,baseRepClassMask4,baseRepValue1,baseRepValue2,baseRepValue3,baseRepValue4,repFlags1,parentFaction,spilloverRateIn,spilloverRateOut,spilloverMaxRank,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'factiontemplate' => 'id,factionId,ourMask,friendlyMask,hostileMask,enemyFactionId1,enemyFactionId2,enemyFactionId3,enemyFactionId4,friendFactionId1,friendFactionId2,friendFactionId3,friendFactionId4',
|
||||
'gemproperties' => 'id,enchantmentId,colorMask',
|
||||
'glyphproperties' => 'id,spellId,typeFlags,iconId',
|
||||
@@ -180,20 +180,20 @@ class DBC
|
||||
'gtregenmpperspt' => 'ratio',
|
||||
'gtregenhpperspt' => 'ratio',
|
||||
'holidays' => 'id,looping,nameId,descriptionId,textureString,scheduleType',
|
||||
'holidaydescriptions' => 'id,description_loc0,description_loc2,description_loc3,description_loc6,description_loc8',
|
||||
'holidaynames' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'holidaydescriptions' => 'id,description_loc0,description_loc2,description_loc3,description_loc4,description_loc6,description_loc8',
|
||||
'holidaynames' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'itemdisplayinfo' => 'id,leftModelName,rightModelName,inventoryIcon1,spellVisualId,groupSoundId',
|
||||
'itemgroupsounds' => 'id,pickUpSoundId,dropDownSoundId',
|
||||
'itemextendedcost' => 'id,reqHonorPoints,reqArenaPoints,reqArenaSlot,reqItemId1,reqItemId2,reqItemId3,reqItemId4,reqItemId5,itemCount1,itemCount2,itemCount3,itemCount4,itemCount5,reqPersonalRating',
|
||||
'itemlimitcategory' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,count,isGem',
|
||||
'itemrandomproperties' => 'id,nameINT,enchantId1,enchantId2,enchantId3,enchantId4,enchantId5,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'itemrandomsuffix' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,nameINT,enchantId1,enchantId2,enchantId3,enchantId4,enchantId5,allocationPct1,allocationPct2,allocationPct3,allocationPct4,allocationPct5',
|
||||
'itemset' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,spellId1,spellId2,spellId3,spellId4,spellId5,spellId6,spellId7,spellId8,itemCount1,itemCount2,itemCount3,itemCount4,itemCount5,itemCount6,itemCount7,itemCount8,reqSkillId,reqSkillLevel',
|
||||
'itemlimitcategory' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,count,isGem',
|
||||
'itemrandomproperties' => 'id,nameINT,enchantId1,enchantId2,enchantId3,enchantId4,enchantId5,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'itemrandomsuffix' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,nameINT,enchantId1,enchantId2,enchantId3,enchantId4,enchantId5,allocationPct1,allocationPct2,allocationPct3,allocationPct4,allocationPct5',
|
||||
'itemset' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,spellId1,spellId2,spellId3,spellId4,spellId5,spellId6,spellId7,spellId8,itemCount1,itemCount2,itemCount3,itemCount4,itemCount5,itemCount6,itemCount7,itemCount8,reqSkillId,reqSkillLevel',
|
||||
'itemsubclass' => 'class,subClass,weaponSize',
|
||||
'lfgdungeons' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,levelMin,levelMax,targetLevel,targetLevelMin,targetLevelMax,mapId,difficulty,type,faction,expansion,groupId',
|
||||
'lfgdungeons' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,levelMin,levelMax,targetLevel,targetLevelMin,targetLevelMax,mapId,difficulty,type,faction,expansion,groupId',
|
||||
'lock' => 'id,type1,type2,type3,type4,type5,properties1,properties2,properties3,properties4,properties5,reqSkill1,reqSkill2,reqSkill3,reqSkill4,reqSkill5',
|
||||
'mailtemplate' => 'id,subject_loc0,subject_loc2,subject_loc3,subject_loc6,subject_loc8,text_loc0,text_loc2,text_loc3,text_loc6,text_loc8',
|
||||
'map' => 'id,nameINT,areaType,isBG,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,parentMapId,parentX,parentY,expansion,maxPlayers',
|
||||
'mailtemplate' => 'id,subject_loc0,subject_loc2,subject_loc3,subject_loc4,subject_loc6,subject_loc8,text_loc0,text_loc2,text_loc3,text_loc4,text_loc6,text_loc8',
|
||||
'map' => 'id,nameINT,areaType,isBG,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,parentMapId,parentX,parentY,expansion,maxPlayers',
|
||||
'mapdifficulty' => 'id,mapId,difficulty,nPlayer,nPlayerString',
|
||||
'material' => 'id,sheatheSoundId,unsheatheSoundId',
|
||||
'npcsounds' => 'id,greetSoundId,byeSoundId,angrySoundId',
|
||||
@@ -204,33 +204,33 @@ class DBC
|
||||
'randproppoints' => 'id,epic1,epic2,epic3,epic4,epic5,rare1,rare2,rare3,rare4,rare5,uncommon1,uncommon2,uncommon3,uncommon4,uncommon5',
|
||||
'scalingstatdistribution' => 'id,statMod1,statMod2,statMod3,statMod4,statMod5,statMod6,statMod7,statMod8,statMod9,statMod10,modifier1,modifier2,modifier3,modifier4,modifier5,modifier6,modifier7,modifier8,modifier9,modifier10,maxLevel',
|
||||
'scalingstatvalues' => 'id,shoulderMultiplier,trinketMultiplier,weaponMultiplier,rangedMultiplier,clothShoulderArmor,leatherShoulderArmor,mailShoulderArmor,plateShoulderArmor,weaponDPS1H,weaponDPS2H,casterDPS1H,casterDPS2H,rangedDPS,wandDPS,spellPower,primBudged,tertBudged,clothCloakArmor,clothChestArmor,leatherChestArmor,mailChestArmor,plateChestArmor',
|
||||
'skillline' => 'id,categoryId,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,description_loc0,description_loc2,description_loc3,description_loc6,description_loc8,iconId',
|
||||
'skillline' => 'id,categoryId,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,description_loc0,description_loc2,description_loc3,description_loc4,description_loc6,description_loc8,iconId',
|
||||
'skilllineability' => 'id,skillLineId,spellId,reqRaceMask,reqClassMask,reqSkillLevel,acquireMethod,skillLevelGrey,skillLevelYellow',
|
||||
'skillraceclassinfo' => 'id,skillLine,raceMask,classMask,flags,reqLevel',
|
||||
'soundambience' => 'id,soundIdDay,soundIdNight',
|
||||
'soundemitters' => 'id,posY,posX,soundId,mapId',
|
||||
'soundentries' => 'id,type,name,file1,file2,file3,file4,file5,file6,file7,file8,file9,file10,path,flags',
|
||||
'spell' => 'id,category,dispelType,mechanic,attributes0,attributes1,attributes2,attributes3,attributes4,attributes5,attributes6,attributes7,stanceMask,stanceMaskNot,spellFocus,castTimeId,recoveryTime,recoveryTimeCategory,procChance,procCharges,maxLevel,baseLevel,spellLevel,durationId,powerType,powerCost,powerCostPerLevel,powerPerSecond,powerPerSecondPerLevel,rangeId,stackAmount,tool1,tool2,reagent1,reagent2,reagent3,reagent4,reagent5,reagent6,reagent7,reagent8,reagentCount1,reagentCount2,reagentCount3,reagentCount4,reagentCount5,reagentCount6,reagentCount7,reagentCount8,equippedItemClass,equippedItemSubClassMask,equippedItemInventoryTypeMask,effect1Id,effect2Id,effect3Id,effect1DieSides,effect2DieSides,effect3DieSides,effect1RealPointsPerLevel,effect2RealPointsPerLevel,effect3RealPointsPerLevel,effect1BasePoints,effect2BasePoints,effect3BasePoints,effect1Mechanic,effect2Mechanic,effect3Mechanic,effect1ImplicitTargetA,effect2ImplicitTargetA,effect3ImplicitTargetA,effect1ImplicitTargetB,effect2ImplicitTargetB,effect3ImplicitTargetB,effect1RadiusId,effect2RadiusId,effect3RadiusId,effect1AuraId,effect2AuraId,effect3AuraId,effect1Periode,effect2Periode,effect3Periode,effect1ValueMultiplier,effect2ValueMultiplier,effect3ValueMultiplier,effect1ChainTarget,effect2ChainTarget,effect3ChainTarget,effect1CreateItemId,effect2CreateItemId,effect3CreateItemId,effect1MiscValue,effect2MiscValue,effect3MiscValue,effect1MiscValueB,effect2MiscValueB,effect3MiscValueB,effect1TriggerSpell,effect2TriggerSpell,effect3TriggerSpell,effect1PointsPerComboPoint,effect2PointsPerComboPoint,effect3PointsPerComboPoint,effect1SpellClassMaskA,effect2SpellClassMaskA,effect3SpellClassMaskA,effect1SpellClassMaskB,effect2SpellClassMaskB,effect3SpellClassMaskB,effect1SpellClassMaskC,effect2SpellClassMaskC,effect3SpellClassMaskC,spellVisualId1,spellVisualId2,iconId,iconIdActive,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,rank_loc0,rank_loc2,rank_loc3,rank_loc6,rank_loc8,description_loc0,description_loc2,description_loc3,description_loc6,description_loc8,buff_loc0,buff_loc2,buff_loc3,buff_loc6,buff_loc8,powerCostPercent,startRecoveryCategory,startRecoveryTime,maxTargetLevel,spellFamilyId,spellFamilyFlags1,spellFamilyFlags2,spellFamilyFlags3,maxAffectedTargets,damageClass,effect1DamageMultiplier,effect2DamageMultiplier,effect3DamageMultiplier,toolCategory1,toolCategory2,schoolMask,runeCostId,powerDisplayId,effect1BonusMultiplier,effect2BonusMultiplier,effect3BonusMultiplier,spellDescriptionVariable,spellDifficulty',
|
||||
'spell' => 'id,category,dispelType,mechanic,attributes0,attributes1,attributes2,attributes3,attributes4,attributes5,attributes6,attributes7,stanceMask,stanceMaskNot,spellFocus,castTimeId,recoveryTime,recoveryTimeCategory,procChance,procCharges,maxLevel,baseLevel,spellLevel,durationId,powerType,powerCost,powerCostPerLevel,powerPerSecond,powerPerSecondPerLevel,rangeId,stackAmount,tool1,tool2,reagent1,reagent2,reagent3,reagent4,reagent5,reagent6,reagent7,reagent8,reagentCount1,reagentCount2,reagentCount3,reagentCount4,reagentCount5,reagentCount6,reagentCount7,reagentCount8,equippedItemClass,equippedItemSubClassMask,equippedItemInventoryTypeMask,effect1Id,effect2Id,effect3Id,effect1DieSides,effect2DieSides,effect3DieSides,effect1RealPointsPerLevel,effect2RealPointsPerLevel,effect3RealPointsPerLevel,effect1BasePoints,effect2BasePoints,effect3BasePoints,effect1Mechanic,effect2Mechanic,effect3Mechanic,effect1ImplicitTargetA,effect2ImplicitTargetA,effect3ImplicitTargetA,effect1ImplicitTargetB,effect2ImplicitTargetB,effect3ImplicitTargetB,effect1RadiusId,effect2RadiusId,effect3RadiusId,effect1AuraId,effect2AuraId,effect3AuraId,effect1Periode,effect2Periode,effect3Periode,effect1ValueMultiplier,effect2ValueMultiplier,effect3ValueMultiplier,effect1ChainTarget,effect2ChainTarget,effect3ChainTarget,effect1CreateItemId,effect2CreateItemId,effect3CreateItemId,effect1MiscValue,effect2MiscValue,effect3MiscValue,effect1MiscValueB,effect2MiscValueB,effect3MiscValueB,effect1TriggerSpell,effect2TriggerSpell,effect3TriggerSpell,effect1PointsPerComboPoint,effect2PointsPerComboPoint,effect3PointsPerComboPoint,effect1SpellClassMaskA,effect2SpellClassMaskA,effect3SpellClassMaskA,effect1SpellClassMaskB,effect2SpellClassMaskB,effect3SpellClassMaskB,effect1SpellClassMaskC,effect2SpellClassMaskC,effect3SpellClassMaskC,spellVisualId1,spellVisualId2,iconId,iconIdActive,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,rank_loc0,rank_loc2,rank_loc3,rank_loc4,rank_loc6,rank_loc8,description_loc0,description_loc2,description_loc3,description_loc4,description_loc6,description_loc8,buff_loc0,buff_loc2,buff_loc3,buff_loc4,buff_loc6,buff_loc8,powerCostPercent,startRecoveryCategory,startRecoveryTime,maxTargetLevel,spellFamilyId,spellFamilyFlags1,spellFamilyFlags2,spellFamilyFlags3,maxAffectedTargets,damageClass,effect1DamageMultiplier,effect2DamageMultiplier,effect3DamageMultiplier,toolCategory1,toolCategory2,schoolMask,runeCostId,powerDisplayId,effect1BonusMultiplier,effect2BonusMultiplier,effect3BonusMultiplier,spellDescriptionVariable,spellDifficulty',
|
||||
'spellcasttimes' => 'id,baseTime',
|
||||
'spelldescriptionvariables' => 'id,vars',
|
||||
'spellduration' => 'id,baseTime',
|
||||
'spelldifficulty' => 'normal10,normal25,heroic10,heroic25',
|
||||
'spellfocusobject' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'spellfocusobject' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'spellicon' => 'id,iconPath',
|
||||
'spellitemenchantment' => 'id,charges,type1,type2,type3,amount1,amount2,amount3,object1,object2,object3,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,conditionId,skillLine,skillLevel,requiredLevel',
|
||||
'spellitemenchantment' => 'id,charges,type1,type2,type3,amount1,amount2,amount3,object1,object2,object3,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,conditionId,skillLine,skillLevel,requiredLevel',
|
||||
'spellitemenchantmentcondition' => 'id,color1,color2,color3,color4,color5,comparator1,comparator2,comparator3,comparator4,comparator5,cmpColor1,cmpColor2,cmpColor3,cmpColor4,cmpColor5,value1,value2,value3,value4,value5',
|
||||
'spellradius' => 'id,radiusMin,radiusMax',
|
||||
'spellrange' => 'id,rangeMinHostile,rangeMinFriend,rangeMaxHostile,rangeMaxFriend,rangeType,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'spellrange' => 'id,rangeMinHostile,rangeMinFriend,rangeMaxHostile,rangeMaxFriend,rangeType,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'spellrunecost' => 'id,costBlood,costUnholy,costFrost,runicPowerGain',
|
||||
'spellshapeshiftform' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,flags,creatureType,displayIdA,displayIdH,spellId1,spellId2,spellId3,spellId4,spellId5,spellId6,spellId7,spellId8',
|
||||
'spellshapeshiftform' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,flags,creatureType,displayIdA,displayIdH,spellId1,spellId2,spellId3,spellId4,spellId5,spellId6,spellId7,spellId8',
|
||||
'spellvisual' => 'id,precastKitId,castKitId,impactKitId,stateKitId,statedoneKitId,channelKitId,missileSoundId,animationSoundId,casterImpactKitId,targetImpactKitId,missileTargetingKitId,instantAreaKitId,impactAreaKitId,persistentAreaKitId',
|
||||
'spellvisualkit' => 'id,soundId',
|
||||
'talent' => 'id,tabId,row,column,rank1,rank2,rank3,rank4,rank5,reqTalent,reqRank,talentSpell,petCategory1,petCategory2',
|
||||
'talenttab' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,iconId,raceMask,classMask,creatureFamilyMask,tabNumber,textureFile',
|
||||
'taxinodes' => 'id,mapId,posX,posY,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8',
|
||||
'talenttab' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,iconId,raceMask,classMask,creatureFamilyMask,tabNumber,textureFile',
|
||||
'taxinodes' => 'id,mapId,posX,posY,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8',
|
||||
'taxipath' => 'id,startNodeId,endNodeId',
|
||||
'taxipathnode' => 'id,pathId,nodeIdx,mapId,posX,posY',
|
||||
'totemcategory' => 'id,name_loc0,name_loc2,name_loc3,name_loc6,name_loc8,category,categoryMask',
|
||||
'totemcategory' => 'id,name_loc0,name_loc2,name_loc3,name_loc4,name_loc6,name_loc8,category,categoryMask',
|
||||
'vocaluisounds' => 'id,raceId,soundIdMale,soundIdFemale',
|
||||
'weaponimpactsounds' => 'id,subClass,hit1,hit2,hit3,hit4,hit5,hit6,hit7,hit8,hit9,hit10,crit1,crit2,crit3,crit4,crit5,crit6,crit7,crit8,crit9,crit10',
|
||||
'weaponswingsounds2' => 'id,weaponSize,soundId',
|
||||
@@ -270,7 +270,7 @@ class DBC
|
||||
$this->fields = explode(',', $this->_fields[$file]);
|
||||
$this->format = $this->_formats[$file];
|
||||
$this->file = $file;
|
||||
$this->localized = !!strstr($this->format, 'sxssxxsxsxxxxxxxx');
|
||||
$this->localized = !!strstr($this->format, 'sxsssxsxsxxxxxxxx');
|
||||
|
||||
if (count($this->fields) != strlen(str_ireplace('x', '', $this->format)))
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ if (!CLI)
|
||||
equippedItemClass, equippedItemInventoryTypeMask, equippedItemSubClassMask,
|
||||
skillLine1,
|
||||
IFNULL(i.name, "inv_misc_questionmark") AS iconString,
|
||||
name_loc0, name_loc2, name_loc3, name_loc6, name_loc8
|
||||
name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8
|
||||
FROM
|
||||
?_spell s
|
||||
LEFT JOIN
|
||||
|
||||
@@ -30,7 +30,7 @@ if (!CLI)
|
||||
// id < 36'000 || ilevel < 70 ? BC : WOTLK
|
||||
$gems = DB::Aowow()->Select(
|
||||
'SELECT i.id AS itemId,
|
||||
i.name_loc0, i.name_loc2, i.name_loc3, i.name_loc6, i.name_loc8,
|
||||
i.name_loc0, i.name_loc2, i.name_loc3, i.name_loc4, i.name_loc6, i.name_loc8,
|
||||
IF (i.id < 36000 OR i.itemLevel < 70, 1 , 2) AS expansion,
|
||||
i.quality,
|
||||
ic.name AS icon,
|
||||
|
||||
@@ -32,6 +32,12 @@ if (!CLI)
|
||||
" domain: 'de',\r\n" .
|
||||
" description: 'Deutsch'\r\n" .
|
||||
" }",
|
||||
LOCALE_CN => " 4:{ // Chinese\r\n" .
|
||||
" id: LOCALE_ZHCN,\r\n" .
|
||||
" name: 'zhcn',\r\n" .
|
||||
" domain: 'cn',\r\n" .
|
||||
" description: String.fromCharCode(31616, 20307, 20013, 25991)\r\n" .
|
||||
" }",
|
||||
LOCALE_ES => " 6: { // Spanish\r\n" .
|
||||
" id: LOCALE_ESES,\r\n" .
|
||||
" name: 'eses',\r\n" .
|
||||
|
||||
@@ -34,7 +34,7 @@ if (!CLI)
|
||||
$locations = [];
|
||||
$petList = DB::Aowow()->Select(
|
||||
'SELECT cr.id,
|
||||
cr.name_loc0, cr.name_loc2, cr.name_loc3, cr.name_loc6, cr.name_loc8,
|
||||
cr.name_loc0, cr.name_loc2, cr.name_loc3, cr.name_loc4, cr.name_loc6, cr.name_loc8,
|
||||
cr.minLevel,
|
||||
cr.maxLevel,
|
||||
ft.A,
|
||||
|
||||
@@ -45,7 +45,7 @@ if (!CLI)
|
||||
|
||||
for ($tabIdx = 0; $tabIdx < count($tabs); $tabIdx++)
|
||||
{
|
||||
$talents = DB::Aowow()->select('SELECT t.id AS tId, t.*, s.name_loc0, s.name_loc2, s.name_loc3, s.name_loc6, s.name_loc8, LOWER(SUBSTRING_INDEX(si.iconPath, "\\\\", -1)) AS iconString FROM dbc_talent t, dbc_spell s, dbc_spellicon si WHERE si.`id` = s.`iconId` AND t.`tabId`= ?d AND s.`id` = t.`rank1` ORDER by t.`row`, t.`column`', $tabs[$tabIdx]['id']);
|
||||
$talents = DB::Aowow()->select('SELECT t.id AS tId, t.*, s.name_loc0, s.name_loc2, s.name_loc3, s.name_loc4, s.name_loc6, s.name_loc8, LOWER(SUBSTRING_INDEX(si.iconPath, "\\\\", -1)) AS iconString FROM dbc_talent t, dbc_spell s, dbc_spellicon si WHERE si.`id` = s.`iconId` AND t.`tabId`= ?d AND s.`id` = t.`rank1` ORDER by t.`row`, t.`column`', $tabs[$tabIdx]['id']);
|
||||
$result[$tabIdx] = array(
|
||||
'n' => Util::localizedString($tabs[$tabIdx], 'name'),
|
||||
't' => []
|
||||
|
||||
@@ -5,6 +5,7 @@ Locale class
|
||||
var LOCALE_ENUS = 0;
|
||||
var LOCALE_FRFR = 2;
|
||||
var LOCALE_DEDE = 3;
|
||||
var LOCALE_ZHCN = 4;
|
||||
var LOCALE_ESES = 6;
|
||||
var LOCALE_RURU = 8;
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@ if (typeof $WowheadPower == "undefined") {
|
||||
0: "enus",
|
||||
2: "frfr",
|
||||
3: "dede",
|
||||
4: "zhcn",
|
||||
6: "eses",
|
||||
8: "ruru"
|
||||
},
|
||||
@@ -353,12 +354,12 @@ if (typeof $WowheadPower == "undefined") {
|
||||
locale = $WH.g_getLocaleFromDomain(domain);
|
||||
|
||||
/* edit start */
|
||||
if ($WH.in_array(['fr', 'de', 'es', 'ru', 'en'], domain) == -1) {
|
||||
if ($WH.in_array(['fr', 'de', 'cn', 'es', 'ru', 'en'], domain) == -1) {
|
||||
for (i in document.scripts) {
|
||||
if (!document.scripts[i].src)
|
||||
continue;
|
||||
|
||||
var dmn = document.scripts[i].src.match(/widgets\/power.js\?(lang|locale)=(en|fr|de|es|ru)/i);
|
||||
var dmn = document.scripts[i].src.match(/widgets\/power.js\?(lang|locale)=(en|fr|de|cn|es|ru)/i);
|
||||
if (dmn) {
|
||||
domain = dmn[2];
|
||||
locale = $WH.g_getLocaleFromDomain(dmn[2]);
|
||||
|
||||
@@ -44,9 +44,9 @@ function achievement(array $ids = [])
|
||||
a.refAchievement,
|
||||
0,
|
||||
0,
|
||||
a.name_loc0, a.name_loc2, a.name_loc3, a.name_loc6, a.name_loc8,
|
||||
a.description_loc0, a.description_loc2, a.description_loc3, a.description_loc6, a.description_loc8,
|
||||
a.reward_loc0, a.reward_loc2, a.reward_loc3, a.reward_loc6, a.reward_loc8
|
||||
a.name_loc0, a.name_loc2, a.name_loc3, a.name_loc4, a.name_loc6, a.name_loc8,
|
||||
a.description_loc0, a.description_loc2, a.description_loc3, a.description_loc4, a.description_loc6, a.description_loc8,
|
||||
a.reward_loc0, a.reward_loc2, a.reward_loc3, a.reward_loc4, a.reward_loc6, a.reward_loc8
|
||||
FROM
|
||||
dbc_achievement a
|
||||
LEFT JOIN
|
||||
@@ -63,9 +63,9 @@ function achievement(array $ids = [])
|
||||
$ids ?: DBSIMPLE_SKIP
|
||||
);
|
||||
foreach ($serverAchievements as $sa)
|
||||
DB::Aowow()->query('REPLACE INTO ?_achievement (id, faction, map, points, flags, reqCriteriaCount, refAchievement, cuFlags, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8) VALUES (?d, ?d, ?d, ?d, ?d, ?d, ?d, ?d, ?, ?, ?, ?, ?)',
|
||||
DB::Aowow()->query('REPLACE INTO ?_achievement (id, faction, map, points, flags, reqCriteriaCount, refAchievement, cuFlags, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8) VALUES (?d, ?d, ?d, ?d, ?d, ?d, ?d, ?d, ?, ?, ?, ?, ?, ?)',
|
||||
$sa['ID'], $sa['faction'], $sa['mapID'], $sa['points'], $sa['flags'], $sa['count'], $sa['refAchievement'], CUSTOM_SERVERSIDE,
|
||||
'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID']
|
||||
'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID'], 'Serverside - #'.$sa['ID']
|
||||
);
|
||||
|
||||
if ($ids)
|
||||
|
||||
@@ -32,8 +32,8 @@ function creature(array $ids = [])
|
||||
0 AS modelId, -- modelId
|
||||
0 AS humanoid, -- uses creaturedisplayinfoextra
|
||||
"" AS iconString, -- iconString
|
||||
ct.name, IFNULL(ctl2.`Name`, "") AS n2, IFNULL(ctl3.`Name`, "") AS n3, IFNULL(ctl6.`Name`, "") AS n6, IFNULL(ctl8.`Name`, "") AS n8,
|
||||
subname, IFNULL(ctl2.`Title`, "") AS t2, IFNULL(ctl3.`Title`, "") AS t3, IFNULL(ctl6.`Title`, "") AS t6, IFNULL(ctl8.`Title`, "") AS t8,
|
||||
ct.name, IFNULL(ctl2.`Name`, "") AS n2, IFNULL(ctl3.`Name`, "") AS n3, IFNULL(ctl4.`Name`, "") AS n4, IFNULL(ctl6.`Name`, "") AS n6, IFNULL(ctl8.`Name`, "") AS n8,
|
||||
subname, IFNULL(ctl2.`Title`, "") AS t2, IFNULL(ctl3.`Title`, "") AS t3, IFNULL(ctl4.`Title`, "") AS t4, IFNULL(ctl6.`Title`, "") AS t6, IFNULL(ctl8.`Title`, "") AS t8,
|
||||
minLevel, maxLevel,
|
||||
exp,
|
||||
faction,
|
||||
@@ -86,6 +86,8 @@ function creature(array $ids = [])
|
||||
creature_template_locale ctl2 ON ct.entry = ctl2.entry AND ctl2.`locale` = "frFR"
|
||||
LEFT JOIN
|
||||
creature_template_locale ctl3 ON ct.entry = ctl3.entry AND ctl3.`locale` = "deDE"
|
||||
LEFT JOIN
|
||||
creature_template_locale ctl4 ON ct.entry = ctl4.entry AND ctl4.`locale` = "zhCN"
|
||||
LEFT JOIN
|
||||
creature_template_locale ctl6 ON ct.entry = ctl6.entry AND ctl6.`locale` = "esES"
|
||||
LEFT JOIN
|
||||
|
||||
@@ -35,7 +35,7 @@ function currencies(array $ids = [])
|
||||
$moneyNames = DB::World()->select('
|
||||
SELECT
|
||||
it.entry AS ARRAY_KEY,
|
||||
it.name AS name_loc0, IFNULL(itl2.Name, "") AS name_loc2, IFNULL(itl3.Name, "") AS name_loc3, IFNULL(itl6.Name, "") AS name_loc6, IFNULL(itl8.Name, "") AS name_loc8,
|
||||
it.name AS name_loc0, IFNULL(itl2.Name, "") AS name_loc2, IFNULL(itl3.Name, "") AS name_loc3, IFNULL(itl4.Name, "") AS name_loc4, IFNULL(itl6.Name, "") AS name_loc6, IFNULL(itl8.Name, "") AS name_loc8,
|
||||
it.maxCount AS cap
|
||||
FROM
|
||||
item_template it
|
||||
@@ -43,6 +43,8 @@ function currencies(array $ids = [])
|
||||
item_template_locale itl2 ON it.entry = itl2.ID AND itl2.locale = "frFR"
|
||||
LEFT JOIN
|
||||
item_template_locale itl3 ON it.entry = itl3.ID AND itl3.locale = "deDE"
|
||||
LEFT JOIN
|
||||
item_template_locale itl4 ON it.entry = itl4.ID AND itl4.locale = "zhCN"
|
||||
LEFT JOIN
|
||||
item_template_locale itl6 ON it.entry = itl6.ID AND itl6.locale = "esES"
|
||||
LEFT JOIN
|
||||
|
||||
@@ -50,9 +50,9 @@ function emotes(/*array $ids = [] */)
|
||||
LOWER(et.command),
|
||||
IF(e.animationId, 1, 0),
|
||||
0, -- cuFlags
|
||||
etdT.text_loc0, etdT.text_loc2, etdT.text_loc3, etdT.text_loc6, etdT.text_loc8,
|
||||
etdNT.text_loc0, etdNT.text_loc2, etdNT.text_loc3, etdNT.text_loc6, etdNT.text_loc8,
|
||||
etdS.text_loc0, etdS.text_loc2, etdS.text_loc3, etdS.text_loc6, etdS.text_loc8
|
||||
etdT.text_loc0, etdT.text_loc2, etdT.text_loc3, etdT.text_loc4, etdT.text_loc6, etdT.text_loc8,
|
||||
etdNT.text_loc0, etdNT.text_loc2, etdNT.text_loc3, etdNT.text_loc4, etdNT.text_loc6, etdNT.text_loc8,
|
||||
etdS.text_loc0, etdS.text_loc2, etdS.text_loc3, etdS.text_loc4, etdS.text_loc6, etdS.text_loc8
|
||||
FROM
|
||||
dbc_emotestext et
|
||||
LEFT JOIN
|
||||
|
||||
@@ -63,7 +63,7 @@ function factions()
|
||||
0, -- cuFlags
|
||||
parentFaction,
|
||||
spilloverRateIn, spilloverRateOut, spilloverMaxRank,
|
||||
name_loc0, name_loc2, name_loc3, name_loc6, name_loc8
|
||||
name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8
|
||||
FROM
|
||||
dbc_faction f
|
||||
LEFT JOIN
|
||||
|
||||
@@ -41,9 +41,9 @@ function holidays()
|
||||
{
|
||||
$query = '
|
||||
REPLACE INTO
|
||||
?_holidays (id, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, description_loc0, description_loc2, description_loc3, description_loc6, description_loc8, looping, scheduleType, textureString)
|
||||
?_holidays (id, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, description_loc0, description_loc2, description_loc3, description_loc4, description_loc6, description_loc8, looping, scheduleType, textureString)
|
||||
SELECT
|
||||
h.id, n.name_loc0, n.name_loc2, n.name_loc3, n.name_loc6, n.name_loc8, d.description_loc0, d.description_loc2, d.description_loc3, d.description_loc6, d.description_loc8, h.looping, h.scheduleType, h.textureString
|
||||
h.id, n.name_loc0, n.name_loc2, n.name_loc3, n.name_loc4, n.name_loc6, n.name_loc8, d.description_loc0, d.description_loc2, d.description_loc3, d.description_loc4, d.description_loc6, d.description_loc8, h.looping, h.scheduleType, h.textureString
|
||||
FROM
|
||||
dbc_holidays h
|
||||
LEFT JOIN
|
||||
|
||||
@@ -17,7 +17,7 @@ function itemenchantment()
|
||||
REPLACE INTO
|
||||
?_itemenchantment
|
||||
SELECT
|
||||
Id, charges, 0, 0, 0, type1, type2, type3, amount1, amount2, amount3, object1, object2, object3, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, conditionId, skillLine, skillLevel, requiredLevel
|
||||
Id, charges, 0, 0, 0, type1, type2, type3, amount1, amount2, amount3, object1, object2, object3, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, conditionId, skillLine, skillLevel, requiredLevel
|
||||
FROM
|
||||
dbc_spellitemenchantment';
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ function itemrandomenchant()
|
||||
{
|
||||
$query = '
|
||||
REPLACE INTO ?_itemrandomenchant
|
||||
SELECT -id, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, nameINT, enchantId1, enchantId2, enchantId3, enchantId4, enchantId5, allocationPct1, allocationPct2, allocationPct3, allocationPct4, allocationPct5 FROM dbc_itemrandomsuffix
|
||||
SELECT -id, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, nameINT, enchantId1, enchantId2, enchantId3, enchantId4, enchantId5, allocationPct1, allocationPct2, allocationPct3, allocationPct4, allocationPct5 FROM dbc_itemrandomsuffix
|
||||
UNION
|
||||
SELECT id, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, nameINT, enchantId1, enchantId2, enchantId3, enchantId4, enchantId5, 0, 0, 0, 0, 0 FROM dbc_itemrandomproperties';
|
||||
SELECT id, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, nameINT, enchantId1, enchantId2, enchantId3, enchantId4, enchantId5, 0, 0, 0, 0, 0 FROM dbc_itemrandomproperties';
|
||||
|
||||
DB::Aowow()->query($query);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ function items(array $ids = [])
|
||||
subclass, subclass AS subClassBak,
|
||||
SoundOverrideSubclass,
|
||||
IFNULL(sg.id, 0) AS subSubClass,
|
||||
it.name, IFNULL(itl2.Name, ""), IFNULL(itl3.Name, ""), IFNULL(itl6.Name, ""), IFNULL(itl8.Name, ""),
|
||||
it.name, IFNULL(itl2.Name, ""), IFNULL(itl3.Name, ""), IFNULL(itl4.Name, ""), IFNULL(itl6.Name, ""), IFNULL(itl8.Name, ""),
|
||||
0 AS iconId,
|
||||
displayid,
|
||||
0 AS spellVisualId,
|
||||
@@ -84,7 +84,7 @@ function items(array $ids = [])
|
||||
spellid_4, spelltrigger_4, spellcharges_4, spellppmRate_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4,
|
||||
spellid_5, spelltrigger_5, spellcharges_5, spellppmRate_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5,
|
||||
bonding,
|
||||
it.description, IFNULL(itl2.Description, ""), IFNULL(itl3.Description, ""), IFNULL(itl6.Description, ""), IFNULL(itl8.Description, ""),
|
||||
it.description, IFNULL(itl2.Description, ""), IFNULL(itl3.Description, ""), IFNULL(itl4.Description, ""), IFNULL(itl6.Description, ""), IFNULL(itl8.Description, ""),
|
||||
PageText,
|
||||
LanguageID,
|
||||
startquest,
|
||||
@@ -122,6 +122,8 @@ function items(array $ids = [])
|
||||
item_template_locale itl2 ON it.entry = itl2.ID AND itl2.locale = "frFR"
|
||||
LEFT JOIN
|
||||
item_template_locale itl3 ON it.entry = itl3.ID AND itl3.locale = "deDE"
|
||||
LEFT JOIN
|
||||
item_template_locale itl4 ON it.entry = itl4.ID AND itl4.locale = "zhCN"
|
||||
LEFT JOIN
|
||||
item_template_locale itl6 ON it.entry = itl6.ID AND itl6.locale = "esES"
|
||||
LEFT JOIN
|
||||
|
||||
@@ -33,6 +33,7 @@ function objects(array $ids = [])
|
||||
go.name,
|
||||
IFNULL(gtl2.`name`, "") AS name_loc2,
|
||||
IFNULL(gtl3.`name`, "") AS name_loc3,
|
||||
IFNULL(gtl4.`name`, "") AS name_loc4,
|
||||
IFNULL(gtl6.`name`, "") AS name_loc6,
|
||||
IFNULL(gtl8.`name`, "") AS name_loc8,
|
||||
IFNULL(goa.faction, 0),
|
||||
@@ -71,6 +72,8 @@ function objects(array $ids = [])
|
||||
gameobject_template_locale gtl2 ON go.entry = gtl2.entry AND gtl2.`locale` = "frFR"
|
||||
LEFT JOIN
|
||||
gameobject_template_locale gtl3 ON go.entry = gtl3.entry AND gtl3.`locale` = "deDE"
|
||||
LEFT JOIN
|
||||
gameobject_template_locale gtl4 ON go.entry = gtl4.entry AND gtl4.`locale` = "zhCN"
|
||||
LEFT JOIN
|
||||
gameobject_template_locale gtl6 ON go.entry = gtl6.entry AND gtl6.`locale` = "esES"
|
||||
LEFT JOIN
|
||||
|
||||
@@ -32,7 +32,7 @@ function pet(array $ids = [])
|
||||
petTalentType,
|
||||
0, -- exotic
|
||||
0, -- expansion
|
||||
name_loc0, name_loc2, name_loc3, name_lo6, name_loc8,
|
||||
name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8,
|
||||
ic.id,
|
||||
skillLine1,
|
||||
0, 0, 0, 0, -- spell[1-4]
|
||||
|
||||
@@ -76,23 +76,23 @@ function quests(array $ids = [])
|
||||
IF (RewardFactionOverride3 <> 0, RewardFactionOverride3 / 100, RewardFactionValue3),
|
||||
IF (RewardFactionOverride4 <> 0, RewardFactionOverride4 / 100, RewardFactionValue4),
|
||||
IF (RewardFactionOverride5 <> 0, RewardFactionOverride5 / 100, RewardFactionValue5),
|
||||
q.LogTitle, IFNULL(qtl2.Title, ""), IFNULL(qtl3.Title, ""), IFNULL(qtl6.Title, ""), IFNULL(qtl8.Title, ""),
|
||||
q.LogDescription, IFNULL(qtl2.Objectives, ""), IFNULL(qtl3.Objectives, ""), IFNULL(qtl6.Objectives, ""), IFNULL(qtl8.Objectives, ""),
|
||||
q.QuestDescription, IFNULL(qtl2.Details, ""), IFNULL(qtl3.Details, ""), IFNULL(qtl6.Details, ""), IFNULL(qtl8.Details, ""),
|
||||
q.AreaDescription, IFNULL(qtl2.EndText, ""), IFNULL(qtl3.EndText, ""), IFNULL(qtl6.EndText, ""), IFNULL(qtl8.EndText, ""),
|
||||
IFNULL(qor.RewardText, ""), IFNULL(qtl2.OfferRewardText, ""), IFNULL(qtl3.OfferRewardText, ""), IFNULL(qtl6.OfferRewardText, ""), IFNULL(qtl8.OfferRewardText, ""),
|
||||
IFNULL(qri.CompletionText, ""), IFNULL(qtl2.RequestItemsText, ""), IFNULL(qtl3.RequestItemsText, ""), IFNULL(qtl6.RequestItemsText, ""), IFNULL(qtl8.RequestItemsText, ""),
|
||||
q.QuestCompletionLog, IFNULL(qtl2.CompletedText, ""), IFNULL(qtl3.CompletedText, ""), IFNULL(qtl6.CompletedText, ""), IFNULL(qtl8.CompletedText, ""),
|
||||
q.LogTitle, IFNULL(qtl2.Title, ""), IFNULL(qtl3.Title, ""), IFNULL(qtl4.Title, ""), IFNULL(qtl6.Title, ""), IFNULL(qtl8.Title, ""),
|
||||
q.LogDescription, IFNULL(qtl2.Objectives, ""), IFNULL(qtl3.Objectives, ""), IFNULL(qtl4.Objectives, ""), IFNULL(qtl6.Objectives, ""), IFNULL(qtl8.Objectives, ""),
|
||||
q.QuestDescription, IFNULL(qtl2.Details, ""), IFNULL(qtl3.Details, ""), IFNULL(qtl4.Details, ""), IFNULL(qtl6.Details, ""), IFNULL(qtl8.Details, ""),
|
||||
q.AreaDescription, IFNULL(qtl2.EndText, ""), IFNULL(qtl3.EndText, ""), IFNULL(qtl4.EndText, ""), IFNULL(qtl6.EndText, ""), IFNULL(qtl8.EndText, ""),
|
||||
IFNULL(qor.RewardText, ""), IFNULL(qtl2.OfferRewardText, ""), IFNULL(qtl3.OfferRewardText, ""), IFNULL(qtl4.OfferRewardText, ""), IFNULL(qtl6.OfferRewardText, ""), IFNULL(qtl8.OfferRewardText, ""),
|
||||
IFNULL(qri.CompletionText, ""), IFNULL(qtl2.RequestItemsText, ""), IFNULL(qtl3.RequestItemsText, ""), IFNULL(qtl4.RequestItemsText, ""), IFNULL(qtl6.RequestItemsText, ""), IFNULL(qtl8.RequestItemsText, ""),
|
||||
q.QuestCompletionLog, IFNULL(qtl2.CompletedText, ""), IFNULL(qtl3.CompletedText, ""), IFNULL(qtl4.CompletedText, ""), IFNULL(qtl6.CompletedText, ""), IFNULL(qtl8.CompletedText, ""),
|
||||
RequiredNpcOrGo1, RequiredNpcOrGo2, RequiredNpcOrGo3, RequiredNpcOrGo4,
|
||||
RequiredNpcOrGoCount1, RequiredNpcOrGoCount2, RequiredNpcOrGoCount3, RequiredNpcOrGoCount4,
|
||||
ItemDrop1, ItemDrop2, ItemDrop3, ItemDrop4,
|
||||
ItemDropQuantity1, ItemDropQuantity2, ItemDropQuantity3, ItemDropQuantity4,
|
||||
RequiredItemId1, RequiredItemId2, RequiredItemId3, RequiredItemId4, RequiredItemId5, RequiredItemId6,
|
||||
RequiredItemCount1, RequiredItemCount2, RequiredItemCount3, RequiredItemCount4, RequiredItemCount5, RequiredItemCount6,
|
||||
q.ObjectiveText1, IFNULL(qtl2.ObjectiveText1, ""), IFNULL(qtl3.ObjectiveText1, ""), IFNULL(qtl6.ObjectiveText1, ""), IFNULL(qtl8.ObjectiveText1, ""),
|
||||
q.ObjectiveText2, IFNULL(qtl2.ObjectiveText2, ""), IFNULL(qtl3.ObjectiveText2, ""), IFNULL(qtl6.ObjectiveText2, ""), IFNULL(qtl8.ObjectiveText2, ""),
|
||||
q.ObjectiveText3, IFNULL(qtl2.ObjectiveText3, ""), IFNULL(qtl3.ObjectiveText3, ""), IFNULL(qtl6.ObjectiveText3, ""), IFNULL(qtl8.ObjectiveText3, ""),
|
||||
q.ObjectiveText4, IFNULL(qtl2.ObjectiveText4, ""), IFNULL(qtl3.ObjectiveText4, ""), IFNULL(qtl6.ObjectiveText4, ""), IFNULL(qtl8.ObjectiveText4, "")
|
||||
q.ObjectiveText1, IFNULL(qtl2.ObjectiveText1, ""), IFNULL(qtl3.ObjectiveText1, ""), IFNULL(qtl4.ObjectiveText1, ""), IFNULL(qtl6.ObjectiveText1, ""), IFNULL(qtl8.ObjectiveText1, ""),
|
||||
q.ObjectiveText2, IFNULL(qtl2.ObjectiveText2, ""), IFNULL(qtl3.ObjectiveText2, ""), IFNULL(qtl4.ObjectiveText2, ""), IFNULL(qtl6.ObjectiveText2, ""), IFNULL(qtl8.ObjectiveText2, ""),
|
||||
q.ObjectiveText3, IFNULL(qtl2.ObjectiveText3, ""), IFNULL(qtl3.ObjectiveText3, ""), IFNULL(qtl4.ObjectiveText3, ""), IFNULL(qtl6.ObjectiveText3, ""), IFNULL(qtl8.ObjectiveText3, ""),
|
||||
q.ObjectiveText4, IFNULL(qtl2.ObjectiveText4, ""), IFNULL(qtl3.ObjectiveText4, ""), IFNULL(qtl4.ObjectiveText4, ""), IFNULL(qtl6.ObjectiveText4, ""), IFNULL(qtl8.ObjectiveText4, "")
|
||||
FROM
|
||||
quest_template q
|
||||
LEFT JOIN
|
||||
@@ -105,6 +105,8 @@ function quests(array $ids = [])
|
||||
quest_template_locale qtl2 ON q.ID = qtl2.ID AND qtl2.locale = "frFR"
|
||||
LEFT JOIN
|
||||
quest_template_locale qtl3 ON q.ID = qtl3.ID AND qtl3.locale = "deDE"
|
||||
LEFT JOIN
|
||||
quest_template_locale qtl4 ON q.ID = qtl4.ID AND qtl4.locale = "zhCN"
|
||||
LEFT JOIN
|
||||
quest_template_locale qtl6 ON q.ID = qtl6.ID AND qtl6.locale = "esES"
|
||||
LEFT JOIN
|
||||
|
||||
@@ -33,7 +33,7 @@ function races()
|
||||
REPLACE INTO
|
||||
?_races
|
||||
SELECT
|
||||
id, 0, flags, 0, factionId, 0, 0, baseLanguage, IF(side = 2, 0, side + 1), fileString, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, expansion
|
||||
id, 0, flags, 0, factionId, 0, 0, baseLanguage, IF(side = 2, 0, side + 1), fileString, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, expansion
|
||||
FROM
|
||||
dbc_chrraces';
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ function skillline()
|
||||
REPLACE INTO
|
||||
?_skillline
|
||||
SELECT
|
||||
id, categoryId, 0, categoryId, name_loc0, name_loc2, name_loc3, name_loc6, name_loc8, description_loc0, description_loc2, description_loc3, description_loc6, description_loc8, 0, iconId, 0, 0, ""
|
||||
id, categoryId, 0, categoryId, name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8, description_loc0, description_loc2, description_loc3, description_loc4, description_loc6, description_loc8, 0, iconId, 0, 0, ""
|
||||
FROM
|
||||
dbc_skillline';
|
||||
|
||||
|
||||
@@ -88,10 +88,10 @@ function spell()
|
||||
EffectSpellClassMaskC1, EffectSpellClassMaskC2, EffectSpellClassMaskC3,
|
||||
0 AS iconId, 0 AS iconIdAlt,
|
||||
0 AS rankId, 0 AS spellVisualId1,
|
||||
CONCAT("Serverside - ",Comment) AS name_loc0,CONCAT("Serverside - ",Comment) AS name_loc2,CONCAT("Serverside - ",Comment) AS name_loc3,CONCAT("Serverside - ",Comment) AS name_loc6,CONCAT("Serverside - ",Comment) AS name_loc8,
|
||||
"" AS rank_loc0, "" AS rank_loc2, "" AS rank_loc3, "" AS rank_loc6, "" AS rank_loc8,
|
||||
"" AS description_loc0, "" AS description_loc2, "" AS description_loc3, "" AS description_loc6, "" AS description_loc8,
|
||||
"" AS buff_loc0, "" AS buff_loc2, "" AS buff_loc3, "" AS buff_loc6, "" AS buff_loc8,
|
||||
CONCAT("Serverside - ",Comment) AS name_loc0,CONCAT("Serverside - ",Comment) AS name_loc2,CONCAT("Serverside - ",Comment) AS name_loc3,CONCAT("Serverside - ",Comment) AS name_loc4,CONCAT("Serverside - ",Comment) AS name_loc6,CONCAT("Serverside - ",Comment) AS name_loc8,
|
||||
"" AS rank_loc0, "" AS rank_loc2, "" AS rank_loc3, "" AS rank_loc4, "" AS rank_loc6, "" AS rank_loc8,
|
||||
"" AS description_loc0, "" AS description_loc2, "" AS description_loc3, "" AS description_loc4, "" AS description_loc6, "" AS description_loc8,
|
||||
"" AS buff_loc0, "" AS buff_loc2, "" AS buff_loc3, "" AS buff_loc4, "" AS buff_loc6, "" AS buff_loc8,
|
||||
0 AS powerCostPercent,
|
||||
0 AS startRecoveryCategory,
|
||||
0 AS startRecoveryTime,
|
||||
@@ -178,10 +178,10 @@ function spell()
|
||||
effect1BonusMultiplier, effect2BonusMultiplier, effect3BonusMultiplier,
|
||||
0 AS iconId, iconId AS iconIdBak, 0 AS iconIdAlt,
|
||||
0 AS rankId, spellVisualId1,
|
||||
name_loc0, name_loc2, name_loc3, name_loc6, name_loc8,
|
||||
rank_loc0, rank_loc2, rank_loc3, rank_loc6, rank_loc8,
|
||||
description_loc0, description_loc2, description_loc3, description_loc6, description_loc8,
|
||||
buff_loc0, buff_loc2, buff_loc3, buff_loc6, buff_loc8,
|
||||
name_loc0, name_loc2, name_loc3, name_loc4, name_loc6, name_loc8,
|
||||
rank_loc0, rank_loc2, rank_loc3, rank_loc4, rank_loc6, rank_loc8,
|
||||
description_loc0, description_loc2, description_loc3, description_loc4, description_loc6, description_loc8,
|
||||
buff_loc0, buff_loc2, buff_loc3, buff_loc4, buff_loc6, buff_loc8,
|
||||
maxTargetLevel,
|
||||
spellFamilyId,
|
||||
spellFamilyFlags1, spellFamilyFlags2, spellFamilyFlags3,
|
||||
|
||||
@@ -56,7 +56,7 @@ function taxi() // path & nodes
|
||||
0 AS typeId,
|
||||
1 AS reactA,
|
||||
1 AS reactH,
|
||||
tn.name_loc0, tn.name_loc2, tn.name_loc3, tn.name_loc6, tn.name_loc8,
|
||||
tn.name_loc0, tn.name_loc2, tn.name_loc3, tn.name_loc4, tn.name_loc6, tn.name_loc8,
|
||||
tn.mapId AS origMap,
|
||||
tn.posX AS origPosX,
|
||||
tn.posY AS origPosY
|
||||
@@ -87,7 +87,7 @@ function taxi() // path & nodes
|
||||
0 AS typeId,
|
||||
1 AS reactA,
|
||||
1 AS reactH,
|
||||
tn.name_loc0, tn.name_loc2, tn.name_loc3, tn.name_loc6, tn.name_loc8,
|
||||
tn.name_loc0, tn.name_loc2, tn.name_loc3, tn.name_loc4, tn.name_loc6, tn.name_loc8,
|
||||
tn.mapId AS origMap,
|
||||
tn.posX AS origPosX,
|
||||
tn.posY AS origPosY
|
||||
|
||||
@@ -49,7 +49,7 @@ function titles()
|
||||
WHERE
|
||||
qt.RewardTitle <> 0';
|
||||
|
||||
DB::Aowow()->query('REPLACE INTO ?_titles SELECT id, 0, 0, 0, 0, 0, 0, 0, bitIdx, male_loc0, male_loc2, male_loc3, male_loc6, male_loc8, female_loc0, female_loc2, female_loc3, female_loc6, female_loc8 FROM dbc_chartitles');
|
||||
DB::Aowow()->query('REPLACE INTO ?_titles SELECT id, 0, 0, 0, 0, 0, 0, 0, bitIdx, male_loc0, male_loc2, male_loc3, male_loc4, male_loc6, male_loc8, female_loc0, female_loc2, female_loc3, female_loc4, female_loc6, female_loc8 FROM dbc_chartitles');
|
||||
|
||||
// hide unused titles
|
||||
DB::Aowow()->query('UPDATE ?_titles SET cuFlags = ?d WHERE id BETWEEN 85 AND 123 AND id NOT IN (113, 120, 121, 122)', CUSTOM_EXCLUDE_FOR_LISTVIEW);
|
||||
|
||||
@@ -85,6 +85,7 @@ function zones()
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc0, m.name_loc0),
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc2, m.name_loc2),
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc3, m.name_loc3),
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc4, m.name_loc4),
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc6, m.name_loc6),
|
||||
IF(wma.id IS NULL OR m.areaType = 0 OR a.mapId IN (269, 560) OR a.areaTable, a.name_loc8, m.name_loc8)
|
||||
FROM
|
||||
|
||||
121
setup/updates/1525726941_01.sql
Normal file
121
setup/updates/1525726941_01.sql
Normal file
@@ -0,0 +1,121 @@
|
||||
ALTER TABLE `aowow_achievement`
|
||||
ADD COLUMN `name_loc4` VARCHAR(86) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `description_loc4` TEXT NOT NULL AFTER `description_loc3`,
|
||||
ADD COLUMN `reward_loc4` VARCHAR(92) NOT NULL AFTER `reward_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_achievementcategory`
|
||||
ADD COLUMN `name_loc4` VARCHAR(255) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_achievementcriteria`
|
||||
ADD COLUMN `name_loc4` VARCHAR(128) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_announcements`
|
||||
ADD COLUMN `text_loc4` TEXT NOT NULL AFTER `text_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_classes`
|
||||
ADD COLUMN `name_loc4` VARCHAR(128) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_creature`
|
||||
ADD COLUMN `name_loc4` VARCHAR(100) NULL DEFAULT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `subname_loc4` VARCHAR(100) NULL DEFAULT NULL AFTER `subname_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_currencies`
|
||||
ADD COLUMN `name_loc4` VARCHAR(64) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `description_loc4` VARCHAR(256) NOT NULL AFTER `description_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_emotes`
|
||||
ADD COLUMN `target_loc4` VARCHAR(95) NULL DEFAULT NULL AFTER `target_loc3`,
|
||||
ADD COLUMN `noTarget_loc4` VARCHAR(85) NULL DEFAULT NULL AFTER `noTarget_loc3`,
|
||||
ADD COLUMN `self_loc4` VARCHAR(85) NULL DEFAULT NULL AFTER `self_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_factions`
|
||||
ADD COLUMN `name_loc4` VARCHAR(40) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_holidays`
|
||||
ADD COLUMN `name_loc4` VARCHAR(36) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `description_loc4` TEXT NULL AFTER `description_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_home_featuredbox`
|
||||
ADD COLUMN `text_loc4` TEXT NOT NULL AFTER `text_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_home_featuredbox_overlay`
|
||||
ADD COLUMN `title_loc4` VARCHAR(100) NOT NULL AFTER `title_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_home_oneliner`
|
||||
ADD COLUMN `text_loc4` VARCHAR(200) NOT NULL AFTER `text_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_itemenchantment`
|
||||
ADD COLUMN `name_loc4` VARCHAR(100) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_itemlimitcategory`
|
||||
ADD COLUMN `name_loc4` VARCHAR(34) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_itemrandomenchant`
|
||||
ADD COLUMN `name_loc4` VARCHAR(250) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_items`
|
||||
ADD COLUMN `name_loc4` VARCHAR(127) NULL DEFAULT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `description_loc4` VARCHAR(255) NULL DEFAULT NULL AFTER `description_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_itemset`
|
||||
ADD COLUMN `name_loc4` VARCHAR(255) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `bonusText_loc4` VARCHAR(256) NOT NULL AFTER `bonusText_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_mailtemplate`
|
||||
ADD COLUMN `subject_loc4` VARCHAR(128) NOT NULL AFTER `subject_loc3`,
|
||||
ADD COLUMN `text_loc4` TEXT NOT NULL AFTER `text_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_objects`
|
||||
ADD COLUMN `name_loc4` VARCHAR(100) NULL DEFAULT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_pet`
|
||||
ADD COLUMN `name_loc4` VARCHAR(64) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_quests`
|
||||
ADD COLUMN `name_loc4` TEXT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `objectives_loc4` TEXT NULL AFTER `objectives_loc3`,
|
||||
ADD COLUMN `details_loc4` TEXT NULL AFTER `details_loc3`,
|
||||
ADD COLUMN `end_loc4` TEXT NULL AFTER `end_loc3`,
|
||||
ADD COLUMN `offerReward_loc4` TEXT NULL AFTER `offerReward_loc3`,
|
||||
ADD COLUMN `requestItems_loc4` TEXT NULL AFTER `requestItems_loc3`,
|
||||
ADD COLUMN `completed_loc4` TEXT NULL AFTER `completed_loc3`,
|
||||
ADD COLUMN `objectiveText1_loc4` TEXT NULL AFTER `objectiveText1_loc3`,
|
||||
ADD COLUMN `objectiveText2_loc4` TEXT NULL AFTER `objectiveText2_loc3`,
|
||||
ADD COLUMN `objectiveText3_loc4` TEXT NULL AFTER `objectiveText3_loc3`,
|
||||
ADD COLUMN `objectiveText4_loc4` TEXT NULL AFTER `objectiveText4_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_races`
|
||||
ADD COLUMN `name_loc4` VARCHAR(64) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_skillline`
|
||||
ADD COLUMN `name_loc4` VARCHAR(64) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `description_loc4` TEXT NOT NULL AFTER `description_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_sourcestrings`
|
||||
ADD COLUMN `source_loc4` VARCHAR(128) NOT NULL AFTER `source_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_spell`
|
||||
ADD COLUMN `name_loc4` VARCHAR(85) NOT NULL AFTER `name_loc3`,
|
||||
ADD COLUMN `rank_loc4` VARCHAR(22) NOT NULL AFTER `rank_loc3`,
|
||||
ADD COLUMN `description_loc4` TEXT NOT NULL AFTER `description_loc3`,
|
||||
ADD COLUMN `buff_loc4` TEXT NOT NULL AFTER `buff_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_spellfocusobject`
|
||||
ADD COLUMN `name_loc4` VARCHAR(95) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_spellrange`
|
||||
ADD COLUMN `name_loc4` VARCHAR(27) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_taxinodes`
|
||||
ADD COLUMN `name_loc4` VARCHAR(55) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_titles`
|
||||
ADD COLUMN `male_loc4` VARCHAR(37) NOT NULL AFTER `male_loc3`,
|
||||
ADD COLUMN `female_loc4` VARCHAR(39) NOT NULL AFTER `female_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_totemcategory`
|
||||
ADD COLUMN `name_loc4` VARCHAR(31) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
ALTER TABLE `aowow_zones`
|
||||
ADD COLUMN `name_loc4` VARCHAR(120) NOT NULL AFTER `name_loc3`;
|
||||
|
||||
34
setup/updates/1525726941_02.sql
Normal file
34
setup/updates/1525726941_02.sql
Normal file
@@ -0,0 +1,34 @@
|
||||
-- drop deprecated dbc data
|
||||
DROP TABLE IF EXISTS `dbc_achievement_category`;
|
||||
DROP TABLE IF EXISTS `dbc_achievement_criteria`;
|
||||
DROP TABLE IF EXISTS `dbc_achievement`;
|
||||
DROP TABLE IF EXISTS `dbc_areatable`;
|
||||
DROP TABLE IF EXISTS `dbc_chartitles`;
|
||||
DROP TABLE IF EXISTS `dbc_chrclasses`;
|
||||
DROP TABLE IF EXISTS `dbc_creaturefamily`;
|
||||
DROP TABLE IF EXISTS `dbc_emotestexxtdata`;
|
||||
DROP TABLE IF EXISTS `dbc_faction`;
|
||||
DROP TABLE IF EXISTS `dbc_holidaydescriptions`;
|
||||
DROP TABLE IF EXISTS `dbc_holidaynames`;
|
||||
DROP TABLE IF EXISTS `dbc_itemlimitcategory`;
|
||||
DROP TABLE IF EXISTS `dbc_itemrandomproperties`;
|
||||
DROP TABLE IF EXISTS `dbc_itemrandomsuffix`;
|
||||
DROP TABLE IF EXISTS `dbc_itemset`;
|
||||
DROP TABLE IF EXISTS `dbc_lfgdungeons`;
|
||||
DROP TABLE IF EXISTS `dbc_mailtemplate`;
|
||||
DROP TABLE IF EXISTS `dbc_map`;
|
||||
DROP TABLE IF EXISTS `dbc_skillline`;
|
||||
DROP TABLE IF EXISTS `dbc_spell`;
|
||||
DROP TABLE IF EXISTS `dbc_spellfocusobject`;
|
||||
DROP TABLE IF EXISTS `dbc_spellitemenchantment`;
|
||||
DROP TABLE IF EXISTS `dbc_spellrange`;
|
||||
DROP TABLE IF EXISTS `dbc_spellshapeshiftform`;
|
||||
DROP TABLE IF EXISTS `dbc_talenttab`;
|
||||
DROP TABLE IF EXISTS `dbc_taxinodes`;
|
||||
DROP TABLE IF EXISTS `dbc_totemcategory`;
|
||||
|
||||
-- update config
|
||||
UPDATE `aowow_config` SET `comment` = 'default: 0x15D - allowed locales - 0:English, 2:French, 3:German, 4:Chinese, 6:Spanish, 8:Russian' WHERE `key` = 'locales';
|
||||
|
||||
-- rebuild affected files
|
||||
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' achievementcategory achievementcriteria itemenchantment itemlimitcategory mailtemplate spellfocusobject spellrange totemcategory classes factions holidays itemrandomenchant races shapeshiftforms skillline emotes achievement creature currencies objects pet quests spell taxi titles items zones itemset'), `build` = CONCAT(IFNULL(`build`, ''), ' complexImg locales statistics talentCalc pets glyphs itemsets enchants gems profiler');
|
||||
Reference in New Issue
Block a user