用于战神引擎点天灯进地图Npc脚本,玩家使用元宝点亮三盏灯后,就可以进入对应的地图,脚本是明文版的,单文件,但用到了变量,添加的时候,要别冲突了,GM可以根据自己版本的情况,设置点亮的元宝数量和进入地图的编号。


部分脚本
procedure _dian3;
var
suiji :integer;
begin
suiji := random(100);
if This_Player.GetV(112,11) >= 1 then
begin
if This_Player.GetV(112,12) >= 1 then
begin
if This_Player.GetV(112,13) <= 0 then begin if This_Player.YBnum >= 300 then
begin
if suiji < 30 then
end else
begin
This_Player.ScriptRequestSubYBNum(300);
This_Player.PlayerNotice('很遗憾:点第三盏天灯失败!',1);
end;
end else
This_NPC.NpcDialog(This_Player,
'点灯失败:你的元宝不足300个!|'
+'|{cmd} <返回上页/@main> ^ <关闭此页/@exit>');
end else
This_NPC.NpcDialog(This_Player,
'点灯失败:你已经点燃了第三盏天灯!|'
+'|{cmd} <返回上页/@main> ^ <关闭此页/@exit>') ;
end else
This_NPC.NpcDialog(This_Player,
'点灯失败:请先点燃第二盏天灯!|'
+'|{cmd} <返回上页/@main> ^ <关闭此页/@exit>') ;
end else
This_NPC.NpcDialog(This_Player,
'点灯失败:请先点燃第一盏天灯!|'
+'|{cmd} <返回上页/@main> ^ <关闭此页/@exit>') ;
end;
procedure _shenmi;
begin
if (This_Player.GetV(112,11) >= 1) and (This_Player.GetV(112,12) >= 1) and (This_Player.GetV(112,13) >= 1) and (This_Player.GetV(112,14) >= 1) then
begin
This_Player.RandomFlyto('G001~1');
This_Player.SetV(112,11,0);
This_Player.SetV(112,12,0);
This_Player.SetV(112,13,0);
This_Player.SetV(112,14,0);
This_Player.CallOut(This_Npc, 3600, 'chulai');
ServerSay('恭喜玩家[' + This_Player.Name + ']进入了[天灯副本地图]!', 70);
end else
This_NPC.NpcDialog(This_Player,
'进入失败:未点燃全部天灯!|'
+'|{cmd} <返回上页/@main> ^ <关闭此页/@exit>');
end;
procedure chulai;
begin
if CompareText(This_Player.MapName,'G001~1') = 0 then
Begin
This_Player.RandomFlyTo('3');
This_Player.PlayerNotice('天灯副本:时间已到,传回土城!!',3);
This_NPC.NpcDialog(This_Player,
+'天灯系统: |\'
+'<天灯副本,时间已到,传回土城!!/fcolor=254>|\'
+'|{cmd} <关闭此页/@exit> ^ <关闭此页/@exit>'
);
end;
end;
end.

![1.76比奇复古独家二开版本[买插件]](https://www.gm7.net/wp-content/uploads/2025/10/4e64124b5136446.jpg)
![1.76醉江湖装备6星精品版本[买插件]](https://www.gm7.net/wp-content/uploads/2025/10/4a48f912182c289.jpg)
![寻梦录第2季四大陆大极品单职业版[买插件]](https://www.gm7.net/wp-content/uploads/2025/10/a577081906cd49c.jpg)
![中华嘟嘟三职业复古独家版本[要授权]](https://www.gm7.net/wp-content/uploads/2025/09/47363e960fec928.jpg)
![苍狼单职业小极品高爆开区版[买插件]](https://www.gm7.net/wp-content/uploads/2025/09/59d86c36e099e05.jpg)
![1.70雲梦传奇原始复古月卡版[买插件]](https://www.gm7.net/wp-content/uploads/2025/09/32f181fccf7129c.jpg)

![1.80玛法传奇二大陆三职业版[买插件]](https://www.gm7.net/wp-content/uploads/2025/08/3a84c2b762502ab.jpg)