页游SF|页游咯发布站
公益性信息网站,请自行辨别真伪
网站首页
取名符号
技术文章
 
烈焰私服服务端脚本之时装锻造脚本[需自行修改]
文章作者:kevels 文章来源:页游SF|页游咯发布站 更新时间:2016-4-5 11:52:13

local strmade = {"少爷","郡主"}
local sz ={
{id=30801,need="",name="<font color='#0099FF'>时装·精灵之翼(男)</font>"},
{id=30802,need="",name="<font color='#0099FF'>时装·精灵之翼(女)</font>"},
{id=30803,need="时装·精灵之翼(男)",name="<font color='#0099FF'>时装·霓虹之翼(男)</font>"},
{id=30804,need="时装·精灵之翼(女)",name="<font color='#0099FF'>时装·霓虹之翼(女)</font>"},
{id=30805,need="时装·霓虹之翼(男)",name="<font color='#00FF00'>时装·碧焰之翼(男)</font>"},
{id=30806,need="时装·霓虹之翼(女)",name="<font color='#00FF00'>时装·碧焰之翼(女)</font>"},
{id=30807,need="时装·碧焰之翼(男)",name="<font color='#00FF00'>时装·赤霞之翼(男)</font>"},
{id=30808,need="时装·碧焰之翼(女)",name="<font color='#00FF00'>时装·赤霞之翼(女)</font>"},
{id=30809,need="时装·赤霞之翼(男",name="<font color='#FF00FF'>时装·凤凰之翼(男)</font>"},
{id=30810,need="时装·赤霞之翼(女)",name="<font color='#FF00FF'>时装·凤凰之翼(女)</font>"},
{id=30811,need="时装·凤凰之翼(男",name="<font color='#FF00FF'>时装·苍龙之翼(男)</font>"},
{id=30812,need="时装·凤凰之翼(女)",name="<font color='#FF00FF'>时装·苍龙之翼(女)</font>"},
{id=30813,need="时装·苍龙之翼(男)",name="<font color='#FF0000'>时装·帝仙之翼(男)</font>"},
{id=30814,need="时装·苍龙之翼(女)",name="<font color='#FF0000'>时装·帝仙之翼(女)</font>"},
{id=30815,need="时装·帝仙之翼(男)",name="<font color='#FF0000'>时装·九天之翼(男)</font>"},
{id=30816,need="时装·帝仙之翼(女)",name="<font color='#FF0000'>时装·九天之翼(女)</font>"},
{id=30817,need="时装·九天之翼(男",name="<font color='#FF0000'>时装·大天使之翼(男)</font>"},
{id=30818,need="时装·九天之翼(女)",name="<font color='#FF0000'>时装·大天使之翼(女)</font>"},
{id=30819,need="时装·大天使之翼(男)",name="<font color='#FFCC00'>时装·暗天使之翼(男)</font>"},
{id=30820,need="时装·大天使之翼(女)",name="<font color='#FFCC00'>时装·暗天使之翼(女)</font>"},
{id=30821,need="时装·暗天使之翼(男",name="<font color='#FFCC00'>时装·翼天使之翼(男)</font>"},
{id=30822,need="时装·暗天使之翼(女)",name="<font color='#FFCC00'>时装·翼天使之翼(女)</font>"},
{id=30823,need="时装·翼天使之翼(男)",name="<font color='#FFCC00'>时装·炽天使之翼(男)</font>"},
{id=30824,need="时装·翼天使之翼(女)",name="<font color='#FFCC00'>时装·炽天使之翼(女)</font>"}
}

linyu={
"<font color='#9999FF'>    1级灵羽</font>",
"<font color='#9999FF'>    2级灵羽</font>",
"<font color='#0099FF'>    3级灵羽</font>",
"<font color='#0099FF'>    4级灵羽</font>",
"<font color='#00FF00'>    5级灵羽</font>",
"<font color='#00FF00'>    6级灵羽</font>",
"<font color='#FF00FF'>    7级灵羽</font>",
"<font color='#FF00FF'>    8级灵羽</font>",
"<font color='#FF0000'>    9级灵羽</font>",
"<font color='#FF0000'>    10级灵羽</font>",
"<font color='#FFCC00'>    11级灵羽</font>",
"<font color='#FFCC00'>    12级灵羽</font>"
}

