-- --- Опыта за Бориса добившей семье -- function BorusGetLevelExp(MapID, InstanceID, RoleID) -- local lev_exp = 0 -- local lev = role.GetRoleLevel(MapID, InstanceID, RoleID) -- if lev >= 50 and lev <= 54 then -- lev_exp = 198450 -- elseif lev >= 55 and lev <= 59 then -- lev_exp = 231525 -- elseif lev >= 60 and lev <= 64 then -- lev_exp = 505440 -- elseif lev >= 65 and lev <= 69 then -- lev_exp = 756645 -- elseif lev >= 70 and lev <= 74 then -- lev_exp = 1190700 -- elseif lev >= 75 and lev <= 79 then -- lev_exp = 1672110 -- elseif lev >= 80 and lev <= 84 then -- lev_exp = 2903040 -- elseif lev >= 85 and lev <= 89 then -- lev_exp = 3894450 -- elseif lev >= 90 and lev <= 94 then -- lev_exp = 5919480 -- elseif lev >= 95 and lev <= 99 then -- lev_exp = 7671888 -- elseif lev >= 100 and lev <= 104 then -- lev_exp = 8640000 -- elseif lev >= 105 and lev <= 109 then -- lev_exp = 12000000 -- elseif lev >= 110 and lev <= 114 then -- lev_exp = 14400000 -- elseif lev >= 115 and lev <= 120 then -- lev_exp = 12000000 -- end -- role.AddRoleExp(MapID, InstanceID, RoleID, lev_exp) -- end -- --- Убийство Бориса -- function c6040336_Die(MapID, InstanceID, TargetID, TargetTypeID, RoleID) -- local FamilyID = role.GetRoleFamilyID(MapID, InstanceID, RoleID) -- if FamilyID and FamilyID ~= 4294967295 then -- -- AddDragonExp(FamilyID, 60) -- family_dragon_sql(FamilyID, 60, 1) -- local c = math.random(100) -- local drop = { -- {item = 4820180, chance = 10, num = 1}, -- {item = 3500209, chance = 20, num = 1}, -- {item = 4630601, chance = 40, num = 1}, -- {item = 3500061, chance = 5, num = 3} -- } -- local lootRoleTable = cre.GetAroundRole(MapID, InstanceID, TargetID, 200000, 200000) -- for k, Roles in pairs(lootRoleTable) do -- local OtherFamilyID = role.GetRoleFamilyID(MapID, InstanceID, Roles) -- if FamilyID == OtherFamilyID then -- role.AddRoleItem(MapID, InstanceID, Roles, 6600979, 10, -1, 8, 404) -- role.AddRoleItem(MapID, InstanceID, Roles, 6600980, 1, -1, 8, 404) -- BorusGetLevelExp(MapID, InstanceID, Roles) -- local BorusDroped = false -- for i, item in ipairs(drop) do -- if c <= item.chance and not BorusDroped then -- if math.random(5) == 1 then -- role.AddRoleItem(MapID, InstanceID, Roles, item.item, item.num, -1, 8, 404) -- BorusDroped = true -- local MsgID = msg.BeginMsgEvent() -- msg.AddMsgEvent(MsgID, 102, 900268) -- msg.AddMsgEvent(MsgID, 2, Roles) -- msg.AddMsgEvent(MsgID, 4, item.item) -- msg.DispatchWorldMsgEvent(MsgID) -- else -- local MsgID = msg.BeginMsgEvent() -- msg.AddMsgEvent(MsgID, 102, 900267) -- msg.AddMsgEvent(MsgID, 2, RoleID) -- msg.DispatchWorldMsgEvent(MsgID) -- break -- end -- end -- end -- end -- end -- end -- end -- aux.RegisterCreatureEvent(6040336, 4, "c6040336_Die") -- --- Старт Ивента -- function nBoris_Start(actID) -- local BorusDroped = false -- local Family_Boss = map.MapCreateColCreature(3440850216, -1, 6040336, 3306, 7160, 849, 1) -- map.SetMapScriptData(3440850216, -1, 1, 13, Family_Boss) -- end -- aux.RegisterActEvent(1202, 2, "nBoris_Start") -- --- Окончание ивента -- function nBoris_End(actID) -- local BorusDroped = false -- map.MapDeleteCreature(3440850216, -1, map.GetMapScriptData(3440850216, -1, 1, 13)) -- end -- aux.RegisterActEvent(1202, 3, "nBoris_End")