Investigate PDA messages

This commit is contained in:
ZomgPonies
2014-07-25 12:32:35 -04:00
parent ed1e3f8bc4
commit dc56dc8958
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -894,7 +894,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(istype(M, /mob/new_player))
continue
M.show_message("<span class='game say'>PDA Message - <span class='name'>[owner]</span> -> <span class='name'>[P.owner]</span>: <span class='message'>[t]</span></span>")
investigate_log("<span class='game say'>PDA Message - <span class='name'>[U.key] - [owner]</span> -> <span class='name'>[P.owner]</span>: <span class='message'>[t]</span></span>", "pda")
if(!conversations.Find("\ref[P]"))
conversations.Add("\ref[P]")
if(!P.conversations.Find("\ref[src]"))
+8 -1
View File
@@ -26,7 +26,7 @@
F << "<small>[time2text(world.timeofday,"hh:mm")] \ref[src] ([x],[y],[z])</small> || [src] [message]<br>"
//ADMINVERBS
/client/proc/investigate_show( subject in list("hrefs","notes","singulo") )
/client/proc/investigate_show( subject in list("hrefs","pda","singulo") )
set name = "Investigate"
set category = "Admin"
if(!holder) return
@@ -48,3 +48,10 @@
else
src << "<font color='red'>Error: admin_investigate: Href Logging is not on.</font>"
return
if("pda") //general one-round-only stuff
var/F = investigate_subject2file(subject)
if(!F)
src << "<font color='red'>Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed.</font>"
return
src << browse(F,"window=investigate[subject];size=800x300")