mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8702] removed startup-error for creature_loot_template id=0
for alterac valley we've defined Player-loot inside creature_loot_template with id=0 this hack is used, so that we won't need to create an extra table player_loot_template for just one case if later more player-loot will be needed, we should implement new table and remove this also added sql-fix for reputation of last commit it will just fix those which are hated by faction 729/730
This commit is contained in:
parent
b4ea5a6d19
commit
69abc9ece4
6 changed files with 12 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `character_db_version`;
|
DROP TABLE IF EXISTS `character_db_version`;
|
||||||
CREATE TABLE `character_db_version` (
|
CREATE TABLE `character_db_version` (
|
||||||
`required_8596_01_characters_bugreport` bit(1) default NULL
|
`required_8702_01_characters_character_reputation` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
|
||||||
3
sql/updates/8702_01_characters_character_reputation.sql
Normal file
3
sql/updates/8702_01_characters_character_reputation.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE character_db_version CHANGE COLUMN required_8596_01_characters_bugreport required_8702_01_characters_character_reputation bit;
|
||||||
|
|
||||||
|
UPDATE character_reputation SET standing = 0 WHERE faction IN (729, 730) AND standing < 0;
|
||||||
|
|
@ -138,6 +138,7 @@ pkgdata_DATA = \
|
||||||
8676_01_mangos_creature_template.sql \
|
8676_01_mangos_creature_template.sql \
|
||||||
8688_01_mangos_creature_template.sql \
|
8688_01_mangos_creature_template.sql \
|
||||||
8693_01_mangos_spell_proc_event.sql \
|
8693_01_mangos_spell_proc_event.sql \
|
||||||
|
8702_01_characters_character_reputation.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -256,4 +257,5 @@ EXTRA_DIST = \
|
||||||
8676_01_mangos_creature_template.sql \
|
8676_01_mangos_creature_template.sql \
|
||||||
8688_01_mangos_creature_template.sql \
|
8688_01_mangos_creature_template.sql \
|
||||||
8693_01_mangos_spell_proc_event.sql \
|
8693_01_mangos_spell_proc_event.sql \
|
||||||
|
8702_01_characters_character_reputation.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -1093,6 +1093,10 @@ void LoadLootTemplates_Creature()
|
||||||
for(LootIdSet::const_iterator itr = ids_setUsed.begin(); itr != ids_setUsed.end(); ++itr)
|
for(LootIdSet::const_iterator itr = ids_setUsed.begin(); itr != ids_setUsed.end(); ++itr)
|
||||||
ids_set.erase(*itr);
|
ids_set.erase(*itr);
|
||||||
|
|
||||||
|
// for alterac valley we've defined Player-loot inside creature_loot_template id=0
|
||||||
|
// this hack is used, so that we won't need to create an extra table player_loot_template for just one case
|
||||||
|
ids_set.erase(0);
|
||||||
|
|
||||||
// output error for any still listed (not referenced from appropriate table) ids
|
// output error for any still listed (not referenced from appropriate table) ids
|
||||||
LootTemplates_Creature.ReportUnusedIds(ids_set);
|
LootTemplates_Creature.ReportUnusedIds(ids_set);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8701"
|
#define REVISION_NR "8702"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __REVISION_SQL_H__
|
#ifndef __REVISION_SQL_H__
|
||||||
#define __REVISION_SQL_H__
|
#define __REVISION_SQL_H__
|
||||||
#define REVISION_DB_CHARACTERS "required_8596_01_characters_bugreport"
|
#define REVISION_DB_CHARACTERS "required_8702_01_characters_character_reputation"
|
||||||
#define REVISION_DB_MANGOS "required_8693_01_mangos_spell_proc_event"
|
#define REVISION_DB_MANGOS "required_8693_01_mangos_spell_proc_event"
|
||||||
#define REVISION_DB_REALMD "required_8332_01_realmd_realmcharacters"
|
#define REVISION_DB_REALMD "required_8332_01_realmd_realmcharacters"
|
||||||
#endif // __REVISION_SQL_H__
|
#endif // __REVISION_SQL_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue