2014-11-11 13:14:36 +00:00
/*
2016-01-01 00:34:25 +01:00
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
2014-11-11 13:14:36 +00:00
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2016-05-02 18:52:15 +02:00
// DO NOT EDIT!
// Autogenerated from DB2Structure.h
2014-11-11 13:14:36 +00:00
#include "HotfixDatabase.h"
2015-01-17 17:59:13 +01:00
// Force locale statments to appear exactly in locale declaration order, right after normal data fetch statement
2015-02-22 10:29:12 +01:00
#define PREPARE_LOCALE_STMT(stmtBase, sql, con) \
static_assert(stmtBase + 1 == stmtBase##_LOCALE, "Invalid prepared statement index for " #stmtBase "_LOCALE"); \
PrepareStatement(stmtBase##_LOCALE, sql, con);
2014-11-11 13:14:36 +00:00
void HotfixDatabaseConnection :: DoPrepareStatements ()
{
if ( ! m_reconnecting )
m_stmts . resize ( MAX_HOTFIXDATABASE_STATEMENTS );
2014-12-24 22:24:32 +01:00
2015-09-07 18:03:33 +02:00
// Achievement.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ACHIEVEMENT , "SELECT ID, Title, Description, Flags, Reward, MapID, Supercedes, Category, UIOrder, IconID, "
"SharesCriteria, CriteriaTree, Faction, Points, MinimumCriteria FROM achievement ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ACHIEVEMENT , "SELECT ID, Title_lang, Description_lang, Reward_lang FROM achievement_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// AnimKit.db2
PrepareStatement ( HOTFIX_SEL_ANIM_KIT , "SELECT ID, OneShotDuration, OneShotStopAnimKitID, LowDefAnimKitID FROM anim_kit ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
// AreaGroupMember.db2
PrepareStatement ( HOTFIX_SEL_AREA_GROUP_MEMBER , "SELECT ID, AreaGroupID, AreaID FROM area_group_member ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
// AreaTable.db2
PrepareStatement ( HOTFIX_SEL_AREA_TABLE , "SELECT ID, Flags1, Flags2, ZoneName, AmbientMultiplier, AreaName, MapID, ParentAreaID, AreaBit, "
2016-04-25 22:03:34 +02:00
"AmbienceID, ZoneMusic, IntroSound, LiquidTypeID1, LiquidTypeID2, LiquidTypeID3, LiquidTypeID4, UWIntroMusic, UWZoneMusic, UWAmbience, "
"PvPCombastWorldStateID, SoundProviderPref, SoundProviderPrefUnderwater, ExplorationLevel, FactionGroupMask, MountFlags, "
2016-02-06 17:53:37 +01:00
"WildBattlePetLevelMin, WildBattlePetLevelMax, WindSettingsID FROM area_table ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_AREA_TABLE , "SELECT ID, AreaName_lang FROM area_table_locale WHERE locale = ?" , CONNECTION_SYNCH );
// AreaTrigger.db2
PrepareStatement ( HOTFIX_SEL_AREA_TRIGGER , "SELECT ID, PosX, PosY, PosZ, Radius, BoxLength, BoxWidth, BoxHeight, BoxYaw, MapID, PhaseID, "
"PhaseGroupID, ShapeID, AreaTriggerActionSetID, PhaseUseFlags, ShapeType, Flag FROM area_trigger ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ArmorLocation.db2
PrepareStatement ( HOTFIX_SEL_ARMOR_LOCATION , "SELECT ID, Modifier1, Modifier2, Modifier3, Modifier4, Modifier5 FROM armor_location ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// AuctionHouse.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_AUCTION_HOUSE , "SELECT ID, Name, FactionID, DepositRate, ConsignmentRate FROM auction_house ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_AUCTION_HOUSE , "SELECT ID, Name_lang FROM auction_house_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// BankBagSlotPrices.db2
PrepareStatement ( HOTFIX_SEL_BANK_BAG_SLOT_PRICES , "SELECT ID, Cost FROM bank_bag_slot_prices ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// BannedAddons.db2
PrepareStatement ( HOTFIX_SEL_BANNED_ADDONS , "SELECT ID, Name, Version, Flags FROM banned_addons ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// BarberShopStyle.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BARBER_SHOP_STYLE , "SELECT ID, DisplayName, Description, CostModifier, Type, Race, Sex, Data FROM barber_shop_style"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BARBER_SHOP_STYLE , "SELECT ID, DisplayName_lang, Description_lang FROM barber_shop_style_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetBreedQuality.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_BREED_QUALITY , "SELECT ID, Modifier, Quality FROM battle_pet_breed_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetBreedState.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_BREED_STATE , "SELECT ID, Value, BreedID, State FROM battle_pet_breed_state ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetSpecies.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_SPECIES , "SELECT ID, CreatureID, IconFileID, SummonSpellID, SourceText, Description, Flags, PetType, "
"Source FROM battle_pet_species ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-05-01 21:46:58 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BATTLE_PET_SPECIES , "SELECT ID, SourceText_lang, Description_lang FROM battle_pet_species_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
// BattlePetSpeciesState.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BATTLE_PET_SPECIES_STATE , "SELECT ID, Value, SpeciesID, State FROM battle_pet_species_state ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-09 14:52:32 +02:00
2016-04-25 22:03:34 +02:00
// BattlemasterList.db2
PrepareStatement ( HOTFIX_SEL_BATTLEMASTER_LIST , "SELECT ID, Name, IconFileDataID, GameType, MapID1, MapID2, MapID3, MapID4, MapID5, MapID6, "
"MapID7, MapID8, MapID9, MapID10, MapID11, MapID12, MapID13, MapID14, MapID15, MapID16, HolidayWorldState, PlayerConditionID, InstanceType, "
"GroupsAllowed, MaxGroupSize, MinLevel, MaxLevel, RatedPlayers, MinPlayers, MaxPlayers, Flags FROM battlemaster_list ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BATTLEMASTER_LIST , "SELECT ID, Name_lang, GameType_lang FROM battlemaster_list_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
// BroadcastText.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_BROADCAST_TEXT , "SELECT ID, MaleText, FemaleText, EmoteID1, EmoteID2, EmoteID3, EmoteDelay1, EmoteDelay2, "
"EmoteDelay3, SoundID, UnkEmoteID, Language, Type FROM broadcast_text ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_BROADCAST_TEXT , "SELECT ID, MaleText_lang, FemaleText_lang FROM broadcast_text_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2016-04-25 22:03:34 +02:00
// CharSections.db2
PrepareStatement ( HOTFIX_SEL_CHAR_SECTIONS , "SELECT Id, TextureFileDataID1, TextureFileDataID2, TextureFileDataID3, Flags, Race, Gender, GenType, "
"Type, Color FROM char_sections ORDER BY Id DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// CharStartOutfit.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CHAR_START_OUTFIT , "SELECT ID, ItemID1, ItemID2, ItemID3, ItemID4, ItemID5, ItemID6, ItemID7, ItemID8, ItemID9, "
"ItemID10, ItemID11, ItemID12, ItemID13, ItemID14, ItemID15, ItemID16, ItemID17, ItemID18, ItemID19, ItemID20, ItemID21, ItemID22, ItemID23, "
"ItemID24, PetDisplayID, RaceID, ClassID, GenderID, OutfitID, PetFamilyID FROM char_start_outfit ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// CharTitles.db2
PrepareStatement ( HOTFIX_SEL_CHAR_TITLES , "SELECT ID, NameMale, NameFemale, ConditionID, MaskID, Flags FROM char_titles ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHAR_TITLES , "SELECT ID, NameMale_lang, NameFemale_lang FROM char_titles_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// ChatChannels.db2
PrepareStatement ( HOTFIX_SEL_CHAT_CHANNELS , "SELECT ID, Flags, Name, Shortcut, FactionGroup FROM chat_channels ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHAT_CHANNELS , "SELECT ID, Name_lang, Shortcut_lang FROM chat_channels_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// ChrClasses.db2
PrepareStatement ( HOTFIX_SEL_CHR_CLASSES , "SELECT ID, PowerType, PetNameToken, Name, NameFemale, NameMale, Filename, CreateScreenFileDataID, "
"SelectScreenFileDataID, LowResScreenFileDataID, Flags, CinematicSequenceID, DefaultSpec, SpellClassSet, AttackPowerPerStrength, "
"AttackPowerPerAgility, RangedAttackPowerPerAgility, IconFileDataID, Unk1 FROM chr_classes ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_CLASSES , "SELECT ID, Name_lang, NameFemale_lang, NameMale_lang FROM chr_classes_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ChrClassesXPowerTypes.db2
PrepareStatement ( HOTFIX_SEL_CHR_CLASSES_X_POWER_TYPES , "SELECT ID, ClassID, PowerType FROM chr_classes_x_power_types ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ChrRaces.db2
PrepareStatement ( HOTFIX_SEL_CHR_RACES , "SELECT ID, Flags, ClientPrefix, ClientFileString, Name, NameFemale, NameMale, FacialHairCustomization1, "
"FacialHairCustomization2, HairCustomization, CreateScreenFileDataID, SelectScreenFileDataID, MaleCustomizeOffset1, MaleCustomizeOffset2, "
"MaleCustomizeOffset3, FemaleCustomizeOffset1, FemaleCustomizeOffset2, FemaleCustomizeOffset3, LowResScreenFileDataID, FactionID, "
"ExplorationSoundID, MaleDisplayID, FemaleDisplayID, ResSicknessSpellID, SplashSoundID, CinematicSequenceID, UAMaleCreatureSoundDataID, "
"UAFemaleCreatureSoundDataID, HighResMaleDisplayID, HighResFemaleDisplayID, Unk, BaseLanguage, CreatureType, TeamID, RaceRelated, "
2016-04-25 22:03:34 +02:00
"UnalteredVisualRaceID, CharComponentTextureLayoutID, DefaultClassID, NeutralRaceID, ItemAppearanceFrameRaceID, "
"CharComponentTexLayoutHiResID FROM chr_races ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_RACES , "SELECT ID, Name_lang, NameFemale_lang, NameMale_lang FROM chr_races_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// ChrSpecialization.db2
PrepareStatement ( HOTFIX_SEL_CHR_SPECIALIZATION , "SELECT ID, MasterySpellID1, MasterySpellID2, Flags, AnimReplacementSetID, Name, Name2, "
"Description, BackgroundFile, SpellIconID, ClassID, OrderIndex, PetTalentType, Role, PrimaryStatOrder FROM chr_specialization ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CHR_SPECIALIZATION , "SELECT ID, Name_lang, Name2_lang, Description_lang FROM chr_specialization_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// CinematicSequences.db2
PrepareStatement ( HOTFIX_SEL_CINEMATIC_SEQUENCES , "SELECT ID, SoundID, Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7, Camera8"
" FROM cinematic_sequences ORDER BY ID DESC" , CONNECTION_SYNCH );
// CreatureDisplayInfo.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CREATURE_DISPLAY_INFO , "SELECT ID, ExtendedDisplayInfoID, CreatureModelScale, PlayerModelScale, TextureVariation1, "
"TextureVariation2, TextureVariation3, PortraitTextureName, PortraitCreatureDisplayInfoID, CreatureGeosetData, StateSpellVisualKitID, "
2016-04-25 22:03:34 +02:00
"InstanceOtherPlayerPetScale, ModelID, SoundID, NPCSoundID, ParticleColorID, ObjectEffectPackageID, AnimReplacementSetID, CreatureModelAlpha, "
"SizeClass, BloodID, Flags, Gender, Unk700 FROM creature_display_info ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// CreatureDisplayInfoExtra.db2
2016-01-31 19:25:51 +01:00
PrepareStatement ( HOTFIX_SEL_CREATURE_DISPLAY_INFO_EXTRA , "SELECT ID, FileDataID, HDFileDataID, DisplayRaceID, DisplaySexID, DisplayClassID, "
"SkinID, FaceID, HairStyleID, HairColorID, FacialHairID, CustomDisplayOption1, CustomDisplayOption2, CustomDisplayOption3, Flags"
" FROM creature_display_info_extra ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// CreatureFamily.db2
PrepareStatement ( HOTFIX_SEL_CREATURE_FAMILY , "SELECT ID, MinScale, MaxScale, Name, IconFile, SkillLine1, SkillLine2, PetFoodMask, MinScaleLevel, "
"MaxScaleLevel, PetTalentType, CategoryEnumID FROM creature_family ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CREATURE_FAMILY , "SELECT ID, Name_lang FROM creature_family_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// CreatureModelData.db2
PrepareStatement ( HOTFIX_SEL_CREATURE_MODEL_DATA , "SELECT ID, Flags, FileDataID, ModelScale, FootprintTextureLength, FootprintTextureWidth, "
"FootprintParticleScale, CollisionWidth, CollisionHeight, MountHeight, GeoBoxMin1, GeoBoxMin2, GeoBoxMin3, GeoBoxMax1, GeoBoxMax2, "
"GeoBoxMax3, WorldEffectScale, AttachedEffectScale, MissileCollisionRadius, MissileCollisionPush, MissileCollisionRaise, "
"OverrideLootEffectScale, OverrideNameScale, OverrideSelectionRadius, TamedPetBaseScale, HoverHeight, SoundID, CreatureGeosetDataID, "
"SizeClass, BloodID, FootprintTextureID, FoleyMaterialID, Unk700_1, Unk700_2, FootstepShakeSize, DeathThudShakeSize FROM creature_model_data"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// CreatureType.db2
PrepareStatement ( HOTFIX_SEL_CREATURE_TYPE , "SELECT ID, Name, Flags FROM creature_type ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CREATURE_TYPE , "SELECT ID, Name_lang FROM creature_type_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// Criteria.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CRITERIA , "SELECT ID, Asset, StartAsset, FailAsset, StartTimer, ModifierTreeId, EligibilityWorldStateID, Type, "
"StartEvent, FailEvent, Flags, EligibilityWorldStateValue FROM criteria ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// CriteriaTree.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CRITERIA_TREE , "SELECT ID, Amount, Description, CriteriaID, Parent, Flags, OrderIndex, Operator FROM criteria_tree"
2015-09-07 18:03:33 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CRITERIA_TREE , "SELECT ID, Description_lang FROM criteria_tree_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
// CurrencyTypes.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CURRENCY_TYPES , "SELECT ID, Name, InventoryIcon1, InventoryIcon2, MaxQty, MaxEarnablePerWeek, Flags, Description, "
"CategoryID, SpellWeight, SpellCategory, Quality FROM currency_types ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_CURRENCY_TYPES , "SELECT ID, Name_lang, Description_lang FROM currency_types_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
2015-02-22 10:29:12 +01:00
// CurvePoint.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_CURVE_POINT , "SELECT ID, X, Y, CurveID, `Index` FROM curve_point ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2015-07-07 12:13:14 +02:00
// DestructibleModelData.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_DESTRUCTIBLE_MODEL_DATA , "SELECT ID, StateDamagedDisplayID, StateDestroyedDisplayID, StateRebuildingDisplayID, "
"StateSmokeDisplayID, HealEffectSpeed, StateDamagedImpactEffectDoodadSet, StateDamagedAmbientDoodadSet, StateDamagedNameSet, "
"StateDestroyedDestructionDoodadSet, StateDestroyedImpactEffectDoodadSet, StateDestroyedAmbientDoodadSet, StateDestroyedNameSet, "
2016-05-01 21:46:58 +02:00
"StateRebuildingDestructionDoodadSet, StateRebuildingImpactEffectDoodadSet, StateRebuildingAmbientDoodadSet, StateRebuildingNameSet, "
2016-01-24 15:56:10 +01:00
"StateSmokeInitDoodadSet, StateSmokeAmbientDoodadSet, StateSmokeNameSet, EjectDirection, DoNotHighlight, HealEffect"
" FROM destructible_model_data ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
// Difficulty.db2
PrepareStatement ( HOTFIX_SEL_DIFFICULTY , "SELECT ID, Name, FallbackDifficultyID, InstanceType, MinPlayers, MaxPlayers, OldEnumValue, Flags, "
"ToggleDifficultyID, GroupSizeHealthCurveID, GroupSizeDmgCurveID, GroupSizeSpellPointsCurveID, ItemBonusTreeModID, OrderIndex FROM difficulty"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_DIFFICULTY , "SELECT ID, Name_lang FROM difficulty_locale WHERE locale = ?" , CONNECTION_SYNCH );
// DungeonEncounter.db2
PrepareStatement ( HOTFIX_SEL_DUNGEON_ENCOUNTER , "SELECT ID, Name, CreatureDisplayID, MapID, OrderIndex, SpellIconID, DifficultyID, Bit, Flags"
" FROM dungeon_encounter ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_DUNGEON_ENCOUNTER , "SELECT ID, Name_lang FROM dungeon_encounter_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// DurabilityCosts.db2
PrepareStatement ( HOTFIX_SEL_DURABILITY_COSTS , "SELECT ID, WeaponSubClassCost1, WeaponSubClassCost2, WeaponSubClassCost3, WeaponSubClassCost4, "
"WeaponSubClassCost5, WeaponSubClassCost6, WeaponSubClassCost7, WeaponSubClassCost8, WeaponSubClassCost9, WeaponSubClassCost10, "
"WeaponSubClassCost11, WeaponSubClassCost12, WeaponSubClassCost13, WeaponSubClassCost14, WeaponSubClassCost15, WeaponSubClassCost16, "
"WeaponSubClassCost17, WeaponSubClassCost18, WeaponSubClassCost19, WeaponSubClassCost20, WeaponSubClassCost21, ArmorSubClassCost1, "
"ArmorSubClassCost2, ArmorSubClassCost3, ArmorSubClassCost4, ArmorSubClassCost5, ArmorSubClassCost6, ArmorSubClassCost7, ArmorSubClassCost8"
" FROM durability_costs ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// DurabilityQuality.db2
PrepareStatement ( HOTFIX_SEL_DURABILITY_QUALITY , "SELECT ID, QualityMod FROM durability_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// Emotes.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_EMOTES , "SELECT ID, EmoteSlashCommand, SpellVisualKitID, EmoteFlags, Unk703_1, Unk703_2, AnimID, EmoteSpecProcParam, "
"EmoteSoundID, EmoteSpecProc FROM emotes ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
2016-02-06 17:53:37 +01:00
// EmotesText.db2
PrepareStatement ( HOTFIX_SEL_EMOTES_TEXT , "SELECT ID, Name, EmoteID FROM emotes_text ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_EMOTES_TEXT , "SELECT ID, Name_lang FROM emotes_text_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// EmotesTextSound.db2
PrepareStatement ( HOTFIX_SEL_EMOTES_TEXT_SOUND , "SELECT ID, EmotesTextId, SoundId, RaceId, SexId, ClassId FROM emotes_text_sound ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// Faction.db2
PrepareStatement ( HOTFIX_SEL_FACTION , "SELECT ID, ReputationRaceMask1, ReputationRaceMask2, ReputationRaceMask3, ReputationRaceMask4, "
"ReputationBase1, ReputationBase2, ReputationBase3, ReputationBase4, ParentFactionModIn, ParentFactionModOut, Name, Description, "
"ReputationIndex, ReputationClassMask1, ReputationClassMask2, ReputationClassMask3, ReputationClassMask4, ReputationFlags1, ReputationFlags2, "
"ReputationFlags3, ReputationFlags4, ParentFactionID, ParentFactionCapIn, ParentFactionCapOut, Expansion, Flags, FriendshipRepID FROM faction"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_FACTION , "SELECT ID, Name_lang, Description_lang FROM faction_locale WHERE locale = ?" , CONNECTION_SYNCH );
// FactionTemplate.db2
PrepareStatement ( HOTFIX_SEL_FACTION_TEMPLATE , "SELECT ID, Faction, Flags, Enemies1, Enemies2, Enemies3, Enemies4, Friends1, Friends2, Friends3, "
"Friends4, Mask, FriendMask, EnemyMask FROM faction_template ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-05-01 21:46:58 +02:00
// Gameobjects.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GAMEOBJECTS , "SELECT ID, PositionX, PositionY, PositionZ, RotationX, RotationY, RotationZ, RotationW, Size, Data1, "
"Data2, Data3, Data4, Data5, Data6, Data7, Data8, Name, MapID, DisplayID, PhaseID, PhaseGroupID, PhaseUseFlags, Type FROM gameobjects"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GAMEOBJECTS , "SELECT ID, Name_lang FROM gameobjects_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// GameobjectDisplayInfo.db2
PrepareStatement ( HOTFIX_SEL_GAMEOBJECT_DISPLAY_INFO , "SELECT ID, FileDataID, GeoBoxMinX, GeoBoxMinY, GeoBoxMinZ, GeoBoxMaxX, GeoBoxMaxY, "
2016-01-31 19:25:51 +01:00
"GeoBoxMaxZ, OverrideLootEffectScale, OverrideNameScale, ObjectEffectPackageID FROM gameobject_display_info ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-05-17 18:06:28 +02:00
// GarrAbility.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_ABILITY , "SELECT ID, Name, Description, IconFileDataID, Flags, OtherFactionGarrAbilityID, GarrAbilityCategoryID, "
2015-07-07 12:13:14 +02:00
"FollowerTypeID FROM garr_ability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_ABILITY , "SELECT ID, Name_lang, Description_lang FROM garr_ability_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrBuilding.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_BUILDING , "SELECT ID, HordeGameObjectID, AllianceGameObjectID, NameAlliance, NameHorde, Description, Tooltip, "
"IconFileDataID, BuildDuration, CostCurrencyID, CostCurrencyAmount, AllianceActivationScenePackageID, HordeActivationScenePackageID, "
"CostMoney, Unknown, Type, Level, HordeTexPrefixKitID, AllianceTexPrefixKitID, BonusAmount, Flags, MaxShipments, "
"FollowerRequiredGarrAbilityID, FollowerGarrAbilityEffectID, GarrTypeID FROM garr_building ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_BUILDING , "SELECT ID, NameAlliance_lang, NameHorde_lang, Description_lang, Tooltip_lang"
" FROM garr_building_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrBuildingPlotInst.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_BUILDING_PLOT_INST , "SELECT ID, LandmarkOffsetX, LandmarkOffsetY, UiTextureAtlasMemberID, "
"GarrSiteLevelPlotInstID, GarrBuildingID FROM garr_building_plot_inst ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
2015-05-17 18:06:28 +02:00
// GarrClassSpec.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_CLASS_SPEC , "SELECT ID, NameMale, NameFemale, NameGenderless, ClassAtlasID, GarrFollItemSetID, `Limit`, Flags"
2015-07-07 12:13:14 +02:00
" FROM garr_class_spec ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_CLASS_SPEC , "SELECT ID, NameMale_lang, NameFemale_lang, NameGenderless_lang FROM garr_class_spec_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
// GarrFollower.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_FOLLOWER , "SELECT ID, HordeCreatureID, AllianceCreatureID, HordeSourceText, AllianceSourceText, "
"HordePortraitIconID, AlliancePortraitIconID, ItemLevelWeapon, ItemLevelArmor, FollowerTypeID, HordeUiAnimRaceInfoID, "
2016-05-01 21:46:58 +02:00
"AllianceUiAnimRaceInfoID, Quality, HordeGarrClassSpecID, AllianceGarrClassSpecID, HordeGarrFollItemSetID, AllianceGarrFollItemSetID, Level, "
2016-04-25 22:03:34 +02:00
"Unknown1, Flags, Unknown2, Unknown3, HordeListPortraitTextureKitID, AllianceListPortraitTextureKitID, GarrTypeID, MaxDurability, Class"
" FROM garr_follower ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_FOLLOWER , "SELECT ID, HordeSourceText_lang, AllianceSourceText_lang FROM garr_follower_locale WHERE locale = ?" , CONNECTION_SYNCH );
// GarrFollowerXAbility.db2
2015-07-07 12:13:14 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_FOLLOWER_X_ABILITY , "SELECT ID, GarrFollowerID, GarrAbilityID, FactionIndex FROM garr_follower_x_ability"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-17 18:06:28 +02:00
2015-05-08 00:03:15 +02:00
// GarrPlot.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GARR_PLOT , "SELECT ID, Name, AllianceConstructionGameObjectID, HordeConstructionGameObjectID, MinCount, MaxCount, "
"GarrPlotUICategoryID, PlotType, Flags FROM garr_plot ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_PLOT , "SELECT ID, Name_lang FROM garr_plot_locale WHERE locale = ?" , CONNECTION_SYNCH );
// GarrPlotBuilding.db2
PrepareStatement ( HOTFIX_SEL_GARR_PLOT_BUILDING , "SELECT ID, GarrPlotID, GarrBuildingID FROM garr_plot_building ORDER BY ID DESC" , CONNECTION_SYNCH );
// GarrPlotInstance.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_PLOT_INSTANCE , "SELECT ID, Name, GarrPlotID FROM garr_plot_instance ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_GARR_PLOT_INSTANCE , "SELECT ID, Name_lang FROM garr_plot_instance_locale WHERE locale = ?" , CONNECTION_SYNCH );
// GarrSiteLevel.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_SITE_LEVEL , "SELECT ID, TownHallX, TownHallY, MapID, UpgradeResourceCost, UpgradeMoneyCost, Level, SiteID, "
"UITextureKitID, MovieID, Level2 FROM garr_site_level ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
// GarrSiteLevelPlotInst.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_GARR_SITE_LEVEL_PLOT_INST , "SELECT ID, LandmarkX, LandmarkY, GarrSiteLevelID, GarrPlotInstanceID, Unknown"
2015-07-07 12:13:14 +02:00
" FROM garr_site_level_plot_inst ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// GemProperties.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GEM_PROPERTIES , "SELECT ID, Type, EnchantID, MinItemLevel FROM gem_properties ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// GlyphProperties.db2
PrepareStatement ( HOTFIX_SEL_GLYPH_PROPERTIES , "SELECT ID, SpellID, SpellIconID, Type, GlyphExclusiveCategoryID FROM glyph_properties"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// GlyphSlot.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GLYPH_SLOT , "SELECT ID, Tooltip, Type FROM glyph_slot ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// GuildColorBackground.db2
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_BACKGROUND , "SELECT ID, Red, Green, Blue FROM guild_color_background ORDER BY ID DESC" , CONNECTION_SYNCH );
// GuildColorBorder.db2
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_BORDER , "SELECT ID, Red, Green, Blue FROM guild_color_border ORDER BY ID DESC" , CONNECTION_SYNCH );
// GuildColorEmblem.db2
PrepareStatement ( HOTFIX_SEL_GUILD_COLOR_EMBLEM , "SELECT ID, Red, Green, Blue FROM guild_color_emblem ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// GuildPerkSpells.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_GUILD_PERK_SPELLS , "SELECT ID, SpellID FROM guild_perk_spells ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-05-08 00:03:15 +02:00
2015-10-16 22:54:46 +02:00
// Heirloom.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_HEIRLOOM , "SELECT ID, ItemID, SourceText, OldItem1, OldItem2, NextDifficultyItemID, UpgradeItemID1, UpgradeItemID2, "
"ItemBonusListID1, ItemBonusListID2, Flags, Source FROM heirloom ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-10-16 22:54:46 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_HEIRLOOM , "SELECT ID, SourceText_lang FROM heirloom_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// Holidays.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_HOLIDAYS , "SELECT ID, Date1, Date2, Date3, Date4, Date5, Date6, Date7, Date8, Date9, Date10, Date11, Date12, Date13, "
"Date14, Date15, Date16, TextureFilename, Duration1, Duration2, Duration3, Duration4, Duration5, Duration6, Duration7, Duration8, Duration9, "
"Duration10, Region, Looping, CalendarFlags1, CalendarFlags2, CalendarFlags3, CalendarFlags4, CalendarFlags5, CalendarFlags6, CalendarFlags7, "
"CalendarFlags8, CalendarFlags9, CalendarFlags10, HolidayNameID, HolidayDescriptionID, Priority, CalendarFilterType, Flags FROM holidays"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// ImportPriceArmor.db2
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_ARMOR , "SELECT ID, ClothFactor, LeatherFactor, MailFactor, PlateFactor FROM import_price_armor"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ImportPriceQuality.db2
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_QUALITY , "SELECT ID, Factor FROM import_price_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
// ImportPriceShield.db2
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_SHIELD , "SELECT ID, Factor FROM import_price_shield ORDER BY ID DESC" , CONNECTION_SYNCH );
// ImportPriceWeapon.db2
PrepareStatement ( HOTFIX_SEL_IMPORT_PRICE_WEAPON , "SELECT ID, Factor FROM import_price_weapon ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// Item.db2
PrepareStatement ( HOTFIX_SEL_ITEM , "SELECT ID, FileDataID, Class, SubClass, SoundOverrideSubclass, Material, InventoryType, Sheath, GroupSoundsID"
" FROM item ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemAppearance.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_APPEARANCE , "SELECT ID, DisplayID, IconFileDataID, UIOrder, ObjectComponentSlot FROM item_appearance"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemArmorQuality.db2
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_QUALITY , "SELECT ID, QualityMod1, QualityMod2, QualityMod3, QualityMod4, QualityMod5, QualityMod6, "
"QualityMod7, ItemLevel FROM item_armor_quality ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemArmorShield.db2
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_SHIELD , "SELECT ID, Quality1, Quality2, Quality3, Quality4, Quality5, Quality6, Quality7, ItemLevel"
" FROM item_armor_shield ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemArmorTotal.db2
PrepareStatement ( HOTFIX_SEL_ITEM_ARMOR_TOTAL , "SELECT ID, Value1, Value2, Value3, Value4, ItemLevel FROM item_armor_total ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemBagFamily.db2
PrepareStatement ( HOTFIX_SEL_ITEM_BAG_FAMILY , "SELECT ID, Name FROM item_bag_family ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_BAG_FAMILY , "SELECT ID, Name_lang FROM item_bag_family_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemBonus.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_BONUS , "SELECT ID, Value1, Value2, BonusListID, Type, `Index` FROM item_bonus ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemBonusTreeNode.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_BONUS_TREE_NODE , "SELECT ID, BonusTreeID, SubTreeID, BonusListID, BonusTreeModID FROM item_bonus_tree_node"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemClass.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_CLASS , "SELECT ID, PriceMod, Name, Flags FROM item_class ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_CLASS , "SELECT ID, Name_lang FROM item_class_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemCurrencyCost.db2
2015-07-07 12:13:14 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_CURRENCY_COST , "SELECT ID, ItemId FROM item_currency_cost ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemDamageAmmo.db2
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_AMMO , "SELECT ID, DPS1, DPS2, DPS3, DPS4, DPS5, DPS6, DPS7, ItemLevel FROM item_damage_ammo"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemDamageOneHand.db2
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_ONE_HAND , "SELECT ID, DPS1, DPS2, DPS3, DPS4, DPS5, DPS6, DPS7, ItemLevel FROM item_damage_one_hand"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemDamageOneHandCaster.db2
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_ONE_HAND_CASTER , "SELECT ID, DPS1, DPS2, DPS3, DPS4, DPS5, DPS6, DPS7, ItemLevel"
" FROM item_damage_one_hand_caster ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemDamageTwoHand.db2
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_TWO_HAND , "SELECT ID, DPS1, DPS2, DPS3, DPS4, DPS5, DPS6, DPS7, ItemLevel FROM item_damage_two_hand"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemDamageTwoHandCaster.db2
PrepareStatement ( HOTFIX_SEL_ITEM_DAMAGE_TWO_HAND_CASTER , "SELECT ID, DPS1, DPS2, DPS3, DPS4, DPS5, DPS6, DPS7, ItemLevel"
" FROM item_damage_two_hand_caster ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemDisenchantLoot.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_DISENCHANT_LOOT , "SELECT ID, MinItemLevel, MaxItemLevel, RequiredDisenchantSkill, ItemClass, ItemSubClass, "
"ItemQuality FROM item_disenchant_loot ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemEffect.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_EFFECT , "SELECT ID, ItemID, SpellID, Cooldown, CategoryCooldown, Charges, Category, ChrSpecializationID, "
"OrderIndex, `Trigger` FROM item_effect ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemExtendedCost.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_EXTENDED_COST , "SELECT ID, RequiredItem1, RequiredItem2, RequiredItem3, RequiredItem4, RequiredItem5, "
"RequiredCurrencyCount1, RequiredCurrencyCount2, RequiredCurrencyCount3, RequiredCurrencyCount4, RequiredCurrencyCount5, RequiredMoney, "
"RequiredItemCount1, RequiredItemCount2, RequiredItemCount3, RequiredItemCount4, RequiredItemCount5, RequiredPersonalArenaRating, "
"RequiredCurrency1, RequiredCurrency2, RequiredCurrency3, RequiredCurrency4, RequiredCurrency5, RequiredArenaSlot, RequiredFactionId, "
"RequiredFactionStanding, RequirementFlags, RequiredAchievement FROM item_extended_cost ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// ItemLimitCategory.db2
PrepareStatement ( HOTFIX_SEL_ITEM_LIMIT_CATEGORY , "SELECT ID, Name, Quantity, Flags FROM item_limit_category ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_LIMIT_CATEGORY , "SELECT ID, Name_lang FROM item_limit_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemModifiedAppearance.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_ITEM_MODIFIED_APPEARANCE , "SELECT ID, ItemID, AppearanceID, AppearanceModID, `Index`, SourceType"
" FROM item_modified_appearance ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemPriceBase.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_PRICE_BASE , "SELECT ID, ArmorFactor, WeaponFactor, ItemLevel FROM item_price_base ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemRandomProperties.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_RANDOM_PROPERTIES , "SELECT ID, Name, Enchantment1, Enchantment2, Enchantment3, Enchantment4, Enchantment5"
" FROM item_random_properties ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_RANDOM_PROPERTIES , "SELECT ID, Name_lang FROM item_random_properties_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// ItemRandomSuffix.db2
PrepareStatement ( HOTFIX_SEL_ITEM_RANDOM_SUFFIX , "SELECT ID, Name, InternalName, Enchantment1, Enchantment2, Enchantment3, Enchantment4, "
"Enchantment5, AllocationPct1, AllocationPct2, AllocationPct3, AllocationPct4, AllocationPct5 FROM item_random_suffix ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_RANDOM_SUFFIX , "SELECT ID, Name_lang, InternalName_lang FROM item_random_suffix_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// ItemSet.db2
PrepareStatement ( HOTFIX_SEL_ITEM_SET , "SELECT ID, Name, ItemID1, ItemID2, ItemID3, ItemID4, ItemID5, ItemID6, ItemID7, ItemID8, ItemID9, "
2016-04-25 22:03:34 +02:00
"ItemID10, ItemID11, ItemID12, ItemID13, ItemID14, ItemID15, ItemID16, ItemID17, Unknown703, RequiredSkillRank, RequiredSkill FROM item_set"
2016-01-31 19:25:51 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_SET , "SELECT ID, Name_lang FROM item_set_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// ItemSetSpell.db2
PrepareStatement ( HOTFIX_SEL_ITEM_SET_SPELL , "SELECT ID, SpellID, ItemSetID, ChrSpecID, Threshold FROM item_set_spell ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ItemSparse.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_SPARSE , "SELECT ID, Flags1, Flags2, Flags3, Unk1, Unk2, BuyPrice, SellPrice, AllowableClass, AllowableRace, "
"RequiredSpell, MaxCount, Stackable, ItemStatAllocation1, ItemStatAllocation2, ItemStatAllocation3, ItemStatAllocation4, ItemStatAllocation5, "
2015-07-07 12:13:14 +02:00
"ItemStatAllocation6, ItemStatAllocation7, ItemStatAllocation8, ItemStatAllocation9, ItemStatAllocation10, ItemStatSocketCostMultiplier1, "
"ItemStatSocketCostMultiplier2, ItemStatSocketCostMultiplier3, ItemStatSocketCostMultiplier4, ItemStatSocketCostMultiplier5, "
"ItemStatSocketCostMultiplier6, ItemStatSocketCostMultiplier7, ItemStatSocketCostMultiplier8, ItemStatSocketCostMultiplier9, "
2016-01-24 15:56:10 +01:00
"ItemStatSocketCostMultiplier10, RangedModRange, Name, Name2, Name3, Name4, Description, BagFamily, ArmorDamageModifier, Duration, "
"StatScalingFactor, ItemLevel, RequiredSkill, RequiredSkillRank, RequiredReputationFaction, ItemStatValue1, ItemStatValue2, ItemStatValue3, "
"ItemStatValue4, ItemStatValue5, ItemStatValue6, ItemStatValue7, ItemStatValue8, ItemStatValue9, ItemStatValue10, ScalingStatDistribution, "
"Delay, PageText, StartQuest, LockID, RandomProperty, RandomSuffix, ItemSet, Area, Map, SocketBonus, GemProperties, ItemLimitCategory, "
"HolidayID, ItemNameDescriptionID, Quality, BuyCount, InventoryType, RequiredLevel, RequiredHonorRank, RequiredCityRank, "
"RequiredReputationRank, ContainerSlots, ItemStatType1, ItemStatType2, ItemStatType3, ItemStatType4, ItemStatType5, ItemStatType6, "
"ItemStatType7, ItemStatType8, ItemStatType9, ItemStatType10, DamageType, Bonding, LanguageID, PageMaterial, Material, Sheath, TotemCategory, "
2016-04-25 22:03:34 +02:00
"SocketColor1, SocketColor2, SocketColor3, CurrencySubstitutionID, CurrencySubstitutionCount, ArtifactID, RequiredExpansion FROM item_sparse"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_ITEM_SPARSE , "SELECT ID, Name_lang, Name2_lang, Name3_lang, Name4_lang, Description_lang FROM item_sparse_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
// ItemSpec.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_ITEM_SPEC , "SELECT ID, SpecID, MinLevel, MaxLevel, ItemType, PrimaryStat, SecondaryStat FROM item_spec"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// ItemSpecOverride.db2
PrepareStatement ( HOTFIX_SEL_ITEM_SPEC_OVERRIDE , "SELECT ID, ItemID, SpecID FROM item_spec_override ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// ItemXBonusTree.db2
PrepareStatement ( HOTFIX_SEL_ITEM_X_BONUS_TREE , "SELECT ID, ItemID, BonusTreeID FROM item_x_bonus_tree ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-01-17 17:59:13 +01:00
2015-02-22 10:29:12 +01:00
// KeyChain.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_KEY_CHAIN , "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, "
2015-07-07 12:13:14 +02:00
"Key15, Key16, Key17, Key18, Key19, Key20, Key21, Key22, Key23, Key24, Key25, Key26, Key27, Key28, Key29, Key30, Key31, Key32 FROM key_chain"
2016-01-24 15:56:10 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-04-25 22:03:34 +02:00
// LfgDungeons.db2
PrepareStatement ( HOTFIX_SEL_LFG_DUNGEONS , "SELECT ID, Name, Flags, TextureFilename, Description, MaxLevel, TargetLevelMax, MapID, RandomID, "
"ScenarioID, LastBossJournalEncounterID, BonusReputationAmount, MentorItemLevel, MinLevel, TargetLevel, TargetLevelMin, DifficultyID, Type, "
"Faction, Expansion, OrderIndex, GroupID, CountTank, CountHealer, CountDamage, MinCountTank, MinCountHealer, MinCountDamage, SubType, "
"MentorCharLevel FROM lfg_dungeons ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_LFG_DUNGEONS , "SELECT ID, Name_lang, Description_lang FROM lfg_dungeons_locale WHERE locale = ?" , CONNECTION_SYNCH );
// Light.db2
PrepareStatement ( HOTFIX_SEL_LIGHT , "SELECT ID, PosX, PosY, PosZ, FalloffStart, FalloffEnd, MapID, LightParamsID1, LightParamsID2, LightParamsID3, "
"LightParamsID4, LightParamsID5, LightParamsID6, LightParamsID7, LightParamsID8 FROM light ORDER BY ID DESC" , CONNECTION_SYNCH );
// LiquidType.db2
PrepareStatement ( HOTFIX_SEL_LIQUID_TYPE , "SELECT ID, Name, SpellID, MaxDarkenDepth, FogDarkenIntensity, AmbDarkenIntensity, DirDarkenIntensity, "
"ParticleScale, Texture1, Texture2, Texture3, Texture4, Texture5, Texture6, Color1, Color2, Float1, Float2, Float3, `Float4`, Float5, Float6, "
"Float7, `Float8`, Float9, Float10, Float11, Float12, Float13, Float14, Float15, Float16, Float17, Float18, `Int1`, `Int2`, `Int3`, `Int4`, Flags, "
"SoundID, Type, LightID, ParticleMovement, ParticleTexSlots, MaterialID, DepthTexCount1, DepthTexCount2, DepthTexCount3, DepthTexCount4, "
"DepthTexCount5, DepthTexCount6 FROM liquid_type ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_LIQUID_TYPE , "SELECT ID, Name_lang FROM liquid_type_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// Lock.db2
PrepareStatement ( HOTFIX_SEL_LOCK , "SELECT ID, Index1, Index2, Index3, Index4, Index5, Index6, Index7, Index8, Skill1, Skill2, Skill3, Skill4, "
"Skill5, Skill6, Skill7, Skill8, Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Action1, Action2, Action3, Action4, Action5, "
"Action6, Action7, Action8 FROM `lock` ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// MailTemplate.db2
PrepareStatement ( HOTFIX_SEL_MAIL_TEMPLATE , "SELECT ID, Body FROM mail_template ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAIL_TEMPLATE , "SELECT ID, Body_lang FROM mail_template_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-02-06 17:53:37 +01:00
// Map.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_MAP , "SELECT ID, Directory, Flags, MapType, MinimapIconScale, CorpsePosX, CorpsePosY, MapName, MapDescription0, "
"MapDescription1, AreaTableID, LoadingScreenID, CorpseMapID, TimeOfDayOverride, ParentMapID, CosmeticParentMapID, InstanceType, unk5, "
"ExpansionID, MaxPlayers, TimeOffset FROM map ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-02-06 17:53:37 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAP , "SELECT ID, MapName_lang, MapDescription0_lang, MapDescription1_lang FROM map_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// MapDifficulty.db2
PrepareStatement ( HOTFIX_SEL_MAP_DIFFICULTY , "SELECT ID, Message, Context, MapID, DifficultyID, RaidDurationType, MaxPlayers, LockID, "
"ItemBonusTreeModID FROM map_difficulty ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MAP_DIFFICULTY , "SELECT ID, Message_lang FROM map_difficulty_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
// ModifierTree.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_MODIFIER_TREE , "SELECT ID, Asset1, Asset2, Parent, Type, Unk700, Operator, Amount FROM modifier_tree ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-09-07 18:03:33 +02:00
2015-02-22 10:29:12 +01:00
// Mount.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_MOUNT , "SELECT ID, SpellId, DisplayId, Name, Description, SourceDescription, MountTypeId, Flags, PlayerConditionId, "
"Source FROM mount ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_MOUNT , "SELECT ID, Name_lang, Description_lang, SourceDescription_lang FROM mount_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// MountCapability.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_MOUNT_CAPABILITY , "SELECT ID, RequiredAura, RequiredSpell, SpeedModSpell, RequiredRidingSkill, RequiredArea, "
"RequiredMap, Flags FROM mount_capability ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2015-09-07 18:03:33 +02:00
// MountTypeXCapability.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_MOUNT_TYPE_X_CAPABILITY , "SELECT ID, MountTypeID, MountCapabilityID, OrderIndex FROM mount_type_x_capability"
2016-05-01 21:46:58 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-01-24 15:56:10 +01:00
// Movie.db2
PrepareStatement ( HOTFIX_SEL_MOVIE , "SELECT ID, AudioFileDataID, SubtitleFileDataID, Volume, KeyID FROM movie ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// NameGen.db2
PrepareStatement ( HOTFIX_SEL_NAME_GEN , "SELECT ID, Name, Race, Sex FROM name_gen ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_NAME_GEN , "SELECT ID, Name_lang FROM name_gen_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-08-30 00:17:08 +02:00
// NamesProfanity.db2
PrepareStatement ( HOTFIX_SEL_NAMES_PROFANITY , "SELECT ID, Name, Language FROM names_profanity ORDER BY ID DESC" , CONNECTION_SYNCH );
// NamesReserved.db2
PrepareStatement ( HOTFIX_SEL_NAMES_RESERVED , "SELECT ID, Name FROM names_reserved ORDER BY ID DESC" , CONNECTION_SYNCH );
// NamesReservedLocale.db2
PrepareStatement ( HOTFIX_SEL_NAMES_RESERVED_LOCALE , "SELECT ID, Name, LocaleMask FROM names_reserved_locale ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// OverrideSpellData.db2
2015-07-07 12:13:14 +02:00
PrepareStatement ( HOTFIX_SEL_OVERRIDE_SPELL_DATA , "SELECT ID, SpellID1, SpellID2, SpellID3, SpellID4, SpellID5, SpellID6, SpellID7, SpellID8, "
2016-01-24 15:56:10 +01:00
"SpellID9, SpellID10, PlayerActionbarFileDataID, Flags FROM override_spell_data ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-02-06 17:53:37 +01:00
// Phase.db2
PrepareStatement ( HOTFIX_SEL_PHASE , "SELECT ID, Flags FROM phase ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// PhaseXPhaseGroup.db2
2016-05-01 21:46:58 +02:00
PrepareStatement ( HOTFIX_SEL_PHASE_X_PHASE_GROUP , "SELECT ID, PhaseID, PhaseGroupID FROM phase_x_phase_group ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-03 00:40:18 +01:00
// PlayerCondition.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_PLAYER_CONDITION , "SELECT ID, RaceMask, SkillLogic, ReputationLogic, PrevQuestLogic, CurrQuestLogic, "
"CurrentCompletedQuestLogic, SpellLogic, SpellID1, SpellID2, SpellID3, SpellID4, ItemLogic, ItemID1, ItemID2, ItemID3, ItemID4, Time1, Time2, "
"AuraSpellLogic, AuraSpellID1, AuraSpellID2, AuraSpellID3, AuraSpellID4, AchievementLogic, AreaLogic, QuestKillLogic, QuestKillMonster1, "
"QuestKillMonster2, QuestKillMonster3, QuestKillMonster4, QuestKillMonster5, QuestKillMonster6, FailureDescription, Unknown700_1, "
"Unknown700_2, MinLevel, MaxLevel, ClassMask, SkillID1, SkillID2, SkillID3, SkillID4, MinSkill1, MinSkill2, MinSkill3, MinSkill4, MaxSkill1, "
"MaxSkill2, MaxSkill3, MaxSkill4, MinFactionID1, MinFactionID2, MinFactionID3, MaxFactionID, PrevQuestID1, PrevQuestID2, PrevQuestID3, "
"PrevQuestID4, CurrQuestID1, CurrQuestID2, CurrQuestID3, CurrQuestID4, CurrentCompletedQuestID1, CurrentCompletedQuestID2, "
"CurrentCompletedQuestID3, CurrentCompletedQuestID4, Explored1, Explored2, WorldStateExpressionID, Achievement1, Achievement2, Achievement3, "
"Achievement4, AreaID1, AreaID2, AreaID3, AreaID4, QuestKillID, PhaseID, MinAvgItemLevel, MaxAvgItemLevel, MinAvgEquippedItemLevel, "
"MaxAvgEquippedItemLevel, ModifierTreeID, Flags, Gender, NativeGender, LanguageID, MinLanguage, MaxLanguage, MinReputation1, MinReputation2, "
"MinReputation3, MaxReputation, Unknown1, MinPVPRank, MaxPVPRank, PvpMedal, ItemCount1, ItemCount2, ItemCount3, ItemCount4, ItemFlags, "
"AuraCount1, AuraCount2, AuraCount3, AuraCount4, WeatherID, PartyStatus, LifetimeMaxPVPRank, LfgLogic, LfgStatus1, LfgStatus2, LfgStatus3, "
"LfgStatus4, LfgCompare1, LfgCompare2, LfgCompare3, LfgCompare4, LfgValue1, LfgValue2, LfgValue3, LfgValue4, CurrencyLogic, CurrencyID1, "
"CurrencyID2, CurrencyID3, CurrencyID4, CurrencyCount1, CurrencyCount2, CurrencyCount3, CurrencyCount4, MinExpansionLevel, MaxExpansionLevel, "
"MinExpansionTier, MaxExpansionTier, MinGuildLevel, MaxGuildLevel, PhaseUseFlags, PhaseGroupID, ChrSpecializationIndex, "
"ChrSpecializationRole, PowerType, PowerTypeComp, PowerTypeValue FROM player_condition ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-03 00:40:18 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_PLAYER_CONDITION , "SELECT ID, FailureDescription_lang FROM player_condition_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// PowerDisplay.db2
PrepareStatement ( HOTFIX_SEL_POWER_DISPLAY , "SELECT ID, GlobalStringBaseTag, PowerType, Red, Green, Blue FROM power_display ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// PvpDifficulty.db2
PrepareStatement ( HOTFIX_SEL_PVP_DIFFICULTY , "SELECT ID, MapID, BracketID, MinLevel, MaxLevel FROM pvp_difficulty ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// QuestFactionReward.db2
PrepareStatement ( HOTFIX_SEL_QUEST_FACTION_REWARD , "SELECT ID, QuestRewFactionValue1, QuestRewFactionValue2, QuestRewFactionValue3, "
"QuestRewFactionValue4, QuestRewFactionValue5, QuestRewFactionValue6, QuestRewFactionValue7, QuestRewFactionValue8, QuestRewFactionValue9, "
"QuestRewFactionValue10 FROM quest_faction_reward ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// QuestMoneyReward.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_MONEY_REWARD , "SELECT ID, Money1, Money2, Money3, Money4, Money5, Money6, Money7, Money8, Money9, Money10"
" FROM quest_money_reward ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-04-13 22:25:35 +02:00
// QuestPackageItem.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_QUEST_PACKAGE_ITEM , "SELECT ID, ItemID, QuestPackageID, ItemCount, FilterType FROM quest_package_item ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-04-13 22:25:35 +02:00
2015-07-07 12:13:14 +02:00
// QuestSort.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_QUEST_SORT , "SELECT ID, SortName, SortOrder FROM quest_sort ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_QUEST_SORT , "SELECT ID, SortName_lang FROM quest_sort_locale WHERE locale = ?" , CONNECTION_SYNCH );
// QuestV2.db2
PrepareStatement ( HOTFIX_SEL_QUEST_V2 , "SELECT ID, UniqueBitFlag FROM quest_v2 ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-05-01 21:46:58 +02:00
// QuestXp.db2
2015-07-07 12:13:14 +02:00
PrepareStatement ( HOTFIX_SEL_QUEST_XP , "SELECT ID, Exp1, Exp2, Exp3, Exp4, Exp5, Exp6, Exp7, Exp8, Exp9, Exp10 FROM quest_xp ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// RandPropPoints.db2
PrepareStatement ( HOTFIX_SEL_RAND_PROP_POINTS , "SELECT ID, EpicPropertiesPoints1, EpicPropertiesPoints2, EpicPropertiesPoints3, "
"EpicPropertiesPoints4, EpicPropertiesPoints5, RarePropertiesPoints1, RarePropertiesPoints2, RarePropertiesPoints3, RarePropertiesPoints4, "
"RarePropertiesPoints5, UncommonPropertiesPoints1, UncommonPropertiesPoints2, UncommonPropertiesPoints3, UncommonPropertiesPoints4, "
"UncommonPropertiesPoints5 FROM rand_prop_points ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// ScalingStatDistribution.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SCALING_STAT_DISTRIBUTION , "SELECT ID, ItemLevelCurveID, MinLevel, MaxLevel FROM scaling_stat_distribution"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// SkillLine.db2
PrepareStatement ( HOTFIX_SEL_SKILL_LINE , "SELECT ID, DisplayName, Description, AlternateVerb, SpellIconID, Flags, CategoryID, CanLink, "
"ParentSkillLineID FROM skill_line ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SKILL_LINE , "SELECT ID, DisplayName_lang, Description_lang, AlternateVerb_lang FROM skill_line_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
// SkillLineAbility.db2
PrepareStatement ( HOTFIX_SEL_SKILL_LINE_ABILITY , "SELECT ID, SpellID, RaceMask, ClassMask, SupercedesSpell, SkillLine, MinSkillLineRank, "
"TrivialSkillLineRankHigh, TrivialSkillLineRankLow, UniqueBit, TradeSkillCategoryID, AquireMethod, NumSkillUps FROM skill_line_ability"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SkillRaceClassInfo.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_SKILL_RACE_CLASS_INFO , "SELECT ID, RaceMask, ClassMask, SkillID, Flags, SkillTierID, Availability, MinLevel"
2016-01-24 15:56:10 +01:00
" FROM skill_race_class_info ORDER BY ID DESC" , CONNECTION_SYNCH );
// SoundKit.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_SOUND_KIT , "SELECT ID, Name, VolumeFloat, MinDistance, DistanceCutoff, VolumeVariationPlus, VolumeVariationMinus, "
"PitchVariationPlus, PitchVariationMinus, PitchAdjust, Flags, SoundEntriesAdvancedID, BusOverwriteID, SoundType, EAXDef, DialogType, Unk700"
" FROM sound_kit ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SOUND_KIT , "SELECT ID, Name_lang FROM sound_kit_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-04 12:17:06 +01:00
2015-07-07 12:13:14 +02:00
// SpecializationSpells.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPECIALIZATION_SPELLS , "SELECT ID, SpellID, OverridesSpellID, Description, SpecID, OrderIndex"
2015-07-07 12:13:14 +02:00
" FROM specialization_spells ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPECIALIZATION_SPELLS , "SELECT ID, Description_lang FROM specialization_spells_locale WHERE locale = ?" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// Spell.db2
PrepareStatement ( HOTFIX_SEL_SPELL , "SELECT ID, Name, NameSubtext, Description, AuraDescription, MiscID, DescriptionVariablesID FROM spell"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL , "SELECT ID, Name_lang, NameSubtext_lang, Description_lang, AuraDescription_lang FROM spell_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellAuraOptions.db2
PrepareStatement ( HOTFIX_SEL_SPELL_AURA_OPTIONS , "SELECT ID, SpellID, ProcCharges, ProcTypeMask, ProcCategoryRecovery, CumulativeAura, "
"DifficultyID, ProcChance, SpellProcsPerMinuteID FROM spell_aura_options ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellAuraRestrictions.db2
PrepareStatement ( HOTFIX_SEL_SPELL_AURA_RESTRICTIONS , "SELECT ID, SpellID, CasterAuraSpell, TargetAuraSpell, ExcludeCasterAuraSpell, "
"ExcludeTargetAuraSpell, DifficultyID, CasterAuraState, TargetAuraState, ExcludeCasterAuraState, ExcludeTargetAuraState"
" FROM spell_aura_restrictions ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellCastTimes.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_CAST_TIMES , "SELECT ID, CastTime, MinCastTime, CastTimePerLevel FROM spell_cast_times ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellCastingRequirements.db2
PrepareStatement ( HOTFIX_SEL_SPELL_CASTING_REQUIREMENTS , "SELECT ID, SpellID, MinFactionID, RequiredAreasID, RequiresSpellFocus, "
"FacingCasterFlags, MinReputation, RequiredAuraVision FROM spell_casting_requirements ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellCategories.db2
PrepareStatement ( HOTFIX_SEL_SPELL_CATEGORIES , "SELECT ID, SpellID, Category, StartRecoveryCategory, ChargeCategory, DifficultyID, DefenseType, "
"DispelType, Mechanic, PreventionType FROM spell_categories ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellCategory.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_CATEGORY , "SELECT ID, Name, ChargeRecoveryTime, Unk703, Flags, UsesPerWeek, MaxCharges FROM spell_category"
2016-01-24 15:56:10 +01:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_CATEGORY , "SELECT ID, Name_lang FROM spell_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// SpellClassOptions.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_CLASS_OPTIONS , "SELECT ID, SpellID, SpellClassMask1, SpellClassMask2, SpellClassMask3, SpellClassMask4, "
"ModalNextSpell, SpellClassSet FROM spell_class_options ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellCooldowns.db2
PrepareStatement ( HOTFIX_SEL_SPELL_COOLDOWNS , "SELECT ID, SpellID, CategoryRecoveryTime, RecoveryTime, StartRecoveryTime, DifficultyID"
" FROM spell_cooldowns ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-07-07 12:13:14 +02:00
// SpellDuration.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_DURATION , "SELECT ID, Duration, MaxDuration, DurationPerLevel FROM spell_duration ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellEffect.db2
PrepareStatement ( HOTFIX_SEL_SPELL_EFFECT , "SELECT ID, EffectAmplitude, EffectAuraPeriod, EffectBasePoints, EffectBonusCoefficient, "
"EffectChainAmplitude, EffectDieSides, EffectItemType, EffectMiscValue, EffectMiscValueB, EffectPointsPerResource, EffectRealPointsPerLevel, "
"EffectSpellClassMask1, EffectSpellClassMask2, EffectSpellClassMask3, EffectSpellClassMask4, EffectTriggerSpell, EffectPosFacing, SpellID, "
"EffectAttributes, BonusCoefficientFromAP, EffectAura, EffectChainTargets, DifficultyID, Effect, EffectMechanic, EffectRadiusIndex, "
"EffectRadiusMaxIndex, ImplicitTarget1, ImplicitTarget2, EffectIndex FROM spell_effect ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellEffectScaling.db2
PrepareStatement ( HOTFIX_SEL_SPELL_EFFECT_SCALING , "SELECT ID, Coefficient, Variance, ResourceCoefficient, SpellEffectID FROM spell_effect_scaling"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellEquippedItems.db2
PrepareStatement ( HOTFIX_SEL_SPELL_EQUIPPED_ITEMS , "SELECT ID, SpellID, EquippedItemInventoryTypeMask, EquippedItemSubClassMask, "
"EquippedItemClass FROM spell_equipped_items ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellFocusObject.db2
PrepareStatement ( HOTFIX_SEL_SPELL_FOCUS_OBJECT , "SELECT ID, Name FROM spell_focus_object ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_FOCUS_OBJECT , "SELECT ID, Name_lang FROM spell_focus_object_locale WHERE locale = ?" , CONNECTION_SYNCH );
// SpellInterrupts.db2
PrepareStatement ( HOTFIX_SEL_SPELL_INTERRUPTS , "SELECT ID, SpellID, AuraInterruptFlags1, AuraInterruptFlags2, ChannelInterruptFlags1, "
"ChannelInterruptFlags2, InterruptFlags, DifficultyID FROM spell_interrupts ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-04-25 22:03:34 +02:00
// SpellItemEnchantment.db2
PrepareStatement ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT , "SELECT ID, EffectSpellID1, EffectSpellID2, EffectSpellID3, Name, EffectScalingPoints1, "
"EffectScalingPoints2, EffectScalingPoints3, PlayerConditionID, TransmogCost, TextureFileDataID, EffectPointsMin1, EffectPointsMin2, "
"EffectPointsMin3, ItemVisual, Flags, RequiredSkillID, RequiredSkillRank, ItemLevel, Charges, Effect1, Effect2, Effect3, ConditionID, "
"MinLevel, MaxLevel, ScalingClass, ScalingClassRestricted FROM spell_item_enchantment ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT , "SELECT ID, Name_lang FROM spell_item_enchantment_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellItemEnchantmentCondition.db2
PrepareStatement ( HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT_CONDITION , "SELECT ID, LTOperandType1, LTOperandType2, LTOperandType3, LTOperandType4, "
"LTOperandType5, LTOperand1, LTOperand2, LTOperand3, LTOperand4, LTOperand5, Operator1, Operator2, Operator3, Operator4, Operator5, "
"RTOperandType1, RTOperandType2, RTOperandType3, RTOperandType4, RTOperandType5, RTOperand1, RTOperand2, RTOperand3, RTOperand4, RTOperand5, "
"Logic1, Logic2, Logic3, Logic4, Logic5 FROM spell_item_enchantment_condition ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// SpellLearnSpell.db2
PrepareStatement ( HOTFIX_SEL_SPELL_LEARN_SPELL , "SELECT ID, LearnSpellID, SpellID, OverridesSpellID FROM spell_learn_spell ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// SpellLevels.db2
2016-01-31 19:25:51 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_LEVELS , "SELECT ID, SpellID, BaseLevel, MaxLevel, SpellLevel, DifficultyID, MaxUsableLevel FROM spell_levels"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
2015-02-22 10:29:12 +01:00
// SpellMisc.db2
PrepareStatement ( HOTFIX_SEL_SPELL_MISC , "SELECT ID, Attributes, AttributesEx, AttributesExB, AttributesExC, AttributesExD, AttributesExE, "
2016-01-24 15:56:10 +01:00
"AttributesExF, AttributesExG, AttributesExH, AttributesExI, AttributesExJ, AttributesExK, AttributesExL, AttributesExM, Speed, "
"MultistrikeSpeedMod, CastingTimeIndex, DurationIndex, RangeIndex, SpellIconID, ActiveIconID, SchoolMask FROM spell_misc ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-03-08 13:31:57 +01:00
// SpellPower.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_POWER , "SELECT ID, SpellID, ManaCost, ManaCostPercentage, ManaCostPercentagePerSecond, RequiredAura, "
"HealthCostPercentage, ManaCostPerSecond, ManaCostAdditional, PowerDisplayID, UnitPowerBarID, PowerIndex, PowerType, ManaCostPerLevel"
2015-07-07 12:13:14 +02:00
" FROM spell_power ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2015-03-08 13:31:57 +01:00
// SpellPowerDifficulty.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_POWER_DIFFICULTY , "SELECT SpellPowerID, DifficultyID, PowerIndex FROM spell_power_difficulty"
" ORDER BY SpellPowerID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
2016-05-02 18:52:15 +02:00
// SpellProcsPerMinute.db2
PrepareStatement ( HOTFIX_SEL_SPELL_PROCS_PER_MINUTE , "SELECT ID, BaseProcRate, Flags FROM spell_procs_per_minute ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellProcsPerMinuteMod.db2
PrepareStatement ( HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD , "SELECT ID, Type, Param, Coeff, SpellProcsPerMinuteID FROM spell_procs_per_minute_mod"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellRadius.db2
PrepareStatement ( HOTFIX_SEL_SPELL_RADIUS , "SELECT ID, Radius, RadiusPerLevel, RadiusMin, RadiusMax FROM spell_radius ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellRange.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_RANGE , "SELECT ID, MinRangeHostile, MinRangeFriend, MaxRangeHostile, MaxRangeFriend, DisplayName, "
"DisplayNameShort, Flags FROM spell_range ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_RANGE , "SELECT ID, DisplayName_lang, DisplayNameShort_lang FROM spell_range_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-03-08 13:31:57 +01:00
2015-02-22 10:29:12 +01:00
// SpellReagents.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_REAGENTS , "SELECT ID, SpellID, Reagent1, Reagent2, Reagent3, Reagent4, Reagent5, Reagent6, Reagent7, Reagent8, "
2016-05-01 21:46:58 +02:00
"ReagentCount1, ReagentCount2, ReagentCount3, ReagentCount4, ReagentCount5, ReagentCount6, ReagentCount7, ReagentCount8 FROM spell_reagents"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellScaling.db2
2016-04-25 22:03:34 +02:00
PrepareStatement ( HOTFIX_SEL_SPELL_SCALING , "SELECT ID, SpellID, ScalesFromItemLevel, ScalingClass, MinScalingLevel, MaxScalingLevel"
" FROM spell_scaling ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-24 15:56:10 +01:00
// SpellShapeshift.db2
PrepareStatement ( HOTFIX_SEL_SPELL_SHAPESHIFT , "SELECT ID, SpellID, ShapeshiftExclude1, ShapeshiftExclude2, ShapeshiftMask1, ShapeshiftMask2, "
"StanceBarOrder FROM spell_shapeshift ORDER BY ID DESC" , CONNECTION_SYNCH );
// SpellShapeshiftForm.db2
PrepareStatement ( HOTFIX_SEL_SPELL_SHAPESHIFT_FORM , "SELECT ID, Name, WeaponDamageVariance, Flags, AttackIconID, CombatRoundTime, "
"CreatureDisplayID1, CreatureDisplayID2, CreatureDisplayID3, CreatureDisplayID4, PresetSpellID1, PresetSpellID2, PresetSpellID3, "
"PresetSpellID4, PresetSpellID5, PresetSpellID6, PresetSpellID7, PresetSpellID8, CreatureType, MountTypeID, BonusActionBar"
" FROM spell_shapeshift_form ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_SPELL_SHAPESHIFT_FORM , "SELECT ID, Name_lang FROM spell_shapeshift_form_locale WHERE locale = ?" , CONNECTION_SYNCH );
// SpellTargetRestrictions.db2
PrepareStatement ( HOTFIX_SEL_SPELL_TARGET_RESTRICTIONS , "SELECT ID, SpellID, ConeAngle, Width, Targets, MaxTargetLevel, TargetCreatureType, "
"DifficultyID, MaxAffectedTargets FROM spell_target_restrictions ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// SpellTotems.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_TOTEMS , "SELECT ID, SpellID, Totem1, Totem2, RequiredTotemCategoryID1, RequiredTotemCategoryID2"
" FROM spell_totems ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// SpellXSpellVisual.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_SPELL_X_SPELL_VISUAL , "SELECT ID, SpellID, Unk620, SpellVisualID1, SpellVisualID2, PlayerConditionID, DifficultyID, "
2015-07-07 12:13:14 +02:00
"Flags FROM spell_x_spell_visual ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
2016-01-31 19:25:51 +01:00
// SummonProperties.db2
PrepareStatement ( HOTFIX_SEL_SUMMON_PROPERTIES , "SELECT ID, Category, Faction, Type, Slot, Flags FROM summon_properties ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// Talent.db2
PrepareStatement ( HOTFIX_SEL_TALENT , "SELECT ID, SpellID, OverridesSpellID, Description, SpecID, TierID, ColumnIndex, Flags, CategoryMask1, "
"CategoryMask2, ClassID FROM talent ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TALENT , "SELECT ID, Description_lang FROM talent_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
// TaxiNodes.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_TAXI_NODES , "SELECT ID, PosX, PosY, PosZ, Name, MountCreatureID1, MountCreatureID2, MapOffsetX, MapOffsetY, MapID, "
"ConditionID, LearnableIndex, Flags FROM taxi_nodes ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-02-22 10:29:12 +01:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TAXI_NODES , "SELECT ID, Name_lang FROM taxi_nodes_locale WHERE locale = ?" , CONNECTION_SYNCH );
// TaxiPath.db2
PrepareStatement ( HOTFIX_SEL_TAXI_PATH , "SELECT ID, `From`, `To`, Cost FROM taxi_path ORDER BY ID DESC" , CONNECTION_SYNCH );
// TaxiPathNode.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_TAXI_PATH_NODE , "SELECT ID, LocX, LocY, LocZ, Delay, PathID, MapID, ArrivalEventID, DepartureEventID, NodeIndex, "
"Flags FROM taxi_path_node ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// TotemCategory.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_TOTEM_CATEGORY , "SELECT ID, Name, CategoryMask, CategoryType FROM totem_category ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TOTEM_CATEGORY , "SELECT ID, Name_lang FROM totem_category_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-08-26 11:12:35 +02:00
// Toy.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_TOY , "SELECT ID, ItemID, Description, Flags, CategoryFilter FROM toy ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-08-26 11:12:35 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_TOY , "SELECT ID, Description_lang FROM toy_locale WHERE locale = ?" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// TransportAnimation.db2
PrepareStatement ( HOTFIX_SEL_TRANSPORT_ANIMATION , "SELECT ID, TransportID, TimeIndex, PosX, PosY, PosZ, SequenceID FROM transport_animation"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
// TransportRotation.db2
PrepareStatement ( HOTFIX_SEL_TRANSPORT_ROTATION , "SELECT ID, TransportID, TimeIndex, X, Y, Z, W FROM transport_rotation ORDER BY ID DESC" , CONNECTION_SYNCH );
// UnitPowerBar.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_UNIT_POWER_BAR , "SELECT ID, MaxPower, RegenerationPeace, RegenerationCombat, FileDataID1, FileDataID2, FileDataID3, "
"FileDataID4, FileDataID5, FileDataID6, Color1, Color2, Color3, Color4, Color5, Color6, Name, Cost, OutOfError, ToolTip, StartInset, "
"EndInset, StartPower, Flags, MinPower, CenterPower, BarType FROM unit_power_bar ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
PREPARE_LOCALE_STMT ( HOTFIX_SEL_UNIT_POWER_BAR , "SELECT ID, Name_lang, Cost_lang, OutOfError_lang, ToolTip_lang FROM unit_power_bar_locale"
" WHERE locale = ?" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// Vehicle.db2
PrepareStatement ( HOTFIX_SEL_VEHICLE , "SELECT ID, Flags, TurnSpeed, PitchSpeed, PitchMin, PitchMax, MouseLookOffsetPitch, CameraFadeDistScalarMin, "
"CameraFadeDistScalarMax, CameraPitchOffset, FacingLimitRight, FacingLimitLeft, MsslTrgtTurnLingering, MsslTrgtPitchLingering, "
"MsslTrgtMouseLingering, MsslTrgtEndOpacity, MsslTrgtArcSpeed, MsslTrgtArcRepeat, MsslTrgtArcWidth, MsslTrgtImpactRadius1, "
"MsslTrgtImpactRadius2, MsslTrgtArcTexture, MsslTrgtImpactTexture, MsslTrgtImpactModel1, MsslTrgtImpactModel2, CameraYawOffset, "
"MsslTrgtImpactTexRadius, SeatID1, SeatID2, SeatID3, SeatID4, SeatID5, SeatID6, SeatID7, SeatID8, VehicleUIIndicatorID, PowerDisplayID1, "
"PowerDisplayID2, PowerDisplayID3, FlagsB, UILocomotionType FROM vehicle ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-31 19:25:51 +01:00
// VehicleSeat.db2
PrepareStatement ( HOTFIX_SEL_VEHICLE_SEAT , "SELECT ID, Flags1, Flags2, Flags3, AttachmentOffsetX, AttachmentOffsetY, AttachmentOffsetZ, "
"EnterPreDelay, EnterSpeed, EnterGravity, EnterMinDuration, EnterMaxDuration, EnterMinArcHeight, EnterMaxArcHeight, ExitPreDelay, ExitSpeed, "
"ExitGravity, ExitMinDuration, ExitMaxDuration, ExitMinArcHeight, ExitMaxArcHeight, PassengerYaw, PassengerPitch, PassengerRoll, "
2016-04-25 22:03:34 +02:00
"VehicleEnterAnimDelay, VehicleExitAnimDelay, EnterUISoundID, ExitUISoundID, CameraEnteringDelay, CameraEnteringDuration, CameraExitingDelay, "
"CameraExitingDuration, CameraOffsetX, CameraOffsetY, CameraOffsetZ, CameraPosChaseRate, CameraFacingChaseRate, CameraEnteringZoom, "
"CameraSeatZoomMin, CameraSeatZoomMax, UISkinFileDataID, EnterAnimStart, EnterAnimLoop, RideAnimStart, RideAnimLoop, RideUpperAnimStart, "
"RideUpperAnimLoop, ExitAnimStart, ExitAnimLoop, ExitAnimEnd, VehicleEnterAnim, VehicleExitAnim, VehicleRideAnimLoop, EnterAnimKitID, "
"RideAnimKitID, ExitAnimKitID, VehicleEnterAnimKitID, VehicleRideAnimKitID, VehicleExitAnimKitID, CameraModeID, AttachmentID, "
2016-01-31 19:25:51 +01:00
"PassengerAttachmentID, VehicleEnterAnimBone, VehicleExitAnimBone, VehicleRideAnimLoopBone, VehicleAbilityDisplay FROM vehicle_seat"
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// WmoAreaTable.db2
PrepareStatement ( HOTFIX_SEL_WMO_AREA_TABLE , "SELECT ID, WMOGroupID, AreaName, WMOID, AmbienceID, ZoneMusic, IntroSound, AreaTableID, "
"UWIntroSound, UWAmbience, NameSet, SoundProviderPref, SoundProviderPrefUnderwater, Flags, UWZoneMusic FROM wmo_area_table ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_WMO_AREA_TABLE , "SELECT ID, AreaName_lang FROM wmo_area_table_locale WHERE locale = ?" , CONNECTION_SYNCH );
// WorldMapArea.db2
PrepareStatement ( HOTFIX_SEL_WORLD_MAP_AREA , "SELECT ID, AreaName, LocLeft, LocRight, LocTop, LocBottom, MapID, AreaID, DisplayMapID, "
"DefaultDungeonFloor, ParentWorldMapID, Flags, PlayerConditionID, LevelRangeMin, LevelRangeMax FROM world_map_area ORDER BY ID DESC" , CONNECTION_SYNCH );
2015-07-07 12:13:14 +02:00
// WorldMapOverlay.db2
2016-01-24 15:56:10 +01:00
PrepareStatement ( HOTFIX_SEL_WORLD_MAP_OVERLAY , "SELECT ID, TextureName, MapAreaID, AreaID1, AreaID2, AreaID3, AreaID4, TextureWidth, "
2016-04-25 22:03:34 +02:00
"TextureHeight, OffsetX, OffsetY, HitRectTop, HitRectLeft, HitRectBottom, HitRectRight, PlayerConditionID, Flags FROM world_map_overlay"
2015-07-07 12:13:14 +02:00
" ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-01-24 15:56:10 +01:00
// WorldMapTransforms.db2
PrepareStatement ( HOTFIX_SEL_WORLD_MAP_TRANSFORMS , "SELECT ID, RegionMinX, RegionMinY, RegionMinZ, RegionMaxX, RegionMaxY, RegionMaxZ, "
"RegionOffsetX, RegionOffsetY, RegionScale, MapID, NewMapID, NewDungeonMapID, NewAreaID, Flags FROM world_map_transforms ORDER BY ID DESC" , CONNECTION_SYNCH );
2016-04-25 22:03:34 +02:00
// WorldSafeLocs.db2
PrepareStatement ( HOTFIX_SEL_WORLD_SAFE_LOCS , "SELECT ID, LocX, LocY, LocZ, Facing, AreaName, MapID FROM world_safe_locs ORDER BY ID DESC" , CONNECTION_SYNCH );
PREPARE_LOCALE_STMT ( HOTFIX_SEL_WORLD_SAFE_LOCS , "SELECT ID, AreaName_lang FROM world_safe_locs_locale WHERE locale = ?" , CONNECTION_SYNCH );
2014-11-11 13:14:36 +00:00
}