您好!!!欢迎您的到来!!!

物品兑换VIP会员脚本分享



      如何在烈焰私服中设置物品换vip呢?小编这里分享给大家,只要把里面的玫瑰
编辑成自己喜欢的物品名称就可以了!!!


    烈焰私服服务端增加玫瑰兑换VIP会员脚本
 
function ontalk2016(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>新服活动:</b>
              <u><a href='event:M2402,20'>VIP等级-兑换提升</a></u>
 
              <u><a href='event:M2402,3'>宝藏积分兑换装备</a></u>
 
                <u><a href='event:M2402,6'>兑换特殊戒指</a></u>
]]);
local t = tonumber(os.date("%m%d",os.time()));
if t >= 0202 and t <= 0208 then
player:echo(0,npc:GetLowGUID(),[[
 
              <u><a href='event:M2402,11'>烈 焰 千 服 活 动</a></u>
]]);
end
end
 
function ontalk2016_20(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
<font color="#FFFF00">玫瑰·永恒爱念 出处:
--BOSS掉落,商城购买</font>
VIP1 玫瑰·永恒爱念x1 <u><a href='event:M2402,21'>兑换</a></u>
VIP2 玫瑰·永恒爱念x2 <u><a href='event:M2402,22'>兑换</a></u>
VIP3 玫瑰·永恒爱念x4 <u><a href='event:M2402,23'>兑换</a></u>
VIP4 玫瑰·永恒爱念x8 <u><a href='event:M2402,24'>兑换</a></u>
VIP5 玫瑰·永恒爱念x16 <u><a href='event:M2402,25'>兑换</a></u>
VIP6 玫瑰·永恒爱念x32 <u><a href='event:M2402,26'>兑换</a></u>
VIP7 玫瑰·永恒爱念x64 <u><a href='event:M2402,27'>兑换</a></u>
VIP8 玫瑰·永恒爱念x128 <u><a href='event:M2402,28'>兑换</a></u>
VIP9 玫瑰·永恒爱念x256 <u><a href='event:M2402,29'>兑换</a></u>
VIP10 玫瑰·永恒爱念x512 <u><a href='event:M2402,30'>兑换</a></u>
<u><a href='event:M2402,0'>返回首页</a></u>
]]);
end
 
function ontalk2016_21(npc,event,player)
if player:get_player_type() <= 0 then
if player:num_item(10198,1) >= 1 then
player:remove_item(10198,1);
player:set_vip_status(1,0,5);
player:set_situ_revive_num(2); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP1贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP1会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x1</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP1贵宾或超过VIP1,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_22(npc,event,player)
if player:get_player_type() == 0 then
player:alert(10,0,0,"您不是VIP贵宾,请先成为VIP贵宾1!");
elseif player:get_player_type() == 1 then
if player:num_item(10198,1) >= 2 then
player:remove_item(10198,2);
player:set_vip_status(2,0,5);
player:set_situ_revive_num(3); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP2贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP2会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x2</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP2贵宾或超过VIP2,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_23(npc,event,player)
if player:get_player_type() < 2 then
player:alert(10,0,0,"您不是VIP2贵宾,请先成为VIP贵宾2!");
elseif player:get_player_type() == 2 then
if player:num_item(10198,1) >= 4 then
player:remove_item(10198,4);
player:set_vip_status(3,0,5);
player:set_situ_revive_num(4); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP3贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP3会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x4</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP3贵宾或超过VIP3,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_24(npc,event,player)
if player:get_player_type() < 3 then
player:alert(10,0,0,"您不是VIP3贵宾,请先成为VIP贵宾3!");
elseif player:get_player_type() == 3 then
if player:num_item(10198,1) >= 8 then
player:remove_item(10198,8);
player:set_vip_status(4,0,5);
player:set_situ_revive_num(5); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP4贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP4会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x8</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP4贵宾或超过VIP4,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_25(npc,event,player)
if player:get_player_type() < 4 then
player:alert(10,0,0,"您不是VIP4贵宾,请先成为VIP贵宾4!");
elseif player:get_player_type() == 4 then
if player:num_item(10198,1) >= 16 then
player:remove_item(10198,16);
player:set_vip_status(5,0,5);
player:set_situ_revive_num(6); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP5贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP5会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x16</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP5贵宾或超过VIP5,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_26(npc,event,player)
if player:get_player_type() < 5 then
player:alert(10,0,0,"您不是VIP5贵宾,请先成为VIP贵宾5!");
elseif player:get_player_type() == 5 then
if player:num_item(10198,1) >= 32 then
player:remove_item(10198,32);
player:set_vip_status(6,0,5);
player:set_situ_revive_num(7); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP6贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x1</font>]在[福利官]兑换成为本服VIP6会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x32</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP6贵宾或超过VIP6,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_27(npc,event,player)
if player:get_player_type() < 6 then
player:alert(10,0,0,"您不是VIP6贵宾,请先成为VIP贵宾6!");
elseif player:get_player_type() == 6 then
if player:num_item(10198,1) >= 64 then
player:remove_item(10198,64);
player:set_vip_status(7,0,5);
player:set_situ_revive_num(8); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP7贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x3</font>]在[福利官]兑换成为本服VIP7会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x64</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP7贵宾或超过VIP7,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_28(npc,event,player)
if player:get_player_type() < 7 then
player:alert(10,0,0,"您不是VIP7贵宾,请先成为VIP贵宾7!");
elseif player:get_player_type() == 7 then
if player:num_item(10198,1) >= 128 then
player:remove_item(10198,128);
player:set_vip_status(8,0,5);
player:set_situ_revive_num(9); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP8贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x30</font>]在[福利官]兑换成为本服VIP8会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x128</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP8贵宾或超过VIP8,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
 
function ontalk2016_29(npc,event,player)
if player:get_player_type() < 8 then
player:alert(10,0,0,"您不是VIP8贵宾,请先成为VIP贵宾8!");
elseif player:get_player_type() == 8 then
if player:num_item(10198,1) >= 256 then
player:remove_item(10198,256);
player:set_vip_status(9,0,5);
player:set_situ_revive_num(10); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP9贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x30</font>]在[福利官]兑换成为本服VIP9会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x256</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP9贵宾或超过VIP9,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_30(npc,event,player)
if player:get_player_type() < 9 then
player:alert(10,0,0,"您不是VIP9贵宾,请先成为VIP贵宾9!");
elseif player:get_player_type() == 9 then
if player:num_item(10198,1) >= 512 then
player:remove_item(10198,512);
player:set_vip_status(10,0,5);
player:set_situ_revive_num(12); ------左下角VIP数字等级
player:alert(10,0,0,"恭喜您,成为VIP10贵宾!");
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]使用[玫瑰·永恒爱念<font color='#FF0000'>x30</font>]在[福利官]兑换成为本服VIP10会员!",2,1000,0,1);
else
player:alert(10,0,0,"您没有玫瑰·永恒爱念<font color='#FF0000'>x512</font>,兑换失败!");
end
else
player:alert(10,0,0,"您已经是的VIP10贵宾,兑换失败!");
end
ontalk2016_20(npc,0,player,0);
end
 
function ontalk2016_1(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 领取要求:<font color="#FF0000">免费领取武器</font>
 
#&item20017#&  白虎战剑 数量:1        <u><a href='event:M2402,101'>免费领取</a></u>
#&item20018#&  火灵法杖 数量:1        <u><a href='event:M2402,102'>免费领取</a></u>
#&item20019#&  青龙道剑 数量:1        <u><a href='event:M2402,103'>免费领取</a></u>
 
 
 
 
                                   <u><a href='event:M2402,0'>返回上页</a></u>
]]);
end
 
function ontalk2016_101(npc,event,player)
if g_get_day() <= 9 then
if player:get_vcoin_worth() >= 0 then ----检测充值元宝
if player:get_param(295) == 0 then ----检测是否领取过新区充值豪礼
if player:num_bag_black() >= 1 then ----检测背包数量
if player:get_job() == 1 then ----检测玩家职业
player:add_item(20017,1,0);                     ----战士70级武器
player:set_param(295,1);
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]在福利官领取了[新区充值豪礼],推广了10个群就领取了70级武器(70级对应职业武器)",2,1000,0,1);
else
player:alert(10,0,0,"职业不符");
end
else
player:alert(10,0,0,"您的背包空间不足1格,无法领取");
end
else
player:alert(10,0,0,"您已经领取过新区充值豪礼了");
end
else
player:alert(10,0,0,"累计充值20000元宝,才能领取新区充值豪礼");
end
else
player:alert(10,0,0,"只能在开区前10天领取");
end
ontalk2016_1(npc,0,player,0);
end
 
function ontalk2016_102(npc,event,player)
if g_get_day() <= 9 then
if player:get_vcoin_worth() >= 0 then ----检测充值元宝
if player:get_param(295) == 0 then ----检测是否领取过新区充值豪礼
if player:num_bag_black() >= 1 then ----检测背包数量
if player:get_job() == 2 then
player:add_item(20018,1,0);                     ----法师70级武器
player:set_param(295,1);
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]在福利官领取了[新区充值豪礼],推广了10个群就领取了70级武器(70级对应职业武器)",2,1000,0,1);
else
player:alert(10,0,0,"职业不符");
end
else
player:alert(10,0,0,"您的背包空间不足1格,无法领取");
end
else
player:alert(10,0,0,"您已经领取过新区充值豪礼了");
end
else
player:alert(10,0,0,"累计充值20000元宝,才能领取新区充值豪礼");
end
else
player:alert(10,0,0,"只能在开区前10天领取");
end
ontalk2016_1(npc,0,player,0);
end
 
function ontalk2016_103(npc,event,player)
if g_get_day() <= 9 then
if player:get_vcoin_worth() >= 0 then ----检测充值元宝
if player:get_param(295) == 0 then ----检测是否领取过新区充值豪礼
if player:num_bag_black() >= 1 then ----检测背包数量
if player:get_job() == 3 then
player:add_item(20019,1,0);                     ----道士70级武器
player:set_param(295,1);
g_alert("[<font color='#FF0000'>"..player:GetName().."</font>]在福利官领取了[新区充值豪礼],推广了10个群就领取了70级武器(70级对应职业武器)",2,1000,0,1);
else
player:alert(10,0,0,"职业不符");
end
else
player:alert(10,0,0,"您的背包空间不足1格,无法领取");
end
else
player:alert(10,0,0,"您已经领取过新区充值豪礼了");
end
else
player:alert(10,0,0,"累计充值20000元宝,才能领取新区充值豪礼");
end
else
player:alert(10,0,0,"只能在开区前10天领取");
end
ontalk2016_1(npc,0,player,0);
end
 
function ontalk2016_2(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
  <font color="#FF8000">50级奖励:</font>绑定金币300万+54级对应职业首饰1件
  <u><a href='event:M2402,201'>点击领取</a></u>              <font color="#FF0000">剩余名额:</font><font color="#FFFF00">]]..g_get_param(10)..[[/1500名</font>
#&talk_line#&
  <font color="#FF8000">60级奖励:</font>绑定金币700万+59级对应职业首饰1件
  <u><a href='event:M2402,202'>点击领取</a></u>              <font color="#FF0000">剩余名额:</font><font color="#FFFF00">]]..g_get_param(11)..[[/500名</font>
#&talk_line#&
  <font color="#FF8000">70级奖励:</font>绑定金币1200万+70级对应职业首饰1件
  <u><a href='event:M2402,203'>点击领取</a></u>              <font color="#FF0000">剩余名额:</font><font color="#FFFF00">]]..g_get_param(12)..[[/150名</font>
#&talk_line#&
  <font color="#FF8000">80级奖励:</font>绑定金币2000万+79级对应职业首饰1件
  <u><a href='event:M2402,204'>点击领取</a></u>              <font color="#FF0000">剩余名额:</font><font color="#FFFF00">]]..g_get_param(13)..[[/50名</font>
#&talk_line#&
<font color="#FF0000">冲级奖励前3名到达120奖励100W元宝
 
 
                                   <u><a href='event:M2402,0'>返回上页</a></u>
]]);
end
 
function ontalk2016_201(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 领取要求:<font color="#FF0000">达到50级</font>
 剩余名额:<font color="#FFFF00">]]..g_get_param(10)..[[/1500名</font>
 
#&item50013#&  战士奖励
#&item50014#&  法师奖励
#&item50015#&  道士奖励
 
 
                                   <u><a href='event:M2402,2011'>点击领取</a></u>
 
                                   <u><a href='event:M2402,2'>返回上页</a></u>
]]);
end
 
function ontalk2016_202(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 领取要求:<font color="#FF0000">达到60级</font>
 剩余名额:<font color="#FFFF00">]]..g_get_param(11)..[[/500名</font>
 
#&item50016#&  战士奖励
#&item50017#&  法师奖励
#&item50018#&  道士奖励
 
 
                                   <u><a href='event:M2402,2021'>点击领取</a></u>
 
                                   <u><a href='event:M2402,2'>返回上页</a></u>
]]);
end
 
