mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Updated to 3.1.2.9855 client build, fixed quests, some work on monster movement. Not tested.
This commit is contained in:
parent
21a38a42d8
commit
b980e9ac59
22 changed files with 114 additions and 92 deletions
|
|
@ -1598,7 +1598,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||
}
|
||||
|
||||
// reset movement flags at teleport, because player will continue move with these flags after teleport
|
||||
SetUnitMovementFlags(0);
|
||||
m_movementInfo.flags = 0;
|
||||
|
||||
if ((GetMapId() == mapid) && (!m_transport))
|
||||
{
|
||||
|
|
@ -11803,9 +11803,9 @@ void Player::PrepareQuestMenu( uint64 guid )
|
|||
uint32 quest_id = i->second;
|
||||
QuestStatus status = GetQuestStatus( quest_id );
|
||||
if ( status == QUEST_STATUS_COMPLETE && !GetQuestRewardStatus( quest_id ) )
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_REWARD_REP);
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_UNK2);
|
||||
else if ( status == QUEST_STATUS_INCOMPLETE )
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_INCOMPLETE);
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_UNK2);
|
||||
else if (status == QUEST_STATUS_AVAILABLE )
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_CHAT);
|
||||
}
|
||||
|
|
@ -11819,9 +11819,9 @@ void Player::PrepareQuestMenu( uint64 guid )
|
|||
QuestStatus status = GetQuestStatus( quest_id );
|
||||
|
||||
if (pQuest->IsAutoComplete() && CanTakeQuest(pQuest, false))
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_REWARD_REP);
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_UNK2);
|
||||
else if ( status == QUEST_STATUS_NONE && CanTakeQuest( pQuest, false ) )
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_AVAILABLE);
|
||||
qm.AddMenuItem(quest_id, DIALOG_STATUS_CHAT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -17791,7 +17791,7 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
|||
|
||||
// set fly flag if in fly form or taxi flight to prevent visually drop at ground in showup moment
|
||||
if(HasAuraType(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED) || isInFlight())
|
||||
AddUnitMovementFlag(MOVEMENTFLAG_FLYING2);
|
||||
m_movementInfo.flags |= MOVEMENTFLAG_FLYING2;
|
||||
|
||||
m_mover = this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue