How to Write an Area



Home | Mobiles | Objects | Rooms | Resets | Shops and Specials | Printable Version

Place your mouse over any of the variables for more information.
The format of any shop should look like:

#Shops signifies the start of the shop section. Omit section if no shops present in area.
Shopkeeper is the vnum if the mobile you want to be the shopkeeper. These values are all item-types that a shopkeeper will buy from a player. If the shopkeeper won't buy anything, the default is 0 for each value. Click for more! Profit-buy is the percentage markup shopkeepers sell objects at. Profit-sell is the percentage markdown shopkeepers buy objects at. The open-hour is the time the shop opens, this is a numerical value from 0-23 being 12am-11pm. The close-hour is the time the shop closes, this is a numerical value from 0-23 being 12am-11pm.;
0 indicates the end of the shop list.

Load the shopkeeper as a mobile and give the objects for it to sell in its inventory.
There can only be one command line per shopkeeper, seperate multiple shops with a ; .

An Example Shop Section:

#SHOPS
3456 5 9 0 0 0 125 65 9 18;
4567 2 3 4 0 0 125 65 8 17;
0


The format of any special should look like:

#Specials signifies the start of the special section. Omit section if not used.
* Denotes a comment.
M indicates a mobile to have a special behavior. Mob-vnum is the vnum of the mobile you want to have a special behavior. Spec_fun indicates the behavior you want a mobile to do. Click for more! Additional comments can follow at the end of the line
S indicates the end of the special list.

An Example Special Section:

#SPECIALS
M 5016 spec_poison                       cholla cactus inflicts poison
M 5017 spec_cast_mage                dervish shaman acts like a mage
M 5029 spec_breath_lightning       metallic dragon has lightning breath
S


Home | Mobiles | Objects | Rooms | Resets | Shops and Specials | Printable Version

Mobile's: Act Flags - Affected Flags - Act2 Flags - Extended Affects Flags - Attack Type - Offensive Flags
Positions - Immune Flags - Resistance Flags - Vulnerable Flags - Sex Flags - Form Flags - Parts Flags - Size Flags

Object's: Item Types - Extra Flags - Wear Flags - Item Values - Condition - Affects-Apply-Type
Attack Type - Container Flags - Spell Numbers - Liquid Type - Weapon Type - Weapon Class

Room's: Flags - Sectors - Doors - Locks
Reset: Wear Locations - Doors - Door Set
Shop: Trade Item Types
Specials: Special Flags