[mw-devel] MW3 r1183 - trunk/webclient

arthur at sucs.org arthur at sucs.org
Thu Oct 7 21:07:22 BST 2010


Author: arthur
Date: 2010-10-07 21:07:22 +0100 (Thu, 07 Oct 2010)
New Revision: 1183

Modified:
   trunk/webclient/say.js
Log:
add mrod and zod parsing, well it had to be done


Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js	2010-10-07 19:22:16 UTC (rev 1182)
+++ trunk/webclient/say.js	2010-10-07 20:07:22 UTC (rev 1183)
@@ -17,6 +17,25 @@
 		} else {
 			for (one in msg) {
 				if (msg[one].state == 23) return tmo;
+				if (msg[one].state == 14) { // IPC_KICK
+					var what;
+					what = "<div class='msgkick user_system'>";
+					if (msg[one].text.substr(0,1) == "m") {
+						what += "Boing, Zebedee's arrived. \"Look up!\" says Zebedee</br>";
+						what += "You look up; a large object is falling rowards you very fast, very very fast. It looks like a Magic Roundabout!</br>";
+						what += "\"I wouldn't stand there if I was you\" says Zebedee</br>";
+						what += "WWWHHHEEEEEEEKKKKEEEERRRRRUUUUUNNNNNCCCCCHHHHHH</br>";
+						what += msg[one].username + " has just dropped the Magic Roundabout of Death on you.</br>";
+					} else {
+						what += "Boing, Zebedee arrived.</br>";
+						what += "\"Time for bed\" says Zebedee</br>";
+						what += msg[one].username + " has just dropped the Zebedee of Death on you.</br>";
+					}
+					if (msg[one].text.substr(1,1) == 'r') what += "\""+msg[one].text.substr(2)+"\" says Zebedee</br>";
+					what += "</div>";
+					$("#textlist").append(what);
+					continue;
+				}
 
 				/* Escape HTML characters */
 				escapedMsg = msg[one].text.replace(/&/g, "&amp;");




More information about the mw-devel mailing list