local m_game_vertex = who:game_vertex_id() local lvert = game_graph():vertex(m_game_vertex) local lid = lvert:level_id() local mlevel = alife():level_name(lid) local m_s_level = mlevel
local victim_name = victim:character_name()
local killer_name = who:character_name()
local victim_comm = victim:character_community()
local killer_comm = who:character_community()
local post_message_prob = 0.8
if killer_comm=="monster" then local m_clsid = get_clsid(who) killer_name = monster_classes[m_clsid] end if killer_name==victim_name then killer_name="Выброс" killer_comm="monster" end
if killer_comm~=nil then local m_text_kill_string=killer_name.." ("..game.translate_string(killer_comm).."), убил "..victim_name.."("..game.translate_string(victim_comm).."). Место: "..game.translate_string(m_s_level) local news_text = "%c[255,160,160,160]".."Сообщение:".."\\n".."%c[default]"..m_text_kill_string local news_caption = game.translate_string("st_tip") local texture = "ui_iconsTotal_weapons"
db.actor:give_game_news(news_caption, news_text, texture, 15*1000, 15*1000) end