mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11955] Remove .hover command
You can use .cast 11010 and .unaura 11010 instead Thanks to stfx for improving patch and porting it for us :) Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
b6f6c670ac
commit
af6b589041
11 changed files with 11 additions and 35 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_11953_01_mangos_playercreateinfo_spell` bit(1) default NULL
|
`required_11955_02_mangos_command` 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';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -620,7 +620,6 @@ INSERT INTO `command` VALUES
|
||||||
('honor add',2,'Syntax: .honor add $amount\r\n\r\nAdd a certain amount of honor (gained today) to the selected player.'),
|
('honor add',2,'Syntax: .honor add $amount\r\n\r\nAdd a certain amount of honor (gained today) to the selected player.'),
|
||||||
('honor addkill',2,'Syntax: .honor addkikll\r\n\r\nAdd the targeted unit as one of your pvp kills today (you only get honor if it\'s a racial leader or a player)'),
|
('honor addkill',2,'Syntax: .honor addkikll\r\n\r\nAdd the targeted unit as one of your pvp kills today (you only get honor if it\'s a racial leader or a player)'),
|
||||||
('honor update',2,'Syntax: .honor update\r\n\r\nForce the yesterday\'s honor fields to be updated with today\'s data, which will get reset for the selected player.'),
|
('honor update',2,'Syntax: .honor update\r\n\r\nForce the yesterday\'s honor fields to be updated with today\'s data, which will get reset for the selected player.'),
|
||||||
('hover',3,'Syntax: .hover #flag\r\n\r\nEnable or disable hover mode for your character.\r\n\r\nUse a #flag of value 1 to enable, use a #flag value of 0 to disable hover.'),
|
|
||||||
('instance unbind',3,'Syntax: .instance unbind all\r\n All of the selected player\'s binds will be cleared.\r\n.instance unbind #mapid\r\n Only the specified #mapid instance will be cleared.'),
|
('instance unbind',3,'Syntax: .instance unbind all\r\n All of the selected player\'s binds will be cleared.\r\n.instance unbind #mapid\r\n Only the specified #mapid instance will be cleared.'),
|
||||||
('instance listbinds',3,'Syntax: .instance listbinds\r\n Lists the binds of the selected player.'),
|
('instance listbinds',3,'Syntax: .instance listbinds\r\n Lists the binds of the selected player.'),
|
||||||
('instance stats',3,'Syntax: .instance stats\r\n Shows statistics about instances.'),
|
('instance stats',3,'Syntax: .instance stats\r\n Shows statistics about instances.'),
|
||||||
|
|
@ -3655,8 +3654,6 @@ INSERT INTO `mangos_string` VALUES
|
||||||
(552,'%s has no more explored zones.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(552,'%s has no more explored zones.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(553,'%s has explored all zones for you.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(553,'%s has explored all zones for you.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(554,'%s has hidden all zones from you.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(554,'%s has hidden all zones from you.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(555,'Hover enabled',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
|
||||||
(556,'Hover disabled',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
|
||||||
(557,'%s level up you to (%i)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(557,'%s level up you to (%i)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(558,'%s level down you to (%i)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(558,'%s level down you to (%i)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
(559,'%s reset your level progress.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
(559,'%s reset your level progress.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||||
|
|
|
||||||
3
sql/updates/11955_01_mangos_mangos_string.sql
Normal file
3
sql/updates/11955_01_mangos_mangos_string.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_11953_01_mangos_playercreateinfo_spell required_11955_01_mangos_mangos_string bit;
|
||||||
|
|
||||||
|
DELETE FROM mangos_string WHERE entry IN (555,556);
|
||||||
3
sql/updates/11955_02_mangos_command.sql
Normal file
3
sql/updates/11955_02_mangos_command.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
ALTER TABLE db_version CHANGE COLUMN required_11955_01_mangos_mangos_string required_11955_02_mangos_command bit;
|
||||||
|
|
||||||
|
DELETE FROM command WHERE name LIKE 'hover';
|
||||||
|
|
@ -794,7 +794,6 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||||
{ "linkgrave", SEC_ADMINISTRATOR, false, &ChatHandler::HandleLinkGraveCommand, "", NULL },
|
{ "linkgrave", SEC_ADMINISTRATOR, false, &ChatHandler::HandleLinkGraveCommand, "", NULL },
|
||||||
{ "neargrave", SEC_ADMINISTRATOR, false, &ChatHandler::HandleNearGraveCommand, "", NULL },
|
{ "neargrave", SEC_ADMINISTRATOR, false, &ChatHandler::HandleNearGraveCommand, "", NULL },
|
||||||
{ "explorecheat", SEC_ADMINISTRATOR, false, &ChatHandler::HandleExploreCheatCommand, "", NULL },
|
{ "explorecheat", SEC_ADMINISTRATOR, false, &ChatHandler::HandleExploreCheatCommand, "", NULL },
|
||||||
{ "hover", SEC_ADMINISTRATOR, false, &ChatHandler::HandleHoverCommand, "", NULL },
|
|
||||||
{ "levelup", SEC_ADMINISTRATOR, false, &ChatHandler::HandleLevelUpCommand, "", NULL },
|
{ "levelup", SEC_ADMINISTRATOR, false, &ChatHandler::HandleLevelUpCommand, "", NULL },
|
||||||
{ "showarea", SEC_ADMINISTRATOR, false, &ChatHandler::HandleShowAreaCommand, "", NULL },
|
{ "showarea", SEC_ADMINISTRATOR, false, &ChatHandler::HandleShowAreaCommand, "", NULL },
|
||||||
{ "hidearea", SEC_ADMINISTRATOR, false, &ChatHandler::HandleHideAreaCommand, "", NULL },
|
{ "hidearea", SEC_ADMINISTRATOR, false, &ChatHandler::HandleHideAreaCommand, "", NULL },
|
||||||
|
|
|
||||||
|
|
@ -572,7 +572,6 @@ class MANGOS_DLL_SPEC ChatHandler
|
||||||
bool HandleLinkGraveCommand(char* args);
|
bool HandleLinkGraveCommand(char* args);
|
||||||
bool HandleNearGraveCommand(char* args);
|
bool HandleNearGraveCommand(char* args);
|
||||||
bool HandleExploreCheatCommand(char* args);
|
bool HandleExploreCheatCommand(char* args);
|
||||||
bool HandleHoverCommand(char* args);
|
|
||||||
bool HandleLevelUpCommand(char* args);
|
bool HandleLevelUpCommand(char* args);
|
||||||
bool HandleShowAreaCommand(char* args);
|
bool HandleShowAreaCommand(char* args);
|
||||||
bool HandleHideAreaCommand(char* args);
|
bool HandleHideAreaCommand(char* args);
|
||||||
|
|
|
||||||
|
|
@ -572,8 +572,8 @@ enum MangosStrings
|
||||||
LANG_YOURS_EXPLORE_SET_ALL = 553,
|
LANG_YOURS_EXPLORE_SET_ALL = 553,
|
||||||
LANG_YOURS_EXPLORE_SET_NOTHING = 554,
|
LANG_YOURS_EXPLORE_SET_NOTHING = 554,
|
||||||
|
|
||||||
LANG_HOVER_ENABLED = 555,
|
// 555, // not used
|
||||||
LANG_HOVER_DISABLED = 556,
|
// 556, // not used
|
||||||
LANG_YOURS_LEVEL_UP = 557,
|
LANG_YOURS_LEVEL_UP = 557,
|
||||||
LANG_YOURS_LEVEL_DOWN = 558,
|
LANG_YOURS_LEVEL_DOWN = 558,
|
||||||
LANG_YOURS_LEVEL_PROGRESS_RESET = 559,
|
LANG_YOURS_LEVEL_PROGRESS_RESET = 559,
|
||||||
|
|
|
||||||
|
|
@ -4372,22 +4372,6 @@ bool ChatHandler::HandleExploreCheatCommand(char* args)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChatHandler::HandleHoverCommand(char* args)
|
|
||||||
{
|
|
||||||
uint32 flag;
|
|
||||||
if (!ExtractOptUInt32(&args, flag, 1))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
m_session->GetPlayer()->SetHover(flag);
|
|
||||||
|
|
||||||
if (flag)
|
|
||||||
SendSysMessage(LANG_HOVER_ENABLED);
|
|
||||||
else
|
|
||||||
SendSysMessage(LANG_HOVER_DISABLED);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ChatHandler::HandleCharacterLevel(Player* player, ObjectGuid player_guid, uint32 oldlevel, uint32 newlevel)
|
void ChatHandler::HandleCharacterLevel(Player* player, ObjectGuid player_guid, uint32 oldlevel, uint32 newlevel)
|
||||||
{
|
{
|
||||||
if(player)
|
if(player)
|
||||||
|
|
|
||||||
|
|
@ -8419,14 +8419,6 @@ void Unit::SetSpeedRate(UnitMoveType mtype, float rate, bool forced)
|
||||||
CallForAllControlledUnits(SetSpeedRateHelper(mtype,forced), CONTROLLED_PET|CONTROLLED_GUARDIANS|CONTROLLED_CHARM|CONTROLLED_MINIPET);
|
CallForAllControlledUnits(SetSpeedRateHelper(mtype,forced), CONTROLLED_PET|CONTROLLED_GUARDIANS|CONTROLLED_CHARM|CONTROLLED_MINIPET);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::SetHover(bool on)
|
|
||||||
{
|
|
||||||
if(on)
|
|
||||||
CastSpell(this, 11010, true);
|
|
||||||
else
|
|
||||||
RemoveAurasDueToSpell(11010);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Unit::SetDeathState(DeathState s)
|
void Unit::SetDeathState(DeathState s)
|
||||||
{
|
{
|
||||||
if (s != ALIVE && s!= JUST_ALIVED)
|
if (s != ALIVE && s!= JUST_ALIVED)
|
||||||
|
|
|
||||||
|
|
@ -1845,7 +1845,6 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
||||||
float GetSpeedRate( UnitMoveType mtype ) const { return m_speed_rate[mtype]; }
|
float GetSpeedRate( UnitMoveType mtype ) const { return m_speed_rate[mtype]; }
|
||||||
void SetSpeedRate(UnitMoveType mtype, float rate, bool forced = false);
|
void SetSpeedRate(UnitMoveType mtype, float rate, bool forced = false);
|
||||||
|
|
||||||
void SetHover(bool on);
|
|
||||||
bool isHover() const { return HasAuraType(SPELL_AURA_HOVER); }
|
bool isHover() const { return HasAuraType(SPELL_AURA_HOVER); }
|
||||||
|
|
||||||
void KnockBackFrom(Unit* target, float horizontalSpeed, float verticalSpeed);
|
void KnockBackFrom(Unit* target, float horizontalSpeed, float verticalSpeed);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11954"
|
#define REVISION_NR "11955"
|
||||||
#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_11785_02_characters_instance"
|
#define REVISION_DB_CHARACTERS "required_11785_02_characters_instance"
|
||||||
#define REVISION_DB_MANGOS "required_11953_01_mangos_playercreateinfo_spell"
|
#define REVISION_DB_MANGOS "required_11955_02_mangos_command"
|
||||||
#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