- 精华
- 阅读权限
- 100
- 贡献
- 人
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2022-12-22
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2026-1-11 09:59:54
|
显示全部楼层
1、护送乔峰的,直接去徐惊雷提交任务吧,跟老三环逃跑贼一样,需改设置巡逻路径位,懒得麻烦了。这个没有完全修正。石林也一样。2、老三环逃跑贼,设置巡逻路径取消了,刷出来在原地不动。
-- 杀死地图中央的小boss[伪装的宋兵都统]5秒后,在地图下方刷出10只沿路线逃窜的小怪
local flag = LuaFnGetCopySceneData_Param( sceneId, 12 )
if flag > 0 then
if flag == 1 then
LuaFnSetCopySceneData_Param( sceneId, 12, 2 ) -- 等一轮再出小怪
elseif flag == 2 then
LuaFnSetCopySceneData_Param( sceneId, 12, 0 )
local bossGrade = LuaFnGetCopySceneData_Param( sceneId, 13 )
if not x050100_g_Dogface[bossGrade] then
return
end
local dogfaceId = -1
for i = 1, getn( x050100_g_DogfacePos ) do
if x050100_g_DogfacePos then
dogfaceId = LuaFnCreateMonster( sceneId, x050100_g_Dogface[bossGrade], x050100_g_DogfacePos[1], x050100_g_DogfacePos[2], 1, 4, -1 )
SetLevel( sceneId, dogfaceId, GetLevel( sceneId, dogfaceId ) + LevelGap )
SetMonsterGroupID( sceneId, dogfaceId, x050100_g_DogfaceGroup )
--SetPatrolId( sceneId, dogfaceId, x050100_g_DogfacePos[3] ) -- 设置巡逻路径
end
end
end
end
-- 小怪沿路线到达指定区域则消失
-- 当有一个小怪逃走后在屏幕上方提示玩家:“逃窜匪类逃出,贼人头目闻风藏匿,任务失败。”
local monstercount = GetMonsterCount( sceneId )
local monsterId, GroupID, DogX, DogZ, misIndex
local x, z = GetLastPatrolPoint( sceneId, 5 )
for i = 0, monstercount - 1 do
monsterId = GetMonsterObjID( sceneId, i )
GroupID = GetMonsterGroupID( sceneId, monsterId )
if GroupID == x050100_g_DogfaceGroup
and LuaFnIsCharacterLiving( sceneId, monsterId ) == 1 then -- 判断活着的小兵是否逃跑成功
DogX, DogZ = GetWorldPos( sceneId, monsterId )
if (x - DogX) * (x - DogX) + (z - DogZ) * (z - DogZ) < 25 then -- 离终点不到 5 米
if LuaFnGetCopySceneData_Param( sceneId, 14 ) < 1 then -- 第一次小兵逃跑
LuaFnSetCopySceneData_Param( sceneId, 14, 1 ) -- 是否已经有小怪逃走
for i = 0, membercount - 1 do
if LuaFnIsObjValid( sceneId, mems ) == 1 then
misIndex = GetMissionIndexByID( sceneId, mems, x050100_g_MissionId )
SetMissionByIndex( sceneId, mems, misIndex, x050100_g_IsMissionOkFail, 2 ) -- 任务失败 |
|