How to Write an Area


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

Basic Code:

#AREA {Level Range} {Author} {Area Name}~

#MOBILES
#VNUM
mobile keywords~
mobile name~
mobile room description
~
mobile extended description
~
race~
{Act Flags} {Affected Flags} {Alignment} A {Act2 Flags} {S or E}
{Extended Afrect Flags} {S}

{Level} {Hit Roll} {Hit Points} {Mana Points} {Damage Roll} {Attack Type}
{AC-Pierce} {AC-Bash} {AC-Slash} {AC-Magic}
{Offensive Flags} {Immune Flags} {Resistance Flags} {Vulnerable Flags}
{Starting Position} {Default Position} {Sex} {Gold}
{Forms} {Parts} {Size} {Material}
#0

#OBJECTS
#VNUM
object keywords~
object short description~
object room description~
material~
{Item Type} {Extra Flags} {Wear Flags}
{Value 0} {Value 1} {Value 2} {Value 3} {Value 4}
{Level} {Weight} {Cost} {Condition}
E
Keywords of extra description~
Extra description
~
A
{Affect Apply type} {Affect Apply value}

#0

#ROOMS
#VNUM
Room Title~
Room Description
~
{Area Number} {Room Flags} {Sector Type}
D#
Door description~
Door keyword~
{Locks Number} {Key Number} {to Room VNUM}
E
Keywords of extra description~
Extra description
~

S
#0

