烈焰私服多把神兵锻造脚本代码
function ontalk2045(npc,event,player)
player:echo(0,npc:GetLowGUID(),[[
烈焰神剑*2+烈焰石*1
#&item20913#& <u><a href='event:M2402,1'>锻造</a></u>
轩辕剑*2+烈焰石*2+玫瑰·金色诱惑*1
#&item20910#& <u><a href='event:M2402,2'>锻造</a></u>
诛仙剑*2+烈焰石*2+玫瑰·金色诱惑*2
#&item20911#& <u><a href='event:M2402,3'>锻造</a></u>
死方悯生剑*2+烈焰石*2+玫瑰·金色诱惑*3
#&item20912#& <u><a href='event:M2402,4'>锻造</a></u>
]]);
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")
- 上一篇:烈焰自动充值返利相关道具或元宝脚本代码
- 下一篇:烈焰服务端修改在线奖励道具内容方法