mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10746] Use objetguid for other .list auras command part
This commit is contained in:
parent
87b8a1d1ce
commit
f034a9bd0a
6 changed files with 14 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
|
||||||
`version` varchar(120) default NULL,
|
`version` varchar(120) default NULL,
|
||||||
`creature_ai_version` varchar(120) default NULL,
|
`creature_ai_version` varchar(120) default NULL,
|
||||||
`cache_id` int(10) default '0',
|
`cache_id` int(10) default '0',
|
||||||
`required_10743_02_mangos_spell_bonus_data` bit(1) default NULL
|
`required_10746_01_mangos_mangos_string` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -3416,7 +3416,7 @@ INSERT INTO `mangos_string` VALUES
|
||||||
(465,'Teleport location deleted.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(465,'Teleport location deleted.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(466,'No taxinodes found!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(466,'No taxinodes found!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(467,'Target unit has %d auras:',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(467,'Target unit has %d auras:',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(468,'id: %d eff: %d type: %d duration: %d maxduration: %d name: %s%s%s caster: %s %u',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(468,'id: %d eff: %d type: %d duration: %d maxduration: %d name: %s%s%s caster: %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(469,'Target unit has %d auras of type %d:',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(469,'Target unit has %d auras of type %d:',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(470,'id: %d eff: %d name: %s%s%s caster: %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(470,'id: %d eff: %d name: %s%s%s caster: %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(471,'Quest %u not found.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(471,'Quest %u not found.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
|
|
|
||||||
6
sql/updates/10746_01_mangos_mangos_string.sql
Normal file
6
sql/updates/10746_01_mangos_mangos_string.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_10743_02_mangos_spell_bonus_data required_10746_01_mangos_mangos_string bit;
|
||||||
|
|
||||||
|
DELETE FROM mangos_string WHERE entry IN (468);
|
||||||
|
|
||||||
|
INSERT INTO mangos_string VALUES
|
||||||
|
(468,'id: %d eff: %d type: %d duration: %d maxduration: %d name: %s%s%s caster: %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||||
|
|
@ -121,6 +121,7 @@ pkgdata_DATA = \
|
||||||
10742_01_mangos_spell_bonus_data.sql \
|
10742_01_mangos_spell_bonus_data.sql \
|
||||||
10743_01_mangos_spell_chain.sql \
|
10743_01_mangos_spell_chain.sql \
|
||||||
10743_02_mangos_spell_bonus_data.sql \
|
10743_02_mangos_spell_bonus_data.sql \
|
||||||
|
10746_01_mangos_mangos_string.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -222,4 +223,5 @@ EXTRA_DIST = \
|
||||||
10742_01_mangos_spell_bonus_data.sql \
|
10742_01_mangos_spell_bonus_data.sql \
|
||||||
10743_01_mangos_spell_chain.sql \
|
10743_01_mangos_spell_chain.sql \
|
||||||
10743_02_mangos_spell_bonus_data.sql \
|
10743_02_mangos_spell_bonus_data.sql \
|
||||||
|
10746_01_mangos_mangos_string.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -4594,7 +4594,7 @@ bool ChatHandler::HandleListAurasCommand (char* /*args*/)
|
||||||
aur->GetModifier()->m_auraname, aur->GetAuraDuration(), aur->GetAuraMaxDuration(),
|
aur->GetModifier()->m_auraname, aur->GetAuraDuration(), aur->GetAuraMaxDuration(),
|
||||||
ss_name.str().c_str(),
|
ss_name.str().c_str(),
|
||||||
(holder->IsPassive() ? passiveStr : ""),(talent ? talentStr : ""),
|
(holder->IsPassive() ? passiveStr : ""),(talent ? talentStr : ""),
|
||||||
IS_PLAYER_GUID(holder->GetCasterGUID()) ? "player" : "creature",GUID_LOPART(holder->GetCasterGUID()));
|
holder->GetCasterGuid().GetString().c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -4602,7 +4602,7 @@ bool ChatHandler::HandleListAurasCommand (char* /*args*/)
|
||||||
aur->GetModifier()->m_auraname, aur->GetAuraDuration(), aur->GetAuraMaxDuration(),
|
aur->GetModifier()->m_auraname, aur->GetAuraDuration(), aur->GetAuraMaxDuration(),
|
||||||
name,
|
name,
|
||||||
(holder->IsPassive() ? passiveStr : ""),(talent ? talentStr : ""),
|
(holder->IsPassive() ? passiveStr : ""),(talent ? talentStr : ""),
|
||||||
IS_PLAYER_GUID(holder->GetCasterGUID()) ? "player" : "creature",GUID_LOPART(holder->GetCasterGUID()));
|
holder->GetCasterGuid().GetString().c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10745"
|
#define REVISION_NR "10746"
|
||||||
#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_10664_01_characters_arena_team_stats"
|
#define REVISION_DB_CHARACTERS "required_10664_01_characters_arena_team_stats"
|
||||||
#define REVISION_DB_MANGOS "required_10743_02_mangos_spell_bonus_data"
|
#define REVISION_DB_MANGOS "required_10746_01_mangos_mangos_string"
|
||||||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
||||||
#endif // __REVISION_SQL_H__
|
#endif // __REVISION_SQL_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue