页游SF|页游咯发布站
公益性信息网站,请自行辨别真伪
网站首页
取名符号
技术文章
 
烈焰私服 服务端增加九层妖塔活动脚本
文章作者:kevels 文章来源:页游SF|页游咯发布站 更新时间:2016-6-16 9:32:58
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")

 本站仅提供烈焰服务端相关脚本内容,不保证所有脚本可运行并无措,请自行修改相关内容.确认不与已存在脚本冲突

最新文章
· 蓝月传奇个人BOSS阿修罗神掉宝数据概述...
· 蓝月传奇野外BOSS通天霸主掉宝...
· 蓝月传奇野外BOSS雷炎蛛王掉宝数据...
· 蓝月传奇野外BOSS冰霜教王掉宝数据...
· 蓝月传奇野外BOSS魔龙教王掉宝数据概述...
· 蓝月传奇野外BOSS火龙王掉宝数据概述...
· 烈焰绿色版元宝活动之夺宝战场...
· 烈焰绿色版 7-25 18:00更新维护...
· 给你的烈焰私服增加一个定时刷怪的功能脚本...
· 烈焰服务端对角色进行相关属性操作的脚本命...
热门文章
· 烈焰游戏里神武官阶说明...
· 烈焰私服里战士的PK方法...
· 烈焰私服服务端里添加官方九幽海域传送员的...
· 烈焰SF新春贺礼···...
· 教程--烈焰私服里面添加鉴定大师NPC...
· 怒斩烈焰私服充值攻略...
· 烈焰私服的各种玩法...
· 烈焰私服的各种玩法(续)...
· 烈焰开服表私服里面装备.账号交易方法...
· 烈焰私服里防骗指南...
yeyo6.com背景图
2015-2018(c) www.YeY06.Com 烈焰私服 版权所有 盗版必究
*注释:本站所有信息,均来自互联网。请玩家仔细辨认游戏信息的真实性!与本站无关