Guest User

Untitled

a guest
Sep 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1.         Emote(T as text)
  2.             T = quicklinks.parse(T)
  3.             var/U = findtext(T,";",1,2)
  4.             if(U)
  5.                 T = replacetext(T,";",null)
  6.                 var/A = rand(1,2)
  7.                 if(A == 1)
  8.                     T = "[T] <font color=green>(PASS)"
  9.                 else
  10.                     T = "[T] <font color=red>(FAIL)"
  11.             if(T && !mute)
  12.                 if(!findtext(T, "'s", 1, 3))
  13.                     T = " " + T
  14.                 for(var/mob/M in view(src))
  15.                     if(M.client)
  16.                         if(M.client.focuson && M.client.focus.Find(src)) M << "<font color = 'blue'>\icon[src][src][T]</font>"
  17.                         else if(M.client.focuson && M == src) M << "<font color = 'blue'>\icon[src][src][T]</font>"
  18.                         else if(M.client.focuson) M << "<font color = 'gray'>\icon[src][src][T]</font>"
  19.                         else M << "<font color = 'blue'>\icon[src][src][T]</font>"
  20.                     else M << "<font color = 'blue'>\icon[src][src][T]</font>"
  21.                 //view(src) << "<font color = 'blue'>\icon[src][src][T]</font>"
  22.                 talklog << "[src][T]"
  23.                 for(var/mob/M in world)
  24.                     if(M.client)
  25.                         if(src in view(M.client.view, M.client.virtual_eye))
  26.                             if(src in view(M))
  27.                             else
  28.                                 M << "<font color = 'gray'>\icon[src][src][T]</font>"
  29.                         else
  30.                             if(M.hearall)
  31.                                 if(src in view(M))
  32.                                 else
  33.                                     M << "<font color = 'gray'>\icon[src][src][T]</font>"
Add Comment
Please, Sign In to add comment