public static bool RemoveGoodsDataBySite(GameClient client, GoodsData goodsData, int site) { if (site != 1) { if (site == 12000) { return(ZuoQiManager.RemoveStoreGoodsData(client, goodsData)); } if (site != 13000) { return(false); } } else { if (null == client.ClientData.MeditateGoodsDataList) { return(false); } lock (client.ClientData.MeditateGoodsDataList) { return(client.ClientData.MeditateGoodsDataList.Remove(goodsData)); } } return(ZuoQiManager.RemoveEquipGoodsData(client, goodsData)); }
private bool ProcessExecuteHuiJiHuTiCmd(GameClient client, int nID, byte[] bytes, string[] cmdParams) { int result = 0; long nowTicks = TimeUtil.NOW(); ExtData extData = ExtDataManager.GetClientExtData(client); if (nowTicks < extData.HuiJiCDTicks) { result = -2007; } else if (!this.IsGongNengOpened(client)) { result = -12; } else { long cdTime = 0L; int durationTime = 0; double[] props = null; lock (this.RuntimeData.Mutex) { EmblemStarInfo starInfo; if (!this.RuntimeData.EmblemStarDict.Value.TryGetValue(client.ClientData.HuiJiData.huiji, out starInfo)) { result = -20; goto IL_150; } EmblemUpInfo upInfo = starInfo.EmblemUpInfo; if (null == upInfo) { result = -20; goto IL_150; } cdTime = (long)upInfo.CDTime; durationTime = upInfo.DurationTime; props = upInfo.ExtPropTempValues; } extData.HuiJiCDTicks = nowTicks + (long)durationTime + cdTime; extData.HuiJiCdTime = cdTime; client.buffManager.SetStatusBuff(116, nowTicks, (long)durationTime, 0L); this.OnHuiJiStateChange(client, true, client.ClientData.HuiJiData.huiji, durationTime, props); Global.RemoveBufferData(client, 119); ZuoQiManager.getInstance().RoleDisMount(client, true); } IL_150: client.sendCmd <int>(nID, result, false); return(true); }
public static void RefreshGongNeng(GameClient client) { CaiJiLogic.InitRoleDailyCaiJiData(client, false, false); HuanYingSiYuanManager.getInstance().InitRoleDailyHYSYData(client); Global.InitRoleDailyTaskData(client, false); SingletonTemplate <GuardStatueManager> .Instance().OnTaskComplete(client); GameManager.MerlinMagicBookMgr.InitMerlinMagicBook(client); SingletonTemplate <SoulStoneManager> .Instance().CheckOpen(client); SingletonTemplate <ZhengBaManager> .Instance().CheckGongNengCanOpen(client); FundManager.initFundData(client); SingletonTemplate <CoupleArenaManager> .Instance().CheckGongNengOpen(client); ShenShiManager.getInstance().InitRoleShenShiData(client); JueXingManager.getInstance().InitRoleJueXingData(client); ZuoQiManager.getInstance().InitRoleZuoQiData(client); GameManager.ClientMgr.NotifyUpdateEquipProps(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client); GameManager.ClientMgr.NotifyOthersLifeChanged(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client, true, false, 7); }
public static int[] GetJingJiChangeSkillList(GameClient client, int eOccupation, EMagicSwordTowardType eMagicSwordType) { List <int> ret = new List <int>(); switch (eOccupation) { case 0: ret.AddRange(JingJiChangConstants.ZhanShiSkillList); break; case 1: ret.AddRange(JingJiChangConstants.FaShiSkillList); break; case 2: ret.AddRange(JingJiChangConstants.GongJianShouSkillList); break; case 3: switch (eMagicSwordType) { case EMagicSwordTowardType.EMST_Strength: ret.AddRange(JingJiChangConstants.StrMagicSwordSkillList); break; case EMagicSwordTowardType.EMST_Intelligence: ret.AddRange(JingJiChangConstants.IntMagicSwordSkillList); break; } break; case 5: ret.AddRange(JingJiChangConstants.SummonerSkillList); break; } ret.AddRange(ZuoQiManager.getInstance().GetZuoQiSkillList(client)); return(ret.ToArray()); }
public static void ReloadAllXmlFile() { WorldLevelManager.getInstance().InitConfig(); WorldLevelManager.getInstance().ResetWorldLevel(); ReloadXmlManager.ReloadXmlFile_config_platconfig(); ReloadXmlManager.ReloadXmlFile_config_gifts_activities(); ReloadXmlManager.ReloadXmlFile_config_gifts_biggift(); ReloadXmlManager.ReloadXmlFile_config_gifts_loginnumgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_huodongloginnumgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_newrolegift(); ReloadXmlManager.ReloadXmlFile_config_combat_effectiveness_gift(); ReloadXmlManager.ReloadXmlFile_config_gifts_uplevelgift(); ReloadXmlManager.ReloadXmlFile_config_gifts_onlietimegift(); ReloadXmlManager.ReloadXmlFile_config_mall(); ReloadXmlManager.ReloadXmlFile_config_monstergoodslist(); ReloadXmlManager.ReloadXmlFile_config_broadcastinfos(); ReloadXmlManager.ReloadXmlFile_config_specialtimes(); ReloadXmlManager.ReloadXmlFile_config_battle(); ReloadXmlManager.ReloadXmlFile_config_ArenaBattle(); ReloadXmlManager.ReloadXmlFile_config_popupwin(); ReloadXmlManager.ReloadXmlFile_config_npcscripts(); ReloadXmlManager.ReloadXmlFile_config_systemoperations(); ReloadXmlManager.ReloadXmlFile_config_systemparams(); ReloadXmlManager.ReloadXmlFile_config_goodsmergeitems(); ReloadXmlManager.ReloadXmlFile_config_qizhengegoods(); ReloadXmlManager.ReloadXmlFile_config_npcsalelist(); ReloadXmlManager.ReloadXmlFile_config_goods(); ReloadXmlManager.ReloadXmlFile_config_goodspack(); ReloadXmlManager.ReloadXmlFile_config_systemtasks(); ReloadXmlManager.ReloadXmlFile_config_equipupgrade(); ReloadXmlManager.ReloadXmlFile_config_dig(); ReloadXmlManager.ReloadXmlFile_config_battleexp(); ReloadXmlManager.ReloadXmlFile_config_bangzhanawards(); ReloadXmlManager.ReloadXmlFile_config_rebirth(); ReloadXmlManager.ReloadXmlFile_config_Award(); ReloadXmlManager.ReloadXmlFile_config_EquipBorn(); ReloadXmlManager.ReloadXmlFile_config_BornName(); ReloadXmlManager.ReloadXmlFile_config_gifts_FanLi(); ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiSong(); ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_LevelKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_EquipKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_HorseKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JingMaiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_VipDailyAwards(); ReloadXmlManager.ReloadXmlFile_config_ActivityTip(); ReloadXmlManager.ReloadXmlFile_config_LuckyAward(); ReloadXmlManager.ReloadXmlFile_config_Lucky(); ReloadXmlManager.ReloadXmlFile_config_ChengJiu(); ReloadXmlManager.ReloadXmlFile_config_ChengJiuBuff(); ReloadXmlManager.ReloadXmlFile_config_JingMai(); ReloadXmlManager.ReloadXmlFile_config_WuXue(); ReloadXmlManager.ReloadXmlFile_config_ZuanHuang(); ReloadXmlManager.ReloadXmlFile_config_Vip(); ReloadXmlManager.ReloadXmlFile_config_QiangGou(); ReloadXmlManager.ReloadXmlFile_config_HeFuQiangGou(); ReloadXmlManager.ReloadXmlFile_config_JieRiQiangGou(); ReloadXmlManager.ReloadXmlFile_config_SystemOpen(); ReloadXmlManager.ReloadXmlFile_config_DailyActive(); ReloadXmlManager.ReloadXmlFile_config_DailyActiveAward(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiType(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLiBao(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiDengLu(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiVip(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiSong(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLeiJi(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiBaoXiang(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiXiaoFeiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiKing(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiTotalConsume(); ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiMultAward(); ReloadXmlManager.ReloadXmlFile_config_bossAI(); ReloadXmlManager.ReloadXmlFile_config_TuoZhan(); ReloadXmlManager.ReloadXmlFile_config_MoJingAndQiFu(); ReloadXmlManager.ReloadXmlFile_config_TotalLoginDataInfo(); GameManager.SystemMagicsMgr.ReloadLoadFromXMlFile(); GameManager.SystemMagicQuickMgr.LoadMagicItemsDict(GameManager.SystemMagicsMgr); HuodongCachingMgr.ResetXinXiaoFeiKingActivity(); HuodongCachingMgr.ResetHeFuActivityConfig(); HuodongCachingMgr.ResetHeFuLoginActivity(); HuodongCachingMgr.ResetHeFuTotalLoginActivity(); HuodongCachingMgr.ResetHeFuRechargeActivity(); HuodongCachingMgr.ResetHeFuPKKingActivity(); HuodongCachingMgr.ResetHeFuAwardTimeActivity(); HuodongCachingMgr.ResetHeFuLuoLanActivity(); HuodongCachingMgr.ResetThemeActivityConfig(); HuodongCachingMgr.ResetThemeDaLiBaoActivity(); HuodongCachingMgr.ResetThemeDuiHuanActivity(); HuodongCachingMgr.ResetThemeZhiGouActivity(); HuodongCachingMgr.ResetJieriActivityConfig(); HuodongCachingMgr.ResetJieriDaLiBaoActivity(); HuodongCachingMgr.ResetJieRiDengLuActivity(); HuodongCachingMgr.ResetJieriCZSongActivity(); HuodongCachingMgr.ResetJieRiLeiJiCZActivity(); HuodongCachingMgr.ResetJieRiTotalConsumeActivity(); HuodongCachingMgr.ResetJieRiMultAwardActivity(); HuodongCachingMgr.ResetJieRiZiKaLiaBaoActivity(); HuodongCachingMgr.ResetJieRiXiaoFeiKingActivity(); HuodongCachingMgr.ResetJieRiCZKingActivity(); HuodongCachingMgr.ResetJieriGiveActivity(); HuodongCachingMgr.ResetJieRiGiveKingActivity(); HuodongCachingMgr.ResetJieriRecvKingActivity(); HuodongCachingMgr.ResetJieRiFanLiAwardActivity(); HuodongCachingMgr.ResetJieriLianXuChargeActivity(); HuodongCachingMgr.ResetJieriRecvActivity(); HuodongCachingMgr.ResetJieriPlatChargeKingActivity(); HuodongCachingMgr.ResetFirstChongZhiGift(); HuodongCachingMgr.ResetDanBiChongZhiActivity(); HuodongCachingMgr.ResetTotalChargeActivity(); HuodongCachingMgr.ResetTotalConsumeActivity(); HuodongCachingMgr.ResetSeriesLoginItem(); HuodongCachingMgr.ResetEveryDayOnLineAwardItem(); HuodongCachingMgr.ResetJieriIPointsExchangeActivity(); HuodongCachingMgr.ResetJieriFuLiActivity(); HuodongCachingMgr.ResetJieriVIPYouHuiAct(); HuodongCachingMgr.ResetJieRiMeiRiLeiJiActivity(); HuodongCachingMgr.ResetJieriPCKingActivityEveryDay(); OlympicsManager.getInstance().InitOlympics(); UserReturnManager.getInstance().initConfigInfo(); HuodongCachingMgr.ResetSpecPriorityActivity(); HuodongCachingMgr.ResetXinFanLiActivity(); HuodongCachingMgr.ResetWeedEndInputActivity(); HuodongCachingMgr.ResetSpecialActivity(); HuodongCachingMgr.ResetJieRiCZQGActivity(); HuodongCachingMgr.ResetOneDollarBuyActivity(); HuodongCachingMgr.ResetJieRiSuperInputFanLiActivity(); HuodongCachingMgr.ResetOneDollarChongZhiActivity(); HuodongCachingMgr.ResetEverydayActivity(); HuodongCachingMgr.ResetInputFanLiNewActivity(); HuodongCachingMgr.ResetRegressActiveOpen(); HuodongCachingMgr.ResetRegressActiveTotalRecharge(); HuodongCachingMgr.ResetRegressActiveStore(); HuodongCachingMgr.ResetRegressActiveDayBuy(); HuodongCachingMgr.ResetRegressActiveSignGift(); WebOldPlayerManager.ReloadXml(); TenManager.initConfig(); Global.CachingJieriXmlData = null; Global.CachingSpecActXmlData = null; Global.CachingEverydayActXmlData = null; Global.CachingThemeActXmlData = null; Global.CachingSpecPriorityActXmlData = null; TodayManager.InitConfig(); BuChangManager.ResetBuChangItemDict(); HuodongCachingMgr.ResetMeiRiChongZhiActivity(); HuodongCachingMgr.ResetChongJiHaoLiActivity(); HuodongCachingMgr.ResetShenZhuangJiQiHuiKuiHaoLiActivity(); HuodongCachingMgr.ResetYueDuZhuanPanActivity(); GongGaoDataManager.LoadGongGaoData(); SaleManager.InitConfig(); GameManager.systemImpetrateByLevelMgr.ReloadLoadFromXMlFile(); QianKunManager.LoadImpetrateItemsInfo(); QianKunManager.LoadImpetrateItemsInfoFree(); QianKunManager.LoadImpetrateItemsInfoHuodong(); QianKunManager.LoadImpetrateItemsInfoFreeHuoDong(); QianKunManager.LoadImpetrateItemsInfoTeQuan(); QianKunManager.LoadImpetrateItemsInfoFreeTeQuan(); GameManager.systemXingYunChouJiangMgr.ReloadLoadFromXMlFile(); GameManager.systemYueDuZhuanPanChouJiangMgr.ReloadLoadFromXMlFile(); Global.LoadSpecialMachineConfig(); ElementhrtsManager.LoadRefineType(); ElementhrtsManager.LoadElementHrtsBase(); ElementhrtsManager.LoadElementHrtsLevelInfo(); ElementhrtsManager.LoadSpecialElementHrtsExp(); GameManager.QingGongYanMgr.LoadQingGongYanConfig(); CopyTargetManager.LoadConfig(); CallPetManager.LoadCallPetType(); CallPetManager.LoadCallPetConfig(); CallPetManager.LoadCallPetSystem(); ShenShiManager.getInstance().ReloadConfig(); Global.LoadGuWuMaps(); Global.LoadAutoReviveMaps(); GameManager.MonsterZoneMgr.LoadAllMonsterXml(); GameManager.VersionSystemOpenMgr.LoadVersionSystemOpenData(); UserMoneyMgr.getInstance().InitConfig(); RobotTaskValidator.getInstance().LoadRobotTaskData(); GameManager.MerlinMagicBookMgr.LoadMerlinConfigData(); GameManager.FluorescentGemMgr.LoadFluorescentGemConfigData(); SingletonTemplate <GetInterestingDataMgr> .Instance().LoadConfig(); SingletonTemplate <CreateRoleLimitManager> .Instance().LoadConfig(); TianTiManager.getInstance().InitConfig(true); TianTi5v5Manager.getInstance().InitConfig(true); YongZheZhanChangManager.getInstance().InitConfig(); KingOfBattleManager.getInstance().InitConfig(); BangHuiMatchManager.getInstance().InitConfig(); ZorkBattleManager.getInstance().InitConfig(); KarenBattleManager.getInstance().InitConfig(); KarenBattleManager_MapWest.getInstance().InitConfig(); KarenBattleManager_MapEast.getInstance().InitConfig(); KuaFuBossManager.getInstance().InitConfig(); KuaFuMapManager.getInstance().InitConfig(); FashionManager.getInstance().InitConfig(); OrnamentManager.getInstance().InitConfig(); ShenJiFuWenManager.getInstance().InitConfig(); YaoSaiJianYuManager.getInstance().InitConfig(); AlchemyManager.getInstance().InitConfig(); ZuoQiManager.getInstance().ReLoadConfig(false); RebornManager.getInstance().InitConfig(true); RebornBoss.getInstance().InitConfig(); SpecPlatFuLiManager.getInstance().InitConfig(); EraManager.getInstance().InitConfig(); JingLingQiYuanManager.getInstance().InitConfig(); AllThingsCalcItem.InitAllForgeLevelInfo(); SingletonTemplate <TradeBlackManager> .Instance().LoadConfig(); Global.LoadLangDict(); LogFilterConfig.InitConfig(); TenRetutnManager.getInstance().InitConfig(); VideoLogic.getInstance().LoadVideoXml(); Data.LoadConfig(); GiftCodeNewManager.getInstance().initGiftCode(); AoYunDaTiManager.getInstance().LoadConfig(); ZhuanPanManager.getInstance().LoadConfig(); JueXingManager.getInstance().LoadConfig(); TalentManager.LoadTalentSpecialData(); AssemblyPatchManager.getInstance().initialize(); IPStatisticsManager.getInstance().LoadConfig(); JunTuanManager.getInstance().InitConfig(); HongBaoManager.getInstance().InitConfig(); HuiJiManager.getInstance().InitConfig(); DeControl.getInstance().InitConfig(); GVoiceManager.getInstance().InitConfig(); KuaFuLueDuoManager.getInstance().InitConfig(); WanMoXiaGuManager.getInstance().InitConfig(); ThemeBoss.getInstance().InitConfig(); ArmorManager.getInstance().InitConfig(); CompBattleManager.getInstance().InitConfig(); CompMineManager.getInstance().InitConfig(); JingLingYuanSuJueXingManager.getInstance().LoadConfig(); BianShenManager.getInstance().InitConfig(); ZhanDuiZhengBaManager.getInstance().InitConfig(); EscapeBattleManager.getInstance().InitConfig(); MazingerStoreManager.getInstance().InitConfig(); BuffManager.InitConfig(); GoldAuctionConfigModel.LoadConfig(); BoCaiConfigMgr.LoadConfig(true); }
public static int ReloadXmlFile(string xmlFileName) { string lowerXmlFileName = xmlFileName.ToLower(); int result; if (Global.GetGiftExchangeFileName().ToLower() == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_activities(); } else if ("config/gifts/biggift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_biggift(); } else if ("config/gifts/loginnumgift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_loginnumgift(); } else if ("config/gifts/huodongloginnumgift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_huodongloginnumgift(); } else if ("config/gifts/newrolegift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_newrolegift(); } else if ("config/gifts/comateffectivenessgift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_combat_effectiveness_gift(); } else if ("config/gifts/uplevelgift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_uplevelgift(); } else if ("config/gifts/onlietimegift.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_onlietimegift(); } else if ("config/platconfig.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_platconfig(); } else if ("config/mall.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_mall(); } else if ("config/monstergoodslist.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_monstergoodslist(); } else if ("config/broadcastinfos.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_broadcastinfos(); } else if ("config/specialtimes.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_specialtimes(); } else if ("config/battle.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_battle(); } else if ("config/arenabattle.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_ArenaBattle(); } else if ("config/popupwin.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_popupwin(); } else if ("config/npcscripts.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_npcscripts(); } else if ("config/systemoperations.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_systemoperations(); } else if ("config/systemparams.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_systemparams(); } else if ("config/goodsmergeitems.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_goodsmergeitems(); } else if ("config/qizhengegoods.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_qizhengegoods(); } else if ("config/npcsalelist.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_npcsalelist(); } else if ("config/goods.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_goods(); } else if ("config/goodspack.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_goodspack(); } else if ("config/systemtasks.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_systemtasks(); } else if ("config/taskzhangjie.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_taskzhangjie(); } else if ("config/equipupgrade.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_equipupgrade(); } else if ("config/dig.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_dig(); } else if ("config/battleexp.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_battleexp(); } else if ("config/rebirth.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_rebirth(); } else if ("config/battleaward.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_Award(); } else if ("config/equipborn.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_EquipBorn(); } else if ("config/bornname.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_BornName(); } else if ("config/gifts/fanli.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_FanLi(); } else if ("config/gifts/chongzhisong.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiSong(); } else if ("config/gifts/chongzhiking.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiKing(); } else if ("config/gifts/levelking.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_LevelKing(); } else if ("config/gifts/bossking.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_EquipKing(); } else if ("config/gifts/wuxueking.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_HorseKing(); } else if ("config/gifts/jingmaiking.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_JingMaiKing(); } else if ("config/gifts/vipdailyawards.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_gifts_VipDailyAwards(); } else if ("config/activity/activitytip.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_ActivityTip(); } else if ("config/luckyaward.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_LuckyAward(); } else if ("config/lucky.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_Lucky(); } else if ("config/chengjiu.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_ChengJiu(); } else if ("config/chengjiubuff.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_ChengJiuBuff(); } else if (string.Format("Config\\JieRiGifts\\ JieRiDanBiChongZhi.xml", new object[0]).ToLower() == lowerXmlFileName) { result = HuodongCachingMgr.ResetDanBiChongZhiActivity(); } else if ("config/jingmai.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_JingMai(); } else if ("config/wuxue.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_WuXue(); } else if ("config/zuanhuang.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_ZuanHuang(); } else if ("config/vip.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_Vip(); } else if ("config/qianggou.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_QiangGou(); } else if ("config/hefugifts/hefuqianggou.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_HeFuQiangGou(); } else if ("config/jierigifts/jirriqianggou.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_JieRiQiangGou(); } else if ("config/systemopen.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_SystemOpen(); } else if ("config/DailyActiveInfor.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_DailyActive(); } else if ("DailyActiveAward.xml" == lowerXmlFileName) { result = ReloadXmlManager.ReloadXmlFile_config_DailyActiveAward(); } else if ("config/ipwhitelist.xml" == lowerXmlFileName) { SingletonTemplate <CreateRoleLimitManager> .Instance().LoadConfig(); result = 1; } else { if ("kuafu" == lowerXmlFileName) { if (KuaFuManager.getInstance().InitConfig()) { return(1); } } else if ("langhunlingyu" == lowerXmlFileName) { if (LangHunLingYuManager.getInstance().InitConfig()) { return(1); } } else if ("config/chongzhi_app.xml" == lowerXmlFileName || "config/chongzhi_andrid.xml" == lowerXmlFileName || "config/chongzhi_android.xml" == lowerXmlFileName || "config/chongzhi_yueyu.xml" == lowerXmlFileName) { UserMoneyMgr.getInstance().InitConfig(); } else { if ("config/AssInfo.xml" == lowerXmlFileName || "config/AssList.xml" == lowerXmlFileName || "config/AssConfig.xml" == lowerXmlFileName) { return(RobotTaskValidator.getInstance().LoadRobotTaskData() ? 1 : 0); } if ("Config/Auction.xml" == lowerXmlFileName || "Config/AngelTempleAuctionAward.xml" == lowerXmlFileName) { return(GoldAuctionConfigModel.LoadConfig()); } if ("Config/CaiShuZi.xml" == lowerXmlFileName || "Config/CaiDaXiao.xml" == lowerXmlFileName || "Config/DuiHuanShangCheng.xml" == lowerXmlFileName || "Config/DaiBiShiYong.xml" == lowerXmlFileName) { return(BoCaiConfigMgr.LoadConfig(true)); } if (lowerXmlFileName.IndexOf("Config\\Horse") > -1) { ZuoQiManager.getInstance().ReLoadConfig(false); } } result = -1000; } return(result); }
private bool ProcessExecuteBianShenCmd(GameClient client, int nID, byte[] bytes, string[] cmdParams) { int result = 0; long nowTicks = TimeUtil.NOW(); if (!this.CanBianShenByMap(client)) { result = -21; } else if (client.ClientData.IsDongJie()) { result = -500; } else { ExtData extData = ExtDataManager.GetClientExtData(client); if (nowTicks < extData.BianShenCDTicks) { result = -2007; } else if (!this.IsGongNengOpened(client) || client.ClientData.HideGM > 0) { result = -12; } else { ZuoQiManager.getInstance().RoleDisMount(client, true); long cdTime = (long)(this.RuntimeData.BianShenCDSecs * 1000); int durationTime = 0; int skillLevel = 1; double[] props = null; List <int> skillIDList = null; BianShenStarInfo starInfo; lock (this.RuntimeData.Mutex) { if (!this.RuntimeData.BianShenStarDict.Value.TryGetValue(client.ClientData.BianShenData.BianShen, out starInfo)) { result = -20; goto IL_4E7; } skillLevel = starInfo.Level; } string strCostList = ""; long dayAndCount = client.ClientData.MoneyData[147]; int dayid = (int)(dayAndCount / 10000L); int dayCount = (int)(dayAndCount % 10000L); if (dayid != TimeUtil.GetOffsetDayNow()) { dayCount = 0; dayid = TimeUtil.GetOffsetDayNow(); } if (dayCount < this.RuntimeData.FreeNum) { dayCount++; dayAndCount = (long)(dayid * 10000 + dayCount); client.ClientData.MoneyData[147] = dayAndCount; Global.SaveRoleParamsInt64ValueToDB(client, "10216", dayAndCount, true); GameManager.ClientMgr.NotifySelfPropertyValue(client, 147, dayAndCount); } else if (!GoodsUtil.CostGoodsList(client, this.RuntimeData.NeedGoods, false, ref strCostList, "变身")) { result = -6; goto IL_4E7; } int damageType = OccupationUtil.GetOccuDamageType(client.ClientData.OccupationIndex); GoodsData goodsData = client.UsingEquipMgr.GetGoodsDataByCategoriy(client, 28); if (null != goodsData) { FashionBagData fashionBagData = FashionManager.getInstance().GetFashionBagData(client, goodsData); if (fashionBagData != null && fashionBagData.FasionTab == 7) { if (damageType == 1) { skillIDList = fashionBagData.MagicSkill; } else { skillIDList = fashionBagData.AttackSkill; } durationTime = fashionBagData.BianShenDuration; if (fashionBagData.BianShenEffect > 0) { lock (this.RuntimeData.Mutex) { FashionEffectInfo info; if (this.RuntimeData.FashionEffectInfoDict.Value.TryGetValue(fashionBagData.BianShenEffect, out info)) { props = info.ExtPropValues; } } } } } else { durationTime = starInfo.Duration; if (damageType == 1) { skillIDList = starInfo.MagicSkill; } else { skillIDList = starInfo.AttackSkill; } } if (null != skillIDList) { lock (client.ClientData.SkillDataList) { using (List <int> .Enumerator enumerator = skillIDList.GetEnumerator()) { while (enumerator.MoveNext()) { int skillID = enumerator.Current; SkillData mySkillData = client.ClientData.SkillDataList.Find((SkillData x) => x.SkillID == skillID); if (null == mySkillData) { SkillData skillData = new SkillData(); skillData.SkillID = skillID; skillData.SkillLevel = skillLevel; client.ClientData.SkillDataList.Add(skillData); } else if (mySkillData.SkillLevel != skillLevel) { mySkillData.SkillLevel = skillLevel; } } } } } extData.skillIDList = skillIDList; extData.BianShenCDTicks = nowTicks + cdTime + (long)(durationTime * 1000); extData.BianShenCdTime = cdTime; extData.BianShenToTicks = nowTicks + (long)(durationTime * 1000); client.buffManager.SetStatusBuff(121, nowTicks, (long)(durationTime * 1000), 0L); this.OnBianShenStateChange(client, true, client.ClientData.BianShenData.BianShen, durationTime, props); GameManager.ClientMgr.NotifySkillCDTime(client, -1, extData.BianShenCDTicks, false); } } IL_4E7: client.sendCmd <int>(nID, result, false); return(true); }
public static void initialize() { ZhanMengShiJianManager.getInstance().initialize(); JingJiChangManager.getInstance().initialize(); LiXianBaiTanManager.getInstance().initialize(); LiXianGuaJiManager.getInstance().initialize(); CmdRegisterTriggerManager.getInstance().initialize(); SendCmdManager.getInstance().initialize(); BossAIManager.getInstance().initialize(); WashPropsManager.initialize(); SaleManager.getInstance().initialize(); LianZhiManager.GetInstance().initialize(); ChengJiuManager.GetInstance().initialize(); PrestigeMedalManager.getInstance().initialize(); UnionPalaceManager.getInstance().initialize(); UserActivateManager.getInstance().initialize(); PetSkillManager.getInstance().initialize(); UserReturnManager.getInstance().initialize(); OlympicsManager.getInstance().initialize(); TalentManager.getInstance().initialize(); TodayManager.getInstance().initialize(); FundManager.getInstance().initialize(); WarnManager.getInstance().initialize(); EMoLaiXiCopySceneManager.LoadEMoLaiXiCopySceneInfo(); LuoLanFaZhenCopySceneManager.initialize(); MarryFuBenMgr.getInstance().initialize(); MarryLogic.LoadMarryBaseConfig(); MarryPartyLogic.getInstance().LoadMarryPartyConfig(); BuildingManager.getInstance().initialize(); OnePieceManager.getInstance().initialize(); GlobalServiceManager.RegisterManager4Scene(0, SingletonTemplate <CopyTeamManager> .Instance()); GlobalServiceManager.RegisterManager4Scene(0, KuaFuManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(35, LangHunLingYuManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, RebornManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, RebornBoss.getInstance()); GlobalServiceManager.RegisterManager4Scene(24, LuoLanChengZhanManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, FashionManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, OrnamentManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ShenJiFuWenManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, YaoSaiJianYuManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, AlchemyManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, EraManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, VideoLogic.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, SpecPlatFuLiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(25, HuanYingSiYuanManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(10000, JingLingQiYuanManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(26, TianTiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(27, YongZheZhanChangManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(39, KingOfBattleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(45, BangHuiMatchManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(48, CompManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(52, CompBattleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(53, CompMineManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(57, ZorkBattleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(47, KuaFuLueDuoManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, KarenBattleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(41, KarenBattleManager_MapWest.getInstance()); GlobalServiceManager.RegisterManager4Scene(42, KarenBattleManager_MapEast.getInstance()); GlobalServiceManager.RegisterManager4Scene(29, SingletonTemplate <MoRiJudgeManager> .Instance()); GlobalServiceManager.RegisterManager4Scene(28, ElementWarManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(49, WanMoXiaGuManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(34, CopyWolfManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(31, KuaFuBossManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(10003, KuaFuMapManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(10002, SpreadManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(36, SingletonTemplate <ZhengBaManager> .Instance()); GlobalServiceManager.RegisterManager4Scene(38, SingletonTemplate <CoupleArenaManager> .Instance()); GlobalServiceManager.RegisterManager4Scene(10004, AllyManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(10005, SingletonTemplate <CoupleWishManager> .Instance()); GlobalServiceManager.RegisterManager4Scene(40, ZhengDuoManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, AoYunDaTiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, RoleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ZhuanPanManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ShenQiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, JunTuanManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, LingDiCaiJiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, HongBaoManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, YaoSaiBossManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, YaoSaiMissionManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, HuiJiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, DeControl.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, GVoiceManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ShenShiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, JueXingManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ZuoQiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ThemeBoss.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, ArmorManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, JingLingYuanSuJueXingManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, BianShenManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(55, TianTi5v5Manager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, UserRegressActiveManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, MountHolyStampManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, MazingerStoreManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, GlodAuctionProcessCmdEx.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, BoCaiManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, FunctionSendManager.GetInstance()); GlobalServiceManager.RegisterManager4Scene(0, HuanLeDaiBiManager.GetInstance()); GlobalServiceManager.RegisterManager4Scene(0, NewTimerProc.GetInstance()); GlobalServiceManager.RegisterManager4Scene(56, ZhanDuiZhengBaManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(59, EscapeBattleManager.getInstance()); GlobalServiceManager.RegisterManager4Scene(0, TestReceiveModel.getInstance()); RobotTaskValidator.getInstance().Initialize(false, 0, 0, ""); HolyItemManager.getInstance().Initialize(); TarotManager.getInstance().Initialize(); SingletonTemplate <SevenDayActivityMgr> .Instance().initialize(); SingletonTemplate <SoulStoneManager> .Instance().initialize(); SingletonTemplate <TradeBlackManager> .Instance().LoadConfig(); lock (GlobalServiceManager.Scene2ManagerDict) { foreach (List <IManager> list in GlobalServiceManager.Scene2ManagerDict.Values) { foreach (IManager i in list) { bool success = true; try { success = (success && i.initialize()); IManager2 m2 = i as IManager2; if (null != m2) { success = (success && m2.initialize(GameCoreInterface.getinstance())); } } catch (Exception ex) { success = false; LogManager.WriteException(ex.ToString()); } if (GameManager.ServerStarting && !success) { LogManager.WriteLog(LogTypes.Fatal, string.Format("执行{0}.initialize()失败,按任意键继续启动!", i.GetType()), null, true); Console.ReadKey(); } } } } TenManager.getInstance().initialize(); TenRetutnManager.getInstance().initialize(); GiftCodeNewManager.getInstance().initialize(); FaceBookManager.getInstance().initialize(); AssemblyPatchManager.getInstance().initialize(); IPStatisticsManager.getInstance().initialize(); FuMoManager.getInstance().Initialize(); }