| | |
| | | import PlayerPrestigeSys
|
| | | import PlayerFamily
|
| | | import PlayerLoginDayAward
|
| | | import PlayerGodWeapon
|
| | | import PlayerGoldInvest
|
| | | import PlayerActivity
|
| | | import FBCommon
|
| | | import PlayerWishingWell
|
| | | import PlayerSuccess
|
| | | import PlayerDienstgrad
|
| | | import PlayerFreeGoods
|
| | | import PlayerCrossRealmPK
|
| | | import PlayerCrossChampionship
|
| | |
| | | import PlayerActLogin
|
| | | import PlayerTreasure
|
| | | import PlayerRune
|
| | | import PlayerFamilyRedPacket
|
| | | import IpyGameDataPY
|
| | | import EventReport
|
| | | import OpenServerCampaign
|
| | | import PassiveBuffEffMng
|
| | | import PlayerFlashSale
|
| | | import PlayerFlashGiftbag
|
| | |
| | | import PlayerSpringSale
|
| | | import GY_Query_BossFirstKill
|
| | | import PlayerCrossYaomoBoss
|
| | | import PlayerFeastRedPacket
|
| | | import PlayerLuckyCloudBuy
|
| | | import PlayerLuckyTreasure
|
| | | import Item_ResetAttrPoint
|
| | |
| | | import PlayerCustomAward
|
| | | import PlayerZhanling
|
| | | import PlayerTree
|
| | | import PlayerLLMJ
|
| | | import PlayerLianTi
|
| | | import PlayerTask
|
| | | import PlayerYinji
|
| | | import PlayerLove
|
| | | import GameObj
|
| | | import PlayerChangeJob
|
| | | import PlayerFace
|
| | | import PlayerChatBox
|
| | | import PlayerXiangong
|
| | | import PlayerGoldRush
|
| | | import PlayerActLoginNew
|
| | |
| | | import PlayerActTask
|
| | | import PlayerMail
|
| | | import DBDataMgr
|
| | | import UpdatePlayerName
|
| | | import GameServerRefresh
|
| | | import IPY_ServerDefine
|
| | | import CommFunc
|
| | |
| | | import PlayerHero
|
| | | import PlayerOnline
|
| | | import TurnAttack
|
| | | import PlayerHJG
|
| | | import ObjPool
|
| | |
|
| | | import datetime
|
| | |
| | | PlayerControl.SyncOnLineTimeTotal(curPlayer)
|
| | | #PlayerControl.SyncOnLineTimeLastOpenPack(curPlayer, IPY_GameWorld.rptItem)
|
| | | PlayerControl.SyncTrainRealmLV(curPlayer)
|
| | | PlayerGodWeapon.OnLogin(curPlayer)
|
| | | PlayerPrestigeSys.OnLogin(curPlayer)
|
| | | #DataRecordPack.DR_PlayerLogin(curPlayer)
|
| | | EventReport.WriteEvent_login(curPlayer)
|
| | |
| | | # 通知累计登陆礼
|
| | | PlayerLoginDayAward.OnLoginNotifyLoginDayAward(curPlayer)
|
| | |
|
| | | # 开服活动奖励信息
|
| | | OpenServerCampaign.OnOpenServerCampaignLogin(curPlayer)
|
| | | |
| | | # 采集NPC次数通知
|
| | | #NPCCommon.SyncCollNPCTime(curPlayer)
|
| | | |
| | | # 每日活跃度
|
| | | PlayerActivity.OnLogin(curPlayer)
|
| | | |
| | | # 副本进入时间
|
| | | FBCommon.FBOnLogin(curPlayer)
|
| | |
|
| | |
| | | # Sync_AutoFightSetting(curPlayer)
|
| | |
|
| | | PlayerFamily.OnPlayerLogin(curPlayer, tick)
|
| | | #改到 GameServerRefresh GameSever_PlayerInitOK后处理才能保证玩家已经在Gameserver注册
|
| | | #PlayerDienstgrad.RefreshBillBoardDienstgrad(curPlayer)
|
| | | # 称号
|
| | | PlayerDienstgrad.Sync_AllDienstgradOnLogin(curPlayer)
|
| | |
|
| | | # ʱװ
|
| | | PlayerCoat.OnLogin_Coat(curPlayer)
|
| | |
| | | ChItem.Sync_ItemDayUseCnt(curPlayer)
|
| | | # 符印登录通知
|
| | | PlayerRune.PlayerRuneLogin(curPlayer)
|
| | | # 仙盟红包登录通知
|
| | | PlayerFamilyRedPacket.OnPlayerLogin(curPlayer)
|
| | | PlayerFeastRedPacket.DoPlayerOnLogin(curPlayer)
|
| | | # 商店物品购买次数登录通知
|
| | | FunctionNPCCommon.ShopItemOnLogin(curPlayer)
|
| | | # 通知设置的被动功法
|
| | |
| | | PyMongoMain.GetUserCtrlDB().OnPlayerLogin(curPlayer)
|
| | | PlayerHero.OnPlayerLogin(curPlayer)
|
| | | PlayerMail.OnPlayerLogin(curPlayer)
|
| | | PlayerChatBox.OnPlayerLogin(curPlayer)
|
| | | PlayerFace.OnPlayerLogin(curPlayer)
|
| | | PlayerHJG.OnPlayerLogin(curPlayer)
|
| | | PlayerXiangong.OnPlayerLogin(curPlayer)
|
| | | PlayerGubao.OnPlayerLogin(curPlayer)
|
| | | PlayerShentong.OnPlayerLogin(curPlayer)
|
| | |
| | | PlayerActFamilyGCZ.OnPlayerLogin(curPlayer)
|
| | | PlayerTalk.OnPlayerLogin(curPlayer)
|
| | | SyncADCntInfo(curPlayer)
|
| | | UpdatePlayerName.OnPlayerLogin(curPlayer)
|
| | | PlayerActivity.OnPlayerLogin(curPlayer)
|
| | | PlayerLLMJ.OnPlayerLogin(curPlayer)
|
| | |
|
| | | # 上线查询一次充值订单
|
| | | curPlayer.SendDBQueryRecharge()
|
| | |
| | |
|
| | | # 重置首充双倍
|
| | | PlayerCoin.DoResetCTGCount(curPlayer, "MixServer")
|
| | | |
| | | # 重置商店购买次数,暂定只重置类型 7 的
|
| | | FunctionNPCCommon.ResetShopItemBuyCount(curPlayer, [7])
|
| | |
|
| | | # 合服邮件,盟主专属邮件在GameServer处理
|
| | | mailItemList = IpyGameDataPY.GetFuncEvalCfg("MixServerMail", 1)
|
| | |
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | |
|
| | | #防外挂 不可移动
|
| | | if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_AutoCheckHack_State) \
|
| | | == ChConfig.Def_AutoCheck_State_Danger:
|
| | | return
|
| | | #if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_AutoCheckHack_State) \
|
| | | # == ChConfig.Def_AutoCheck_State_Danger:
|
| | | # return
|
| | |
|
| | |
|
| | | #不可移动行为状态, 判断客户端限制
|
| | |
| | |
|
| | | #流向记录玩家下线
|
| | | DataRecordPack.DR_PlayerDisconnect(curPlayer)
|
| | | |
| | | #玩家未回图形验证码下线将会记录错误次数
|
| | | #===========================================================================
|
| | | # if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_Captcha_WaitSign) \
|
| | | # == PlayerAutoCheckOnline.Def_Captcha_WaitAnswer:
|
| | | # PlayerAutoCheckOnline.CaptchaAnswerErr(curPlayer, tick, False)
|
| | | # |
| | | # PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_Captcha_WaitSign, PlayerAutoCheckOnline.Def_Captcha_Safe)
|
| | | # |
| | | #===========================================================================
|
| | | #@warning: 等字段统一修改,删除双倍经验BUFF
|
| | | #PlayerDoubleExpSys.DeleteDoubleExpBuff(curPlayer, ChConfig.Def_DoubleExpNote_StopOff)
|
| | |
|
| | | #设置RouteServerInitOK字典
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_RouteServerInitOK, 0)
|
| | |
| | | # 活跃度奖励
|
| | | if rewardType == ChConfig.Def_RewardType_Activity:
|
| | | PlayerActivity.GetActivityAward(curPlayer, dataEx)
|
| | | # 活跃放置奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_ActivityPlace:
|
| | | PlayerActivity.GetActivityPlaceReward(curPlayer)
|
| | | # 每日任务奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_DailyTask:
|
| | | PlayerActivity.GetDailyTaskAward(curPlayer, dataEx)
|
| | | # 成就奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_Success:
|
| | | PlayerSuccess.GetSuccessAward(curPlayer, dataEx)
|
| | | # 仙树免费减时
|
| | | elif rewardType == ChConfig.Def_RewardType_TreeFreeTime:
|
| | | PlayerTree.FreeReduceTreeLVTime(curPlayer)
|
| | | # 广告奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_ADAward:
|
| | | OnGetADAward(curPlayer, dataEx)
|
| | | # 历练秘笈升级
|
| | | elif rewardType == ChConfig.Def_RewardType_LLMJLVUp:
|
| | | PlayerLLMJ.OnLLMJLVUp(curPlayer)
|
| | | # 每日免费直购礼包
|
| | | elif rewardType == ChConfig.Def_RewardType_DayFreeGoldGift:
|
| | | PlayerDailyGiftbag.OnGetDailyFreeGiftbag(curPlayer)
|
| | | # 仙盟每日福利奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_FamilyDayAward:
|
| | | PlayerFamily.GetFamilyDayAward(curPlayer)
|
| | | #elif rewardType == ChConfig.Def_RewardType_FamilyDayAward:
|
| | | # PlayerFamily.GetFamilyDayAward(curPlayer)
|
| | | # 玩家等级奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_LVAward:
|
| | | PlayerLVAward.GetPlayerLVAward(curPlayer, dataEx)
|
| | |
| | | # 跨服妖魔boss伤害奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_CrossYaomoBossHurt:
|
| | | PlayerCrossYaomoBoss.GetCrossYaomoBossHurtAward(curPlayer, dataEx, tick)
|
| | | # 古宝特殊效果物品奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_GubaoItemEff:
|
| | | PlayerGubao.GetGubaoItemEffAward(curPlayer, dataEx, dataExStr)
|
| | | # 成就积分奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_SuccessScore:
|
| | | PlayerSuccess.GetSuccessScoreAward(curPlayer, dataEx)
|
| | | # 买一送多活动免费奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_BuyOne:
|
| | | PlayerActBuyOne.GetBuyOneFreeAward(curPlayer, dataEx, dataExStr)
|
| | |
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | |
|
| | | #防外挂 不可移动
|
| | | if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_AutoCheckHack_State) \
|
| | | == ChConfig.Def_AutoCheck_State_Danger:
|
| | | return
|
| | | #if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_AutoCheckHack_State) \
|
| | | # == ChConfig.Def_AutoCheck_State_Danger:
|
| | | # return
|
| | |
|
| | | if not PYPlayerNormalMove(curPlayer, clientPack, tick):
|
| | | posX, posY = curPlayer.GetPosX(), curPlayer.GetPosY()
|