From f198885f31c9c7eb19eb28adce562e39e64d581c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 18 七月 2025 16:23:11 +0800 Subject: [PATCH] 121 【武将】武将系统-服务端(属性计算、战斗力计算;新角色初始给默认装备、默认阵容武将;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py index b316024..5666fad 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py @@ -49,7 +49,6 @@ import ChPyNetSendPack import NetPackCommon import GameWorld -import EventShell import IPY_GameWorld import ItemControler import ChConfig @@ -107,17 +106,6 @@ # @return 远程商店的npc def GetDirectNpcID(): return 0 - -#--------------------------------------------------------------------- -##结束事件 -# @param curPlayer 玩家实例 -# @param tick 时间戳 -# @return 返回值真, 逻辑运行成功 -# @remarks 结束事件 -def ExitEvent(curPlayer, tick): - - EventShell.DoExitEvent(curPlayer) - return True #--------------------------------------------------------------------- ##请求商店物品列表 @@ -809,8 +797,7 @@ if not sendMailKey: if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, event=[ChConfig.ItemGive_BuyItem, isForceEvent, dataDict]): GameWorld.ErrLog("购买商城物品放入背包失败! itemID=%s, itemCount=%s" % (itemID, itemCount), curPlayer.GetPlayerID()) - EventShell.EventRespons_BuyItem(curPlayer, itemID, itemCount) - + if ipyData.GetNotifyMark() and itemID == mainItemID: PlayerControl.WorldNotify(0, ipyData.GetNotifyMark(), [curPlayer.GetName(), mainItemID, userData]) @@ -824,9 +811,6 @@ PlayerControl.SendMailByKey(sendMailKey, [curPlayer.GetID()], totalItemList, detail=dataDict) else: ItemControler.NotifyGiveAwardInfo(curPlayer, totalItemList, ChConfig.ItemGive_BuyItem, dataEx=shopType) - #触发任务购买物品 - EventShell.EventRespons_ShopBuy(curPlayer, shopType) - #curPlayer.ShopResult(itemIndex, IPY_GameWorld.tsrShopOK) SyncShoppingResult(curPlayer, itemIndex, clientBuyCount) if shopType == ShopType_FairyCeremony: -- Gitblit v1.8.0