给烈焰私服服务端增加一个充值才可领取的土豪宝箱
发表时间:2015-12-31 02:44点击人气:责任编辑:admin
function item_19020(item,event,player)---土豪宝箱
if player:num_bag_black()>=1 then
local i=math.random(1,135);
if i<=10 then
player:add_item(10196,1,0);
player:alert(1,0,0,"恭喜您:获得玫瑰·金色诱惑");
elseif i>=11 and i<=35 then
player:add_item(18100,1,0);
player:alert(1,0,0,"恭喜您:获得烈焰锻造石");
elseif i>=36 and i<=60 then
player:add_item(10121,1,0);
player:alert(1,0,0,"恭喜您:获得金刚石(大)");
elseif i>=61 and i<=85 then
player:add_item(10222,1,0);
player:alert(1,0,0,"恭喜您:注灵石(13级)");
elseif i>=86 and i<=110 then
player:add_item(10223,1,0);
player:alert(1,0,0,"恭喜您:注灵石(14级)");
elseif i>=111 and i<=135 then
player:add_item(10224,1,0);
player:alert(1,0,0,"恭喜您:注灵石(15级)");
end
return 0;
else
player:alert(10,0,0,"请确保您的背包有至少一格位置");
end
end
if player:num_bag_black()>=1 then
local i=math.random(1,135);
if i<=10 then
player:add_item(10196,1,0);
player:alert(1,0,0,"恭喜您:获得玫瑰·金色诱惑");
elseif i>=11 and i<=35 then
player:add_item(18100,1,0);
player:alert(1,0,0,"恭喜您:获得烈焰锻造石");
elseif i>=36 and i<=60 then
player:add_item(10121,1,0);
player:alert(1,0,0,"恭喜您:获得金刚石(大)");
elseif i>=61 and i<=85 then
player:add_item(10222,1,0);
player:alert(1,0,0,"恭喜您:注灵石(13级)");
elseif i>=86 and i<=110 then
player:add_item(10223,1,0);
player:alert(1,0,0,"恭喜您:注灵石(14级)");
elseif i>=111 and i<=135 then
player:add_item(10224,1,0);
player:alert(1,0,0,"恭喜您:注灵石(15级)");
end
return 0;
else
player:alert(10,0,0,"请确保您的背包有至少一格位置");
end
end
烈焰的土豪宝箱可以设置在每日首充内。开启该宝箱时,有几率获得各类道具或装备,可自行更改其中的几率和装备道具代码.
yeyo6原创烈焰服务端代码,严禁转载.