烈焰私服 服务端增加九层妖塔活动脚本
发表时间:2016-06-16 09:32点击人气:责任编辑:admin
function ontalk3033(npc,event,player)
local mapfloor=player:GetMapId()-750;
local box1nums={1,2,3,1,2,2,1,0,0,0}
local box2nums={0,0,0,1,1,2,2,3,3,3}
local yb=math.floor(mapfloor*50000);
if player:GetMapId() >=751 and player:GetMapId()<=758 then
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
当前<font color='#ffffff'>第]]..mapfloor..[[层</font>
#&talk_line#&
提交<font color='#B6FF00'>3个九层妖塔令牌</font>,你可以进入到下一层
击杀妖塔尸王100%掉落<font color='#B6FF00'>九层妖塔令牌</font>
#&talk_line#&
进入下一层奖励:
#&item19112#& <font color="#ED1111">白银宝箱</font> <font color='#B6FF00'>* ]]..box1nums[mapfloor]..[[</font>
#&item19113#& <font color="#ED1111">紫金宝箱</font> <font color='#B6FF00'>* ]]..box2nums[mapfloor]..[[</font>
#&item19099#& <font color="#ED1111">元宝</font> <font color='#B6FF00'>* ]]..yb..[[</font>
#&talk_line#&
<font size="14px"><b><u><a href='event:M2402,103'><font color='#009999'>进入下一层</font></a></u></b></font>
#&talk_line#&
]]);
elseif player:GetMapId()==759 then
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
当前<font color='#ffffff'>第]]..mapfloor..[[层</font>(最后一层)
#&talk_line#&
提交<font color='#B6FF00'>3个九层妖塔令牌</font>,你可以进入到下一层
击杀妖塔尸王100%掉落<font color='#B6FF00'>九层妖塔令牌</font>
#&talk_line#&
第九层奖励:
#&item19112#& <font color="#ED1111">白银宝箱</font> <font color='#B6FF00'>* ]]..box1nums[mapfloor]..[[</font>
#&item19113#& <font color="#ED1111">紫金宝箱</font> <font color='#B6FF00'>* ]]..box2nums[mapfloor]..[[</font>
#&item19099#& <font color="#ED1111">元宝</font> <font color='#B6FF00'>* ]]..yb..[[</font>
#&talk_line#&
<font size="14px"><b><u><a href='event:M2402,103'><font color='#009999'>领取奖励回城</font></a></u></b></font>
#&talk_line#&
]]);
end
end
function ontalk3033_103(npc,event,player)
local mapfloor=player:GetMapId()-750;
local box1nums={1,2,3,1,2,2,1,0,0,0}
local box2nums={0,0,0,1,1,2,2,3,3,3}
local yb=math.floor(mapfloor*50000);
if player:GetMapId() >=751 and player:GetMapId()<=759 then
if player:num_item(19024,1) >= 3 then
player:remove_item(19024,3,1);
if box1nums[mapfloor]>0 then
player:add_item(19112,box1nums[mapfloor],1);
end
if box2nums[mapfloor]>0 then
player:add_item(19113,box2nums[mapfloor],1);
end
player:add_vcoin(yb);
if player:GetMapId() ==759 then
player:enter_map(12,117,120);
else
player:randomthismap(player:GetMapId()+1);
end
local nextfloor=mapfloor+1;
g_alert("<font color='#dddddd'>玩家[</font><font color='#FF0000'>"..player:GetName().."深入九层妖塔第"..nextfloor.."层,获得"..yb.."元宝及BOSS宝箱奖励</font>",2,1000,0,1);
else
player:alert(1,1000,1,"您没有3个【九层妖塔令牌石】");
ontalk3033(npc,0,player,0);
end
else
player:enter_map(12,117,120);
end
end
Npc3033Funid =
{
[101] = ontalk3033_101;
[102] = ontalk3033_102;
[103] = ontalk3033_103;
[104] = ontalk3033_104;
[105] = ontalk3033_105;
[106] = ontalk3033_106;
[107] = ontalk3033_107;
[108] = ontalk3033_108;
[109] = ontalk3033_109;
[110] = ontalk3033_110;
[1011] = ontalk3033_1011;
[1021] = ontalk3033_1021;
[1031] = ontalk3033_1031;
[1041] = ontalk3033_1041;
[1051] = ontalk3033_1051;
[1061] = ontalk3033_1061;
[1071] = ontalk3033_1071;
[1081] = ontalk3033_1081;
[1091] = ontalk3033_1091;
[1101] = ontalk3033_1101;
[1012] = ontalk3033_1012;
[1022] = ontalk3033_1022;
[1032] = ontalk3033_1032;
[1042] = ontalk3033_1042;
[1052] = ontalk3033_1052;
[1062] = ontalk3033_1062;
}
function CreatureNpcFun(npc,event,player,funid)
if funid == 9999 then
ontalk3033(npc,0,player,0);
return;
end
if Npc3033Funid[funid] ~= nil then
Npc3033Funid[funid](npc,event,player);
end
end
RegisterUnitEvent(3033,20,"ontalk3033")
RegisterUnitEvent(3033,29,"CreatureNpcFun")
本站仅提供烈焰服务端相关脚本内容,不保证所有脚本可运行并无措,请自行修改相关内容.确认不与已存在脚本冲突