首页 游戏资源分享 手游技术交流 【战神引擎】开服开区等待脚本
0赞
赞赏
手机版
扫码打开手机版
把文字装进口袋

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

惜颜705  2024-9-25 20:50:03

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


[color=rgba(51, 51, 51, 0.88)]mapinfo.txt内加入这行内容  


  1. [0139~22 开区等待间  0] SAFE NORECALL NORANDOMMOVE NODRUG BLACKROOM
复制代码


[color=rgba(51, 51, 51, 0.88)]LogonQuest.pas内加入这行内容


  1. if (GetMonth = 5) and (GetDay = 1) and (GetHour < 1) and (This_Player.MapName <> '0139~22')then
  2.       This_Player.RandomFlyTo('0139~22');
  3. }
  4. program mir2;
  5. procedure _letgo;
  6. var
  7.   i: integer;
  8. begin
  9.   if (GetHour >= 1) or (GetDay <> 1) then    //GetHour代表开区的整点,GetDay代表开区是几号,改这2个就可以了。   
  10.   begin
  11.     i := Random(1);
  12.     if i = 1 then
  13.       This_Player.Flyto('0', 650, 626)
  14.     else
  15.       This_Player.Flyto('0', 290, 617);
  16.   end
  17.   else
  18.     This_Player.PlayerNotice('必须到1点才可以离开!', 0);
  19. end;
  20. begin
  21.   This_NPC.NpcDialog(This_Player, '墨鱼传奇于1号1点正式开区,届时你才可以离开等待间。\ \' +
  22.     '|{cmd}<我要出去/@letgo>\');
  23. end.
复制代码


使用道具 举报

您需要登录后才可以回帖 立即登录
返回顶部