Writing a Shop File

This contains the explainations for the settings that go into the JediMUD shop file. Comments are in blue. Following the explanation is a copy of the Midgaard shop file, for use as an example.

#<xx>~
The shop name - numeric. This line does not change the shop itself, except to be used as a reference in the shop file.
<num1>
<num2>
<num3>
<num4>
<num5>
These numbers refer to the objects sold in the shop by listing the virtual number of each object to be sold.
<profit when selling>
The object value is multiplied by this value when sold. This is a floating point value. Must be >= 1.0
<profit when buying>
The object value is multiplied by this value when bought. This is a floating point value. Must be <= 1.0
<num1>
<num2>
<num3>
<num4>
<num5>
These five numbers are the item types traded with by the shop. The numbers used here are the various item types.
<Message - item buy non-exist>~
This message is echoed when the shopkeeper does not actually own an item of the name given.
<Message - item sell non-exist>~
This message is echoed when the player trying to sell the item does not actually own an item of the name given.
<Message - wrong item type>~
This message is echoed when the shopkeeper does not buy this type of item.
<Message - shop can't afford>~
This message is echoed when the shopkeeper cannot afford to buy the item.
<Message - player can't afford>~
This message is echoed when the player cannot afford to buy the item.
<Message - buying>~
This message is echoed when the player buys an item. %d is used to show the cost of the item.
<Message - selling>~
This message is echoed when the player sells an item. %d is used to show the cost of the item.
<Temper 1>
Set this value to 0
<Temper 2>
Set this value to 0
<Shop Keeper Mobile Number>
This is the virtual number of the mobile who is the shopkeeper.
<with who>
This section is not yet implemented. As such, it should be set to 0
<Shop room number>
This is the room number the mobile must be in for the shop to function so transferred and summoned shopkeepers can't sell in the desert.
<Open time 1>
<Close time 1>
These are the hours when the shop is open in 24 hour clock time (Military time).

Questions? Send mail to the build team: areas@jedi.america.net