Beispiel #1
0
        void HandleQuestPushResult(QuestPushResult packet)
        {
            if (!GetPlayer().GetPlayerSharingQuest().IsEmpty())
            {
                if (_player.GetPlayerSharingQuest() == packet.SenderGUID)
                {
                    Player player = Global.ObjAccessor.FindPlayer(_player.GetPlayerSharingQuest());
                    if (player)
                    {
                        player.SendPushToPartyResponse(_player, packet.Result);
                    }
                }

                _player.ClearQuestSharingInfo();
            }
        }
Beispiel #2
0
        void HandleQuestPushResult(QuestPushResult packet)
        {
            if (!GetPlayer().GetDivider().IsEmpty())
            {
                if (_player.GetDivider() == packet.SenderGUID)
                {
                    Player player = Global.ObjAccessor.FindPlayer(_player.GetDivider());
                    if (player)
                    {
                        player.SendPushToPartyResponse(_player, packet.Result);
                    }
                }

                _player.SetDivider(ObjectGuid.Empty);
            }
        }