烈焰私服合成神兵装备脚本
发表时间:2017-05-03 11:44点击人气:责任编辑:admin
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")脚本根据各种材料合成相应神兵武器,代码内的材料和装备ID 需要针对自己服的装备ID 进行修改,不然无法正常显示和执行
- 上一篇:烈焰私服可用充值返利使者脚本
- 下一篇:烈焰私服最新自定义泡点脚本可设置参数