2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] [CODE] unique items -->
<!--X-From-R13: X Q Znjerapr <pynjNpc.arg> -->
<!--X-Date: Tue, 21 Mar 2000 12:24:57 &#45;0800 -->
<!--X-Message-Id: E12XVCv&#45;000104&#45;00#under,eng.cp.net -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: Marcel&#45;1.46&#45;0316215352&#45;0b0Ky&#38;5#catling,demon.nl -->
<!--X-Reference: 00bd01bf903c$b28d37a0$0d00a8c0#wombatgames,com -->
<!--X-Reference: 38D51245.6ADC#alltel,net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] [CODE] unique items</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#cp,net">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00673.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00675.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00669.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00638.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00674">Author</A>
&nbsp;|&nbsp;<A HREF="#00674">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00674">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] [CODE] unique items</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] [CODE] unique items </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#cp,net">claw#cp,net</A>&gt;</LI>
<LI><em>Date</em>: Tue, 21 Mar 2000 12:24:53 -0800</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Sun, 19 Mar 2000 12:45:41 -0500 
J Coleman &lt;stormknight#alltel,net&gt; wrote:

&gt; Does anyone know a good way to handle unique items? I want to have
&gt; players able to make magic items themselves, that are completely
&gt; custom.  Magic items in my game will be fairly powerful because of
&gt; their rarity, and the fact that they must be created, and not
&gt; found. Is there a good clean way to keep an "index" file of all
&gt; magic items that have been created this way, and to reference
&gt; player files to it perhaps? How does everyone else do this?

The details here are going to be very dependent on your server
architecture and its data model.  For any of the servers based on
DB's ala MOO/Tiny/Cold, this gets very easy as its just another
object, just like every other object except for its inheritance tree
or data contents.

If you are useing a template file derived system the DIKU
descendents, things get a little more complex if you don't constrain
your "unique" objects to being flavours of your already existent
object types (in terms of the structure and tag definitions).  If
you do make that constraint, its just a matter of defining (if
needed) a new text file record format, and then reading/writing that
with the appropriate offsets (IIRC DIKU uses VNUMs are offset based
record ID's no?).  If you don't make that constraint its probably
easiest to use something like XML for the storage format for your
objects, and then do all you IO via an XML parser etc.  A little
messier, but not horrible, and you can use the same/similar indexing
methods as before.

-- 
J C Lawrence                              Internet: claw#kanga,nu
----------(*)                            Internet: coder#kanga,nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00637" HREF="msg00637.html">[MUD-Dev] MudDev FAQ part 1</A></STRONG>
<UL><LI><EM>From:</EM> Marian Griffith &lt;gryphon#iaehv,nl&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00651" HREF="msg00651.html">Re: [MUD-Dev] MudDev FAQ part 1</A></STRONG>
<UL><LI><EM>From:</EM> "Todd McKimmey" &lt;rufus#wombatgames,com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00659" HREF="msg00659.html">[MUD-Dev] [CODE] unique items</A></STRONG>
<UL><LI><EM>From:</EM> "J. Coleman" &lt;stormknight#alltel,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00673.html">RE: [MUD-Dev] The Endeavour Map and MUD Applications</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00675.html">[MUD-Dev] Object and class heirarchies -- are they really necessary?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00669.html">Re: [MUD-Dev] [CODE] unique items</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00638.html">[MUD-Dev] Dynamic Load Balancing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00674"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00674"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] [CODE] unique items</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00662" HREF="msg00662.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Quzah <a href="mailto:quzah#hotmail,com">quzah#hotmail,com</a>, Mon 20 Mar 2000, 01:42 GMT
<UL>
<LI><strong><A NAME="00665" HREF="msg00665.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
J. Coleman <a href="mailto:stormknight#alltel,net">stormknight#alltel,net</a>, Mon 20 Mar 2000, 05:26 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00661" HREF="msg00661.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Mon 20 Mar 2000, 01:42 GMT
</LI>
<LI><strong><A NAME="00669" HREF="msg00669.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
Lord Ashon <a href="mailto:ashon#wsunix,wsu.edu">ashon#wsunix,wsu.edu</a>, Mon 20 Mar 2000, 17:35 GMT
</LI>
<LI><strong><A NAME="00674" HREF="msg00674.html">Re: [MUD-Dev] [CODE] unique items</A></strong>, 
J C Lawrence <a href="mailto:claw#cp,net">claw#cp,net</a>, Tue 21 Mar 2000, 20:24 GMT
</LI>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00638" HREF="msg00638.html">[MUD-Dev] Dynamic Load Balancing</A></strong>, 
Kevin Scott London <a href="mailto:london#cs,utk.edu">london#cs,utk.edu</a>, Thu 16 Mar 2000, 22:27 GMT
<LI><strong><A NAME="00634" HREF="msg00634.html">[MUD-Dev] Questions about the MudDev FAQ</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Thu 16 Mar 2000, 22:27 GMT
<LI><strong><A NAME="00635" HREF="msg00635.html">[MUD-Dev] MudDev FAQ part II</A></strong>, 
Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Thu 16 Mar 2000, 22:26 GMT
<LI><strong><A NAME="00633" HREF="msg00633.html">Re: [MUD-Dev] better usage through mechanics [from: CGDC dinner]</A></strong>, 
Lovecraft <a href="mailto:dave#darkages,com">dave#darkages,com</a>, Thu 16 Mar 2000, 22:26 GMT
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>