Пример #1
0
 private void HandlePillageStartCmd(CommandParser.Command param)
 {
     ulong num = 0uL;
     ulong.TryParse(param.GetParam(1), out num);
     Globals.Instance.Player.PvpSystem.SetPillageTargetID(num);
     MC2S_PvpPillageStart mC2S_PvpPillageStart = new MC2S_PvpPillageStart();
     mC2S_PvpPillageStart.TargetID = num;
     Globals.Instance.CliSession.Send(816, mC2S_PvpPillageStart);
 }
Пример #2
0
 private static void PillageStartChecked(ulong targetPlayerID, int itemInfoID, bool canFarm)
 {
     Globals.Instance.Player.PvpSystem.SetPillageTargetID(targetPlayerID);
     MC2S_PvpPillageStart mC2S_PvpPillageStart = new MC2S_PvpPillageStart();
     mC2S_PvpPillageStart.TargetID = targetPlayerID;
     mC2S_PvpPillageStart.ItemID = itemInfoID;
     mC2S_PvpPillageStart.Flag = !canFarm;
     Globals.Instance.CliSession.Send(816, mC2S_PvpPillageStart);
     GameUIState uiState = GameUIManager.mInstance.uiState;
     LocalPlayer player = Globals.Instance.Player;
     uiState.PlayerLevel = player.Data.Level;
     uiState.PlayerEnergy = player.Data.Energy;
     uiState.PlayerExp = player.Data.Exp;
     uiState.PlayerMoney = player.Data.Money;
     uiState.SetOldFurtherData(player.TeamSystem.GetPet(0));
 }