烈焰私服合成神兵装备脚本
发布时间:2017-07-09 17:03:00 点击:
脚本根据各种材料合成相应神兵武器,代码内的材料和装备ID 需要针对自己服的装备ID 进行修改,不然无法正常显示和执行
function ontalk2045(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[烈焰神剑*2+烈焰石*1
#&item20913#& 锻造
轩辕剑*2+烈焰石*2+玫瑰·金色诱惑*1
#&item20910#& 锻造
诛仙剑*2+烈焰石*2+玫瑰·金色诱惑*2
#&item20911#& 锻造
死方悯生剑*2+烈焰石*2+玫瑰·金色诱惑*3
#&item20912#& 锻造
]]);
end
function ontalk2045_1(npc,event,player)
if player:num_item_level(20900,1) >= 2 and player:num_item(18100) >= 1 then
player:remove_item(20900,2);
player:remove_item(18100,1);
player:add_item(20913,1,0);
player:alert(110,0,0,"锻造成功");
else
player:alert(10,0,0,"材料不足,请确认后再来找我");
end
ontalk2045(npc,0,player,0);
end
function ontalk2045_2(npc,event,player)
if player:num_item_level(20913,1) >= 2 and player:num_item(18100) >= 2 and player:num_item(10196) >= 1 then
player:remove_item(20913,2);
player:remove_item(18100,2);
player:remove_item(10196,1);
player:add_item(20910,1,0);
player:alert(110,0,0,"锻造成功");
else
player:alert(10,0,0,"材料不足,请确认后再来找我");
end
ontalk2045(npc,0,player,0);
end
function ontalk2045_3(npc,event,player)
if player:num_item_level(20910,1) >= 2 and player:num_item(18100) >= 2 and player:num_item(10196) >= 2 then
player:remove_item(20910,2);
player:remove_item(18100,2);
player:remove_item(10196,2);
player:add_item(20911,1,0);
player:alert(110,0,0,"锻造成功");
else
player:alert(10,0,0,"材料不足,请确认后再来找我");
end
ontalk2045(npc,0,player,0);
end
function ontalk2045_4(npc,event,player)
if player:num_item_level(20911,1) >= 2 and player:num_item(18100) >= 2 and player:num_item(10196) >= 3 then
player:remove_item(20911,2);
player:remove_item(18100,2);
player:remove_item(10196,3);
player:add_item(20912,1,0);
player:alert(110,0,0,"锻造成功");
else
player:alert(10,0,0,"材料不足,请确认后再来找我");
end
ontalk2045(npc,0,player,0);
end
Npc2045Funid =
{
[0] = ontalk2045;
[3] = ontalk2045_3;
[4] = ontalk2045_4;
[1] = ontalk2045_1;
[2] = ontalk2045_2;
}
function CreatureNpcFun(npc,event,player,funid)
if Npc2045Funid[funid] ~= nil then
Npc2045Funid[funid](npc,event,player);
end
end
RegisterUnitEvent(2045,20,"ontalk2045")
RegisterUnitEvent(2045,29,"CreatureNpcFun")
进入烈焰私服合成神兵装... | 游戏客服交谈 |