Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }