| | |
| | | import PassiveBuffEffMng
|
| | | import PlayerDiceEx
|
| | | import QuestCommon
|
| | | import PlayerTJG
|
| | | import GameLogic_XMZZ
|
| | | import PlayerFlashSale
|
| | | import PlayerFlashGiftbag
|
| | |
| | | import PlayerArena
|
| | | import PyGameData
|
| | | import PlayerCoin
|
| | | import PlayerGeTui
|
| | | import PlayerCharm
|
| | | import PlayerDogz
|
| | | import PlayerCoat
|
| | |
| | | import PlayerShentong
|
| | | import PlayerCustomAward
|
| | | import PlayerZhanling
|
| | | import PlayerTree
|
| | | import PlayerLianTi
|
| | | import PlayerTask
|
| | | import PlayerYinji
|
| | | import PlayerLove
|
| | | import GameObj
|
| | |
| | | import IPY_ServerDefine
|
| | | import CommFunc
|
| | | from PyMongoDB import RecvPackToMapDB
|
| | | import PlayerTalk
|
| | |
|
| | | import datetime
|
| | | import time
|
| | |
| | | #初始化玩家的时钟个数
|
| | | if curPlayer.GetTickTypeCount() == 0:
|
| | | curPlayer.SetTickTypeCount(ChConfig.TYPE_Player_Tick_Count)
|
| | | |
| | | #初始化玩家聊天频道
|
| | | if curPlayer.GetMaxChannelCount() == 0:
|
| | | curPlayer.SetMaxChannelCount(ChConfig.Def_PlayerTalkChannelMaxCount)
|
| | |
|
| | | #===============================================================================
|
| | | # #初始化玩家鉴定管理器物品最大个数
|
| | |
| | | #大师
|
| | | PlayerGreatMaster.MasterOnLogin(curPlayer)
|
| | |
|
| | | # 推送提醒
|
| | | PlayerGeTui.LoginNotifySetting(curPlayer)
|
| | | |
| | | #֪ͨVIP
|
| | | PlayerVip.DoOnLogin(curPlayer, tick)
|
| | |
|
| | |
| | | PlayerEquipDecompose.PlayerLogin(curPlayer)
|
| | | #防沉迷
|
| | | PlayerGameWallow.DoLogic_CheckWallow(curPlayer, tick)
|
| | | # 通知脱机挂信息
|
| | | #PlayerTJG.NotifyTJGInfo(curPlayer)
|
| | | # 协助
|
| | | PlayerAssist.OnPlayerLogin(curPlayer)
|
| | | # 极品白拿
|
| | |
| | |
|
| | | curPlayer.SetState(0) # 脱机挂恢复为正常上线
|
| | | curPlayer.SetCountryLastWeekHornor(0) # 通知数据库是否保存还是下线,做一次恢复,1为保存 0为正常下线
|
| | | #tjgTime = PlayerTJG.GetTJGTime(curPlayer)
|
| | | #if tjgTime:
|
| | | # PlayerControl.SendGameServerRefreshState(curPlayer, IPY_GameWorld.CDBPlayerRefresh_HappyPoint, tjgTime)
|
| | | |
| | | |
| | | PlayerControl.DoGMForbidenTalkOnLogin(curPlayer)
|
| | | DataRecordPack.DR_PlayerLogin(curPlayer) # 放最后,记录等级、经验等信息
|
| | | return
|
| | |
| | | PlayerGubao.OnPlayerLogin(curPlayer)
|
| | | PlayerShentong.OnPlayerLogin(curPlayer)
|
| | | PlayerZhanling.OnPlayerLogin(curPlayer)
|
| | | PlayerTask.OnPlayerLogin(curPlayer)
|
| | | PlayerTree.OnPlayerLogin(curPlayer)
|
| | | PlayerMineArea.OnPlayerLogin(curPlayer)
|
| | | PlayerGuaji.OnPlayerLogin(curPlayer)
|
| | | PlayerActFamilyGCZ.OnPlayerLogin(curPlayer)
|
| | | PlayerTalk.OnPlayerLogin(curPlayer)
|
| | |
|
| | | # 上线查询一次充值订单
|
| | | curPlayer.SendDBQueryRecharge()
|
| | |
| | | #---等级限制---
|
| | | if GameWorld.IsCrossServer():
|
| | | return
|
| | | #PlayerTJG.TJGDeadOffline(curPlayer)
|
| | |
|
| | | #===============================================================================
|
| | | # #---等级限制---
|
| | |
| | |
|
| | | #下线召回宠物
|
| | | PetControl.ReCallFightPet(curPlayer)
|
| | | |
| | | #PlayerTJG.CalcPlayerTJG(curPlayer, tick)
|
| | |
|
| | | #离线session
|
| | | EventReport.WriteEvent_session(curPlayer)
|
| | |
| | | #打包直购礼包奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_DailyPackBuyGift:
|
| | | PlayerGoldGift.GetDailyPackBuyGift(curPlayer, dataEx)
|
| | | #任务奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_Task:
|
| | | PlayerTask.GetTaskAward(curPlayer, dataEx)
|
| | | #战令奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_Zhanling:
|
| | | PlayerZhanling.GetZhanlingReward(curPlayer, dataEx, dataExStr)
|