<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Flastroom</id>
	<title>Manual:DIL Manual/lastroom - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Flastroom"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/lastroom&amp;action=history"/>
	<updated>2026-11-23T23:41:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/lastroom&amp;diff=2854&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/lastroom&amp;diff=2854&amp;oldid=prev"/>
		<updated>2026-11-14T23:08:55Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= lastroom =&lt;br /&gt;
'''Field''' (unitptr, read-only; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.lastroom : unitptr&lt;br /&gt;
&lt;br /&gt;
Meant to give the room the server will put the player back in: the room the player was in when last saved, or when the connection was lost. When a player enters the game the server moves the player there and clears it; with no such room the player starts in the [[Manual:DIL Manual/hometown|hometown]]. It is not the room the player just walked out of.&lt;br /&gt;
&lt;br /&gt;
'''Broken:''' reading this field crashes the server or gives a bad unit. The interpreter takes the room itself for the address of the pointer to it (&amp;lt;code&amp;gt;vme/src/dilfld.cpp&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DILF_LASTROOM&amp;lt;/code&amp;gt;). Don't use it until that is fixed.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null the field fails.&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* No zone in the game uses it.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer back_in_saved(pc : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (pc.type != UNIT_ST_PC)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (pc.outside == pc.lastroom);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Would tell whether a player is in the room the game saved for the player. Don't run it while the field is broken.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/hometown|hometown]]&lt;br /&gt;
* [[Manual:DIL Manual/outside|outside]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>