--???????????��??? function c9010358_OnDie(MapID, InstanceID, TargetID, TargetTypeID, RoleID) local curmon = tonumber(os.date("%m"))--?? local curday = tonumber(os.date("%d"))--?? local curyear = tonumber(os.date("%Y"))--?? local curhour = tonumber(os.date("%H"))--��? local curmin = tonumber(os.date("%M"))--???? local day = os.date("%A")--???? local a = math.random(300) if (curhour >= 19 and curhour <= 19) then local r = math.random(10400) local temp = 0 local index = 1 local tbl = {} tbl[1] = {4530097,1,1,300} tbl[2] = {4530102,5,1,1200} tbl[3] = {4530105,5,1,1200} tbl[4] = {4510020,1,1,700} tbl[5] = {4820047,7,1,2500} tbl[6] = {4820180,1,1,50} tbl[7] = {4820255,1,1,1000} tbl[8] = {4820238,1,1,850} tbl[9] = {4700260,1,1,1300} tbl[10] = {3030117,1,1,900} tbl[11] = {3030118,1,1,400} for i = 1,12 do temp = temp + tbl[i][4] if temp >= r then index = i break end end if a <= 50 then role.AddRoleItem(MapID, InstanceID, RoleID, tbl[index][1], tbl[index][2], tbl[index][3], 8, 420) end end end -- Disabled: these mobs are already registered in activity/Hram_prozren/Hram_act.lua. -- aux.RegisterCreatureEvent(9010358, 4, "c9010358_OnDie") -- aux.RegisterCreatureEvent(9010359, 4, "c9010358_OnDie") -- aux.RegisterCreatureEvent(9010360, 4, "c9010358_OnDie") -- aux.RegisterCreatureEvent(9010361, 4, "c9010358_OnDie") -- aux.RegisterCreatureEvent(9010362, 4, "c9010358_OnDie")