function ontalk2016_203(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 领取要求:<font color="#FF0000">达到70级</font>
 剩余名额:<font color="#FFFF00">]]..g_get_param(12)..[[/150名</font>
 
#&item60022#&  战士奖励
#&item60023#&  法师奖励
#&item60024#&  道士奖励
 
 
                                   <u><a href='event:M2402,2031'>点击领取</a></u>
 
                                   <u><a href='event:M2402,2'>返回上页</a></u>
]]);
end
 
 
function ontalk2016_204(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 领取要求:<font color="#FF0000">达到80级</font>
 剩余名额:<font color="#FFFF00">]]..g_get_param(13)..[[/50名</font>
 
#&item50028#&  战士奖励
#&item50029#&  法师奖励
#&item50030#&  道士奖励
 
 
                                   <u><a href='event:M2402,2041'>点击领取</a></u>
 
                                   <u><a href='event:M2402,2'>返回上页</a></u>
]]);
end
 
 
function ontalk2016_2011(npc,event,player)
if player:get_level() >= 50 then
if g_get_param(10) < 1500 then
if player:get_param(350) == 0 then
if player:num_bag_black() >= 1 then
if player:get_job() == 1 then
player:add_gamemoney_bind(3000000);
player:add_item(50013,1,0);
player:set_param(350,1);
g_set_param(10,g_get_param(10) + 1);
player:alert(10,0,0,"领取新区50级冲级奖励");
end
if player:get_job() == 2 then
player:add_gamemoney_bind(3000000);
player:add_item(50014,1,0);
player:set_param(350,1);
g_set_param(10,g_get_param(10) + 1);
player:alert(10,0,0,"领取新区50级冲级奖励");
end
if player:get_job() == 3 then
player:add_gamemoney_bind(3000000);
player:add_item(50015,1,0);
player:set_param(350,1);
g_set_param(10,g_get_param(10) + 1);
player:alert(10,0,0,"领取新区50级冲级奖励");
end
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
ontalk2016_201(npc,0,player,0);
end
else
player:alert(10,0,0,"您已经领取过,新区50级冲级奖励了");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"50级冲级奖励名额已满");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"您的等级不足50级,无法领取奖励");
ontalk2016_201(npc,0,player,0);
end
end
 
 
function ontalk2016_2021(npc,event,player)
if player:get_level() >= 60 then
if g_get_param(11) < 500 then
if player:get_param(351) == 0 then
if player:num_bag_black() >= 1 then
if player:get_job() == 1 then
player:add_gamemoney_bind(7000000);
player:add_item(50016,1,0);
player:set_param(351,1);
g_set_param(11,g_get_param(11) + 1);
player:alert(10,0,0,"领取新区60级冲级奖励");
end
if player:get_job() == 2 then
player:add_gamemoney_bind(7000000);
player:add_item(50017,1,0);
player:set_param(351,1);
g_set_param(11,g_get_param(11) + 1);
player:alert(10,0,0,"领取新区60级冲级奖励");
end
if player:get_job() == 3 then
player:add_gamemoney_bind(7000000);
player:add_item(50018,1,0);
player:set_param(351,1);
g_set_param(11,g_get_param(11) + 1);
player:alert(10,0,0,"领取新区60级冲级奖励");
end
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
ontalk2016_202(npc,0,player,0);
end
else
player:alert(10,0,0,"您已经领取过,新区60级冲级奖励了");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"60级冲级奖励名额已满");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"您的等级不足60级,无法领取奖励");
ontalk2016_202(npc,0,player,0);
end
 
end
 
 
function ontalk2016_2031(npc,event,player)
if player:get_level() >= 70 then
if g_get_param(12) < 150 then
if player:get_param(352) == 0 then
if player:num_bag_black() >= 1 then
if player:get_job() == 1 then
player:add_gamemoney_bind(12000000);
player:add_item(60022,1,0);
player:set_param(352,1);
g_set_param(12,g_get_param(12) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了70级冲级奖励");
player:alert(10,0,0,"领取新区70级冲级奖励");
end
if player:get_job() == 2 then
player:add_gamemoney_bind(12000000);
player:add_item(60023,1,0);
player:set_param(352,1);
g_set_param(12,g_get_param(12) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了70级冲级奖励");
player:alert(10,0,0,"领取新区70级冲级奖励");
end
if player:get_job() == 3 then
player:add_gamemoney_bind(12000000);
player:add_item(60024,1,0);
player:set_param(352,1);
g_set_param(12,g_get_param(12) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了70级冲级奖励");
player:alert(10,0,0,"领取新区70级冲级奖励");
end
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
ontalk2016_203(npc,0,player,0);
end
else
player:alert(10,0,0,"您已经领取过,新区70级冲级奖励了");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"70级冲级奖励名额已满");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"您的等级不足70级,无法领取奖励");
ontalk2016_203(npc,0,player,0);
end
 
end
 
 
function ontalk2016_2041(npc,event,player)
if player:get_level() >= 80 then
if g_get_param(13) < 50 then
if player:get_param(353) == 0 then
if player:num_bag_black() >= 1 then
if player:get_job() == 1 then
player:add_gamemoney_bind(20000000);
player:add_item(50028,1,0);
player:set_param(353,1);
g_set_param(13,g_get_param(13) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了80级冲级奖励");
player:alert(10,0,0,"领取新区80级冲级奖励");
end
if player:get_job() == 2 then
player:add_gamemoney_bind(20000000);
player:add_item(50029,1,0);
player:set_param(353,1);
g_set_param(13,g_get_param(13) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了80级冲级奖励");
player:alert(10,0,0,"领取新区80级冲级奖励");
end
if player:get_job() == 3 then
player:add_gamemoney_bind(20000000);
player:add_item(50030,1,0);
player:set_param(353,1);
g_set_param(13,g_get_param(13) + 1);
player:alert(4,1000,1,"玩家["..player:GetName().."]领取了80级冲级奖励");
player:alert(10,0,0,"领取新区80级冲级奖励");
end
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
ontalk2016_204(npc,0,player,0);
end
else
player:alert(10,0,0,"您已经领取过,新区80级冲级奖励了");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"80级冲级奖励名额已满");
ontalk2016_2(npc,0,player,0);
end
else
player:alert(10,0,0,"您的等级不足80级,无法领取奖励");
ontalk2016_204(npc,0,player,0);
end
end
 
function ontalk2016_3(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
#&talk_line#&
 <u><a href='event:M2402,300'>宝藏积分兑换神石碎片</a></u>
#&talk_line#&
 <u><a href='event:M2402,304'>宝藏积分兑换魂珠碎片</a></u>
#&talk_line#&
                                   <u><a href='event:M2402,0'>返回上页</a></u>
]]);
end
 
function ontalk2016_300(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item10122#&  <font color="#FFFF00">兑换需要50宝藏积分</font>      <u><a href='event:M2402,3001'>兑换</a></u>
#&item10123#&  <font color="#FFFF00">兑换需要200宝藏积分</font>     <u><a href='event:M2402,3002'>兑换</a></u>
#&item10124#&  <font color="#FFFF00">兑换需要600宝藏积分</font>    <u><a href='event:M2402,3003'>兑换</a></u>
 
                                   <u><a href='event:M2402,3'>返回首页</a></u>
]]);
end
 
function ontalk2016_3001(npc,event,player)
if player:get_param(261) >= 50 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 50);
player:add_item(10122,1,1)
player:alert(10,0,0,"获得(神石碎片(小))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足50,不能兑换");
end
ontalk2016_300(npc,0,player,0);
end
 
function ontalk2016_3002(npc,event,player)
if player:get_param(261) >= 200 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 200);
player:add_item(10123,1,1)
player:alert(10,0,0,"获得(神石碎片(中))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
ontalk2016_300(npc,0,player,0);
end
 
function ontalk2016_3003(npc,event,player)
if player:get_param(261) >= 600 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 600);
player:add_item(10124,1,1)
player:alert(10,0,0,"获得(神石碎片(大))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
ontalk2016_300(npc,0,player,0);
end
 
 
function ontalk2016_360(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item10073#&  <font color="#FFFF00">兑换需要1宝藏积分</font>      <u><a href='event:M2402,3601'>兑换</a></u>
#&item10074#&  <font color="#FFFF00">兑换需要2宝藏积分</font>      <u><a href='event:M2402,3602'>兑换</a></u>
 
                                   <u><a href='event:M2402,3'>返回首页</a></u>
]]);
end
 
 
function ontalk2016_3601(npc,event,player)
if player:get_param(261) >= 1 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 1);
player:add_item(10073,1,1)
player:alert(10,0,0,"获得【招财进宝(中)】");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足1,不能兑换");
end
ontalk2016_360(npc,0,player,0);
end
 
function ontalk2016_3602(npc,event,player)
if player:get_param(261) >= 2 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 2);
player:add_item(10074,1,1)
player:alert(10,0,0,"获得【招财进宝(大)】");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足2,不能兑换");
end
ontalk2016_360(npc,0,player,0);
end
 
 
 
