The Shop File

This contains the explainations for the settings that go into the JediMUD shop file. Comments are in red. 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).

The Midgaard Shop file (use as an example)

#3000
2148
3010
3109
200
3011
1.0
0.8
0
0
0
0
0
%s Haven't got that on storage - try list!~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s If you have no money, you'll have to go!~
%s That'll be %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3001
0
3036
0
25
#3001
-1
-1
3000
3001
208
1.1
1.0
0
0
0
0
0
%s It's very noisy in here, what did you say you wanted to buy?~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s Are you drunk or what ?? - NO CREDIT!~
%s That'll be - say %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3051
0
3101
15
3
#3002
3020
3021
3022
3023
3024
1.2
0.8
5
0
0
0
0
%s I haven't got that kind of a weapon~
%s You don't carry that weapon~
%s I only buy weapons.~
%s I can't afford such a great weapon~
%s sorry, but NO CREDIT~
%s That just costs %d coins.~
%s Here you have %d coins for that.~
0
0
3003
0
3044
0
25
#3003
247
3030
3031
3032
3033
1.5
0.4
1
15
19
13
8
%s Haven't got that on storage - try list!~
%s You don't seem to have that.~
%s I don't buy THAT,... Try another shop.~
%s I can't afford such a treasure.~
%s You can't afford it!~
%s That'll be %d coins, please.~
%s You'll get %d coins for it!~
0
0
3002
0
3042
0
25
#3004
3040
3042
3044
3076
3081
1.0
0.5
9
0
0
0
0
%s Haven't got that on storage - try list!~
%s You don't seem to have that.~
%s I only buy armours.. Go away!~
%s That is too expensive for me - Try a wizard!~
%s You can't afford it!~
%s That'll be %d coins, please.~
%s You'll get %d coins for it!~
0
0
3004
0
3037
0
25
#3005
-1
-1
3002
3003
208
1.0
1.0
0
0
0
0
0
%s Haven't got that on storage - try list!~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s If you have no money, you'll have to go!~
%s That'll be %d coins.~
%s Oops - %d a minor bug - please report!~
0
0
3068
0
3102
15
3
#3006
-1
-1
3002
3004
208
1.1
1.0
0
0
0
0
0
%s Haven't got that on storage - try list!~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s If you have no money, you'll have to go!~
%s That'll be %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3069
0
3100
15
3
#3007
-1
208
3004
3003
3002
1.5
1.0
0
0
0
0
0
%s Haven't got that on storage - try list!~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s If you have no money, you'll have to go!~
%s That'll be %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3070
0
3103
15
3
#3008
-1
-1
3003
3004
208
1.7
1.0
0
0
0
0
0
%s Haven't got that on storage - try list!~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s If you have no money, you'll have to go!~
%s That'll be %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3071
0
3104
15
3
#3009
3050
3052
3053
3054
-1
1.05
0.65
2
3
4
0
0
%s Sorry, I haven't got exactly that item.~
%s You don't seem to have that.~
%s I don't buy such items.  Go try the apothecary!~
%s That is too expensive for me!~
%s You can't afford it!~
%s That'll be %d coins, please.~
%s You'll get %d coins for it!~
0
0
3000
0
3040
0
25
#3010
3060
3061
-1
-1
-1
1.5
0.5
22
0
0
0
0
%s Sorry pal, I have not got that kind of ship.~
%s Ok, but let me see it first.~
%s I only trade ships.~
%s I can't afford such a nice ship.~
%s This ship is too expensive for you.~
%s Here is your ship, I'll take %d gold coins.~
%s What a fine deal, you get %d gold coins.~
0
0
3006
0
3081
0
25
#3011
3200
3201
3202
-1
-1
1.1
0.9
0
0
0
0
0
%s I got no such drink.~
%s I see no such thing.~
%s I do not buy, would you like a drink?~
%s BUG, Please report~
%s You can't afford such a fine drink, try the Grubby Inn.~
%s Fine, that'll be %d gold pieces.~
%s Bug, please report (%d).~
0
0
3200
0
3206
15
3
#3012
-1
-1
3087
3088
3089
1.0
0.5
17
0
0
0
0
%s Haven't got that on storage - try list!~
%s You don't seem to have that.~
%s I don't buy THAT,... Try another shop.~
%s I can't afford such a treasure.~
%s You can't afford it!~
%s That'll be %d coins, please.~
%s You'll get %d coins for it!~
0
0
3008
0
3047
0
25
#3013
-1
-1
3004
3003
3002
1.5
1.0
0
0
0
0
0
%s Dereept doot dweep! --(translation: Haven't got that on storage - try list!)~
%s De De De Doot Dweep der weep --(translation: I don't buy!)~
%s De De De Doot Dweep der weep --(translation: I don't buy!)~
%s De De De Doot Dweep der weep --(translation: I don't buy!)~
%s Dweep doot deee dop --(translation: If you have no money, you'll have to go!)
~
%s Doo dweet dee de --(translation: That'll be %d coins.)~
%s Oups - %d a minor bug - please report!~
0
0
3075
0
3114
15
3
#3014
3001
3002
3003
3004
208
1.3
1.0
0
0
0
0
0
%s It's very noisy in here, what did you say you wanted to buy?~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s Are you drunk or what ?? - NO CREDIT!~
%s That'll be - say %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3052
0
3073
17
3
#3015
3001
3012
3013
3014
208
1.1
1.0
0
0
0
0
0
%s It's very noisy in here, what did you say you wanted to buy?~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s Are you drunk or what ?? - NO CREDIT!~
%s That'll be - say %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3014
0
3075
11
23
#3016
3004
3003
3002
3000
3001
1.1
1.0
0
0
0
0
0
%s It's very noisy in here, what did you say you wanted to buy?~
%s I don't buy!~
%s I don't buy!~
%s I don't buy!~
%s Are you drunk or what ?? - NO CREDIT!~
%s That'll be - say %d coins.~
%s Oups - %d a minor bug - please report!~
0
0
3055
0
3077
6
20
#3017
3108
5404
3107
3106
3105
1.6
0.01
0
0
0
0
0
%s In *my* shop?  You must be nuts!~
%s I don't buy that crap!~
%s I don't buy that crap!~
%s I don't buy that crap!~
%s Look, honey, pay up or get out!~
%s That'll be %d coins, toots.~
%s Oups - %d a minor bug - please report!~
1
0
3018
0
3038
8
18
#3018
-1
3055
3058
3051
3059
2.0
0.4
10
0
0
0
0
%s I'm sorry, I don't seem to have anything like that.~
%s But you don't seem to carry such item!~
%s I only deal with the items of my trade. Try somewhere else.~
%s I'd like to buy your item, but I just don't have the gold.~
%s But you don't seem to carry enough gold to buy this.~
%s It'll be %d coins, thank you.~
%s I'll give you %d coins for that.~
1
0
3011
0
3039
0
25
#3019
3062
-1
-1
-1
-1
1.65
0.45
24
0
0
0
0
%s I've never heard of such a thing!~
%s Ok, but let me see it first.~
%s I deal only in the finest carpets.~
%s I can't afford such a rug.~
%s This carpet is too expensive for you.~
%s Here is your carpet, I'll take %d gold coins.~
%s What a fine deal, you get %d gold coins.~
1
0
3022
0
3079
6
20
#99999
$~