From 5a0157d6388bf849498760563c57014be8b17122 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 12 三月 2025 14:55:51 +0800 Subject: [PATCH] 10416 【英文】【bt】【GM】【砍树】登录基金和幻境基金 完成后可以重置购买 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Zhanling.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Zhanling.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Zhanling.py index 9c24f4a..fcee322 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Zhanling.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/Zhanling.py @@ -19,6 +19,7 @@ import PlayerControl import PlayerZhanling import GameWorld +import time #--------------------------------------------------------------------- #逻辑实现 @@ -34,6 +35,7 @@ GameWorld.DebugAnswer(curPlayer, "重置奖励: Zhanling 0 类型") GameWorld.DebugAnswer(curPlayer, "设置战令: Zhanling 类型 是否激活普通 高级") GameWorld.DebugAnswer(curPlayer, "设置进度: Zhanling v 类型 进度值") + GameWorld.DebugAnswer(curPlayer, "设置登录: Zhanling d 登录战令已登录天数") return value = msgList[0] @@ -51,6 +53,14 @@ GameWorld.DebugAnswer(curPlayer, "该战令不用设置进度值! %s" % (zhanlingType)) return GameWorld.DebugAnswer(curPlayer, "战令进度:Type=%s,V=%s" % (zhanlingType, retValue)) + elif value == "d": + zhanlingType = 5 + loginDays = msgList[1] if len(msgList) > 1 else 1 + curTime = int(time.time()) + firstLoginTime = curTime - (loginDays - 1) * 3600 * 24 + PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ZhanlingValue1 % zhanlingType, firstLoginTime) + PlayerZhanling.SyncZhanlingInfo(curPlayer, zhanlingType) + GameWorld.DebugAnswer(curPlayer, "登录战令已登录天数:%s" % (GameWorld.GetDiff_Day(curTime, firstLoginTime) + 1)) else: zhanlingType = value activiteC = msgList[1] if len(msgList) > 1 else 0 -- Gitblit v1.8.0