热门搜索: LOL雷霆之怒蓝月传奇传奇霸业
function ontalk2045(npc,event,player)player:echo(0,npc:GetLowGUID(),[[
烈焰私服神剑x2+烈焰私服石x1+玫瑰·金色诱惑x1#&item20913#& <u><a href='event:M2402,1'>锻造</a></u> 轩辕剑x2+烈焰私服石*2+玫瑰·金色诱惑*1#&item20910#& <u><a href='event:M2402,2'>锻造</a></u> 诛仙剑x2+烈焰私服石*2+玫瑰·金色诱惑*2#&item20911#& <u><a href='event:M2402,3'>锻造</a></u> 死方悯生剑x2+烈焰私服石x2+玫瑰·金色诱惑x3#&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 and player:num_item(10196) >= 1 then player:remove_item(20900,2); player:remove_item(18100,1); player:remove_item(10196,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); endend
RegisterUnitEvent(2045,20,"ontalk2045")RegisterUnitEvent(2045,29,"CreatureNpcFun")