public void OnJinjieBtnClick(GameObject go) { PetDataEx curPetDataEx = this.mBaseScene.CurPetDataEx; if (curPetDataEx != null) { if (!this.mIsForceJinjie && (ulong)Globals.Instance.Player.Data.Level < (ulong)((long)GameConst.GetInt32(12))) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); GameUIManager.mInstance.ShowMessageTip(Singleton<StringManager>.Instance.GetString("WBTip1", new object[] { GameConst.GetInt32(12) }), 0f, 0f); return; } GameUIManager.mInstance.uiState.SetOldFurtherData(curPetDataEx); MC2S_PetFurther mC2S_PetFurther = new MC2S_PetFurther(); mC2S_PetFurther.PetID = ((curPetDataEx.GetSocketSlot() != 0) ? curPetDataEx.Data.ID : 100uL); Globals.Instance.CliSession.Send(404, mC2S_PetFurther); } }
private void HandlePetFurtherCmd(CommandParser.Command param) { ulong petID = 0uL; ulong.TryParse(param.GetParam(1), out petID); MC2S_PetFurther mC2S_PetFurther = new MC2S_PetFurther(); mC2S_PetFurther.PetID = petID; Globals.Instance.CliSession.Send(404, mC2S_PetFurther); }