烈焰私服通过自定义参数值控制进入地图限制
function ontalk2117(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
建议玩家必须具备关羽套组队在进入,本地图爆关羽装备 张飞装备
#&talk_line#&
进入条件:
1.修仙到大乘 需要800w积分
地图时间:60分钟,到时自动传出(不能使用随机)
#&talk_line#&
<u><a href='event:M2402,1'>进入地图</a></u>
#&talk_line#&
]]);
end
function ontalk2117_1(npc,event,player)
if player:get_param(228) >= 4 then
if player:get_param(234) >= 8000000 then
player:set_param(234,player:get_param(234) - 8000000);
player:randomthismap(502);
player:set_timer(7,3600);
else
player:alert(10,0,0,"传送失败,您没有800W积分");
end
else
player:alert(10,0,0,"传送失败,您的修仙不到大乘");
end
ontalk2117(npc,0,player,0);
end
Npc2117Funid =
{
[1] = ontalk2117_1;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc2117Funid[funid] ~= nil then
Npc2117Funid[funid](npc,evnet,player);
end
end
RegisterUnitEvent(2117,20,"ontalk2117")
RegisterUnitEvent(2117,29,"CreatureNpcFun")
- 上一篇:烈焰人物死亡时的判断脚本代码说明
- 下一篇:网游烈焰之庄园采集脚本代码