function ontalk3011(npc,event,player)

  player:echo(0,npc:GetLowGUID(),[[
#&talk_line#&
                <font size="20px"><font color='#FFFF99'>羽</font><font color='#FFFF00'>翼</font><font color='#FFCC00'>时</font><font color='#ffb400'>装</font></font>
#&talk_line#&
人靠衣装马靠鞍 穿上时装跑的欢
这位]]..strmade[player:get_gender()]..[[,您有灵羽吗?根据灵羽等级不同,我能制作出对应等级的高级时装!
#&talk_line#&


#&talk_line#& 
                <font size="16px"><u><a href='event:M2402,1'>兑换羽翼时装</a></u></font>
#&talk_line#&


#&talk_line#& 
                <font size="16px"><u><a href='event:M2402,2'>合成高级灵羽</a></u></font>
#&talk_line#&

]]);
end

function ontalk3011_1(npc,event,player)
      player:echo(0,npc:GetLowGUID(),[[

#&talk_line#&

#&item30801#&<font color='#0099FF'>时装·精灵之翼(男)</font>     <a href='event:M2402,101'>【<u>兑换</u>】</a>
#&item30802#&<font color='#0099FF'>时装·精灵之翼(女)</font>     <a href='event:M2402,102'>【<u>兑换</u>】</a>
#&item30803#&<font color='#0099FF'>时装·霓虹之翼(男)</font>     <a href='event:M2402,103'>【<u>兑换</u>】</a>
#&item30804#&<font color='#0099FF'>时装·霓虹之翼(女)</font>     <a href='event:M2402,104'>【<u>兑换</u>】</a>
#&item30805#&<font color='#00FF00'>时装·碧焰之翼(男)</font>     <a href='event:M2402,105'>【<u>兑换</u>】</a>
#&item30806#&<font color='#00FF00'>时装·碧焰之翼(女)</font>     <a href='event:M2402,106'>【<u>兑换</u>】</a>
#&talk_line#&
             <a href='event:M2402,0'>【回首页】</a> | <a href='event:M2402,11'>【下一页】</a>
]]);
end
function ontalk3011_11(npc,event,player)
      player:echo(0,npc:GetLowGUID(),[[

#&talk_line#&

#&item30807#&<font color='#00FF00'>时装·赤霞之翼(男)</font>     <a href='event:M2402,107'>【<u>兑换</u>】</a>
#&item30808#&<font color='#00FF00'>时装·赤霞之翼(女)</font>     <a href='event:M2402,108'>【<u>兑换</u>】</a>
#&item30809#&<font color='#FF00FF'>时装·凤凰之翼(男)</font>     <a href='event:M2402,109'>【<u>兑换</u>】</a>
#&item30810#&<font color='#FF00FF'>时装·凤凰之翼(女)</font>     <a href='event:M2402,110'>【<u>兑换</u>】</a>
#&item30811#&<font color='#FF00FF'>时装·苍龙之翼(男)</font>     <a href='event:M2402,111'>【<u>兑换</u>】</a>
#&item30812#&<font color='#FF00FF'>时装·苍龙之翼(女)</font>     <a href='event:M2402,112'>【<u>兑换</u>】</a>
#&talk_line#&
             <a href='event:M2402,1'>【上一页】</a> | <a href='event:M2402,12'>【下一页】</a>
]]);
end
function ontalk3011_12(npc,event,player)
      player:echo(0,npc:GetLowGUID(),[[

#&talk_line#&

#&item30813#&<font color='#FF0000'>时装·帝仙之翼(男)</font>     <a href='event:M2402,113'>【<u>兑换</u>】</a>
#&item30814#&<font color='#FF0000'>时装·帝仙之翼(女)</font>     <a href='event:M2402,114'>【<u>兑换</u>】</a>
#&item30815#&<font color='#FF0000'>时装·九天之翼(男)</font>     <a href='event:M2402,115'>【<u>兑换</u>】</a>
#&item30816#&<font color='#FF0000'>时装·九天之翼(女)</font>     <a href='event:M2402,116'>【<u>兑换</u>】</a>
#&item30817#&<font color='#FF0000'>时装·大天使之翼(男)</font>   <a href='event:M2402,117'>【<u>兑换</u>】</a>
#&item30818#&<font color='#FF0000'>时装·大天使之翼(女)</font>   <a href='event:M2402,118'>【<u>兑换</u>】</a>
#&talk_line#&
             <a href='event:M2402,11'>【上一页】</a> | <a href='event:M2402,13'>【下一页】</a>
]]);
end
function ontalk3011_13(npc,event,player)
      player:echo(0,npc:GetLowGUID(),[[

#&talk_line#&

#&item30819#&<font color='#FFCC00'>时装·暗天使之翼(男)</font>   <a href='event:M2402,119'>【<u>兑换</u>】</a>
#&item30820#&<font color='#FFCC00'>时装·暗天使之翼(女)</font>   <a href='event:M2402,120'>【<u>兑换</u>】</a>
#&item30821#&<font color='#FFCC00'>时装·翼天使之翼(男)</font>   <a href='event:M2402,121'>【<u>兑换</u>】</a>
#&item30822#&<font color='#FFCC00'>时装·翼天使之翼(女)</font>   <a href='event:M2402,122'>【<u>兑换</u>】</a>
#&item30823#&<font color='#FFCC00'>时装·炽天使之翼(男)</font>   <a href='event:M2402,123'>【<u>兑换</u>】</a>
#&item30824#&<font color='#FFCC00'>时装·炽天使之翼(女)</font>   <a href='event:M2402,124'>【<u>兑换</u>】</a>
#&talk_line#&
                            <a href='event:M2402,12'>【上一页】</a>
]]);
end

