【悟空资源网】

 找回密码
 注册

QQ登录

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

[复制链接]
发表于 2021-8-27 07:22:18 | 显示全部楼层 |阅读模式

[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.
复制代码


回复

使用道具 举报

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

本版积分规则

Archiver|手机版|【悟空资源网】 ( 桂ICP备2022002215号-1 )

GMT+8, 2024-4-20 06:33 , Processed in 0.056601 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2012 Comsenz Inc. Template by A3cn

返回顶部