function ontalk2016_301(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换战魂装备</b>
 
#&item60022#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3011'>兑换</a></u>
#&item40022#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3012'>兑换</a></u>
#&item90022#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3013'>兑换</a></u>
#&item100022#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3014'>兑换</a></u>
                               <u><a href='event:M2402,302'>兑换法魂装备</a></u>
 
                               <u><a href='event:M2402,303'>兑换玄魂装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3011(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(60022,1,0)
player:alert(10,0,0,"获得(战魂手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10,不能兑换");
end
ontalk2016_301(npc,0,player,0);
end
 
function ontalk2016_3012(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(40022,1,0)
player:alert(10,0,0,"获得(战魂头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_301(npc,0,player,0);
end
 
function ontalk2016_3013(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(90022,1,0)
player:alert(10,0,0,"获得(战魂腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_301(npc,0,player,0);
end
 
function ontalk2016_3014(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(100022,1,0)
player:alert(10,0,0,"获得(战魂靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_301(npc,0,player,0);
end
 
function ontalk2016_302(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[个</b>
 <b>兑换法魂装备</b>
 
#&item60023#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3021'>兑换</a></u>
#&item40023#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3022'>兑换</a></u>
#&item90023#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3023'>兑换</a></u>
#&item100023#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3024'>兑换</a></u>
                               <u><a href='event:M2402,301'>兑换战魂装备</a></u>
 
                               <u><a href='event:M2402,303'>兑换玄魂装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
 
function ontalk2016_3021(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(60023,1,0)
player:alert(10,0,0,"获得(法魂手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_302(npc,0,player,0);
end
 
function ontalk2016_3022(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(40023,1,0)
player:alert(10,0,0,"获得(法魂头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_302(npc,0,player,0);
end
 
function ontalk2016_3023(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(90023,1,0)
player:alert(10,0,0,"获得(法魂腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_302(npc,0,player,0);
end
 
function ontalk2016_3024(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(100023,1,0)
player:alert(10,0,0,"获得(法魂靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_302(npc,0,player,0);
end
 
 
function ontalk2016_303(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[个</b>
 <b>兑换玄魂装备</b>
 
#&item60024#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3031'>兑换</a></u>
#&item40024#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3032'>兑换</a></u>
#&item90024#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3033'>兑换</a></u>
#&item100024#&  <font color="#FFFF00">兑换需要10宝藏积分</font>    <u><a href='event:M2402,3034'>兑换</a></u>
                               <u><a href='event:M2402,301'>兑换战魂装备</a></u>
 
                               <u><a href='event:M2402,302'>兑换法魂装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3031(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(60024,1,0)
player:alert(10,0,0,"获得(玄魂手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_303(npc,0,player,0);
end
 
function ontalk2016_3032(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(40024,1,0)
player:alert(10,0,0,"获得(玄魂头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_303(npc,0,player,0);
end
 
function ontalk2016_3033(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(90024,1,0)
player:alert(10,0,0,"获得(玄魂腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_303(npc,0,player,0);
end
 
function ontalk2016_3034(npc,event,player)
if player:get_param(261) >= 10 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 10);
player:add_item(100024,1,0)
player:alert(10,0,0,"获得(玄魂靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
ontalk2016_303(npc,0,player,0);
end
 
 
function ontalk2016_304(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item10125#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3041'>兑换</a></u>
#&item10126#&  <font color="#FFFF00">兑换需要300宝藏积分</font>    <u><a href='event:M2402,3042'>兑换</a></u>
#&item10127#&  <font color="#FFFF00">兑换需要800宝藏积分</font>    <u><a href='event:M2402,3043'>兑换</a></u>
 
 
                                   <u><a href='event:M2402,3'>返回首页</a></u>
]]);
end
 
function ontalk2016_3041(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(10125,1,1)
player:alert(10,0,0,"获得(魂珠碎片(小))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足100,不能兑换");
end
ontalk2016_304(npc,0,player,0);
end
 
function ontalk2016_3042(npc,event,player)
if player:get_param(261) >= 300 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 300);
player:add_item(10126,1,1)
player:alert(10,0,0,"获得(魂珠碎片(中))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足300,不能兑换");
end
ontalk2016_304(npc,0,player,0);
end
 
function ontalk2016_3043(npc,event,player)
if player:get_param(261) >= 800 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 800);
player:add_item(10127,1,1)
player:alert(10,0,0,"获得(魂珠碎片(大))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
else
player:alert(10,0,0,"您的宝藏积分不足800,不能兑换");
end
ontalk2016_304(npc,0,player,0);
end
 
 
function ontalk2016_307(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换雷龙装备</b>
 
#&item50028#&  <font color="#FFFF00">需要赤月戒指+20积分</font>    <u><a href='event:M2402,3071'>兑换</a></u>
#&item70028#&  <font color="#FFFF00">需要赤月项链+20积分</font>    <u><a href='event:M2402,3072'>兑换</a></u>
#&item90028#&  <font color="#FFFF00">需要赤月腰带+20积分</font>    <u><a href='event:M2402,3073'>兑换</a></u>
#&item100028#&  <font color="#FFFF00">需要赤月靴子+20积分</font>    <u><a href='event:M2402,3074'>兑换</a></u>
                               <u><a href='event:M2402,308'>兑换炎龙装备</a></u>
 
                               <u><a href='event:M2402,309'>兑换青龙装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3071(npc,event,player)
if player:num_item(50025,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(50025,50028,1);
player:alert(10,0,0,"获得(雷龙戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有赤月戒指,不能兑换");
end
ontalk2016_307(npc,0,player,0);
end
 
function ontalk2016_3072(npc,event,player)
if player:num_item(70025,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(70025,70028,1);
player:alert(10,0,0,"获得(雷龙项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有赤月项链,不能兑换");
end
ontalk2016_307(npc,0,player,0);
end
 
function ontalk2016_3073(npc,event,player)
if player:num_item(90025,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(90025,90028,1);
player:alert(10,0,0,"获得(雷龙腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有赤月腰带,不能兑换");
end
ontalk2016_307(npc,0,player,0);
end
 
function ontalk2016_3074(npc,event,player)
if player:num_item(100025,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(100025,100028,1);
player:alert(10,0,0,"获得(雷龙靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有赤月靴子,不能兑换");
end
ontalk2016_307(npc,0,player,0);
end
 
function ontalk2016_308(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换炎龙装备</b>
 
#&item50029#&  <font color="#FFFF00">需要冥月戒指+20积分</font>    <u><a href='event:M2402,3081'>兑换</a></u>
#&item70029#&  <font color="#FFFF00">需要冥月项链+20积分</font>    <u><a href='event:M2402,3082'>兑换</a></u>
#&item90029#&  <font color="#FFFF00">需要冥月腰带+20积分</font>    <u><a href='event:M2402,3083'>兑换</a></u>
#&item100029#&  <font color="#FFFF00">需要冥月靴子+20积分</font>    <u><a href='event:M2402,3084'>兑换</a></u>
                               <u><a href='event:M2402,307'>兑换雷龙装备</a></u>
 
                               <u><a href='event:M2402,309'>兑换青龙装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3081(npc,event,player)
if player:num_item(50026,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(50026,50029,1);
player:alert(10,0,0,"获得(炎龙戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有冥月戒指,不能兑换");
end
ontalk2016_308(npc,0,player,0);
end
 
function ontalk2016_3082(npc,event,player)
if player:num_item(70026,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(70026,70029,1);
player:alert(10,0,0,"获得(炎龙项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有冥月项链,不能兑换");
end
ontalk2016_308(npc,0,player,0);
end
 
function ontalk2016_3083(npc,event,player)
if player:num_item(90026,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(90026,90029,1);
player:alert(10,0,0,"获得(炎龙腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有冥月腰带,不能兑换");
end
ontalk2016_308(npc,0,player,0);
end
 
function ontalk2016_3084(npc,event,player)
if player:num_item(100026,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(100026,100029,1);
player:alert(10,0,0,"获得(炎龙靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有冥月靴子,不能兑换");
end
ontalk2016_308(npc,0,player,0);
end
 
function ontalk2016_309(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换青龙装备</b>
 
#&item50030#&  <font color="#FFFF00">需要玄月戒指+20积分</font>    <u><a href='event:M2402,3091'>兑换</a></u>
#&item70030#&  <font color="#FFFF00">需要玄月项链+20积分</font>    <u><a href='event:M2402,3092'>兑换</a></u>
#&item90030#&  <font color="#FFFF00">需要玄月腰带+20积分</font>    <u><a href='event:M2402,3093'>兑换</a></u>
#&item100030#&  <font color="#FFFF00">需要玄月靴子+20积分</font>    <u><a href='event:M2402,3094'>兑换</a></u>
                               <u><a href='event:M2402,307'>兑换雷龙装备</a></u>
 
                               <u><a href='event:M2402,308'>兑换炎龙装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3091(npc,event,player)
if player:num_item(50027,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(50027,50030,1);
player:alert(10,0,0,"获得(青龙戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有玄月戒指,不能兑换");
end
ontalk2016_309(npc,0,player,0);
end
 
function ontalk2016_3092(npc,event,player)
if player:num_item(70027,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(70027,70030,1);
player:alert(10,0,0,"获得(青龙项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有玄月项链,不能兑换");
end
ontalk2016_309(npc,0,player,0);
end
 
function ontalk2016_3093(npc,event,player)
if player:num_item(90027,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(90027,90030,1);
player:alert(10,0,0,"获得(青龙腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有玄月腰带,不能兑换");
end
ontalk2016_309(npc,0,player,0);
end
 
function ontalk2016_3094(npc,event,player)
if player:num_item(100027,1) >= 1 then
if player:get_param(261) >= 20 then
player:set_param(261,player:get_param(261) - 20);
player:update_item(100027,100030,1);
player:alert(10,0,0,"获得(青龙靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足20,不能兑换");
end
else
player:alert(10,0,0,"您没有玄月靴子,不能兑换");
end
ontalk2016_309(npc,0,player,0);
end
 
function ontalk2016_310(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换战圣装备</b>
 
#&item40031#&  <font color="#FFFF00">需要雷龙头盔+25积分</font>    <u><a href='event:M2402,3101'>兑换</a></u>
#&item60031#&  <font color="#FFFF00">需要雷龙手镯+25积分</font>    <u><a href='event:M2402,3102'>兑换</a></u>
#&item90031#&  <font color="#FFFF00">需要雷龙腰带+25积分</font>    <u><a href='event:M2402,3103'>兑换</a></u>
#&item100031#&  <font color="#FFFF00">需要雷龙靴子+25积分</font>    <u><a href='event:M2402,3104'>兑换</a></u>
                               <u><a href='event:M2402,311'>兑换法圣装备</a></u>
 
                               <u><a href='event:M2402,312'>兑换道圣装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3101(npc,event,player)
if player:num_item(40028,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(40028,40031,1);
player:alert(10,0,0,"获得(战圣头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有雷龙头盔,不能兑换");
end
ontalk2016_310(npc,0,player,0);
end
 
function ontalk2016_3102(npc,event,player)
if player:num_item(60028,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(60028,60031,1);
player:alert(10,0,0,"获得(战圣手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有雷龙手镯,不能兑换");
end
ontalk2016_310(npc,0,player,0);
end
 
function ontalk2016_3103(npc,event,player)
if player:num_item(90028,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(90028,90031,1);
player:alert(10,0,0,"获得(战圣腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有雷龙腰带,不能兑换");
end
ontalk2016_310(npc,0,player,0);
end
 
function ontalk2016_3104(npc,event,player)
if player:num_item(100028,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(100028,100031,1);
player:alert(10,0,0,"获得(战圣靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有雷龙靴子,不能兑换");
end
ontalk2016_310(npc,0,player,0);
end
 
function ontalk2016_311(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换法圣装备</b>
 
#&item40032#&  <font color="#FFFF00">需要炎龙头盔+25积分</font>    <u><a href='event:M2402,3111'>兑换</a></u>
#&item60032#&  <font color="#FFFF00">需要炎龙手镯+25积分</font>    <u><a href='event:M2402,3112'>兑换</a></u>
#&item90032#&  <font color="#FFFF00">需要炎龙腰带+25积分</font>    <u><a href='event:M2402,3113'>兑换</a></u>
#&item100032#&  <font color="#FFFF00">需要炎龙靴子+25积分</font>    <u><a href='event:M2402,3114'>兑换</a></u>
                               <u><a href='event:M2402,310'>兑换战圣装备</a></u>
 
                               <u><a href='event:M2402,312'>兑换道圣装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3111(npc,event,player)
if player:num_item(40029,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(40029,40032,1);
player:alert(10,0,0,"获得(法圣头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有炎龙头盔,不能兑换");
end
ontalk2016_311(npc,0,player,0);
end
 
function ontalk2016_3112(npc,event,player)
if player:num_item(60029,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(60029,60032,1);
player:alert(10,0,0,"获得(法圣手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有炎龙手镯,不能兑换");
end
ontalk2016_311(npc,0,player,0);
end
 
function ontalk2016_3113(npc,event,player)
if player:num_item(90029,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(90029,90032,1);
player:alert(10,0,0,"获得(法圣腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有炎龙腰带,不能兑换");
end
ontalk2016_311(npc,0,player,0);
end
 
function ontalk2016_3114(npc,event,player)
if player:num_item(100029,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(100029,100032,1);
player:alert(10,0,0,"获得(法圣靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有炎龙靴子,不能兑换");
end
ontalk2016_311(npc,0,player,0);
end
 
function ontalk2016_312(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换道圣装备</b>
 
#&item40033#&  <font color="#FFFF00">需要青龙头盔+25积分</font>    <u><a href='event:M2402,3121'>兑换</a></u>
#&item60033#&  <font color="#FFFF00">需要青龙手镯+25积分</font>    <u><a href='event:M2402,3122'>兑换</a></u>
#&item90033#&  <font color="#FFFF00">需要青龙腰带+25积分</font>    <u><a href='event:M2402,3123'>兑换</a></u>
#&item100033#&  <font color="#FFFF00">需要青龙靴子+25积分</font>    <u><a href='event:M2402,3124'>兑换</a></u>
                               <u><a href='event:M2402,310'>兑换战圣装备</a></u>
 
                               <u><a href='event:M2402,311'>兑换法圣装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3121(npc,event,player)
if player:num_item(40030,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(40030,40033,1);
player:alert(10,0,0,"获得(道圣头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有青龙头盔,不能兑换");
end
ontalk2016_312(npc,0,player,0);
end
 
function ontalk2016_3122(npc,event,player)
if player:num_item(60030,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(60030,60033,1);
player:alert(10,0,0,"获得(道圣手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有青龙手镯,不能兑换");
end
ontalk2016_312(npc,0,player,0);
end
 
function ontalk2016_3123(npc,event,player)
if player:num_item(90030,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(90030,90033,1);
player:alert(10,0,0,"获得(道圣腰带)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有青龙腰带,不能兑换");
end
ontalk2016_312(npc,0,player,0);
end
 
function ontalk2016_3124(npc,event,player)
if player:num_item(100030,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(100030,100033,1);
player:alert(10,0,0,"获得(道圣靴子)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25,不能兑换");
end
else
player:alert(10,0,0,"您没有青龙靴子,不能兑换");
end
ontalk2016_312(npc,0,player,0);
end
 
function ontalk2016_313(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换真武装备</b>
 
#&item40204#&  <font color="#FFFF00">需要战圣头盔+35积分</font>    <u><a href='event:M2402,3131'>兑换</a></u>
#&item50204#&  <font color="#FFFF00">需要战圣戒指+35积分</font>    <u><a href='event:M2402,3132'>兑换</a></u>
#&item60204#&  <font color="#FFFF00">需要战圣手镯+35积分</font>    <u><a href='event:M2402,3133'>兑换</a></u>
#&item70204#&  <font color="#FFFF00">需要战圣项链+35积分</font>    <u><a href='event:M2402,3134'>兑换</a></u>
                               <u><a href='event:M2402,314'>兑换真魔装备</a></u>
 
                               <u><a href='event:M2402,315'>兑换真灵装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3131(npc,event,player)
if player:num_item(40031,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(40031,40204,1);
player:alert(10,0,0,"获得(真武头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣头盔,不能兑换");
end
ontalk2016_313(npc,0,player,0);
end
 
function ontalk2016_3132(npc,event,player)
if player:num_item(50031,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(50031,50204,1);
player:alert(10,0,0,"获得(真武戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣戒指,不能兑换");
end
ontalk2016_313(npc,0,player,0);
end
 
function ontalk2016_3133(npc,event,player)
if player:num_item(60031,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(60031,60204,1);
player:alert(10,0,0,"获得(真武手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣手镯,不能兑换");
end
ontalk2016_313(npc,0,player,0);
end
 
function ontalk2016_3134(npc,event,player)
if player:num_item(70031,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(70031,70204,1);
player:alert(10,0,0,"获得(真武项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣项链,不能兑换");
end
ontalk2016_313(npc,0,player,0);
end
 
function ontalk2016_314(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换真魔装备</b>
 
#&item40205#&  <font color="#FFFF00">需要法圣头盔+35积分</font>    <u><a href='event:M2402,3141'>兑换</a></u>
#&item50205#&  <font color="#FFFF00">需要法圣戒指+35积分</font>    <u><a href='event:M2402,3142'>兑换</a></u>
#&item60205#&  <font color="#FFFF00">需要法圣手镯+35积分</font>    <u><a href='event:M2402,3143'>兑换</a></u>
#&item70205#&  <font color="#FFFF00">需要法圣项链+35积分</font>    <u><a href='event:M2402,3144'>兑换</a></u>
                               <u><a href='event:M2402,313'>兑换真武装备</a></u>
 
                               <u><a href='event:M2402,315'>兑换真灵装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3141(npc,event,player)
if player:num_item(40032,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(40032,40205,1);
player:alert(10,0,0,"获得(真魔头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣头盔,不能兑换");
end
ontalk2016_314(npc,0,player,0);
end
 
function ontalk2016_3142(npc,event,player)
if player:num_item(50032,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(50032,50205,1);
player:alert(10,0,0,"获得(真魔戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣戒指,不能兑换");
end
ontalk2016_314(npc,0,player,0);
end
 
function ontalk2016_3143(npc,event,player)
if player:num_item(60032,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(60032,60205,1);
player:alert(10,0,0,"获得(真魔手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣手镯,不能兑换");
end
ontalk2016_314(npc,0,player,0);
end
 
function ontalk2016_3144(npc,event,player)
if player:num_item(70032,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(70032,70205,1);
player:alert(10,0,0,"获得(真魔项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣项链,不能兑换");
end
ontalk2016_314(npc,0,player,0);
end
 
function ontalk2016_315(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 <b>兑换真灵装备</b>
 
#&item40206#&  <font color="#FFFF00">需要道圣头盔+35积分</font>    <u><a href='event:M2402,3151'>兑换</a></u>
#&item50206#&  <font color="#FFFF00">需要道圣戒指+35积分</font>    <u><a href='event:M2402,3152'>兑换</a></u>
#&item60206#&  <font color="#FFFF00">需要道圣手镯+35积分</font>    <u><a href='event:M2402,3153'>兑换</a></u>
#&item70206#&  <font color="#FFFF00">需要道圣项链+35积分</font>    <u><a href='event:M2402,3154'>兑换</a></u>
                               <u><a href='event:M2402,313'>兑换真武装备</a></u>
 
                               <u><a href='event:M2402,314'>兑换真魔装备</a></u>
 
                                   <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3151(npc,event,player)
if player:num_item(40033,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(40033,40206,1);
player:alert(10,0,0,"获得(真灵头盔)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣头盔,不能兑换");
end
ontalk2016_315(npc,0,player,0);
end
 
function ontalk2016_3152(npc,event,player)
if player:num_item(50033,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(50033,50206,1);
player:alert(10,0,0,"获得(真灵戒指)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣戒指,不能兑换");
end
ontalk2016_315(npc,0,player,0);
end
 
function ontalk2016_3153(npc,event,player)
if player:num_item(60033,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(60033,60206,1);
player:alert(10,0,0,"获得(真灵手镯)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣手镯,不能兑换");
end
ontalk2016_315(npc,0,player,0);
end
 
function ontalk2016_3154(npc,event,player)
if player:num_item(70033,1) >= 1 then
if player:get_param(261) >= 35 then
player:set_param(261,player:get_param(261) - 35);
player:update_item(70033,70206,1);
player:alert(10,0,0,"获得(真灵项链)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足35,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣项链,不能兑换");
end
ontalk2016_315(npc,0,player,0);
end
 
 
 
function ontalk2016_370(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item20020#&  <font color="#FFFF00">需要150宝藏积分</font>    <u><a href='event:M2402,3701'>兑换</a></u>
#&item20021#&  <font color="#FFFF00">需要150宝藏积分</font>    <u><a href='event:M2402,3702'>兑换</a></u>
#&item20022#&  <font color="#FFFF00">需要150宝藏积分</font>    <u><a href='event:M2402,3703'>兑换</a></u>
#&item20023#&  <font color="#FFFF00">需要魔龙战刃+200积分</font>    <u><a href='event:M2402,3704'>兑换</a></u>
#&item20024#&  <font color="#FFFF00">需要魔龙法杖+200积分</font>    <u><a href='event:M2402,3705'>兑换</a></u>
#&item20025#&  <font color="#FFFF00">需要魔龙道剑+200积分</font>    <u><a href='event:M2402,3706'>兑换</a></u>
                         <u><a href='event:M2402,371'>下一页</a></u>    <u><a href='event:M2402,3'>返回首页</a></u>
]]);
end
 
function ontalk2016_3701(npc,event,player)
if player:get_param(261) >= 150 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 150);
player:add_item(20020,1,0)
player:alert(10,0,0,"获得(魔龙战刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足150个,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_3702(npc,event,player)
if player:get_param(261) >= 150 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 150);
player:add_item(20021,1,0)
player:alert(10,0,0,"获得(魔龙法杖)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足150个,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_3703(npc,event,player)
if player:get_param(261) >= 150 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 150);
player:add_item(20022,1,0)
player:alert(10,0,0,"获得(魔龙道剑)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足150个,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_3704(npc,event,player)
if player:num_item(20020,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20020,20023,1);
player:alert(10,0,0,"获得(龙魂战刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有魔龙战刃,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_3705(npc,event,player)
if player:num_item(20021,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20021,20024,1);
player:alert(10,0,0,"获得(龙魂法杖)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有魔龙法杖,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_3706(npc,event,player)
if player:num_item(20022,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20022,20025,1);
player:alert(10,0,0,"获得(龙魂道扇)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有魔龙道剑,不能兑换");
end
ontalk2016_370(npc,0,player,0);
end
 
function ontalk2016_371(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item20101#&  <font color="#FFFF00">需要龙魂战刃+200积分</font>    <u><a href='event:M2402,3711'>兑换</a></u>
#&item20102#&  <font color="#FFFF00">需要龙魂法杖+200积分</font>    <u><a href='event:M2402,3712'>兑换</a></u>
#&item20103#&  <font color="#FFFF00">需要龙魂道扇+200积分</font>    <u><a href='event:M2402,3713'>兑换</a></u>
#&item20104#&  <font color="#FFFF00">需要战魂之刃+300积分</font>    <u><a href='event:M2402,3714'>兑换</a></u>
#&item20105#&  <font color="#FFFF00">需要魔魂之怒+300积分</font>    <u><a href='event:M2402,3715'>兑换</a></u>
#&item20106#&  <font color="#FFFF00">需要道魂之剑+300积分</font>    <u><a href='event:M2402,3716'>兑换</a></u>
                         <u><a href='event:M2402,370'>上一页</a></u>    <u><a href='event:M2402,372'>下一页</a></u>
]]);
end
 
function ontalk2016_3711(npc,event,player)
if player:num_item(20023,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20023,20101,1);
player:alert(10,0,0,"获得(战魂之刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有龙魂战刃,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_3712(npc,event,player)
if player:num_item(20024,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20024,20102,1);
player:alert(10,0,0,"获得(魔魂之怒)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有龙魂法杖,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_3713(npc,event,player)
if player:num_item(20025,1) >= 1 then
if player:get_param(261) >= 200 then
player:set_param(261,player:get_param(261) - 200);
player:update_item(20025,20103,1);
player:alert(10,0,0,"获得(道魂之剑)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足200,不能兑换");
end
else
player:alert(10,0,0,"您没有龙魂道扇,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_3714(npc,event,player)
if player:num_item(20101,1) >= 1 then
if player:get_param(261) >= 300 then
player:set_param(261,player:get_param(261) - 300);
player:update_item(20101,20104,1);
player:alert(10,0,0,"获得(武神战刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足300,不能兑换");
end
else
player:alert(10,0,0,"您没有战魂之刃,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_3715(npc,event,player)
if player:num_item(20102,1) >= 1 then
if player:get_param(261) >= 300 then
player:set_param(261,player:get_param(261) - 300);
player:update_item(20102,20105,1);
player:alert(10,0,0,"获得(魔神法杖)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足300,不能兑换");
end
else
player:alert(10,0,0,"您没有魔魂之怒,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_3716(npc,event,player)
if player:num_item(20103,1) >= 1 then
if player:get_param(261) >= 300 then
player:set_param(261,player:get_param(261) - 300);
player:update_item(20103,20106,1);
player:alert(10,0,0,"获得(玄尊道剑)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足300,不能兑换");
end
else
player:alert(10,0,0,"您没有道魂之剑,不能兑换");
end
ontalk2016_371(npc,0,player,0);
end
 
function ontalk2016_372(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item20107#&  <font color="#FFFF00">需要武神战刃+450积分</font>    <u><a href='event:M2402,3721'>兑换</a></u>
#&item20108#&  <font color="#FFFF00">需要魔神法杖+450积分</font>    <u><a href='event:M2402,3722'>兑换</a></u>
#&item20109#&  <font color="#FFFF00">需要玄尊道剑+450积分</font>    <u><a href='event:M2402,3723'>兑换</a></u>
#&item20110#&  <font color="#FFFF00">需要神灵战刃+650积分</font>    <u><a href='event:M2402,3724'>兑换</a></u>
#&item20111#&  <font color="#FFFF00">需要神灵法杖+650积分</font>    <u><a href='event:M2402,3725'>兑换</a></u>
#&item20112#&  <font color="#FFFF00">需要神灵道剑+650积分</font>    <u><a href='event:M2402,3726'>兑换</a></u>
                         <u><a href='event:M2402,371'>上一页</a></u>    <u><a href='event:M2402,3'>返回首页</a></u>
]]);
end
 
function ontalk2016_3721(npc,event,player)
if player:num_item(20104,1) >= 1 then
if player:get_param(261) >= 450 then
player:set_param(261,player:get_param(261) - 450);
player:update_item(20104,20107,1);
player:alert(10,0,0,"获得(神灵战刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足450,不能兑换");
end
else
player:alert(10,0,0,"您没有武神战刃,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_3722(npc,event,player)
if player:num_item(20105,1) >= 1 then
if player:get_param(261) >= 450 then
player:set_param(261,player:get_param(261) - 450);
player:update_item(20105,20108,1);
player:alert(10,0,0,"获得(神灵法杖)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足450,不能兑换");
end
else
player:alert(10,0,0,"您没有魔神法杖,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_3723(npc,event,player)
if player:num_item(20106,1) >= 1 then
if player:get_param(261) >= 450 then
player:set_param(261,player:get_param(261) - 450);
player:update_item(20106,20109,1);
player:alert(10,0,0,"获得(神灵道剑)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足450,不能兑换");
end
else
player:alert(10,0,0,"您没有玄尊道剑,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_3724(npc,event,player)
if player:num_item(20107,1) >= 1 then
if player:get_param(261) >= 650 then
player:set_param(261,player:get_param(261) - 650);
player:update_item(20107,20110,1);
player:alert(10,0,0,"获得(神龙战刃)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足650,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵战刃,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_3725(npc,event,player)
if player:num_item(20108,1) >= 1 then
if player:get_param(261) >= 650 then
player:set_param(261,player:get_param(261) - 650);
player:update_item(20108,20111,1);
player:alert(10,0,0,"获得(神龙法杖)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足650,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵法杖,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_3726(npc,event,player)
if player:num_item(20109,1) >= 1 then
if player:get_param(261) >= 650 then
player:set_param(261,player:get_param(261) - 650);
player:update_item(20109,20112,1);
player:alert(10,0,0,"获得(神龙道剑)");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足650,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵道剑,不能兑换");
end
ontalk2016_372(npc,0,player,0);
end
 
function ontalk2016_380(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30035#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3801'>兑换</a></u>
#&item30036#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3802'>兑换</a></u>
#&item30037#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3803'>兑换</a></u>
#&item30038#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3804'>兑换</a></u>
#&item30039#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3805'>兑换</a></u>
#&item30040#&  <font color="#FFFF00">兑换需要100宝藏积分</font>    <u><a href='event:M2402,3806'>兑换</a></u>
                         <u><a href='event:M2402,381'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3801(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30035,1,0)
player:alert(10,0,0,"获得(天神战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_3802(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30036,1,0)
player:alert(10,0,0,"获得(天神战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_3803(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30037,1,0)
player:alert(10,0,0,"获得(天神法袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_3804(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30038,1,0)
player:alert(10,0,0,"获得(天神法袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_3805(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30039,1,0)
player:alert(10,0,0,"获得(天神道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_3806(npc,event,player)
if player:get_param(261) >= 100 then
if player:num_bag_black() >= 1 then
player:set_param(261,player:get_param(261) - 100);
player:add_item(30040,1,0)
player:alert(10,0,0,"获得(天神道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的背包不足一格,无法领取奖励");
end
else
player:alert(10,0,0,"您的宝藏积分不足100个,不能兑换");
end
ontalk2016_380(npc,0,player,0);
end
 
function ontalk2016_381(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30041#&  <font color="#FFFF00">需要天神战甲(男)+150积分</font>    <u><a href='event:M2402,3811'>兑换</a></u>
#&item30042#&  <font color="#FFFF00">需要天神战甲(女)+150积分</font>    <u><a href='event:M2402,3812'>兑换</a></u>
#&item30043#&  <font color="#FFFF00">需要天神法袍(男)+150积分</font>    <u><a href='event:M2402,3813'>兑换</a></u>
#&item30044#&  <font color="#FFFF00">需要天神法袍(女)+150积分</font>    <u><a href='event:M2402,3814'>兑换</a></u>
#&item30045#&  <font color="#FFFF00">需要天神道袍(男)+150积分</font>    <u><a href='event:M2402,3815'>兑换</a></u>
#&item30046#&  <font color="#FFFF00">需要天神道袍(女)+150积分</font>    <u><a href='event:M2402,3816'>兑换</a></u>
      <u><a href='event:M2402,380'>上一页</a></u>    <u><a href='event:M2402,382'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3811(npc,event,player)
if player:num_item(30035,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30035,30041,1);
player:alert(10,0,0,"获得(雷霆神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神战甲(男),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_3812(npc,event,player)
if player:num_item(30036,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30036,30042,1);
player:alert(10,0,0,"获得(雷霆神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神战甲(女),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_3813(npc,event,player)
if player:num_item(30037,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30037,30043,1);
player:alert(10,0,0,"获得(烈焰神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神法袍(男),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_3814(npc,event,player)
if player:num_item(30038,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30038,30044,1);
player:alert(10,0,0,"获得(烈焰神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神法袍(女),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_3815(npc,event,player)
if player:num_item(30039,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30039,30045,1);
player:alert(10,0,0,"获得(光芒神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神道袍(男),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_3816(npc,event,player)
if player:num_item(30040,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30040,30046,1);
player:alert(10,0,0,"获得(光芒神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有天神道袍(女),不能兑换");
end
ontalk2016_381(npc,0,player,0);
end
 
function ontalk2016_382(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30201#&  <font color="#FFFF00">需要雷霆神甲(男)+150积分</font>    <u><a href='event:M2402,3821'>兑换</a></u>
#&item30202#&  <font color="#FFFF00">需要雷霆神甲(女)+150积分</font>    <u><a href='event:M2402,3822'>兑换</a></u>
#&item30203#&  <font color="#FFFF00">需要烈焰神甲(男)+150积分</font>    <u><a href='event:M2402,3823'>兑换</a></u>
#&item30204#&  <font color="#FFFF00">需要烈焰神甲(女)+150积分</font>    <u><a href='event:M2402,3824'>兑换</a></u>
#&item30205#&  <font color="#FFFF00">需要光芒神甲(男)+150积分</font>    <u><a href='event:M2402,3825'>兑换</a></u>
#&item30206#&  <font color="#FFFF00">需要光芒神甲(女)+150积分</font>    <u><a href='event:M2402,3826'>兑换</a></u>
      <u><a href='event:M2402,381'>上一页</a></u>    <u><a href='event:M2402,383'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3821(npc,event,player)
if player:num_item(30041,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30041,30201,1);
player:alert(10,0,0,"获得(战圣神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有雷霆神甲(男),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_3822(npc,event,player)
if player:num_item(30042,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30042,30202,1);
player:alert(10,0,0,"获得(战圣神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有雷霆神甲(女),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_3823(npc,event,player)
if player:num_item(30043,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30043,30203,1);
player:alert(10,0,0,"获得(法圣魔袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有烈焰神甲(男),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_3824(npc,event,player)
if player:num_item(30044,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30044,30204,1);
player:alert(10,0,0,"获得(法圣魔袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有烈焰神甲(女),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_3825(npc,event,player)
if player:num_item(30045,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30045,30205,1);
player:alert(10,0,0,"获得(道圣道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有光芒神甲(男),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_3826(npc,event,player)
if player:num_item(30046,1) >= 1 then
if player:get_param(261) >= 150 then
player:set_param(261,player:get_param(261) - 150);
player:update_item(30046,30206,1);
player:alert(10,0,0,"获得(道圣道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足150,不能兑换");
end
else
player:alert(10,0,0,"您没有光芒神甲(女),不能兑换");
end
ontalk2016_382(npc,0,player,0);
end
 
function ontalk2016_383(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30207#&  <font color="#FFFF00">需要战圣神甲(男)+250积分</font>    <u><a href='event:M2402,3831'>兑换</a></u>
#&item30208#&  <font color="#FFFF00">需要战圣神甲(女)+250积分</font>    <u><a href='event:M2402,3832'>兑换</a></u>
#&item30209#&  <font color="#FFFF00">需要法圣魔袍(男)+250积分</font>    <u><a href='event:M2402,3833'>兑换</a></u>
#&item30210#&  <font color="#FFFF00">需要法圣魔袍(女)+250积分</font>    <u><a href='event:M2402,3834'>兑换</a></u>
#&item30211#&  <font color="#FFFF00">需要道圣道袍(男)+250积分</font>    <u><a href='event:M2402,3835'>兑换</a></u>
#&item30212#&  <font color="#FFFF00">需要道圣道袍(女)+250积分</font>    <u><a href='event:M2402,3836'>兑换</a></u>
      <u><a href='event:M2402,382'>上一页</a></u>    <u><a href='event:M2402,384'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3831(npc,event,player)
if player:num_item(30201,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30201,30207,1);
player:alert(10,0,0,"获得(武神战衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣神甲(男),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_3832(npc,event,player)
if player:num_item(30202,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30202,30208,1);
player:alert(10,0,0,"获得(武神战衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣神甲(女),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_3833(npc,event,player)
if player:num_item(30203,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30203,30209,1);
player:alert(10,0,0,"获得(幻魔法衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣魔袍(男),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_3834(npc,event,player)
if player:num_item(30204,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30204,30210,1);
player:alert(10,0,0,"获得(幻魔法衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣魔袍(女),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_3835(npc,event,player)
if player:num_item(30205,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30205,30211,1);
player:alert(10,0,0,"获得(玄尊道衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣道袍(男),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_3836(npc,event,player)
if player:num_item(30206,1) >= 1 then
if player:get_param(261) >= 250 then
player:set_param(261,player:get_param(261) - 250);
player:update_item(30206,30212,1);
player:alert(10,0,0,"获得(玄尊道衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足250,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣道袍(女),不能兑换");
end
ontalk2016_383(npc,0,player,0);
end
 
function ontalk2016_384(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30213#&  <font color="#FFFF00">需要武神神甲(男)+400积分</font>    <u><a href='event:M2402,3841'>兑换</a></u>
#&item30214#&  <font color="#FFFF00">需要武神神甲(女)+400积分</font>    <u><a href='event:M2402,3842'>兑换</a></u>
#&item30215#&  <font color="#FFFF00">需要幻魔魔袍(男)+400积分</font>    <u><a href='event:M2402,3843'>兑换</a></u>
#&item30216#&  <font color="#FFFF00">需要幻魔魔袍(女)+400积分</font>    <u><a href='event:M2402,3844'>兑换</a></u>
#&item30217#&  <font color="#FFFF00">需要玄尊道袍(男)+400积分</font>    <u><a href='event:M2402,3845'>兑换</a></u>
#&item30218#&  <font color="#FFFF00">需要玄尊道袍(女)+400积分</font>    <u><a href='event:M2402,3846'>兑换</a></u>
      <u><a href='event:M2402,383'>上一页</a></u>    <u><a href='event:M2402,385'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3841(npc,event,player)
if player:num_item(30207,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30207,30213,1);
player:alert(10,0,0,"获得(神灵战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有武神战衣(男),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_3842(npc,event,player)
if player:num_item(30208,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30208,30214,1);
player:alert(10,0,0,"获得(神灵战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有武神战衣(女),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_3843(npc,event,player)
if player:num_item(30209,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30209,30215,1);
player:alert(10,0,0,"获得(神灵魔袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有幻魔法衣(男),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_3844(npc,event,player)
if player:num_item(30210,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30210,30216,1);
player:alert(10,0,0,"获得(神灵魔袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有幻魔法衣(女),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_3845(npc,event,player)
if player:num_item(30211,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30211,30217,1);
player:alert(10,0,0,"获得(神灵道衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有玄尊道衣(男),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_3846(npc,event,player)
if player:num_item(30212,1) >= 1 then
if player:get_param(261) >= 400 then
player:set_param(261,player:get_param(261) - 400);
player:update_item(30212,30218,1);
player:alert(10,0,0,"获得(神灵道衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足400,不能兑换");
end
else
player:alert(10,0,0,"您没有玄尊道衣(女),不能兑换");
end
ontalk2016_384(npc,0,player,0);
end
 
function ontalk2016_385(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30219#&  <font color="#FFFF00">需要神灵战甲(男)+600积分</font>    <u><a href='event:M2402,3851'>兑换</a></u>
#&item30220#&  <font color="#FFFF00">需要神灵战甲(女)+600积分</font>    <u><a href='event:M2402,3852'>兑换</a></u>
#&item30221#&  <font color="#FFFF00">需要神灵魔袍(男)+600积分</font>    <u><a href='event:M2402,3853'>兑换</a></u>
#&item30222#&  <font color="#FFFF00">需要神灵魔袍(女)+600积分</font>    <u><a href='event:M2402,3854'>兑换</a></u>
#&item30223#&  <font color="#FFFF00">需要神灵道衣(男)+600积分</font>    <u><a href='event:M2402,3855'>兑换</a></u>
#&item30224#&  <font color="#FFFF00">需要神灵道衣(女)+600积分</font>    <u><a href='event:M2402,3856'>兑换</a></u>
                         <u><a href='event:M2402,384'>上一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3851(npc,event,player)
if player:num_item(30213,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30213,30219,1);
player:alert(10,0,0,"获得(神龙战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵战甲(男),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_3852(npc,event,player)
if player:num_item(30214,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30214,30220,1);
player:alert(10,0,0,"获得(神龙战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵战甲(女),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_3853(npc,event,player)
if player:num_item(30215,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30215,30221,1);
player:alert(10,0,0,"获得(神龙魔袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵魔袍(男),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_3854(npc,event,player)
if player:num_item(30216,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30216,30222,1);
player:alert(10,0,0,"获得(神龙魔袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵魔袍(女),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_3855(npc,event,player)
if player:num_item(30217,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30217,30223,1);
player:alert(10,0,0,"获得(神龙道衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵道衣(男),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_3856(npc,event,player)
if player:num_item(30218,1) >= 1 then
if player:get_param(261) >= 600 then
player:set_param(261,player:get_param(261) - 600);
player:update_item(30218,30224,1);
player:alert(10,0,0,"获得(神龙道衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足600,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵道衣(女),不能兑换");
end
ontalk2016_385(npc,0,player,0);
end
 
function ontalk2016_390(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30023#&  <font color="#FFFF00">需要战神战甲(女)+2积分</font>    <u><a href='event:M2402,3901'>兑换</a></u>
#&item30024#&  <font color="#FFFF00">需要战神战甲(男)+2积分</font>    <u><a href='event:M2402,3902'>兑换</a></u>
#&item30025#&  <font color="#FFFF00">需要魔神法袍(女)+2积分</font>    <u><a href='event:M2402,3903'>兑换</a></u>
#&item30026#&  <font color="#FFFF00">需要魔神法袍(男)+2积分</font>    <u><a href='event:M2402,3904'>兑换</a></u>
#&item30027#&  <font color="#FFFF00">需要道尊道袍(女)+2积分</font>    <u><a href='event:M2402,3905'>兑换</a></u>
#&item30028#&  <font color="#FFFF00">需要道尊道袍(男)+2积分</font>    <u><a href='event:M2402,3906'>兑换</a></u>
                         <u><a href='event:M2402,391'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3901(npc,event,player)
if player:num_item(30024,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30024,30023,1);
player:alert(10,0,0,"获得(战神战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有战神战甲(女),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_3902(npc,event,player)
if player:num_item(30023,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30023,30024,1);
player:alert(10,0,0,"获得(战神战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有战神战甲(男),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_3903(npc,event,player)
if player:num_item(30026,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30026,30025,1);
player:alert(10,0,0,"获得(魔神法袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有魔神法袍(女),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_3904(npc,event,player)
if player:num_item(30025,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30025,30026,1);
player:alert(10,0,0,"获得(魔神法袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有魔神法袍(男),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_3905(npc,event,player)
if player:num_item(30028,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30028,30027,1);
player:alert(10,0,0,"获得(道尊道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有道尊道袍(女),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_3906(npc,event,player)
if player:num_item(30027,1) >= 1 then
if player:get_param(261) >= 2 then
player:set_param(261,player:get_param(261) - 2);
player:update_item(30027,30028,1);
player:alert(10,0,0,"获得(道尊道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足2个,不能兑换");
end
else
player:alert(10,0,0,"您没有道尊道袍(男),不能兑换");
end
ontalk2016_390(npc,0,player,0);
end
 
function ontalk2016_391(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30029#&  <font color="#FFFF00">需要圣武战甲(女)+5积分</font>    <u><a href='event:M2402,3911'>兑换</a></u>
#&item30030#&  <font color="#FFFF00">需要圣武战甲(男)+5积分</font>    <u><a href='event:M2402,3912'>兑换</a></u>
#&item30031#&  <font color="#FFFF00">需要圣魔法袍(女)+5积分</font>    <u><a href='event:M2402,3913'>兑换</a></u>
#&item30032#&  <font color="#FFFF00">需要圣魔法袍(男)+5积分</font>    <u><a href='event:M2402,3914'>兑换</a></u>
#&item30033#&  <font color="#FFFF00">需要圣尊道袍(女)+5积分</font>    <u><a href='event:M2402,3915'>兑换</a></u>
#&item30034#&  <font color="#FFFF00">需要圣尊道袍(男)+5积分</font>    <u><a href='event:M2402,3916'>兑换</a></u>
      <u><a href='event:M2402,390'>上一页</a></u>    <u><a href='event:M2402,392'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3911(npc,event,player)
if player:num_item(30030,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30030,30029,1);
player:alert(10,0,0,"获得(圣武战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣武战甲(女),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_3912(npc,event,player)
if player:num_item(30029,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30029,30030,1);
player:alert(10,0,0,"获得(圣武战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣武战甲(男),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_3913(npc,event,player)
if player:num_item(30032,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30032,30031,1);
player:alert(10,0,0,"获得(圣魔法袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣魔法袍(女),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_3914(npc,event,player)
if player:num_item(30031,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30031,30032,1);
player:alert(10,0,0,"获得(圣魔法袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣魔法袍(男),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_3915(npc,event,player)
if player:num_item(30034,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30034,30033,1);
player:alert(10,0,0,"获得(圣尊道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣尊道袍(女),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_3916(npc,event,player)
if player:num_item(30033,1) >= 1 then
if player:get_param(261) >= 5 then
player:set_param(261,player:get_param(261) - 5);
player:update_item(30033,30034,1);
player:alert(10,0,0,"获得(圣尊道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足5个,不能兑换");
end
else
player:alert(10,0,0,"您没有圣尊道袍(男),不能兑换");
end
ontalk2016_391(npc,0,player,0);
end
 
function ontalk2016_392(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30035#&  <font color="#FFFF00">需要天神战甲(女)+10积分</font>    <u><a href='event:M2402,3921'>兑换</a></u>
#&item30036#&  <font color="#FFFF00">需要天神战甲(男)+10积分</font>    <u><a href='event:M2402,3922'>兑换</a></u>
#&item30037#&  <font color="#FFFF00">需要天神法袍(女)+10积分</font>    <u><a href='event:M2402,3923'>兑换</a></u>
#&item30038#&  <font color="#FFFF00">需要天神法袍(男)+10积分</font>    <u><a href='event:M2402,3924'>兑换</a></u>
#&item30039#&  <font color="#FFFF00">需要天神道袍(女)+10积分</font>    <u><a href='event:M2402,3925'>兑换</a></u>
#&item30040#&  <font color="#FFFF00">需要天神道袍(男)+10积分</font>    <u><a href='event:M2402,3926'>兑换</a></u>
      <u><a href='event:M2402,391'>上一页</a></u>    <u><a href='event:M2402,393'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3921(npc,event,player)
if player:num_item(30036,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30036,30035,1);
player:alert(10,0,0,"获得(天神战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神战甲(女),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_3922(npc,event,player)
if player:num_item(30035,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30035,30036,1);
player:alert(10,0,0,"获得(天神战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神战甲(男),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_3923(npc,event,player)
if player:num_item(30038,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30038,30037,1);
player:alert(10,0,0,"获得(天神法袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神法袍(女),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_3924(npc,event,player)
if player:num_item(30037,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30037,30038,1);
player:alert(10,0,0,"获得(天神法袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神法袍(男),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_3925(npc,event,player)
if player:num_item(30040,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30040,30039,1);
player:alert(10,0,0,"获得(天神道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神道袍(女),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_3926(npc,event,player)
if player:num_item(30039,1) >= 1 then
if player:get_param(261) >= 10 then
player:set_param(261,player:get_param(261) - 10);
player:update_item(30039,30040,1);
player:alert(10,0,0,"获得(天神道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足10个,不能兑换");
end
else
player:alert(10,0,0,"您没有天神道袍(男),不能兑换");
end
ontalk2016_392(npc,0,player,0);
end
 
function ontalk2016_393(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30041#&  <font color="#FFFF00">需要雷霆神甲(女)+25积分</font>    <u><a href='event:M2402,3931'>兑换</a></u>
#&item30042#&  <font color="#FFFF00">需要雷霆神甲(男)+25积分</font>    <u><a href='event:M2402,3932'>兑换</a></u>
#&item30043#&  <font color="#FFFF00">需要烈焰神甲(女)+25积分</font>    <u><a href='event:M2402,3933'>兑换</a></u>
#&item30044#&  <font color="#FFFF00">需要烈焰神甲(男)+25积分</font>    <u><a href='event:M2402,3934'>兑换</a></u>
#&item30045#&  <font color="#FFFF00">需要光芒神甲(女)+25积分</font>    <u><a href='event:M2402,3935'>兑换</a></u>
#&item30046#&  <font color="#FFFF00">需要光芒神甲(男)+25积分</font>    <u><a href='event:M2402,3936'>兑换</a></u>
      <u><a href='event:M2402,392'>上一页</a></u>    <u><a href='event:M2402,394'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3931(npc,event,player)
if player:num_item(30042,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30042,30041,1);
player:alert(10,0,0,"获得(雷霆神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有雷霆神甲(女),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_3932(npc,event,player)
if player:num_item(30041,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30041,30042,1);
player:alert(10,0,0,"获得(雷霆神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有雷霆神甲(男),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_3933(npc,event,player)
if player:num_item(30044,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30044,30043,1);
player:alert(10,0,0,"获得(烈焰神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有烈焰神甲(女),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_3934(npc,event,player)
if player:num_item(30043,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30043,30044,1);
player:alert(10,0,0,"获得(烈焰神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有烈焰神甲(男),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_3935(npc,event,player)
if player:num_item(30046,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30046,30045,1);
player:alert(10,0,0,"获得(光芒神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有光芒神甲(女),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_3936(npc,event,player)
if player:num_item(30045,1) >= 1 then
if player:get_param(261) >= 25 then
player:set_param(261,player:get_param(261) - 25);
player:update_item(30045,30046,1);
player:alert(10,0,0,"获得(光芒神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足25个,不能兑换");
end
else
player:alert(10,0,0,"您没有光芒神甲(男),不能兑换");
end
ontalk2016_393(npc,0,player,0);
end
 
function ontalk2016_394(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30201#&  <font color="#FFFF00">需要战圣神甲(女)+40积分</font>    <u><a href='event:M2402,3941'>兑换</a></u>
#&item30202#&  <font color="#FFFF00">需要战圣神甲(男)+40积分</font>    <u><a href='event:M2402,3942'>兑换</a></u>
#&item30203#&  <font color="#FFFF00">需要法圣魔袍(女)+40积分</font>    <u><a href='event:M2402,3943'>兑换</a></u>
#&item30204#&  <font color="#FFFF00">需要法圣魔袍(男)+40积分</font>    <u><a href='event:M2402,3944'>兑换</a></u>
#&item30205#&  <font color="#FFFF00">需要道圣道袍(女)+40积分</font>    <u><a href='event:M2402,3945'>兑换</a></u>
#&item30206#&  <font color="#FFFF00">需要道圣道袍(男)+40积分</font>    <u><a href='event:M2402,3946'>兑换</a></u>
      <u><a href='event:M2402,393'>上一页</a></u>    <u><a href='event:M2402,395'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3941(npc,event,player)
if player:num_item(30202,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30202,30201,1);
player:alert(10,0,0,"获得(战圣神甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣神甲(女),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_3942(npc,event,player)
if player:num_item(30201,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30201,30202,1);
player:alert(10,0,0,"获得(战圣神甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有战圣神甲(男),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_3943(npc,event,player)
if player:num_item(30204,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30204,30203,1);
player:alert(10,0,0,"获得(法圣魔袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣魔袍(女),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_3944(npc,event,player)
if player:num_item(30203,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30203,30204,1);
player:alert(10,0,0,"获得(法圣魔袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有法圣魔袍(男),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_3945(npc,event,player)
if player:num_item(30206,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30206,30205,1);
player:alert(10,0,0,"获得(道圣道袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣道袍(女),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_3946(npc,event,player)
if player:num_item(30205,1) >= 1 then
if player:get_param(261) >= 40 then
player:set_param(261,player:get_param(261) - 40);
player:update_item(30205,30206,1);
player:alert(10,0,0,"获得(道圣道袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足40个,不能兑换");
end
else
player:alert(10,0,0,"您没有道圣道袍(男),不能兑换");
end
ontalk2016_394(npc,0,player,0);
end
 
function ontalk2016_395(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30207#&  <font color="#FFFF00">需要武神战衣(女)+65积分</font>    <u><a href='event:M2402,3951'>兑换</a></u>
#&item30208#&  <font color="#FFFF00">需要武神战衣(男)+65积分</font>    <u><a href='event:M2402,3952'>兑换</a></u>
#&item30209#&  <font color="#FFFF00">需要幻魔法衣(女)+65积分</font>    <u><a href='event:M2402,3953'>兑换</a></u>
#&item30210#&  <font color="#FFFF00">需要幻魔法衣(男)+65积分</font>    <u><a href='event:M2402,3954'>兑换</a></u>
#&item30211#&  <font color="#FFFF00">需要玄尊道衣(女)+65积分</font>    <u><a href='event:M2402,3955'>兑换</a></u>
#&item30212#&  <font color="#FFFF00">需要玄尊道衣(男)+65积分</font>    <u><a href='event:M2402,3956'>兑换</a></u>
      <u><a href='event:M2402,394'>上一页</a></u>    <u><a href='event:M2402,396'>下一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3951(npc,event,player)
if player:num_item(30208,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30208,30207,1);
player:alert(10,0,0,"获得(武神战衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有武神战衣(女),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
function ontalk2016_3952(npc,event,player)
if player:num_item(30207,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30207,30208,1);
player:alert(10,0,0,"获得(武神战衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有武神战衣(男),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
function ontalk2016_3953(npc,event,player)
if player:num_item(30210,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30210,30209,1);
player:alert(10,0,0,"获得(幻魔法衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有幻魔法衣(女),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
function ontalk2016_3954(npc,event,player)
if player:num_item(30209,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30209,30210,1);
player:alert(10,0,0,"获得(幻魔法衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有幻魔法衣(男),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
function ontalk2016_3955(npc,event,player)
if player:num_item(30212,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30212,30211,1);
player:alert(10,0,0,"获得(玄尊道衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有玄尊道衣(女),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
function ontalk2016_3956(npc,event,player)
if player:num_item(30211,1) >= 1 then
if player:get_param(261) >= 65 then
player:set_param(261,player:get_param(261) - 65);
player:update_item(30211,30212,1);
player:alert(10,0,0,"获得(玄尊道衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足65个,不能兑换");
end
else
player:alert(10,0,0,"您没有玄尊道衣(男),不能兑换");
end
ontalk2016_395(npc,0,player,0);
end
 
 
function ontalk2016_396(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前宝藏积分:]]..player:get_param(261)..[[</b>
 
#&item30213#&  <font color="#FFFF00">需要神灵战甲(女)+105积分</font>    <u><a href='event:M2402,3961'>兑换</a></u>
#&item30214#&  <font color="#FFFF00">需要神灵战甲(男)+105积分</font>    <u><a href='event:M2402,3962'>兑换</a></u>
#&item30215#&  <font color="#FFFF00">需要神灵魔袍(女)+105积分</font>    <u><a href='event:M2402,3963'>兑换</a></u>
#&item30216#&  <font color="#FFFF00">需要神灵魔袍(男)+105积分</font>    <u><a href='event:M2402,3964'>兑换</a></u>
#&item30217#&  <font color="#FFFF00">需要神灵道衣(女)+105积分</font>    <u><a href='event:M2402,3965'>兑换</a></u>
#&item30218#&  <font color="#FFFF00">需要神灵道衣(男)+105积分</font>    <u><a href='event:M2402,3966'>兑换</a></u>
                         <u><a href='event:M2402,395'>上一页</a></u>    <u><a href='event:M2402,3'>返回上页</a></u>
]]);
end
 
function ontalk2016_3961(npc,event,player)
if player:num_item(30214,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30214,30213,1);
player:alert(10,0,0,"获得(神灵战甲(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵战甲(女),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_3962(npc,event,player)
if player:num_item(30213,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30213,30214,1);
player:alert(10,0,0,"获得(神灵战甲(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵战甲(男),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_3963(npc,event,player)
if player:num_item(30216,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30216,30215,1);
player:alert(10,0,0,"获得(神灵魔袍(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵魔袍(女),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_3964(npc,event,player)
if player:num_item(30215,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30215,30216,1);
player:alert(10,0,0,"获得(神灵魔袍(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵魔袍(男),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_3965(npc,event,player)
if player:num_item(30218,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30218,30217,1);
player:alert(10,0,0,"获得(神灵道衣(男))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵道衣(女),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_3966(npc,event,player)
if player:num_item(30217,1) >= 1 then
if player:get_param(261) >= 105 then
player:set_param(261,player:get_param(261) - 105);
player:update_item(30217,30218,1);
player:alert(10,0,0,"获得(神灵道衣(女))");
player:alert(10,0,0,"剩余宝藏积分"..player:get_param(261).."");
else
player:alert(10,0,0,"您的宝藏积分不足105个,不能兑换");
end
else
player:alert(10,0,0,"您没有神灵道衣(男),不能兑换");
end
ontalk2016_396(npc,0,player,0);
end
 
function ontalk2016_4(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>折扣商品:</b>
 
              <u><a href='event:M2402,401'>打折购买功勋令牌</a></u>
 
              <u><a href='event:M2402,402'>打折购买成就卷轴</a></u>
 
       <font color="#FFFF00">更多打折商品,敬请期待.....</font>
 
 
 
 
 
                                   <u><a href='event:M2402,0'>返回上页</a></u>
]]);
end
 
function ontalk2016_401(npc,event,player)
if player:num_item(10200) >= 1 then
if player:get_vcoin() >= 300 then
player:remove_item(10200,1);
player:sub_vcoin(300);
player:add_item(10114,1,1);
else
player:alert(10,0,0,"您的元宝不足300,无法购买");
end
else
player:alert(10,0,0,"您没有功勋令牌(折扣卷),无法购买");
end
ontalk2016_4(npc,0,player,0);
end
 
function ontalk2016_402(npc,event,player)
if player:num_item(10201) >= 1 then
if player:get_vcoin() >= 300 then
player:remove_item(10201,1);
player:sub_vcoin(300);
player:add_item(10115,1,1);
else
player:alert(10,0,0,"您的元宝不足300,无法购买");
end
else
player:alert(10,0,0,"您没有成就卷轴(折扣卷),无法购买");
end
ontalk2016_4(npc,0,player,0);
end
 
 
function ontalk2016_5(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
<b>兑换三职业高级技能:</b>
 
#&item10029#&  <font color="#FFFF00">兑换需要40张书页</font>    <u><a href='event:M2402,501'>兑换</a></u>
#&item10030#&  <font color="#FFFF00">兑换需要25张书页</font>    <u><a href='event:M2402,502'>兑换</a></u>
#&item10031#&  <font color="#FFFF00">兑换需要90张书页</font>    <u><a href='event:M2402,503'>兑换</a></u>
#&item10033#&  <font color="#FFFF00">兑换需要90张书页</font>    <u><a href='event:M2402,504'>兑换</a></u>
 
                                   <u><a href='event:M2402,0'>返回首页</a></u>
]]);
end
 
function ontalk2016_501(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(10191) >= 40 then
player:remove_item(10191,40);
player:add_item(10029,1,0);
player:alert(110,0,0,"【逐日剑法】兑换成功");
else
player:alert(10,0,0,"您的书页不足40张,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_5(npc,0,player,0);
end
 
function ontalk2016_502(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(10191) >= 25 then
player:remove_item(10191,25);
player:add_item(10030,1,0);
player:alert(110,0,0,"【流星火雨】兑换成功");
else
player:alert(10,0,0,"您的书页不足25张,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_5(npc,0,player,0);
end
 
function ontalk2016_503(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(10191) >= 90 then
player:remove_item(10191,90);
player:add_item(10031,1,0);
player:alert(110,0,0,"【召唤圣灵】兑换成功");
else
player:alert(10,0,0,"您的书页不足90张,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_5(npc,0,player,0);
end
 
function ontalk2016_504(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(10191) >= 90 then
player:remove_item(10191,90);
player:add_item(10033,1,0);
player:alert(110,0,0,"【群体蛊毒术】兑换成功");
else
player:alert(10,0,0,"您的书页不足90张,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_5(npc,0,player,0);
end
 
function ontalk2016_6(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
#&talk_line#&
    <u><a href='event:M2402,601'>兑换普通特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,602'>兑换王者特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,603'>兑换帝皇特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,604'>兑换圣灵特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,605'>兑换神威特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,606'>兑换至尊特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,607'>兑换主宰特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,609'>兑换神·特戒</a></u>
#&talk_line#&
    <u><a href='event:M2402,608'>特戒换金刚石</a></u>
#&talk_line#&
 
                                   <u><a href='event:M2402,0'>返回首页</a></u>
]]);
end
 
 
function ontalk2016_601(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50701#&  <font color="#FFFF00">兑换需要10颗金刚石</font>      <u><a href='event:M2402,6011'>兑换</a></u>
#&item50801#&  <font color="#FFFF00">兑换需要10颗金刚石</font>      <u><a href='event:M2402,6012'>兑换</a></u>
#&item50901#&  <font color="#FFFF00">兑换需要10颗金刚石</font>      <u><a href='event:M2402,6013'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6011(npc,event,player)
if player:num_bag_black() >= 1 then
if player:get_param(248) >= 10 then
player:set_param(248,player:get_param(248) - 10);
player:add_item(50701,1,1);
player:alert(110,0,0,"【麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足10颗,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_601(npc,0,player,0);
end
 
function ontalk2016_6012(npc,event,player)
if player:num_bag_black() >= 1 then
if player:get_param(248) >= 10 then
player:set_param(248,player:get_param(248) - 10);
player:add_item(50801,1,1);
player:alert(110,0,0,"【护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足10颗,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_601(npc,0,player,0);
end
 
function ontalk2016_6013(npc,event,player)
if player:num_bag_black() >= 1 then
if player:get_param(248) >= 10 then
player:set_param(248,player:get_param(248) - 10);
player:add_item(50901,1,1);
player:alert(110,0,0,"【复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足10颗,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_601(npc,0,player,0);
end
 
function ontalk2016_602(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50702#&  <font color="#FFFF00">兑换需要普通特戒+20颗金刚石</font>   <u><a href='event:M2402,6021'>兑换</a></u>
#&item50802#&  <font color="#FFFF00">兑换需要普通特戒+20颗金刚石</font>   <u><a href='event:M2402,6022'>兑换</a></u>
#&item50902#&  <font color="#FFFF00">兑换需要普通特戒+20颗金刚石</font>   <u><a href='event:M2402,6023'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6021(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50701,1) >= 1 then
if player:get_param(248) >= 20 then
player:set_param(248,player:get_param(248) - 20);
player:update_item(50701,50702,1);
player:alert(110,0,0,"【王者麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足20颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_602(npc,0,player,0);
end
 
function ontalk2016_6022(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50801,1) >= 1 then
if player:get_param(248) >= 20 then
player:set_param(248,player:get_param(248) - 20);
player:update_item(50801,50802,1);
player:alert(110,0,0,"【王者护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足20颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_602(npc,0,player,0);
end
 
function ontalk2016_6023(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50901,1) >= 1 then
if player:get_param(248) >= 20 then
player:set_param(248,player:get_param(248) - 20);
player:update_item(50901,50902,1);
player:alert(110,0,0,"【王者复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足20颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_602(npc,0,player,0);
end
 
function ontalk2016_603(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50703#&  <font color="#FFFF00">兑换需要王者特戒+60颗金刚石</font>   <u><a href='event:M2402,6031'>兑换</a></u>
#&item50803#&  <font color="#FFFF00">兑换需要王者特戒+60颗金刚石</font>   <u><a href='event:M2402,6032'>兑换</a></u>
#&item50903#&  <font color="#FFFF00">兑换需要王者特戒+60颗金刚石</font>   <u><a href='event:M2402,6033'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6031(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50702,1) >= 1 then
if player:get_param(248) >= 60 then
player:set_param(248,player:get_param(248) - 60);
player:update_item(50702,50703,1);
player:alert(110,0,0,"【帝皇麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足60颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【王者麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_603(npc,0,player,0);
end
 
function ontalk2016_6032(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50802,1) >= 1 then
if player:get_param(248) >= 60 then
player:set_param(248,player:get_param(248) - 60);
player:update_item(50802,50803,1);
player:alert(110,0,0,"【帝皇护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足60颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【王者护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_603(npc,0,player,0);
end
 
function ontalk2016_6033(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50902,1) >= 1 then
if player:get_param(248) >= 60 then
player:set_param(248,player:get_param(248) - 60);
player:update_item(50902,50903,1);
player:alert(110,0,0,"【帝皇复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足60颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【王者复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_603(npc,0,player,0);
end
 
function ontalk2016_604(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50704#&  <font color="#FFFF00">兑换需要帝皇特戒+180颗金刚石</font>   <u><a href='event:M2402,6041'>兑换</a></u>
#&item50804#&  <font color="#FFFF00">兑换需要帝皇特戒+180颗金刚石</font>   <u><a href='event:M2402,6042'>兑换</a></u>
#&item50904#&  <font color="#FFFF00">兑换需要帝皇特戒+180颗金刚石</font>   <u><a href='event:M2402,6043'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6041(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50703,1) >= 1 then
if player:get_param(248) >= 180 then
player:set_param(248,player:get_param(248) - 180);
player:update_item(50703,50704,1);
player:alert(110,0,0,"【圣灵麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足180颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【帝皇麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_604(npc,0,player,0);
end
 
function ontalk2016_6042(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50803,1) >= 1 then
if player:get_param(248) >= 180 then
player:set_param(248,player:get_param(248) - 180);
player:update_item(50803,50804,1);
player:alert(110,0,0,"【圣灵护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足180颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【帝皇护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_604(npc,0,player,0);
end
 
function ontalk2016_6043(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50903,1) >= 1 then
if player:get_param(248) >= 180 then
player:set_param(248,player:get_param(248) - 180);
player:update_item(50903,50904,1);
player:alert(110,0,0,"【圣灵复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足180颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【帝皇复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_604(npc,0,player,0);
end
 
function ontalk2016_605(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50705#&  <font color="#FFFF00">兑换需要圣灵特戒+540颗金刚石</font>   <u><a href='event:M2402,6051'>兑换</a></u>
#&item50805#&  <font color="#FFFF00">兑换需要圣灵特戒+540颗金刚石</font>   <u><a href='event:M2402,6052'>兑换</a></u>
#&item50905#&  <font color="#FFFF00">兑换需要圣灵特戒+540颗金刚石</font>   <u><a href='event:M2402,6053'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6051(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50704,1) >= 1 then
if player:get_param(248) >= 540 then
player:set_param(248,player:get_param(248) - 540);
player:update_item(50704,50705,1);
player:alert(110,0,0,"【神威麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足540颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【圣灵麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_605(npc,0,player,0);
end
 
function ontalk2016_6052(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50804,1) >= 1 then
if player:get_param(248) >= 540 then
player:set_param(248,player:get_param(248) - 540);
player:update_item(50804,50805,1);
player:alert(110,0,0,"【神威护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足540颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【圣灵护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_605(npc,0,player,0);
end
 
function ontalk2016_6053(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50904,1) >= 1 then
if player:get_param(248) >= 540 then
player:set_param(248,player:get_param(248) - 540);
player:update_item(50904,50905,1);
player:alert(110,0,0,"【神威复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足540颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【圣灵复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_605(npc,0,player,0);
end
 
function ontalk2016_606(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50706#&  <font color="#FFFF00">兑换需要神威特戒+1620颗金刚石</font>   <u><a href='event:M2402,6061'>兑换</a></u>
#&item50806#&  <font color="#FFFF00">兑换需要神威特戒+1620颗金刚石</font>   <u><a href='event:M2402,6062'>兑换</a></u>
#&item50906#&  <font color="#FFFF00">兑换需要神威特戒+1620颗金刚石</font>   <u><a href='event:M2402,6063'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6061(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50705,1) >= 1 then
if player:get_param(248) >= 1620 then
player:set_param(248,player:get_param(248) - 1620);
player:update_item(50705,50706,1);
player:alert(110,0,0,"【至尊麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足1620颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【神威麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_606(npc,0,player,0);
end
 
function ontalk2016_6062(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50805,1) >= 1 then
if player:get_param(248) >= 1620 then
player:set_param(248,player:get_param(248) - 1620);
player:update_item(50805,50806,1);
player:alert(110,0,0,"【至尊护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足1620颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【神威护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_606(npc,0,player,0);
end
 
function ontalk2016_6063(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50905,1) >= 1 then
if player:get_param(248) >= 1620 then
player:set_param(248,player:get_param(248) - 1620);
player:update_item(50905,50906,1);
player:alert(110,0,0,"【至尊复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足1620颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【神威复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_606(npc,0,player,0);
end
 
function ontalk2016_607(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50707#&  <font color="#FFFF00">兑换需要至尊特戒+4860颗金刚石</font>   <u><a href='event:M2402,6071'>兑换</a></u>
#&item50807#&  <font color="#FFFF00">兑换需要至尊特戒+4860颗金刚石</font>   <u><a href='event:M2402,6072'>兑换</a></u>
#&item50907#&  <font color="#FFFF00">兑换需要至尊特戒+4860颗金刚石</font>   <u><a href='event:M2402,6073'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6071(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50706,1) >= 1 then
if player:get_param(248) >= 4860 then
player:set_param(248,player:get_param(248) - 4860);
player:update_item(50706,50707,1);
player:alert(110,0,0,"【主宰麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足4860颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【至尊麻痹戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_607(npc,0,player,0);
end
 
function ontalk2016_6072(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50806,1) >= 1 then
if player:get_param(248) >= 4860 then
player:set_param(248,player:get_param(248) - 4860);
player:update_item(50806,50807,1);
player:alert(110,0,0,"【主宰护身戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足4860颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【至尊护身戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_607(npc,0,player,0);
end
 
function ontalk2016_6073(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50906,1) >= 1 then
if player:get_param(248) >= 4860 then
player:set_param(248,player:get_param(248) - 4860);
player:update_item(50906,50907,1);
player:alert(110,0,0,"【主宰复活戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足4860颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【至尊复活戒指】,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_607(npc,0,player,0);
end
 
function ontalk2016_608(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50702#&  <font color="#FFFF00">王者麻痹戒指可兑换30颗金刚石</font>   <u><a href='event:M2402,6081'>兑换</a></u>
#&item50802#&  <font color="#FFFF00">王者护身戒指可兑换30颗金刚石</font>   <u><a href='event:M2402,6082'>兑换</a></u>
#&item50902#&  <font color="#FFFF00">王者复活戒指可兑换30颗金刚石</font>   <u><a href='event:M2402,6083'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6081(npc,event,player)
if player:num_item(50702,1) >= 1 then
player:set_param(248,player:get_param(248) + 30);
player:remove_item(50702,1);
player:alert(10,0,0,"金刚石数量 + 30,当前金刚石数量"..player:get_param(248).."");
else
player:alert(10,0,0,"您没有【王者麻痹戒指】,无法兑换");
end
ontalk2016_608(npc,0,player,0);
end
 
function ontalk2016_6082(npc,event,player)
if player:num_item(50802,1) >= 1 then
player:set_param(248,player:get_param(248) + 30);
player:remove_item(50802,1);
player:alert(10,0,0,"金刚石数量 + 30,当前金刚石数量"..player:get_param(248).."");
else
player:alert(10,0,0,"您没有【王者护身戒指】,无法兑换");
end
ontalk2016_608(npc,0,player,0);
end
 
function ontalk2016_6083(npc,event,player)
if player:num_item(50902,1) >= 1 then
player:set_param(248,player:get_param(248) + 30);
player:remove_item(50902,1);
player:alert(10,0,0,"金刚石数量 + 30,当前金刚石数量"..player:get_param(248).."");
else
player:alert(10,0,0,"您没有【王者复活戒指】,无法兑换");
end
ontalk2016_608(npc,0,player,0);
end
function ontalk2016_609(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>当前金刚石数量:]]..player:get_param(248)..[[颗</b>
 
#&item50708#&  <font color="#FFFF00">主宰特戒+7260金刚石</font>   <u><a href='event:M2402,6091'>兑换</a></u>
#&item50808#&  <font color="#FFFF00">主宰特戒+7260金刚石</font>   <u><a href='event:M2402,6092'>兑换</a></u>
#&item50908#&  <font color="#FFFF00">主宰特戒+7260金刚石</font>   <u><a href='event:M2402,6093'>兑换</a></u>
 
                              <u><a href='event:M2402,6'>返回上页</a></u>
]]);
end
 
function ontalk2016_6091(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50707,1) >= 1 then
if player:get_param(248) >= 7260 then
player:set_param(248,player:get_param(248) - 7260);
player:update_item(50707,50708,1);
player:alert(110,0,0,"【神·麻痹戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足7260颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【主宰麻痹戒指】,或者材料不足,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_609(npc,0,player,0);
end
 
function ontalk2016_6092(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50807,1) >= 1 then
if player:get_param(248) >= 7260 then
player:set_param(248,player:get_param(248) - 7260);
player:update_item(50807,50808,1);
player:alert(110,0,0,"【神·护体戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足7260颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【主宰护体戒指】,或者材料不足,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_609(npc,0,player,0);
end
 
function ontalk2016_6093(npc,event,player)
if player:num_bag_black() >= 1 then
if player:num_item(50907,1) >= 1 then
if player:get_param(248) >= 7260 then
player:set_param(248,player:get_param(248) - 7260);
player:update_item(50907,50908,1);
player:alert(110,0,0,"【神·重生戒指】兑换成功");
else
player:alert(10,0,0,"您的金刚石不足6860颗,无法兑换");
end
else
player:alert(10,0,0,"您没有【主宰重生戒指】,或者材料不足,无法兑换");
end
else
player:alert(10,0,0,"您的背包不足1格,无法兑换");
end
ontalk2016_609(npc,0,player,0);
end
 
 
function ontalk2016_11(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
 <b>千服活动</b>
 
                 <u><a href='event:M2402,7'>千服庆典礼包领取</a></u>
 
                 <u><a href='event:M2402,8'>烈焰千服庆典活动</a></u>
 
                 <u><a href='event:M2402,9'>千服充值返利领取</a></u>
 
 
 
                                    <u><a href='event:M2402,0'>返回上页</a></u>
]]);
end
 
function ontalk2016_7(npc,event,player)
if player:get_level() >= 60 then
if player:num_bag_black() >= 10 then
if player:get_param(399) == 0 then
player:add_item(10107,3,1); --三倍经验(8小时)*3
player:add_item(10126,1,1); --魂珠碎片(中)*1
player:add_item(10074,3,1);             --招财进宝(大)*3
player:add_item(18000,2,1);             --500烈焰币*2
player:set_param(399,1);
player:alert(110,0,0,"获得【千服庆典礼包】");
else
player:alert(10,0,0,"您已经领取过千服庆典礼包,不能再次领取");
end
else
player:alert(10,0,0,"您的背包不足10格,无法领取");
end
else
player:alert(10,0,0,"您的等级未达到60级,不能领取千服庆典礼包");
end
ontalk2016_11(npc,0,player,0);
end
 
function ontalk2016_8(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
 
      <b>活动兑换:</b>
 
 
         集齐:烈焰千服            <u><a href='event:M2402,801'>兑换</a></u>
 
         集齐:烈焰千服庆典        <u><a href='event:M2402,802'>兑换</a></u>
 
         集齐:烈焰千服庆典活动    <u><a href='event:M2402,803'>兑换</a></u>
 
 
 
 
 
 
 
                                    <u><a href='event:M2402,11'>返回上页</a></u>
]]);
end
 
function ontalk2016_801(npc,event,player)
if player:num_item(18001,1) >=1 and player:num_item(18002,1) >=1 and player:num_item(18009,1) >=1 and player:num_item(18004,1) >=1 then
player:add_vcoin(1500); -- 获得1500元宝
player:remove_item(18001,1); -- 移除 烈焰千服
player:remove_item(18002,1);
player:remove_item(18009,1);
player:remove_item(18004,1);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]集齐、烈、焰、千、服,获得1500元宝奖励",2,1000,0,1);
else
player:alert(10,0,0,"您尚未集齐‘烈焰千服’,可以挖宝获取哦!");
end
ontalk2016_8(npc,0,player,0);
end
 
function ontalk2016_802(npc,event,player)
if player:num_item(18001,1) >=1 and player:num_item(18002,1) >=1 and player:num_item(18009,1) >=1 and player:num_item(18004,1) >=1 and player:num_item(18005,1) >=1 and player:num_item(18006,1) >=1 then
player:add_vcoin(15000); -- 获得 15000 元宝
player:remove_item(18001,1); -- 移除 烈焰千服庆典
player:remove_item(18002,1);
player:remove_item(18009,1);
player:remove_item(18004,1);
player:remove_item(18005,1);
player:remove_item(18006,1);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]集齐、烈、焰、千、服、庆、典,获得15000元宝奖励",2,1000,0,1);
else
player:alert(10,0,0,"您尚未集齐‘烈焰千服庆典’,可以挖宝获取哦!");
end
ontalk2016_8(npc,0,player,0);
end
 
function ontalk2016_803(npc,event,player)
if player:num_item(18001,1) >=1 and player:num_item(18002,1) >=1 and player:num_item(18009,1) >=1 and player:num_item(18004,1) >=1 and player:num_item(18005,1) >=1 and player:num_item(18006,1) >=1 and player:num_item(18007,1) >=1 and player:num_item(18008,1) >=1 then
player:add_vcoin(150000); -- 获得 150000 元宝
player:remove_item(18001,1); -- 移除 烈焰千服庆典活动
player:remove_item(18002,1);
player:remove_item(18009,1);
player:remove_item(18004,1);
player:remove_item(18005,1);
player:remove_item(18006,1);
player:remove_item(18007,1);
player:remove_item(18008,1);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]集齐、烈、焰、千、服、庆、典、活、动,获得150000元宝奖励",2,1000,0,1);
else
player:alert(10,0,0,"您尚未集齐‘烈焰千服庆典活动’,可以挖宝获取哦!")
end
ontalk2016_8(npc,0,player,0);
end
 
function ontalk2016_9(npc,event,player)
if player:get_param(263) > 0 then
player:add_vcoin_bind(player:get_param(263));
player:set_param(263,0);
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]领取千服活动充值返利烈焰币",2,1000,0,1);
return;
else
player:alert(10,0,0,"您今天没有充值元宝,不能领取充值返利哦~")
end
ontalk2016_11(npc,0,player,0);
end
 
Npc2016Funid = 
{
[0] = ontalk2016;
[1] = ontalk2016_1;
[2] = ontalk2016_2;
[3] = ontalk2016_3;
[4] = ontalk2016_4;
[5] = ontalk2016_5;
[6] = ontalk2016_6;
[7] = ontalk2016_7;
[8] = ontalk2016_8;
[9] = ontalk2016_9;
[11] = ontalk2016_11;
[20] = ontalk2016_20;
[21] = ontalk2016_21;
[22] = ontalk2016_22;
[23] = ontalk2016_23;
[24] = ontalk2016_24;
[25] = ontalk2016_25;
[26] = ontalk2016_26;
[27] = ontalk2016_27;
[28] = ontalk2016_28;
[29] = ontalk2016_29;
[30] = ontalk2016_30;
[101] = ontalk2016_101;
[102] = ontalk2016_102;
[103] = ontalk2016_103;
[201] = ontalk2016_201;
[202] = ontalk2016_202;
[203] = ontalk2016_203;
[204] = ontalk2016_204;
[2011] = ontalk2016_2011;
[2021] = ontalk2016_2021;
[2031] = ontalk2016_2031;
[2041] = ontalk2016_2041;
[300] = ontalk2016_300;
[301] = ontalk2016_301;
[302] = ontalk2016_302;
[303] = ontalk2016_303;
[304] = ontalk2016_304;
[307] = ontalk2016_307;
[308] = ontalk2016_308;
[309] = ontalk2016_309;
[310] = ontalk2016_310;
[311] = ontalk2016_311;
[312] = ontalk2016_312;
[313] = ontalk2016_313;
[314] = ontalk2016_314;
[315] = ontalk2016_315;
[360] = ontalk2016_360;
[370] = ontalk2016_370;
[371] = ontalk2016_371;
[372] = ontalk2016_372;
[380] = ontalk2016_380;
[381] = ontalk2016_381;
[382] = ontalk2016_382;
[383] = ontalk2016_383;
[384] = ontalk2016_384;
[385] = ontalk2016_385;
[390] = ontalk2016_390;
[391] = ontalk2016_391;
[392] = ontalk2016_392;
[393] = ontalk2016_393;
[394] = ontalk2016_394;
[395] = ontalk2016_395;
[396] = ontalk2016_396;
[401] = ontalk2016_401;
[402] = ontalk2016_402;
[501] = ontalk2016_501;
[502] = ontalk2016_502;
[503] = ontalk2016_503;
[504] = ontalk2016_504;
[601] = ontalk2016_601;
[602] = ontalk2016_602;
[603] = ontalk2016_603;
[604] = ontalk2016_604;
[605] = ontalk2016_605;
[606] = ontalk2016_606;
[607] = ontalk2016_607;
[608] = ontalk2016_608;
[609] = ontalk2016_609;
[801] = ontalk2016_801;
[802] = ontalk2016_802;
[803] = ontalk2016_803;
[3001] = ontalk2016_3001;
[3002] = ontalk2016_3002;
[3003] = ontalk2016_3003;
[3011] = ontalk2016_3011;
[3012] = ontalk2016_3012;
[3013] = ontalk2016_3013;
[3014] = ontalk2016_3014;
[3021] = ontalk2016_3021;
[3022] = ontalk2016_3022;
[3023] = ontalk2016_3023;
[3024] = ontalk2016_3024;
[3031] = ontalk2016_3031;
[3032] = ontalk2016_3032;
[3033] = ontalk2016_3033;
[3034] = ontalk2016_3034;
[3041] = ontalk2016_3041;
[3042] = ontalk2016_3042;
[3043] = ontalk2016_3043;
[3071] = ontalk2016_3071;
[3072] = ontalk2016_3072;
[3073] = ontalk2016_3073;
[3074] = ontalk2016_3074;
[3081] = ontalk2016_3081;
[3082] = ontalk2016_3082;
[3083] = ontalk2016_3083;
[3084] = ontalk2016_3084;
[3091] = ontalk2016_3091;
[3092] = ontalk2016_3092;
[3093] = ontalk2016_3093;
[3094] = ontalk2016_3094;
[3101] = ontalk2016_3101;
[3102] = ontalk2016_3102;
[3103] = ontalk2016_3103;
[3104] = ontalk2016_3104;
[3111] = ontalk2016_3111;
[3112] = ontalk2016_3112;
[3113] = ontalk2016_3113;
[3114] = ontalk2016_3114;
[3121] = ontalk2016_3121;
[3122] = ontalk2016_3122;
[3123] = ontalk2016_3123;
[3124] = ontalk2016_3124;
[3131] = ontalk2016_3131;
[3132] = ontalk2016_3132;
[3133] = ontalk2016_3133;
[3134] = ontalk2016_3134;
[3141] = ontalk2016_3141;
[3142] = ontalk2016_3142;
[3143] = ontalk2016_3143;
[3144] = ontalk2016_3144;
[3151] = ontalk2016_3151;
[3152] = ontalk2016_3152;
[3153] = ontalk2016_3153;
[3154] = ontalk2016_3154;
[3601] = ontalk2016_3601;
[3602] = ontalk2016_3602;
[3701] = ontalk2016_3701;
[3702] = ontalk2016_3702;
[3703] = ontalk2016_3703;
[3704] = ontalk2016_3704;
[3705] = ontalk2016_3705;
[3706] = ontalk2016_3706;
[3711] = ontalk2016_3711;
[3712] = ontalk2016_3712;
[3713] = ontalk2016_3713;
[3714] = ontalk2016_3714;
[3715] = ontalk2016_3715;
[3716] = ontalk2016_3716;
[3721] = ontalk2016_3721;
[3722] = ontalk2016_3722;
[3723] = ontalk2016_3723;
[3724] = ontalk2016_3724;
[3725] = ontalk2016_3725;
[3726] = ontalk2016_3726;
[3801] = ontalk2016_3801;
[3802] = ontalk2016_3802;
[3803] = ontalk2016_3803;
[3804] = ontalk2016_3804;
[3805] = ontalk2016_3805;
[3806] = ontalk2016_3806;
[3811] = ontalk2016_3811;
[3812] = ontalk2016_3812;
[3813] = ontalk2016_3813;
[3814] = ontalk2016_3814;
[3815] = ontalk2016_3815;
[3816] = ontalk2016_3816;
[3821] = ontalk2016_3821;
[3822] = ontalk2016_3822;
[3823] = ontalk2016_3823;
[3824] = ontalk2016_3824;
[3825] = ontalk2016_3825;
[3826] = ontalk2016_3826;
[3831] = ontalk2016_3831;
[3832] = ontalk2016_3832;
[3833] = ontalk2016_3833;
[3834] = ontalk2016_3834;
[3835] = ontalk2016_3835;
[3836] = ontalk2016_3836;
[3841] = ontalk2016_3841;
[3842] = ontalk2016_3842;
[3843] = ontalk2016_3843;
[3844] = ontalk2016_3844;
[3845] = ontalk2016_3845;
[3846] = ontalk2016_3846;
[3851] = ontalk2016_3851;
[3852] = ontalk2016_3852;
[3853] = ontalk2016_3853;
[3854] = ontalk2016_3854;
[3855] = ontalk2016_3855;
[3856] = ontalk2016_3856;
[3901] = ontalk2016_3901;
[3902] = ontalk2016_3902;
[3903] = ontalk2016_3903;
[3904] = ontalk2016_3904;
[3905] = ontalk2016_3905;
[3906] = ontalk2016_3906;
[3911] = ontalk2016_3911;
[3912] = ontalk2016_3912;
[3913] = ontalk2016_3913;
[3914] = ontalk2016_3914;
[3915] = ontalk2016_3915;
[3916] = ontalk2016_3916;
[3921] = ontalk2016_3921;
[3922] = ontalk2016_3922;
[3923] = ontalk2016_3923;
[3924] = ontalk2016_3924;
[3925] = ontalk2016_3925;
[3926] = ontalk2016_3926;
[3931] = ontalk2016_3931;
[3932] = ontalk2016_3932;
[3933] = ontalk2016_3933;
[3934] = ontalk2016_3934;
[3935] = ontalk2016_3935;
[3936] = ontalk2016_3936;
[3941] = ontalk2016_3941;
[3942] = ontalk2016_3942;
[3943] = ontalk2016_3943;
[3944] = ontalk2016_3944;
[3945] = ontalk2016_3945;
[3946] = ontalk2016_3946;
[3951] = ontalk2016_3951;
[3952] = ontalk2016_3952;
[3953] = ontalk2016_3953;
[3954] = ontalk2016_3954;
[3955] = ontalk2016_3955;
[3956] = ontalk2016_3956;
[3961] = ontalk2016_3961;
[3962] = ontalk2016_3962;
[3963] = ontalk2016_3963;
[3964] = ontalk2016_3964;
[3965] = ontalk2016_3965;
[3966] = ontalk2016_3966;
[6011] = ontalk2016_6011;
[6012] = ontalk2016_6012;
[6013] = ontalk2016_6013;
[6021] = ontalk2016_6021;
[6022] = ontalk2016_6022;
[6023] = ontalk2016_6023;
[6031] = ontalk2016_6031;
[6032] = ontalk2016_6032;
[6033] = ontalk2016_6033;
[6041] = ontalk2016_6041;
[6042] = ontalk2016_6042;
[6043] = ontalk2016_6043;
[6051] = ontalk2016_6051;
[6052] = ontalk2016_6052;
[6053] = ontalk2016_6053;
[6061] = ontalk2016_6061;
[6062] = ontalk2016_6062;
[6063] = ontalk2016_6063;
[6071] = ontalk2016_6071;
[6072] = ontalk2016_6072;
[6073] = ontalk2016_6073;
[6081] = ontalk2016_6081;
[6082] = ontalk2016_6082;
[6083] = ontalk2016_6083;
[6091] = ontalk2016_6091;
[6092] = ontalk2016_6092;
[6093] = ontalk2016_6093;
}
 
function CreatureNpcFun(npc,event,player,funid)
if Npc2016Funid[funid] ~= nil then
Npc2016Funid[funid](npc,event,player);
end
end
 
RegisterUnitEvent(2016,20,"ontalk2016")
RegisterUnitEvent(2016,29,"CreatureNpcFun")