private void HandlePetExchangeCmd(CommandParser.Command param) { ulong petID = 0uL; ulong.TryParse(param.GetParam(1), out petID); ulong petID2 = 0uL; ulong.TryParse(param.GetParam(2), out petID2); MC2S_PetExchange mC2S_PetExchange = new MC2S_PetExchange(); mC2S_PetExchange.PetID1 = petID; mC2S_PetExchange.PetID2 = petID2; Globals.Instance.CliSession.Send(425, mC2S_PetExchange); }
private void OnChangeClick(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); if (this.mCurPetData == null) { return; } if (this.mTargetPet == null) { GameUIManager.mInstance.ShowMessageTipByKey("Mirror3", 0f, 0f); return; } if (Tools.MoneyNotEnough(ECurrencyType.ECurrencyT_Diamond, this.diamond, 0)) { return; } if (Tools.MoneyNotEnough(ECurrencyType.ECurrencyT_MagicSoul, this.magicSoul, 0)) { return; } MC2S_PetExchange mC2S_PetExchange = new MC2S_PetExchange(); mC2S_PetExchange.PetID1 = this.mCurPetData.Data.ID; mC2S_PetExchange.PetID2 = this.mTargetPet.Data.ID; Globals.Instance.CliSession.Send(425, mC2S_PetExchange); }