diff --git a/mapper/localization.lua b/mapper/localization.lua index 0c2c5c00..b175657f 100644 --- a/mapper/localization.lua +++ b/mapper/localization.lua @@ -3,7 +3,7 @@ amap.localization = amap.localization or { current_short = "" } -amap.localization.db = db:create("roomDescriptions", { +amap.localization.db = db:create("roomdescriptions", { roomDescriptions = { room_id = -1, short = "", diff --git a/skrypty/misc/counter.lua b/skrypty/misc/counter.lua index 4634b72b..9f26cc78 100644 --- a/skrypty/misc/counter.lua +++ b/skrypty/misc/counter.lua @@ -6,7 +6,7 @@ misc.counter["all_kills"] = misc.counter["all_kills"] or 0 misc.counter.killed_amount["JA"] = misc.counter.killed_amount["JA"] or 0 -- counter2 -misc.counter2["db_log"] = db:create("counter2_log", { +misc.counter2["db_log"] = db:create("counter2log", { counter2_log = { year = 0, month = 0, @@ -14,11 +14,12 @@ misc.counter2["db_log"] = db:create("counter2_log", { hour = "", text = "", character = "", + roomId = 0, changed = db:Timestamp("CURRENT_TIMESTAMP") } }) -misc.counter2["db_daysum"] = db:create("counter2_daysum", { +misc.counter2["db_daysum"] = db:create("counter2daysum", { counter2_daysum = { year = 0, month = 0, diff --git a/skrypty/misc/counter/counter2.lua b/skrypty/misc/counter/counter2.lua index bbccaecc..9115a211 100644 --- a/skrypty/misc/counter/counter2.lua +++ b/skrypty/misc/counter/counter2.lua @@ -17,7 +17,8 @@ function misc.counter2:add_log(original_text, year, month, day, hour) day = day, text = original_text, hour = hour, - character = scripts.character_name + character = scripts.character_name, + roomId = amap.curr.id }) if not ret then