给烈焰私服增加祈福功能,NPC脚本代码
发表时间:2015-10-20 02:29点击人气:责任编辑:admin
--这个NPC你可以起名,叫啥祈福鼎啦,祈福大使啦!元旦活动么!
--NPC的ID为2811,有冲突自己改,改的要彻底!
--自己添加物品和红包脚本。
function ontalk2811(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
页游咯发布站,www.yeyo6.com
#&talk_line#&
2015年新的一年即将到来,在这崭新的一年里,预祝大家生意兴荣,合家幸福。
来这里试试你在新的一年的手气如何,是不是最幸运的幸运儿呢,花费10万烈焰私服币祈福即可获得祈福红包,打开红包有几率出现顶级装备哦。
#&talk_line#&
▁▂▃▅▆▇▉★ 我 要 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
▁▂▃▅▆▇▉★ 十 倍 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
]]);
end
function ontalk2811_1(npc,event,player)
if player:get_vcoin_bind() >= 100000 then
if player:num_bag_black() >= 1 then
player:sub_vcoin_bind(100000);
player:add_item(19117,1,0);
player:alert(110,0,0,"祈福成功,获得祈福红包");
g_alert(" 玩家【"..player:GetName().."】花了重金,祈福许愿并获得了祈福红包!",2,1000,0,1);
else
player:alert(10,0,0,"您背包不够1格,无法继续祈福哦!");
end
else
player:alert(10,0,0,"您没钱咯,祈福大使祝愿在新的一年里腰包满满的,赞助多多幸运多多!");
end
ontalk2811(npc,0,player);
end
function ontalk2811_3(npc,event,player)
if player:get_vcoin_bind() >= 1000000 then
if player:num_bag_black() >= 10 then
player:sub_vcoin_bind(1000000);
player:add_item(19117,10,0);
player:alert(110,0,0,"祈福成功,获得10张祈福红包");
g_alert(" 玩家【"..player:GetName().."】开启十倍祈福许愿,并获得了10张祈福红包!",2,1000,0,1);
else
player:alert(10,0,0,"您背包不够10格,无法继续祈福哦!");
end
else
player:alert(10,0,0,"您没钱咯,祈福大使祝愿在新的一年里腰包满满的,赞助多多幸运多多!");
end
ontalk2811(npc,0,player);
end
function ontalk2811_2(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
亲们,只要花上10W烈焰私服币就会获得祈福礼包一个,不限时间与次数。祈福多多,好运多多!
#&talk_line#&
▁▂▃▅▆▇▉★ 我 要 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
★ 祈 福 说 明 ★
#&talk_line#&
这里设置祈福条件,等相关说明
www.yeyo6.com 烈焰私服开服信息首选
]]);
end
Npc2811Funid =
{
[0] = ontalk2811;
[1] = ontalk2811_1;
[2] = ontalk2811_2;
[3] = ontalk2811_3;
[4] = ontalk2811_4;
[5] = ontalk2811_5;
[6] = ontalk2811_6;
[7] = ontalk2811_7;
[8] = ontalk2811_8;
[9] = ontalk2811_9;
[10] = ontalk2811_10;
[100] = ontalk2811_100;
[101] = ontalk2811_101;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc2811Funid[funid] ~= nil then
Npc2811Funid[funid](npc,event,player);
end
end
RegisterUnitEvent(2811,20,"ontalk2811")
RegisterUnitEvent(2811,29,"CreatureNpcFun")
--NPC的ID为2811,有冲突自己改,改的要彻底!
--自己添加物品和红包脚本。
function ontalk2811(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
页游咯发布站,www.yeyo6.com
#&talk_line#&
2015年新的一年即将到来,在这崭新的一年里,预祝大家生意兴荣,合家幸福。
来这里试试你在新的一年的手气如何,是不是最幸运的幸运儿呢,花费10万烈焰私服币祈福即可获得祈福红包,打开红包有几率出现顶级装备哦。
#&talk_line#&
▁▂▃▅▆▇▉★ 我 要 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
▁▂▃▅▆▇▉★ 十 倍 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
]]);
end
function ontalk2811_1(npc,event,player)
if player:get_vcoin_bind() >= 100000 then
if player:num_bag_black() >= 1 then
player:sub_vcoin_bind(100000);
player:add_item(19117,1,0);
player:alert(110,0,0,"祈福成功,获得祈福红包");
g_alert(" 玩家【"..player:GetName().."】花了重金,祈福许愿并获得了祈福红包!",2,1000,0,1);
else
player:alert(10,0,0,"您背包不够1格,无法继续祈福哦!");
end
else
player:alert(10,0,0,"您没钱咯,祈福大使祝愿在新的一年里腰包满满的,赞助多多幸运多多!");
end
ontalk2811(npc,0,player);
end
function ontalk2811_3(npc,event,player)
if player:get_vcoin_bind() >= 1000000 then
if player:num_bag_black() >= 10 then
player:sub_vcoin_bind(1000000);
player:add_item(19117,10,0);
player:alert(110,0,0,"祈福成功,获得10张祈福红包");
g_alert(" 玩家【"..player:GetName().."】开启十倍祈福许愿,并获得了10张祈福红包!",2,1000,0,1);
else
player:alert(10,0,0,"您背包不够10格,无法继续祈福哦!");
end
else
player:alert(10,0,0,"您没钱咯,祈福大使祝愿在新的一年里腰包满满的,赞助多多幸运多多!");
end
ontalk2811(npc,0,player);
end
function ontalk2811_2(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
亲们,只要花上10W烈焰私服币就会获得祈福礼包一个,不限时间与次数。祈福多多,好运多多!
#&talk_line#&
▁▂▃▅▆▇▉★ 我 要 祈 福 ★▉▇▆▅▃▂▁
#&talk_line#&
★ 祈 福 说 明 ★
#&talk_line#&
这里设置祈福条件,等相关说明
www.yeyo6.com 烈焰私服开服信息首选
]]);
end
Npc2811Funid =
{
[0] = ontalk2811;
[1] = ontalk2811_1;
[2] = ontalk2811_2;
[3] = ontalk2811_3;
[4] = ontalk2811_4;
[5] = ontalk2811_5;
[6] = ontalk2811_6;
[7] = ontalk2811_7;
[8] = ontalk2811_8;
[9] = ontalk2811_9;
[10] = ontalk2811_10;
[100] = ontalk2811_100;
[101] = ontalk2811_101;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc2811Funid[funid] ~= nil then
Npc2811Funid[funid](npc,event,player);
end
end
RegisterUnitEvent(2811,20,"ontalk2811")
RegisterUnitEvent(2811,29,"CreatureNpcFun")
- 上一篇:烈焰私服设置玩家宠物宝宝攻击其他玩家方法
- 下一篇:烈焰私服怪物BOSS复活脚本解析