| | |
| | | ) = range(1, 4)
|
| | |
|
| | |
|
| | | #无限飞buff id--->新手体验VIPBUFF
|
| | | Def_FreedomTransBuffID = 11503 |
| | |
|
| | | #区域类型定义, 从5开始, C++定义到 IPY_GameWorld.gatMax 4
|
| | | (
|
| | | gatManor, # 领地区域, 领地战期间可PK, 反之为普通区域
|
| | |
| | | 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)
|
| | |
|
| | |
|
| | |
| | | posX = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransPosX)
|
| | | posY = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransPosY)
|
| | |
|
| | | #执行逻辑,应该在入口设置好消耗,这边只是扣除
|
| | | #=======================================================================
|
| | | # isFreedomTransBuff = SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID)
|
| | | # if transportType == ChConfig.Def_Transport_Type_BigMap or not isFreedomTransBuff:
|
| | | # isAutoBuy = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransAutoBuyItem)
|
| | | # #传送支付处理
|
| | | # if not ChPlayer.PayForTransport(curPlayer, transportType, isAutoBuy):
|
| | | # return
|
| | | #=======================================================================
|
| | | |
| | | if not TransCostAfterPrepare(curPlayer):
|
| | | return
|
| | |
|
| | |
| | | ) = range(1, 4)
|
| | |
|
| | |
|
| | | #无限飞buff id--->新手体验VIPBUFF
|
| | | Def_FreedomTransBuffID = 11503 |
| | |
|
| | | #区域类型定义, 从5开始, C++定义到 IPY_GameWorld.gatMax 4
|
| | | (
|
| | | gatManor, # 领地区域, 领地战期间可PK, 反之为普通区域
|