藏宝湾网游单机站

 找回密码
 注册

QQ登录

只需一步,快速开始

★【黑暗之光SF★我是大主宰SF】【神将三国SF】★

★【0.1折】★【变态网页游戏私服】★

★神将三国网页版上线送V5 5w元宝 5000w铜币 我是大主宰上线满v,80万元宝,小怪都爆元宝,耐玩长久稳定★

【原始传奇SF/维京传奇SF】【GM包站手游】

★【原始传奇SF/维京传奇SF】【GM包站手游】★

★2025火爆『传奇岁月+赤焰号角+维京传奇+原始传奇』爆战力称号BUFF+神装99999999万人PK★

★全网独家 可以单机 可以互动的传奇!★

★全网独家 可以单机 可以互动的传奇!★

★全网唯一持续更新的可单机游戏!每15-25天更新一次内容,保持游戏新鲜度!! 众多独家的功能特色,众多你没见过的全新玩法,有能力的赚点烟钱,还能偶尔沙城战斗!★

★承接推广★
★承接推广★

★承接推广★

☆六一新区开放-放置传奇☆

★六一新区开放-放置传奇★

★可白嫖 上班摸鱼类 放置文字传奇游戏(放置休闲)qq群756025698★

★三职业复古★开局送神装★爆率100%★散人逆袭★

★三职业复古★开局送神装★爆率100%★散人逆袭★

★〖双线〗〖无忧传奇〗〖每日新区〗〖开局送神装 100%高爆率 装备元宝打怪爆〗★

★承接推广★

★承接推广★

★承接推广★

★承接推广★

★承接推广★

★承接推广★

★DNF★全职业平衡★公益服★
★DNF★全职业平衡★公益服★

【dnf86版本】【怀旧服】【全职业平衡】【非变态服】【非商业服】【775016356】

★承接推广★

★承接推广★

★承接推广★

★梦幻16门派全新大唐九黎★

★梦幻16门派全新大唐九黎★

★★新增全新门派九黎城,★不做垃圾,力争什么都做到最好★持续更新,长久稳定★

★承接推广★

★承接推广★

★承接推广★

查看: 2242|回复: 0

[求助] 龙OL活动副本单人怎么进入??

[复制链接]
发表于 2018-4-17 09:24:27 | 显示全部楼层 |阅读模式
活动副本副本文件路径D:\T9_game\server_data\script\activity
上古无回D:\T9_game\server_data\script\map\instance\m52-boos4.lua
七星魔王D:\T9_game\server_data\script\quest\wabao-qixingmowang.lua
就拿星宿副本来说文件E:T9_game\server_data\script\activity\xingsu\28xingsu.lua文件修改内容如下
--固定活动“二十八星宿上隆”

--生成随机数种子
math.randomseed(aux.TimeGetTime())

--天宫星官

tiangongxingguan={}
tiangongxingguan[3600020]={id=-1, IsDead=true, MapCrc=3017298127, x=0, y=0, z=0}
tiangongxingguan[3600021]={id=-1, IsDead=true, MapCrc=3017298383, x=0, y=0, z=0}
tiangongxingguan[3600022]={id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0}
tiangongxingguan[3600023]={id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0}
tiangongxingguan[3600024]={id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0}
tiangongxingguan[3600025]={id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0}

--二十八星宿table
act1_Creature = {}
act1_Creature[1500001] = {id=-1, IsDead=true, MapCrc=3017298127, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500002] = {id=-1, IsDead=true, MapCrc=3017298127, x=0, y=0, z=0, Rate=100, BuffID=5000101}
act1_Creature[1500003] = {id=-1, IsDead=true, MapCrc=3017298127, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500004] = {id=-1, IsDead=true, MapCrc=3017298127, x=0, y=0, z=0, Rate=50, BuffID=5000201}
act1_Creature[1500005] = {id=-1, IsDead=true, MapCrc=3017298383, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500006] = {id=-1, IsDead=true, MapCrc=3017298383, x=0, y=0, z=0, Rate=100, BuffID=5000301}
act1_Creature[1500007] = {id=-1, IsDead=true, MapCrc=3017298383, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500008] = {id=-1, IsDead=true, MapCrc=3017298383, x=0, y=0, z=0, Rate=50, BuffID=5000401}
act1_Creature[1500009] = {id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500010] = {id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0, Rate=100, BuffID=5000501}
act1_Creature[1500011] = {id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500012] = {id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500013] = {id=-1, IsDead=true, MapCrc=3017299663, x=0, y=0, z=0, Rate=50, BuffID=5000601}
act1_Creature[1500014] = {id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0, Rate=100, BuffID=5000701}
act1_Creature[1500015] = {id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500016] = {id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500017] = {id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0, Rate=50, BuffID=5000801}
act1_Creature[1500018] = {id=-1, IsDead=true, MapCrc=3017299919, x=0, y=0, z=0, Rate=50, BuffID=5000901}
act1_Creature[1500019] = {id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500020] = {id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0, Rate=100, BuffID=5001001}
act1_Creature[1500021] = {id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500022] = {id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0, Rate=50, BuffID=5001101}
act1_Creature[1500023] = {id=-1, IsDead=true, MapCrc=3017299151, x=0, y=0, z=0, Rate=50, BuffID=5001201}
act1_Creature[1500024] = {id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0, Rate=100, BuffID=-1}
act1_Creature[1500025] = {id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0, Rate=100, BuffID=5001301}
act1_Creature[1500026] = {id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0, Rate=50, BuffID=-1}
act1_Creature[1500027] = {id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0, Rate=50, BuffID=5001401}
act1_Creature[1500028] = {id=-1, IsDead=true, MapCrc=3017299407, x=0, y=0, z=0, Rate=50, BuffID=5001501}



