New file |
| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #-------------------------------------------------------------------------------
|
| | | #
|
| | | ##@package GM.Commands.Lunhui
|
| | | #
|
| | | # @todo:轮回殿
|
| | | # @author hxp
|
| | | # @date 2024-12-18
|
| | | # @version 1.0
|
| | | #
|
| | | # 详细描述: 轮回殿
|
| | | #
|
| | | #-------------------------------------------------------------------------------
|
| | | #"""Version = 2024-12-18 16:00"""
|
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | import GameWorld
|
| | | import PlayerActLunhuidian
|
| | |
|
| | | #逻辑实现
|
| | | ## GM命令执行入口
|
| | | # @param curPlayer 当前玩家
|
| | | # @param msgList 参数列表
|
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def OnExec(curPlayer, msgList):
|
| | | if not msgList:
|
| | | GameWorld.DebugAnswer(curPlayer, "增加进度: Lunhui 奖励类型 奖励值 增加值")
|
| | | GameWorld.DebugAnswer(curPlayer, "奖励类型: 1-货币;2-寻宝;3-物品")
|
| | | GameWorld.DebugAnswer(curPlayer, "奖励值:货币对应货币类型")
|
| | | GameWorld.DebugAnswer(curPlayer, "奖励值:寻宝对应寻宝类型")
|
| | | GameWorld.DebugAnswer(curPlayer, "奖励值:物品对应物品ID")
|
| | | GameWorld.DebugAnswer(curPlayer, "注:轮回活动类型只能通过调时间测试")
|
| | | return
|
| | | |
| | | awardType = msgList[0]
|
| | | awardTypeValue = msgList[1] if len(msgList) > 1 else 0
|
| | | addValue = msgList[2] if len(msgList) > 2 else 0
|
| | | if awardType not in PlayerActLunhuidian.AwardTypeList:
|
| | | GameWorld.DebugAnswer(curPlayer, "仅支持奖励类型为:%s" % PlayerActLunhuidian.AwardTypeList)
|
| | | return
|
| | | if not awardTypeValue or not addValue:
|
| | | GameWorld.DebugAnswer(curPlayer, "参数值异常")
|
| | | return
|
| | | PlayerActLunhuidian.AddLunhuidianValue(curPlayer, awardType, awardTypeValue, addValue)
|
| | | return
|
| | |
|