From 4dcb18d0e7848effd25e0d5970e9c84808da957c Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 10 六月 2019 14:12:34 +0800
Subject: [PATCH] 7155 【后端】【2.0】新增仙盟创建规则
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
index d37ba58..635c596 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/SummonNPC.py
@@ -16,7 +16,7 @@
import ChConfig
import GameWorld
import NPCCommon
-import PlayerFB
+import ShareDefine
#
#逻辑实现
@@ -29,7 +29,7 @@
#输入命令格式错误
if not paramList:
GameWorld.DebugAnswer(curPlayer, "SummonNPC npcID 个数")
- GameWorld.DebugAnswer(curPlayer, "SummonNPC npcID 个数 前端场景ID lineID")
+ GameWorld.DebugAnswer(curPlayer, "SummonNPC npcID 个数 血量")
return
#NPC对象ID
@@ -42,20 +42,10 @@
npcType = npcData.GetType()
if npcType in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]:
- mapID = paramList[2] if len(paramList) > 2 else 0
- lineID = paramList[3] if len(paramList) > 3 else 0
- if not mapID:
- GameWorld.DebugAnswer(curPlayer, "木桩怪必须指定地图ID才能召唤!")
- return
-
- sceneMapID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneMapID)
- sceneLineID = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomSceneLineID)
- if mapID != sceneMapID or lineID != sceneLineID:
- if sceneMapID:
- PlayerFB.DoExitCustomScene(curPlayer)
- tick = GameWorld.GetGameWorld().GetTick()
- PlayerFB.DoEnterCustomScene(curPlayer, mapID, lineID, tick)
- NPCCommon.SummonPriWoodPile(curPlayer, npcID, npcCount)
+ setHP = paramList[2] if len(paramList) > 2 else 0
+ hp = setHP % ShareDefine.Def_PerPointValue
+ hpEx = setHP / ShareDefine.Def_PerPointValue
+ NPCCommon.SummonPriWoodPile(curPlayer, npcID, npcCount, hp, hpEx)
return
for _ in range(npcCount):
--
Gitblit v1.8.0