| | |
| | | import GameWorld
|
| | | import IPY_GameServer
|
| | | import MergeBroadcast
|
| | | import IpyGameDataPY
|
| | | import ShareDefine
|
| | | import ChConfig
|
| | | import types
|
| | |
| | | # @param value: 威望值
|
| | | # @return:
|
| | | def SetMergeWarRank(curPlayer, value):
|
| | | curPlayer.SetExAttr10(value)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | # @param curPlayer: 玩家实例
|
| | | # @return: 威望值
|
| | | def GetMergeWarRank(curPlayer):
|
| | | return curPlayer.GetExAttr10()
|
| | | return 0
|
| | |
|
| | | ## 职业阶数
|
| | | def GetJobRank(curPlayer): return curPlayer.GetExAttr1()
|
| | |
| | | # if vipTime <= curTime:
|
| | | # return 0
|
| | | return curPlayer.GetVIPLv()
|
| | |
|
| | | ##聊天气泡框
|
| | | def GetChatBubbleBox(curPlayer): return curPlayer.GetExAttr10()
|
| | | def SetChatBubbleBox(curPlayer, value): return curPlayer.SetExAttr10(value)
|
| | |
|
| | | ## 是否脱机挂机状态
|
| | | def GetIsTJG(curPlayer):
|
| | |
| | | sysMsg = '%s'%([actionid, addCnt])
|
| | | curPlayer.MapServer_QueryPlayerResult(0, 0, "AddFamilyActivity", sysMsg, len(sysMsg))
|
| | | return
|
| | |
|
| | | ## 获取功能限制等级(等级条件为全局)
|
| | | def GetFuncLimitLV(funcID):
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("FuncOpenLV", funcID)
|
| | | if not ipyData:
|
| | | return 0
|
| | | |
| | | return ipyData.GetLimitLV()
|
| | |
|