• 400-123-4567

    工作时间

    周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • 手机版二维码

    随时手机查资源

  • 扫描二维码

    加入官方微信群

白日门传奇如何添加屠城活动

手游教程 admin
2023-9-5 08:58 37人浏览 0人回复
摘要

白日门传奇添加屠城活动的方法script目录下autorun.lua添加活动触发脚本function tchd() server.set_temp_var("activityName","屠城活动") server.server_exe("gui.PanelActivityGuide.startNotice") local map = ...

 白日门传奇添加屠城活动的方法
script目录下autorun.lua添加活动触发脚本
function tchd()
        server.set_temp_var("activityName","屠城活动")
        server.server_exe("gui.PanelActivityGuide.startNotice")
        local map = server.find_map("tucheng");--地图编号
        if map then
                if map:num_monster(26000015) == 0 then
                        map:mon_gen(55,31,26000015,5,6,1,1,"no_owner");--地图坐标,(x,y,怪物id,num,范围,1,1)
                        server.info(10000,0,"屠城活动现在开始 大量BOSS出现在土城等你围杀");
                end
        end
end


function tchdgb()

        local map = server.find_map("tucheng");
        if map then

                map:clear_mon_by_name("BOSS名称")--指定的名称
        end
end
long目录下autorun.lua添加活动时间
day                        18:00                        autorun.tchd
day                        18:30                        autorun.tchdgb


gui下PanelActivityGuide.lua 添加客户端活动显示
{index=16,name="屠城活动",        repeatDay=0, startTime=1800, endTime=1830, levelLimit=80, open=true, openDate=0,openState=0,},

鲜花

握手

雷人

路过

鸡蛋
本文暂无评论,快来抢沙发!

推荐阅读
热门教程

源码资源综合下载站欢迎您的光临

Welcome to the comprehensive download site of source code resources
按住CTRL+D收藏本站

2i8.Cn

精品资源就上Www.2i8.Cn

优质资源每日更新

Www.2i8.Cn旗下网站

  • 官网微信

    每天官微五分钟一年萌新变大神

    扫码关注
  • 新浪微博

    每天50篇设计干货30万设计师关注!

    访问新浪微博
  • 官方客服
2i8.Cn

源码资游库等你来关注

Powered by Discuz!X3.5 ©2001-2023 Comsenz Inc.Www.2i8.Cn-源码资游库设计( 湘ICP备19020399号-1 )营业执照|网站地图