From 21e99ac75add81fefa47da0b75eadea0f99b9c08 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 19 Dec 2024 15:26:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(NpcTeleport):=20=E4=BF=AE=E5=A4=8D=E8=BD=AC?= =?UTF-8?q?=E7=94=9F=E7=AD=89=E7=BA=A7=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整 Actor.checkActorLevel 函数的参数顺序,以正确检查转生等级 - 此修改确保 NPC 传送功能在满足转生等级要求时正常运作 --- LogicServer/data/functions/NpcEvent/NpcTeleport.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogicServer/data/functions/NpcEvent/NpcTeleport.txt b/LogicServer/data/functions/NpcEvent/NpcTeleport.txt index d222109..d31e0c6 100755 --- a/LogicServer/data/functions/NpcEvent/NpcTeleport.txt +++ b/LogicServer/data/functions/NpcEvent/NpcTeleport.txt @@ -123,7 +123,7 @@ if NetmsgDispatcher then end -- 检查转生 - local zs = config.zsLevel and Actor.checkActorLevel(actor, 0, config.zsLevel) + local zs = config.zsLevel and Actor.checkActorLevel(actor,config.zsLevel, 0) --local tips = string.format(Lang.TisMsg.xxx, config.nLevel) --Actor.sendTipmsg(actor, "等级不足!", ttFlyTip) if editionConf.suit == System.getServerId() and config.suit then