This commit is contained in:
Bartek Stalewski 2017-03-17 17:39:48 +01:00
parent 24a13c371c
commit 7885176e40
5 changed files with 124 additions and 4 deletions

View file

@ -204,6 +204,74 @@ end
scripts.utils:enable_keybinds(true)</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>ftpd-trigger-people</name>
<packageName></packageName>
<script>function scripts.people:process_person_trigger(text)
local to_select_string = text
local r, g, b
if scripts.people.trigger_suffix[string.lower(text)] then
to_select_string = to_select_string .. &quot; (&quot; .. scripts.people.trigger_suffix[string.lower(text)] .. &quot;)&quot;
selectString(text, 1)
r, g, b = getFgColor()
fg(&quot;slate_gray&quot;)
replace(to_select_string)
end
selectString(text, 1)
setFgColor(r, g, b)
resetFormat()
end
function scripts.people:process_trigger_name(short)
selectString(short, 1)
local add_text = &quot;&quot;
local obj = scripts.people.people_triggers_objects[scripts.people.people_triggers[string.lower(short)]]
local guild_name = scripts.people:get_guild_name(obj[&quot;guild&quot;])
if obj[&quot;name&quot;] ~= &quot;&quot; and guild_name then
add_text = obj[&quot;name&quot;] .. &quot;, &quot; .. guild_name
elseif obj[&quot;name&quot;] ~= &quot;&quot; then
add_text = obj[&quot;name&quot;]
elseif guild_name then
add_text = guild_name
end
local r, g, b = getFgColor()
replace(short .. &quot; (&quot; .. add_text .. &quot;)&quot;)
selectString(short, 1)
setFgColor(r, g, b)
if obj[&quot;name&quot;] ~= &quot;&quot; then
selectString(obj[&quot;name&quot;], 1)
fg(&quot;slate_grey&quot;)
end
if guild_name then
selectString(guild_name, 1)
fg(&quot;slate_grey&quot;)
end
resetFormat()
end</script>
<eventHandlerList/>
</Script>
<Script isActive="no" isFolder="no">
<name>ftpd-amap-notes</name>
<packageName></packageName>
<script>function amap_db_check_note()
if amap.curr.id then
if getRoomUserData(amap.curr.id, &quot;note&quot;) ~= &quot;&quot; and amap.db.show_notes then
--amap:print_log(&quot;&lt;light_slate_blue&gt;&quot; .. getRoomUserData(amap.curr.id, &quot;note&quot;))
cecho(scripts.ui.bind_color .. &quot;\ninfo: &quot; .. scripts.ui.bind_color .. getRoomUserData(amap.curr.id, &quot;note&quot;) .. &quot;\n&quot;)
end
end
end</script>
<eventHandlerList/>
</Script>
</ScriptGroup>
</ScriptPackage>
</MudletPackage>