Exemplo n.º 1
0
 private void HandleQueryPillageCmd(CommandParser.Command param)
 {
     int itemID = 0;
     int.TryParse(param.GetParam(1), out itemID);
     MC2S_QueryPillageTarget mC2S_QueryPillageTarget = new MC2S_QueryPillageTarget();
     mC2S_QueryPillageTarget.ItemID = itemID;
     Globals.Instance.CliSession.Send(814, mC2S_QueryPillageTarget);
 }
Exemplo n.º 2
0
 public static void RequestQueryPillageTarget(ItemInfo itemInfo)
 {
     LocalPlayer player = Globals.Instance.Player;
     if ((ulong)player.Data.Level < (ulong)((long)GameConst.GetInt32(8)))
     {
         GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("Pillage10", new object[]
         {
             GameConst.GetInt32(8)
         }), 0f, 0f);
         return;
     }
     if (player.ItemSystem.GetItemByInfoID(itemInfo.ID) != null)
     {
         GameUIManager.mInstance.ShowMessageTipByKey("EPVPR_29", 0f, 0f);
         return;
     }
     MC2S_QueryPillageTarget mC2S_QueryPillageTarget = new MC2S_QueryPillageTarget();
     mC2S_QueryPillageTarget.ItemID = itemInfo.ID;
     Globals.Instance.CliSession.Send(814, mC2S_QueryPillageTarget);
     GameUIManager.mInstance.uiState.PillageItem = itemInfo;
 }