• 中文
    • English
  • 注册
  • 技术教程 技术教程 关注:16 内容:392

    【战神引擎】开服开区等待脚本

  • 查看作者
  • 打赏作者
  • 当前位置: 巅峰论坛 > 技术教程 > 正文
  • 技术教程
  • 飞升境
    特约
    靓号:888

    就是服务器开启,然后玩家进入游戏会在一个特定的地图,设定的开服时间未到无法离开的脚本!感觉很多人应该用的到!

    mapinfo.txt内加入这行内容    

    [0139~22 开区等待间  0] SAFE NORECALL NORANDOMMOVE NODRUG BLACKROOM

    LogonQuest.pas内加入这行内容

    if (GetMonth = 5) and (GetDay = 1) and (GetHour < 1) and (This_Player.MapName <> '0139~22')then

          This_Player.RandomFlyTo('0139~22');

    }

    program mir2;

    procedure _letgo;

    var

      i: integer;

    begin

      if (GetHour >= 1) or (GetDay <> 1) then    //GetHour代表开区的整点,GetDay代表开区是几号,改这2个就可以了。   

      begin

        i := Random(1);

        if i = 1 then

          This_Player.Flyto('0', 650, 626)

        else

          This_Player.Flyto('0', 290, 617);

      end

      else

        This_Player.PlayerNotice('必须到1点才可以离开!', 0);

    end;

    begin

      This_NPC.NpcDialog(This_Player, '墨鱼传奇于1号1点正式开区,届时你才可以离开等待间。\ \' +

        '|{cmd}<我要出去/@letgo>\');

    end.

    请登录之后再进行评论

    登录
  • 发布
  • 做任务
  • 更换主题
  • 帖子间隔 侧栏位置: