手游传奇私服发布站

 找回密码
 注册账号
查看: 50|回复: 0

开区等待脚本设置

[复制链接]

113

主题

122

帖子

908

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
908
发表于 2019-9-3 16:54:28 | 显示全部楼层 |阅读模式
{脚本定制可以联系好大两只 QQ7122696}

{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 >= 9) or (GetDay <> 26) 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, '复古一区今天9点正式开区,届时你才可以离开等待间。\ \' +
    '|{cmd}<我要出去/@letgo>\');
end.

回复

使用道具 举报

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

本版积分规则

手游传奇私服发布站

GMT+8, 2025-4-11 08:37 , Processed in 0.067090 second(s), 22 queries , Gzip On.

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