#RESETS
*
O 0 {VNUM of object} {World Limit} {Room VNUM} comments
P {# to load} {VNUM of object} {World Limit} {container VNUM} comments
*
M 0 {Mobile VNUM} {World Limit} {Room VNUM} comments
G {# to load} {VNUM of object} {World Limit} comments
E {# to load} {VNUM of object} {World Limit} {Wear Location} comments
*
D 0 {Room VNUM} D# {Door Set} comments
R {Room VNUM} D# comments
*
S

#SHOPS
{Keeper VNUM} {Trade 0} {Trade 1} {Trade 2} {Trade 3} {Trade 4} {Profit buy} {Profit sell} {Open} {Close}
0

#SPECIALS
*
M {Mobile VNUM} {Spec_function} comments
S
#$


Tables:


Mobiles

ACT flags for mobs
B SENTINEL (remains in one room)Q CLERIC (+3wis -1dex +1str -2 to hit)
C SCAVENGER (picks objects up)R MAGE (+3int -1str +1dex -6 to hit)
F AGGRESSIVE (mob attacks)S THIEF (+3dex +1int -1wis +4 to hit)
G STAY_AREA (mob won't leave area)T WARRIOR (+3str -1int +2con +10 to hit)
H WIMPY (flees)U NOALIGN (for bunnies and puppies and stuff)
I PETV NOPURGE
J TRAIN (trains players)aa IS_HEALER (can buy healing spells)
K PRACTICE (practices player)bb GAIN (allows morts to gain skills)
O UNDEAD (immune plague/sleep/calm)

Affects Flags for mobs
0 None H Santuary P Sneak X Plague
A Blind I Faerie_Fire Q Hide Y Weaken
B Invisible J Infrared R Sleep Z Dark_Vision (can see in the dark)
C Detect_Evil K Curse S Charm aa Berserk
D Detect_Invis L Flaming T Flying bb Tongue_Tie
E Detect_Magic M Poison U Pass_Door cc Regeneration (doubles hp recovery rate)
F Detect_Hidden N Protect V Haste dd Detect_Good
O Paralysis W Calm ee Death_Grip

ACT2 flags for mobs
B IS_AGENT (travel agent)
E WEAPONSMASTER
G SECTOR_ONLY (mobs stay in sector type)
V Recklessly Aggressive (mobs attack any level)
Extended-Affects Flags for mobs
M Death_Blow (cool dam message)
B Stone_Skin
I Protect_Evil
K Bless
E Deter
N Dopple
H Protect_Good

Attack/Damage-Type
0 Hit 12 Suction 23 Peck(pierce)
1 Slice 13 Beating 24 Peck(bash)
2 Stab 14 Digestion 25 Chop
3 Slash 15 Charge 26 Sting
4 Whip 16 Slap 27 Smash
5 Claw 17 Punch 28 Shocking Bite
6 Blast 18 Wrath 29 Flaming Bite
7 Pound 19 Magic 30 Freezing Bite
8 Crush 20 Divine Power31 Acidic Bite
10 Bite 21 Cleave 32 Chomp
11 Pierce 22 Scratch
Offensive flags for mobs
A Attack_Area H Fast Q Assist_Align
B Backstab I Kick R Assist_Race
C Bash J Kick_dirt S Assist_Players
D Berserk K Parry T Assist_Guard
E Disarm N Trip U Assist_VNUM
F Dodge P Assist_All

Immune flags for mobs
A Summon H Fire O Energy
B Charm I Cold P Mental
C Magic J Lightning Q Disease
D Weapon K Acid R Drowning
E Bash L Poison S Light
F Pierce M Negative T Push
G Slash N Holy U Magic_Mord (total magic immunity)
Resistant flags for mobs
H Fire O Energy
B Charm I Cold P Mental
C Magic J Lightning Q Disease
D Weapon K Acid R Drowning
E Bash L Poison S Light
F Pierce M Negative
G Slash N Holy

Vulnerable flags for mobs
H Fire O Energy
Z Iron I Cold P Mental
C Magic J Lightning Q Disease
D Weapon K Acid R Drowning
E Bash L Poison S Light
F Pierce M Negative X Wood
G Slash N Holy Y Silver
Part flags for mobs (should work)
A Head G Hands M Eyestalks U Claws
B Arms H Feet N Tentacles V Fangs
C Legs I Fingers O Fins W Horns
D Heart J Ear P Wings X Scales
E Brains K Eye Q Tail Y Tusks
F Guts L Long_Tongue 0 for nothing

Size of mobs
0 Tiny
1 Small
2 Medium
3 Large
4 Huge
5 Giant
Positions of mobs
0 Dead 5 Resting
1 Mortal 6 Sitting
2 Incapacitated 7 Fighting
3 Stunned 8 Standing
4 Sleeping
Sex of mobs
0 Neutral
1 Male
2 Female
Form flags for mobs
0 Default
A Edible
B Poison


Objects

Item-Types (objects) or Trade-# (shops)
1 light 9 armor 17 drink container 27 protect
2 scroll 10 potion 18 key 28 map
3 wand 11 clothing 19 food 29 gate
4 staff 12 furniture 22 boat 30 portal
5 weapon 13 trash 25 fountain 32 housekey
8 treasure 15 container 26 pill
Object Extra Flags
A GlowingH NoDropO NoPurge
B HummingI BlessP Rot-Death
C DarkJ Anti-GoodQ Vis-Death
D LockK Anti-EvilS NoLocate
E EvilL Anti-NeutralT Newbie
F InvisibleM NoRemoveU Remort
G MagicN InventoryV No-Summon

Wear Flags
A TakeD BodyG FeetJ ShieldM WristP Two-Hands
B FingerE HeadH HandsK AboutN Wield
C NeckF LegsI ArmsL WaistO Hold

Values 0-4 based on item type
{Item-Type}Value 0Value 1Value 2Value 3Value 4
1 Light00Hours of light00
2 ScrollLvl SpellsSn 1Sn 2Sn 30
3 WandLvl SpellsMax ChargeCurrent ChargeSn0
4 StaffLvl SpellsMax ChargeCurrent ChargeSn0
5 WeaponWeapon Class#dicetype dice Damage/Attack TypeWeapon Type
8 Treasure00000
9 Armor (positive values)AC-pierceAC-SlashAC-BashAC-Magic0
10 PotionLvl SpellsSn 1Sn 2Sn 30
11 Clothing00000
12 Furniture00000
13 Trash00000
15 ContainerWeight CapCont-FlagsKey Vnum00
17 Drink ContainerCapacityCurrent CapLiquid-Typenonzero=poison0
18 Key00000
{Item-Type}Value 0Value 1Value 2Value 3Value 4
19 FoodHours Value00nonzero=poison0
22 Boat00000
25 Fountain000nonzero=poison0
26 PillLvl SpellsSn 1Sn 2Sn 30
28 Map00000
29 Gate000toVNUM0
30 Portal000toVNUM0
32 House Key00000

Spell Numbers (Sn) - Numerical Order
1 Armor 22 Dispel Evil 43 Cure Poison 77 Infravision
2 Teleport 23 Earthquake 44 Detect Hidden 80 Create Spring
3 Bless 24 Enchant Weapon 53 Identify 81 Refresh
4 Blindness 25 Energy Drain 56 Fly 82 Change Sex
5 Burning Hands 26 Fireball 57 Continual Light 83 Phase Shift
6 Call Lightning 27 Harm 58 Know Alignment 93 Shocking Grasp
7 Charm Person 28 Heal 59 Dispel Magic 99 Protection Good
8 Chill Touch 29 Invisible 61 Cure Serious 100 Energize
10 Color Spray 30 Lightning Bolt 62 Cause Light 101 Detect Good
11 Control Weather 31 Locate Object 63 Cause Critical 102 Remove Invis
12 Create Food 32 Magic Missile 64 Cause Serious 103 Dispel Good
13 Create Water 33 Poison 65 Flamestrike 104 Remove Align
14 Cure Blindness 34 Protection Evil 66 Stone Skine 105 Fear
15 Cure Critical 35 Remove Curse 67 Shield 106 Invis Object
16 Cure Light 36 Sanctuary 68 Weaken 107 Death Grip
17 Curse 38 Sleep 69 Mass Invis 200 Acid Breath
18 Detect Evil 39 Giant Strength 70 Acid Blast 201 Fire Breath
19 Detect Invis 40 Summon 72 Faerie Fire 202 Frost Breath
20 Detect Magic 41 Ventriloquate 73 Faerie Fog 203 Gas Breath
21 Detect Poison 42 Word of Recall 74 Pass Door 204 Lightning Breath
500 Chain Lightning503 Plague 506 Holy Word 509 Calm
501 Cure Disease 504 Frenzy 507 Cancellation 510 Enchant Armor
502 Haste 505 Demonfire 508 Mass Healing 597 Create Rose

Spell Numbers (Sn) - Alphabetical Order
70 Acid Blast 15 Cure Critical 72 Faerie Fire 32 Magic Missile
200 Acid Breath 14 Cure Blindness 73 Faerie Fog 508 Mass Healing
1 Armor 501 Cure Disease 105 Fear 69 Mass Invis
3 Bless 16 Cure Light 26 Fireball 74 Pass Door
4 Blindness 43 Cure Poison 201 Fire Breath 83 Phase Shift
5 Burning Hands 61 Cure Serious 65 Flamestrike 503 Plague
6 Call Lightning 17 Curse 56 Fly 33 Poison
509 Calm 107 Death Grip 504 Frenzy 34 Protection Evil
507 Cancellation 505 Demonfire 202 Frost Breath 99 Protection Good
63 Cause Critical 18 Detect Evil 203 Gas Breath 81 Refresh
62 Cause Light 101 Detect Good 39 Giant Strength 104 Remove Align
64 Cause Serious 44 Detect Hidden 27 Harm 35 Remove Curse
500 Chain Lightning19 Detect Invis 502 Haste 102 Remove Invis
82 Change Sex 20 Detect Magic 28 Heal 36 Sanctuary
7 Charm Person 21 Detect Poison 506 Holy Word 67 Shield
8 Chill Touch 22 Dispel Evil 53 Identify 93 Shocking Grasp
10 Color Spray 103 Dispel Good 77 Infravision 38 Sleep
57 Continual Light59 Dispel Magic 29 Invisible 66 Stone Skin
11 Control Weather23 Earthquake 106 Invis Object 40 Summon
12 Create Food 510 Enchant Armor 58 Know Alignment 2 Teleport
597 Create Rose 24 Enchant Weapon 30 Lightning Bolt 41 Ventriloquate
80 Create Spring 100 Energize 204 Lightning Breath 68 Weaken
13 Create Water 25 Energy Drain 31 Locate Object 42 Word of Recall

Weapon Class
0 Exotic
1 Sword
2 Dagger
3 Spear
4 Mace
5 Axe
6 Flail
7 Whip
8 Polearm
Weapon Type
0 Default (nothing)
A Flaming
B Frost
C Vampiric
D Sharp
E Vorpal
F Two-Hands
Container-Flags
1 Closeable
2 Pickproof
4 Closed
8 Locked

Liquid Type
0 Water 6 Lemonade 12 Coffee 18 Micro-Brew 24 Guiness Stout 30 Espresso
1 Beer 7 Firebreather 13 Blood 19 Vodka 25 Sex on the beach 31 Amaretto
2 Wine 8 Local Special 14 Salt Water 20 Aftershock 26 Labatt's Blue 32 Champagne
3 Ale 9 Romulan Ale 15 Cola 21 Fishbone 27 Ginger Ale 33 Cappuccino
4 Dark Ale 10 Milk 16 Tequila 22 Everclear 28 Mountain Dew 34 Dirty Water
5 Whiskey 11 Tea 17 Kahlua 23 Black Velvet 29 Blood(blood color) 35 Mead

Condition
P Perfect
G Good
A Average
W Worn
D Dismal
B Broken
R Rotten
Affects-Apply-Types
0 None 6 Sex 19 Damroll
1 Str 12 Mana 20 Save-paralysis
2 Dex 13 HP 21 Save-rod
3 Int 14 Move 22 Save-petrification
4 Wis 17 AC 23 Save-breath
5 Con 18 Hitroll 24 Save-spell


Rooms

Room Flags
A Dark (need a light)B Ceremony (quiet room)
C No_MobD Indoors
E Morodin OnlyF Nycole Only
G Tyra OnlyJ Private (max of two can enter)
K Safe (no fighting)L Solitary (max of one can enter)
M Pet ShopN No Recall
O Imp Only (lvl 108)P Gods Only (lvl 92+)
Q Heros Only (lvl 91+)R Newbies Only (lvl 1-5 and 92+)
S Law (no charming)T Deathtrap (mortals can die)
U Griffin OnlyV Tamazi Only
W Aphrodite OnlyX Ba'alzamon Only
Y Graz'zt OnlyZ Belial Only
aa No Magic (cannot cast spells)cc Save (i.e.for houses)

Sector-Type
0 Inside1 City
2 Field3 Forest
4 Hills5 Mountain
6 Water_Swim (no boat)7 Water_NoSwim (boat/flying)
9 Air (must fly)10 Desert
11 Max

Door-Number
0 North
1 East
2 South
3 West
4 Up
5 Down
Locks-Number
0 No Door
1 Door
2 Pickproof
3 Safe Door (pickproof/NoPass)


Resets

Wear_Location Flags
-1 None 5 Body 11 Shield
0 Light 6 Head 12 About
1 Finger(left) 7 Legs 13 Waist
2 Finger(rght) 8 Feet 14 Wrist(left)
3 Neck1 9 Hands 15 Wrist(rght)
4 Neck2 10 Arms 16 Wield
17 Hold 18 Secondary
Door Set
0 Open
1 Closed
2 Closed and Locked


Specials

Spec_Fun Flags
spec_breath_any spec_breath_lightning spec_cast_undead spec_mayor
spec_breath_acid spec_cast_adept spec_executioner spec_poison
spec_breath_fire spec_cast_cleric spec_fido spec_thief
spec_breath_frost spec_cast_judge spec_guard spec_puff
spec_breath_gas spec_cast_mage spec_janitor


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