Example #1
0
        public void KillPerson(GamePlayer killPlayer)
        {
            if (killPlayer.CurrentTeamIndex == CurrentIndex.CurrentTeamIndex || CurrentIndex.CurrentGame == null)
            {
                return;
            }

            persons[CurrentIndex.CurrentTeamIndex].TatolKill++;
            Players[CurrentIndex].TotalKill++;

            int state = ConsortiaMgr.KillPlayer(CurrentIndex, killPlayer, Players, CurrentIndex.CurrentGame.RoomType, CurrentIndex.CurrentGame.GameClass);

            //int state = ConsortiaMgr.FindConsortiaAlly(CurrentIndex.PlayerCharacter.ConsortiaID,killPlayer.PlayerCharacter.ConsortiaID);

            CurrentIndex.QuestInventory.CheckKillPlayer(MapIndex, (int)CurrentIndex.CurrentGame.GameMode,
                                                        CurrentIndex.CurrentGame.ScanTime, Players[CurrentIndex].IsCaptain, killPlayer.PlayerCharacter.Grade,
                                                        persons[CurrentIndex.CurrentTeamIndex].TeamPerson, TotalPerson - persons[CurrentIndex.CurrentTeamIndex].TeamPerson, state, (int)CurrentIndex.CurrentGame.RoomType);


            //GameServer.Instance.LoginServer.SendConsortiaOffer(killPlayer.PlayerCharacter.ConsortiaID
        }