给烈焰服务端增加击杀怪物得元宝脚本
function mon5082(mon,event,player)
local i = math.random(1,100);
if i >= 1 and i <= 5 then
player:add_vcoin(1000);
player:alert(10,0,0,"元宝 +1000");
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]杀死[火龙魔将],获得:10000元宝",2,1000,0,1);
end
if i >= 11 and i <= 20 then
player:add_vcoin(200);
player:alert(10,0,0,"元宝 +200");
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]杀死[火龙魔将],获得:2000元宝",2,1000,0,1);
end
if i >= 21 and i <= 40 then
player:add_vcoin(100);
player:alert(10,0,0,"元宝 +100");
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]杀死[火龙魔将],获得:1000元宝",2,1000,0,1);
end
player:add_vcoin(300);
player:alert(10,0,0,"元宝 +300");
g_alert("玩家[<font color='#FF0000'>"..player:GetName().."</font>]杀死[火龙魔将],获得:300元宝",2,1000,0,1);
end
RegisterUnitEvent(5082,4,"mon5082") --B1怪
yeyo6,页游发布站,烈焰私服发布站原创发布,严禁转载