/
com/planet_ink/coffee_mud/Abilities/Common/
com/planet_ink/coffee_mud/Abilities/Diseases/
com/planet_ink/coffee_mud/Abilities/Druid/
com/planet_ink/coffee_mud/Abilities/Fighter/
com/planet_ink/coffee_mud/Abilities/Languages/
com/planet_ink/coffee_mud/Abilities/Misc/
com/planet_ink/coffee_mud/Abilities/Prayers/
com/planet_ink/coffee_mud/Abilities/Properties/
com/planet_ink/coffee_mud/Abilities/Skills/
com/planet_ink/coffee_mud/Abilities/Songs/
com/planet_ink/coffee_mud/Abilities/Specializations/
com/planet_ink/coffee_mud/Abilities/Spells/
com/planet_ink/coffee_mud/Abilities/Thief/
com/planet_ink/coffee_mud/Abilities/Traps/
com/planet_ink/coffee_mud/Behaviors/
com/planet_ink/coffee_mud/CharClasses/
com/planet_ink/coffee_mud/CharClasses/interfaces/
com/planet_ink/coffee_mud/Commands/
com/planet_ink/coffee_mud/Commands/interfaces/
com/planet_ink/coffee_mud/Common/
com/planet_ink/coffee_mud/Common/interfaces/
com/planet_ink/coffee_mud/Exits/interfaces/
com/planet_ink/coffee_mud/Items/Armor/
com/planet_ink/coffee_mud/Items/Basic/
com/planet_ink/coffee_mud/Items/BasicTech/
com/planet_ink/coffee_mud/Items/CompTech/
com/planet_ink/coffee_mud/Items/MiscMagic/
com/planet_ink/coffee_mud/Items/Weapons/
com/planet_ink/coffee_mud/Items/interfaces/
com/planet_ink/coffee_mud/Libraries/
com/planet_ink/coffee_mud/Libraries/interfaces/
com/planet_ink/coffee_mud/Locales/
com/planet_ink/coffee_mud/MOBS/
com/planet_ink/coffee_mud/Races/
com/planet_ink/coffee_mud/Races/interfaces/
com/planet_ink/coffee_mud/WebMacros/
com/planet_ink/coffee_mud/WebMacros/interfaces/
com/planet_ink/coffee_mud/core/
com/planet_ink/coffee_mud/core/collections/
com/planet_ink/coffee_mud/core/interfaces/
com/planet_ink/coffee_mud/core/intermud/
com/planet_ink/coffee_mud/core/intermud/i3/
com/planet_ink/coffee_web/server/
com/planet_ink/siplet/applet/
lib/
resources/factions/
resources/fakedb/
resources/progs/autoplayer/
resources/quests/holidays/
web/
web/admin.templates/
web/admin/grinder/
web/admin/images/
web/clan.templates/
web/pub.templates/
web/pub/images/mxp/
web/pub/sounds/
web/pub/textedit/
<HTML>
<HEAD>
<LINK REL=StyleSheet HREF="/siplet/term.css" TYPE="text/css">
<link rel="coffeemud icon" href="../images/coffeemud.ico" >
<SCRIPT LANGUAGE=JavaScript src="/siplet/dropdown.js"></SCRIPT>
<SCRIPT LANGUAGE=JavaScript src="/siplet/siplet.js"></SCRIPT>
<SCRIPT LANGUAGE=JavaScript src="/siplet/termsupport.js"></SCRIPT>
</HEAD>
<BODY BGCOLOR=BLACK ONCLICK="top.term.front(myname,mynum);">
<script language=JavaScript>
setTimeout(connectChecker,10001);

function closeWindow()
{
	if(theSiplet)
	{
		window.console.info("Siplet term closeWindow");
		theSiplet.disconnectFromURL();
	}
	top.document.location.href='/index.cmvp';
}

function reconnect()
{
	window.console.info("Siplet term reconnect");
	if(theSiplet)
	{
		if(!theSiplet.isConnecting())
			theSiplet.disconnectFromURL();
	}
	if((!theSiplet) || (!theSiplet.isConnecting()))
		setTimeout('connect(top.conndomain,top.connport);',500);
}

function goOffline()
{
	//window.console.info("Siplet term go offline.");
	theSiplet.disconnectFromURL();
	theSiplet=new Siplet();
	goRed();
}

var receivedData = function(connected, txt)
{
	if(!connected || (!txt) || (txt.substr(0,5)!='true;'))
	{
		if(!connected)
			window.console.info("Siplet not connected.");
		else
		if(!txt)
			window.console.info("Siplet received no packet.");
		else
			window.console.info("Siplet received bad packet: "+txt.substr(0,5));
		goOffline();
	}
	else
	{
		txt=txt.substr(5);
		var tk=theSiplet.token+";";
		handlePacket(txt,tk);
	}
}

function displayData()
{
	if(!theSiplet.isConnectedToURL())
	{
		//window.console.info("Siplet: No longer connected for display.");
		goOffline();
	}
	else
		theSiplet.getURLData(receivedData);
}

function sendData(me)
{
	var s=''+me;
	theSiplet.sendData(s,receivedData);
}


function connect(url,port,tries)
{
	errorState=false;
	goCaution();
	gauges=new Array(0);
	theSiplet.connectToURL(url,@WebServerPort?CURRENT@,port,function(connectWorked, txt)
	{
		theSiplet.callback = receivedData;
		var s='';
		var x=txt.indexOf(';');
		if(x<0)
			connectWorked=false;
		else
		{
			connectWorked = connectWorked && txt.substr(0,x) == "true";
			if(connectWorked == true)
			{
				txt=txt.substr(x+1);
				x=txt.indexOf(';');
				theSiplet.token=txt.substr(0,x);
				top.term.allapplets[top.term.currentWindow] = theSiplet;
				txt=txt.substr(x+1);
				var tk=theSiplet.token+";";
				var x=txt.indexOf(tk);
				if(x<0)
					connectWorked=false;
				else
					s=txt.substr(0,x);
			}
		}
		//window.onerror=null;
		var thespan=top.term.document.getElementById(myname+'namer');
		thespan.innerHTML=s
		gauges=new Array(0);
		if(!connectWorked)
		{
			goRed();
		}
		else
		{
			goGreen();
			lastReceived = new Date().getTime();
			setTimeout('displayData(); top.entry.boxFocus();',pingDelay);
		}
	}); 
}


</SCRIPT>
<BR>
<DIV ID=DISPLAYSPAN NAME=DISPLAYSPAN>
</DIV>
<DIV ID=NODISPLAY NAME=NODISPLAY></DIV>
<SPAN ID=musicplayer NAME=musicplayer style="display:none"></SPAN>
<SPAN ID=soundplayer NAME=soundplayer style="display:none"></SPAN>
<script language=JavaScript>
<!--
	if(!top.connport)
		top.connport=@MudInfo?PORT@;
	if(!top.conndomain)
		top.conndomain="@MudInfo?DOMAIN@";
	theSiplet=new Siplet();
	top.term.allapplets[top.term.currentWindow] = theSiplet;
	setTimeout('connect(top.conndomain,top.connport);',500);
//-->
</script>
</BODY></HTML>