Attack logging (finally)

there might be some things I missed, and feel free to change the messages if you want
This commit is contained in:
Miniature
2012-03-08 15:16:54 +10:30
parent 25fc27849b
commit cf53a0cc7a
23 changed files with 70 additions and 1 deletions
+2
View File
@@ -15,6 +15,8 @@
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been carded with [src.name] by [user.name] ([user.ckey])</font>")
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] to card [M.name] ([M.ckey])</font>")
log_admin("ATTACK: [user] ([user.ckey]) carded [M] ([M.ckey]) with [src].")
message_admins("ATTACK: [user] ([user.ckey]) carded [M] ([M.ckey]) with [src].")
transfer_ai("AICORE", "AICARD", M, user)
return
+2
View File
@@ -25,6 +25,8 @@
attack(mob/living/M as mob, mob/user as mob)
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been flashed (attempt) with [src.name] by [user.name] ([user.ckey])</font>")
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] to flash [M.name] ([M.ckey])</font>")
log_admin("ATTACK: [user] ([user.ckey]) flashed [M] ([M.ckey]) with [src].")
message_admins("ATTACK: [user] ([user.ckey]) flashed [M] ([M.ckey]) with [src].")
if(!clown_check(user)) return
if(broken)
user.show_message("\red The [src.name] is broken", 2)
+2
View File
@@ -94,6 +94,8 @@
// M << "\red You feel a tiny prick!"
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been stabbed with [src.name] by [user.name] ([user.ckey])</font>")
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] to stab [M.name] ([M.ckey])</font>")
log_admin("ATTACK: [user] ([user.ckey]) stabbed [M] ([M.ckey]) with [src].")
message_admins("ATTACK: [user] ([user.ckey]) stabbed [M] ([M.ckey]) with [src].")
..()
return