--清除TypeID为K的星宿记录
function Clear_tiangongxingguan(k)
        tiangongxingguan[k].id = -1
        tiangongxingguan[k].IsDead = true
        tiangongxingguan[k].x = 0
        tiangongxingguan[k].y = 0
        tiangongxingguan[k].z = 0
end

--初始化tiangongxingguan
function Init_tiangongxingguan()
        for k in pairs(tiangongxingguan) do
                Clear_tiangongxingguan(k)
        end
end

--活动开始事件
function act1_OnStart(actID)
        --初始化tiangongxingguan
        Init_tiangongxingguan()
        --通知全服活动开始
        local MsgID = msg.BeginMsgEvent()
        msg.AddMsgEvent(MsgID, 100, 5)
        msg.DispatchWorldMsgEvent(MsgID)
        for k = 3600020 ,3600025 do
                        --随机一个刷怪点
                if  tiangongxingguan[k].id == -1 then
                        local MapCrc = tiangongxingguan[k].MapCrc
                        local randPoint = math.random(500, 520)
                        local x = map_list[MapCrc].map[randPoint].x
                        local y = map_list[MapCrc].map[randPoint].y
                        local z = map_list[MapCrc].map[randPoint].z
                        --生成天宫星官
                        local success = map.MapCreateCreature(MapCrc, -1, k, x, y, z)
                        --创建成功
                        if success~=4294967295 then
                                --设置tiangongxingguan
                                tiangongxingguan[k].id = success
                                tiangongxingguan[k].IsDead = false
                                tiangongxingguan[k].x = x
                                tiangongxingguan[k].y = y
                                tiangongxingguan[k].z = z
                        end
                end
        end
end

--注册该活动的相关时间
aux.RegisterActEvent(1, 2, "act1_OnStart")
aux.RegisterActEvent(2, 2, "act1_OnStart")
aux.RegisterActEvent(3, 2, "act1_OnStart")
aux.RegisterActEvent(4, 2, "act1_OnStart")
--aux.RegisterActEvent(86, 2, "act1_OnStart")
aux.RegisterActEvent(89, 2, "act1_OnStart")
aux.RegisterActEvent(90, 2, "act1_OnStart")


