| | |
| | | import PlayerActivity
|
| | | import PlayerTeHui
|
| | | import FBCommon
|
| | | import HighLadderTube
|
| | | import PlayerBindJadeWheel
|
| | | import BossHurtMng
|
| | | import PlayerAction
|
| | | import PlayerWishingWell
|
| | | import PlayerAttrFruit
|
| | | import PlayerSuccess
|
| | | import PlayerDienstgrad
|
| | |
| | | import PlayerTJG
|
| | | import GameLogic_XMZZ
|
| | | import GameLogic_SealDemon
|
| | | import GameLogic_Dogz
|
| | | import PlayerFlashSale
|
| | | import PlayerFlashGiftbag
|
| | | import PlayerCostRebate
|
| | | import PlayerSpringSale
|
| | |
| | | PlayerSpringSale.OnPlayerLogin(curPlayer)
|
| | | #限时礼包
|
| | | PlayerFlashGiftbag.OnPlayerLogin(curPlayer)
|
| | | |
| | | #限时抢购
|
| | | PlayerFlashSale.OnPlayerLogin(curPlayer)
|
| | | # # 消费VIP
|
| | | # PlayerCostVIP.CostVIPOnLogin(curPlayer, tick)
|
| | | #
|
| | |
| | | GameFuncComm.DoFuncOpenLogic(curPlayer)
|
| | | # 神兽
|
| | | PlayerDogz.OnPlayerLogin(curPlayer)
|
| | | # 神兽副本
|
| | | GameLogic_Dogz.SyncNPCRefreshTime(curPlayer.GetID())
|
| | | # 骑宠
|
| | | FamilyRobBoss.OnPlayerLogin(curPlayer)
|
| | | |
| | | # 绑玉转盘
|
| | | PlayerBindJadeWheel.OnLogin(curPlayer)
|
| | | # 许愿池
|
| | | PlayerWishingWell.OnLogin(curPlayer)
|
| | | # 上线查询一次充值订单
|
| | | curPlayer.SendDBQueryRecharge()
|
| | |
|
| | |
| | | PlayerControl.NotifyCode(curPlayer, "04BBF813-7A30-47A8-927DE1ACCC4F378E")
|
| | | return
|
| | |
|
| | | #===============================================================================
|
| | | # isFreedomTransBuff = SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID)
|
| | | # if not PlayerControl.IsPlayerInFight(curPlayer):
|
| | | # |
| | | # if (transportType == ChConfig.Def_Transport_Type_BigMap) or (not isFreedomTransBuff):
|
| | | # #传送支付处理
|
| | | # |
| | | # if not PayForTransport(curPlayer, transportType, isAutoBuy):
|
| | | # return
|
| | | #===============================================================================
|
| | | #是任务传送,VIP等级不够,且传送符不足,不处理
|
| | | if transportType == ChConfig.Def_Transport_Type_Mission and \
|
| | | not TransportVipLvRestrict(curPlayer, transportType) and \
|
| | |
| | | # @param transportType 传送类型
|
| | | # @return 是否vip等级限制
|
| | | def TransportVipLvRestrict(curPlayer, transportType):
|
| | | |
| | | #大地图标记传送不能体验无限飞buff功能
|
| | | if transportType != ChConfig.Def_Transport_Type_BigMap:
|
| | | if SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID):
|
| | | #有无限飞buff
|
| | | return True
|
| | | return PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_FreeTransport)
|
| | |
|
| | |
|
| | |
| | | # 领取分包下载奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_DownLoad:
|
| | | GetDownloadAward(curPlayer, dataEx)
|
| | | # 领取许愿池奖励
|
| | | elif rewardType == ChConfig.Def_RewardType_WishingWell:
|
| | | PlayerWishingWell.DoGetWishingAward(curPlayer)
|
| | | |
| | | #
|
| | | # # 充值豪礼奖励
|
| | | # elif rewardType == ShareDefine.Def_RewardType_GoldGift:
|
| | |
| | | sendPack.Clear()
|
| | | sendPack.Record = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_DownloadAwardState)
|
| | | NetPackCommon.SendFakePack(curPlayer, sendPack)
|
| | | return |
| | | return
|
| | |
|
| | | def NotifyPlayerMove(curPlayer, posX, posY, npcID=0):
|
| | | '''通知前端向某个点移动
|
| | | 这里前端可能需要针对某次移动做额外处理,比如移动到某个点后需要自动战斗等
|
| | | 所以这里只做通知前端可以向某个点移动,最终移动由前端发起
|
| | | '''
|
| | | sendPack = ChPyNetSendPack.tagMCNotifyPlayerMove()
|
| | | sendPack.Clear()
|
| | | sendPack.PosX = posX
|
| | | sendPack.PosY = posY
|
| | | sendPack.NPCID = npcID
|
| | | NetPackCommon.SendFakePack(curPlayer, sendPack)
|
| | | return
|