function ontalk3011_101(npc,event,player)
    if player:num_item_level(19201,1) >= 1 then
        player:remove_item_level(19201,1,1);
        player:add_item(30801,1,0);
        player:alert(110,0,0,"兑换【时装·精灵之翼(男)】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font><font color='#0099FF'>时装·精灵之翼(男)</font>");  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您没有1个一级灵羽"); 
        ontalk3011_1(npc,0,player);
    end

end
function ontalk3011_102(npc,event,player)
    if player:num_item_level(19201,1) >= 1 then
        player:remove_item_level(19201,1,1);
        player:add_item(30802,1,0);
        player:alert(110,0,0,"兑换【时装·精灵之翼(男)】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font><font color='#0099FF'>时装·精灵之翼(女)</font>");  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您没有1个一级灵羽"); 
        ontalk3011_1(npc,0,player);
    end

end
function ontalk3011_103(npc,event,player)
    if player:num_item_level(19202,1) >= 1 and player:num_item_level(30801,1) >= 1 then
        player:remove_item_level(19202,1,1);
        player:remove_item_level(30801,1,1);
        player:add_item(30803,1,0);
        player:alert(110,0,0,"兑换【"..sz[3].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[3].name);  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[3].name.."<br>需要:<br>1.一件"..sz[3].need.."(无强化,注灵)<br>2.一个2级灵羽"); 
        ontalk3011_1(npc,0,player);
    end

end
function ontalk3011_104(npc,event,player)
    if player:num_item_level(19202,1) >= 1 and player:num_item_level(30802,1) >= 1 then
        player:remove_item_level(19202,1,1);
        player:remove_item_level(30802,1,1);
        player:add_item(30804,1,0);
        player:alert(110,0,0,"兑换【"..sz[4].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[4].name);  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[4].name.."<br>需要:<br>1.一件"..sz[4].need.."(无强化,注灵)<br>2.一个2级灵羽"); 
        ontalk3011_1(npc,0,player);
    end
