|
if GetAnswer() == 25 then
**Ask("兑换仙器装备需要20个仙宫碎片!")
SetAnswer(1,"仙器一阶头盔兑换仙器二阶头盔(男)")
SetAnswer(2,"仙器一阶头盔兑换仙器二阶头盔(女)")
SetAnswer(3,"仙器一阶铠甲兑换仙器二阶铠甲(男)")
SetAnswer(4,"仙器一阶铠甲兑换仙器二阶铠甲(女)")
SetAnswer(5,"仙器一阶腰带兑换仙器二阶腰带")
SetAnswer(6,"仙器一阶鞋子兑换仙器二阶鞋子")
SetAnswer(7,"仙器一阶项链兑换仙器二阶项链")
SetAnswer(15,"我才不和你换呢")
WaitAnswer(15)
if GetAnswer() == 1 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703135) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703135, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713135, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 2 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703136) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703136, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713136, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 3 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703137) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703137, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713137, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 4 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703138) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703138, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713138, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 5 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703139) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703139, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713139, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 6 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703140) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703140, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713140, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end
elseif GetAnswer() == 7 and l_1_1 then
script:SetSaying(true)
if player:GetItems():GetItemCount(703141) < 1 then
ShowHint("你还缺少一些材料,无法兑换")
return
end
if player:GetItems():GetItemCount(703116) < 20 then
ShowHint("你还缺少一些材料,无法兑换")
return
else
player:GetItems():RemoveItem(703141, 1)
player:GetItems():RemoveItem(703116, 20)
player:GetItems():AddItem(713141, 1)
ShowHint("兑换成功#46")
script:Rumor(string.format("#W%s#O积攒了许久,#Y终于兑换了一件仙器二阶装备#089", player:GetName()), false)
end |
|