最新最全最权威的各类手游,端游,页游游戏信息开服信息,尽在游民之家. 订阅微信

烈焰私服仿官方九幽传送员脚本代码

发表时间:2016-03-13 21:42点击人气:责任编辑:admin

function ontalk1194(npc,event,player)
 player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
  九幽蛇王击溃龙族之后,获得了大量的宝藏
  被藏在了九幽海域深处,勇士们,快前往寻宝吧

#&talk_line#&
  <u><a href='event:M2402,11'>九幽海域(60级)</a></u>  <u><a href='event:M2402,12'>九幽海域(70级)</a></u>  <u><a href='event:M2402,13'>九幽海域(80级)</a></u>
#&talk_line#&
  <u><a href='event:M2402,21'>九幽海域(飞1)</a></u>  <u><a href='event:M2402,22'>九幽海域(飞2)</a></u>  <u><a href='event:M2402,23'>九幽海域(飞3)</a></u>
#&talk_line#&
  <u><a href='event:M2402,31'>九幽海域(4-5)</a></u>  <u><a href='event:M2402,32'>九幽海域(6-7)</a></u>  <u><a href='event:M2402,33'>九幽海域(8-12)</a></u>

  说明:
        飞3地图可以爆出4阶鸿天装备
        飞4-5地图可以爆出6阶通天装备
        飞6-7地图可以爆出8阶傲天装备
        飞8-12地图可以爆出10阶至尊装备

]]);
end


function ontalk1194_11(npc,player)
 if player:get_level() > 59 and player:get_level() < 70 then
  player:enter_map(50,18,45);
 else
  player:alert(10,1000,1,"您的等级在60-69级之间才能进入");
 end
end

function ontalk1194_12(npc,player)
 if player:get_level() > 69 and player:get_level() < 80 then
  player:enter_map(51,18,45);
 else
  player:alert(10,1000,1,"您的等级在70-79级之间才能进入");
 end
end

function ontalk1194_13(npc,player)
 if player:get_level() >= 80 then
  player:enter_map(52,18,45);
 else
  player:alert(10,1000,1,"您的等级不足80级,无法进入");
 end
end

function ontalk1194_21(npc,player)
 if player:get_param(258) > 0 and player:get_param(258) < 2 then
  player:enter_map(53,18,45);
 else
  player:alert(10,1000,1,"飞升等阶等于1阶,才能进入");
 end
end

function ontalk1194_22(npc,player)
 if player:get_param(258) > 1 and player:get_param(258) < 3 then
  player:enter_map(54,18,45);
 else
  player:alert(10,1000,1,"飞升等阶等于2阶,才能进入");
 end
end

function ontalk1194_23(npc,player)
 if player:get_param(258) > 2 and player:get_param(258) < 4 then
  player:enter_map(55,18,45);
 else
  player:alert(10,1000,1,"飞升等阶等于3阶,才能进入此");
 end
end

function ontalk1194_31(npc,player)
 if player:get_param(258) > 3 and player:get_param(258) < 6 then
  player:enter_map(56,18,45);
 else
  player:alert(10,1000,1,"飞升等阶在4-5阶,才能进入");
 end
end

function ontalk1194_32(npc,player)
 if player:get_param(258) > 5 and player:get_param(258) < 8 then
  player:enter_map(57,18,45);
 else
  player:alert(10,1000,1,"飞升等阶在6-8阶,才能进入");
 end
end

function ontalk1194_33(npc,player)
 if player:get_param(258) > 7 and player:get_param(258) < 13 then
  player:enter_map(58,18,45);
 else
  player:alert(10,1000,1,"飞升等阶在8-12阶,才能进入");
 end
end


Npc1194Funid =
{
[11] = ontalk1194_11;
[12] = ontalk1194_12;
[13] = ontalk1194_13;
[21] = ontalk1194_21;
[22] = ontalk1194_22;
[23] = ontalk1194_23;
[31] = ontalk1194_31;
[32] = ontalk1194_32;
[33] = ontalk1194_33;
}

function funid(npc,event,player,funid)
 if Npc1194Funid[funid] ~= nil then
  Npc1194Funid[funid](npc,player);
 end
end

RegisterUnitEvent(1194,20,"ontalk1194")
RegisterUnitEvent(1194,29,"funid")

使用该烈焰的九幽传送员脚本时,请注意NPC的 entryID   还有 九幽的各个地图ID 是否在你数据库内有.否则将无法正常使用