end
function ontalk3011_105(npc,event,player)
    if player:num_item_level(19203,1) >= 1 and player:num_item_level(30803,1) >= 1 then
        player:remove_item_level(19203,1,1);
        player:remove_item_level(30803,1,1);
        player:add_item(30805,1,0);
        player:alert(110,0,0,"兑换【"..sz[5].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[5].name);  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[5].name.."<br>需要:<br>1.一件"..sz[5].need.."(无强化,注灵)<br>2.一个3级灵羽"); 
        ontalk3011_1(npc,0,player);
    end
end
function ontalk3011_106(npc,event,player)
    if player:num_item_level(19203,1) >= 1 and player:num_item_level(30804,1) >= 1 then
        player:remove_item_level(19203,1,1);
        player:remove_item_level(30804,1,1);
        player:add_item(30806,1,0);
        player:alert(110,0,0,"兑换【"..sz[6].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[6].name);  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[6].name.."<br>需要:<br>1.一件"..sz[6].need.."(无强化,注灵)<br>2.一个3级灵羽"); 
        ontalk3011_1(npc,0,player);
    end
end
function ontalk3011_107(npc,event,player)
    if player:num_item_level(19204,1) >= 1 and player:num_item_level(30805,1) >= 1 then
        player:remove_item_level(19204,1,1);
        player:remove_item_level(30805,1,1);
        player:add_item(30807,1,0);
        player:alert(110,0,0,"兑换【"..sz[7].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[7].name);  ------全局聊天框提示
        ontalk3011_11(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[7].name.."<br>需要:<br>1.一件"..sz[7].need.."(无强化,注灵)<br>2.一个4级灵羽"); 
        ontalk3011_11(npc,0,player);
    end
end
function ontalk3011_108(npc,event,player)
    if player:num_item_level(19204,1) >= 1 and player:num_item_level(30806,1) >= 1 then
        player:remove_item_level(19204,1,1);
        player:remove_item_level(30806,1,1);
        player:add_item(30808,1,0);
        player:alert(110,0,0,"兑换【"..sz[8].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[8].name);  ------全局聊天框提示
        ontalk3011_11(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[8].name.."<br>需要:<br>1.一件"..sz[8].need.."(无强化,注灵)<br>2.一个4级灵羽"); 
        ontalk3011_11(npc,0,player);
    end
end
function ontalk3011_109(npc,event,player)
    if player:num_item_level(19205,1) >= 1 and player:num_item_level(30807,1) >= 1 then
        player:remove_item_level(19205,1,1);
        player:remove_item_level(30807,1,1);
        player:add_item(30809,1,0);
        player:alert(110,0,0,"兑换【"..sz[9].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[9].name);  ------全局聊天框提示
        ontalk3011_1(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[9].name.."<br>需要:<br>1.一件"..sz[9].need.."(无强化,注灵)<br>2.一个5级灵羽"); 
    end
end
function ontalk3011_110(npc,event,player)
    if player:num_item_level(19205,1) >= 1 and player:num_item_level(30808,1) >= 1 then
        player:remove_item_level(19205,1,1);
        player:remove_item_level(30808,1,1);
        player:add_item(30810,1,0);
        player:alert(110,0,0,"兑换【"..sz[10].name.."】成功");
        player:alert(3,1000,1,"<font color='#dddddd'>传闻[</font><font color='#ff8040'>"..player:GetName().."</font><font color='#dddddd'>]在灵羽NPC处成功兑换一件</font>"..sz[10].name);  ------全局聊天框提示
        ontalk3011_11(npc,0,player);
    else
        player:alert(1,1000,1,"您的材料不齐,<br>"..sz[10].name.."<br>需要:<br>1.一件"..sz[10].need.."(无强化,注灵)<br>2.一个5级灵羽"); 
        ontalk3011_11(npc,0,player);
    end
end
function ontalk3011_111(npc,event,player)
    if player:num_item_level(19206,1) >= 1 and player:n