From bde82560287cd94fc77738bd3fa9524c6a6e444c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 15 Jan 2006 13:44:52 +0000 Subject: [PATCH] http://eressea.upb.de/mantis/view.php?id=788 - Muschelmeldung --- src/scripts/eressea/embassy.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/eressea/embassy.lua b/src/scripts/eressea/embassy.lua index eb707e718..86e0af466 100644 --- a/src/scripts/eressea/embassy.lua +++ b/src/scripts/eressea/embassy.lua @@ -1,10 +1,11 @@ function use_seashell(u, amount) -- Muschelplateau... + local r = get_region(165,30) local visit = u.faction.objects:get("embassy_muschel") - if visit~=nil then + if visit~=nil and u.region~= r then local turns = get_turn() - visit local msg = message("msg_event") - msg:set_string("string", tostring(u) .. " erzählt den Bewohnern von " .. r.name .. " von Muschelplateau, das seine Partei vor " .. turns .. " Wochen besucht hat." ) + msg:set_string("string", u.name .. "(" .. itoa36(u.id) .. ") erzählt den Bewohnern von " .. u.region.name .. " von Muschelplateau, das die Partei " .. u.faction.name .. " vor " .. turns .. " Wochen besucht hat." ) msg:send_region(u.region) return 0 end