function xingguan_OnTalk(MapID, InstanceID, NPCID, NPCTypeID, TargetID, Index)
                if Index == -1 then
                  local MsgID = msg.BeginMsgEvent()
                        msg.AddMsgEvent(MsgID, 20,         422)        ---对话后提示:“要挑战天宫星宿,队伍人数至少要达到3人。您是否已经做好准备??(这里我把3人改成1人)
                        msg.AddMsgEvent(MsgID, 24,        NPCID)        --npcid
                    msg.AddMsgEvent(MsgID, 21,        4)                        --确定按钮
                        msg.AddMsgEvent(MsgID, 1,        21)                                --“确定”
                        msg.AddMsgEvent(MsgID, 21,        5)                        --取消按钮
                        msg.AddMsgEvent(MsgID, 1,        22)
                        msg.DispatchRoleMsgEvent(TargetID, MsgID)
                end
                if Index == 4 then
                        local TeamID = role.IsRoleHaveTeam(MapID, InstanceID, TargetID)
                        local Man_InTeam = 0
                        local Role = {}
                                   Role[1], Role[2], Role[3], Role[4], Role[5], Role[6] = role.GetRoleTeamMemID(TeamID)
                                for i=1, 6 do
                                        if Role[i] and Role[i]~= 4294967295 then
                                        Man_InTeam = Man_InTeam + 1
                                        end
                                end
                        --限制刷出怪物,队伍人数必须达到3人(3人改1人)
                        if Man_InTeam < 3  then(3改1)
                                local MsgID = msg.BeginMsgEvent()
                                msg.AddMsgEvent(MsgID, 71, 423)--提示队伍人数不足3人(删除这行留空白)
                                msg.DispatchRoleMsgEvent(TargetID,MsgID)
                                return -1
                        else
                                local localA, localB ,localC = unit.GetPosition(MapID, InstanceID, TargetID)
                                --龙城
                                if MapID == 3017298127 then
                                        local monsterid = 1500000 + math.random(1,4)
                                        map.MapCreateCreature(3017298127, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017298127, InstanceID, 1510015, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017298127, InstanceID, 1510015, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017298127, InstanceID, 1510015, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017298127, InstanceID, 1510015, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017298127, InstanceID, 1510015, localA+17, localB, localC+17)
                                --凤翔
                                elseif MapID == 3017298383 then
                                        local monsterid =  1500000 + math.random(5,8)
                                        map.MapCreateCreature(3017298383, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017298383, InstanceID, 1510016, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017298383, InstanceID, 1510016, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017298383, InstanceID, 1510016, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017298383, InstanceID, 1510016, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017298383, InstanceID, 1510016, localA+17, localB, localC+17)
                                --逐鹿
                                elseif MapID == 3017299663 then
                                        local monsterid = 1500000 +  math.random(9,13)
                                        map.MapCreateCreature(3017299663, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017299663, InstanceID, 1510017, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017299663, InstanceID, 1510017, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017299663, InstanceID, 1510017, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017299663, InstanceID, 1510017, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017299663, InstanceID, 1510017, localA+17, localB, localC+17)
                                --巫水
                                elseif MapID == 3017299919 then
                                        local monsterid =  1500000 + math.random(14,18)
                                        map.MapCreateCreature(3017299919, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017299919, InstanceID, 1510018, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017299919, InstanceID, 1510018, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017299919, InstanceID, 1510018, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017299919, InstanceID, 1510018, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017299919, InstanceID, 1510018, localA+17, localB, localC+17)
                                --武夷m06
                                elseif MapID == 3017299151 then
                                        local monsterid =  1500000 + math.random(19,23)
                                        map.MapCreateCreature(3017299151, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017299151, InstanceID, 1510019, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017299151, InstanceID, 1510019, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017299151, InstanceID, 1510019, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017299151, InstanceID, 1510019, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017299151, InstanceID, 1510019, localA+17, localB, localC+17)
                                --昆仑
                                elseif MapID == 3017299407 then
                                        local monsterid =  1500000 + math.random(24,28)
                                        map.MapCreateCreature(3017299407, InstanceID, monsterid, localA+2, localB, localC+12)
                                        map.MapCreateCreature(3017299407, InstanceID, 1510020, localA+15, localB, localC+15)
                                        map.MapCreateCreature(3017299407, InstanceID, 1510020, localA+5, localB, localC-15)
                                        map.MapCreateCreature(3017299407, InstanceID, 1510020, localA-15, localB, localC+15)
                                        map.MapCreateCreature(3017299407, InstanceID, 1510020, localA-5, localB, localC-15)
                                        map.MapCreateCreature(3017299407, InstanceID, 1510020, localA+17, localB, localC+17)
                                end
                        end
                        map.MapDeleteCreature(MapID, InstanceID, NPCID)
                end
        return
end



aux.RegisterCreatureEvent(3600020, 7, "xingguan_OnTalk")
aux.RegisterCreatureEvent(3600021, 7, "xingguan_OnTalk")
aux.RegisterCreatureEvent(3600022, 7, "xingguan_OnTalk")
aux.RegisterCreatureEvent(3600023, 7, "xingguan_OnTalk")
aux.RegisterCreatureEvent(3600024, 7, "xingguan_OnTalk")
aux.RegisterCreatureEvent(3600025, 7, "xingguan_OnTalk")
进入游戏还是无法进入副本,是不是我哪里没改到的,会的大佬麻烦指教下!谢谢!!!!

您需要登录后才可以回帖 登录 | 注册

本版积分规则

本站内容如若侵犯到您的权益,请来电来函告知,我们会尽快处理!
联系QQ:1953150286,2251387361,123784736,免责申明

排行榜|联系我们|小黑屋|手机版|Archiver|游戏藏宝湾 |

GMT+8, 2025-5-24 11:50 , Processed in 0.059920 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表