|
The command 'oedit' allows the builder to enter oedit mode. Syntax oedit [create] (vnum) The create flag is only used when creating a new item. By default oedit will call the show command, displaying the stats of the item.
|
| Command | Description | |
| show | Will list the object like in the table above | |
| create | Will create a new item (takes a vnum as argument) | |
| name | Is used to set the keywords of the item | |
| short | Is used to change the short description of the item | |
| long | Is used to change the long description of the item | |
| ? | Information about flags (example '? type' will list all item types) | |
| addaffect | Will add a modifier to the item (hitroll/damroll/hp/move/mana/etc) | |
| delaffect | Is used to remove above added affects | |
| v0 - v3 | Is used to change values 0 to 3 on the item | |
| weight | Is used to set the weight of the item | |
| cost | This changes the cost of items (currently not used) | |
| ed | Adds an Extra Description to the item | |
| done | Leaves oedit mode |
The following is an example on how to use oedit on item 4001.
OLC> oedit 4001 - Open and edit item vnum 4001. OLC> weight 10 - Set the weight to 10. OLC> short A Purple Dagger - Set the short description to `A Purple Dagger'. OLC> v2 30 - Set v2 to the value 30 (max damage for a weapon). OLC> done - Save and exit oedit mode.
This is a list of what the different values gives. For weapon you must multiply the number by 1000, so a weapon that should give the fly ability would have a value[3] of 3000 and not 3 as a piece of armor would.
Also notice that weapons uses value[0] and not value[3] for affects.
| Value | Ability | Value | Ability |
| 1 | Blinding | 11 | Sneak |
| 2 | Detect Invis | 12 | Chaos Shield |
| 3 | Flying | 13 | Regenerate |
| 4 | Infrared Vision | 14 | Extra Speed |
| 5 | Invisibility | 15 | Vorpal Ability |
| 6 | Passdoor | 16 | Superior Toughness |
| 7 | Protection from Evil | 17 | Superior Vision |
| 8 | Protection from Good | 18 | Fleet-footed |
| 9 | Sanctuary | 19 | Vanish from Sight |
| 10 | Detect Hidden |
The reason that weapons uses values multiplied with 1000, is that they also have the ability to cast spells during combat, thus the first < 1000 values are used for the spells, and the >1000 values are used for affects the weapons gives.
You should use the command slookup to find the value of a given spell.
Example : by using slookup, we find that the curse spell has sn value 24,
and we also want the weapon to give the power of chaos shield (value 12), so
the value given to the sword will be 12024 (12000 + 24).
Valid Item Types
| Name | Description | Name | Description |
| Light | A simple light source (lantern/torch/etc) | Scroll | Can cast three spells once |
| Wand | Can cast one spell several times | Staff | Cast a spell on the entire room (only red/blue spells) |
| Weapon | All weapons are of this type | Treasure | No real value, but looks pretty |
| Grenade | Bombs and grenades are of this type. (one use weapons) | Armor | All armor pieces are of this type (helmets, plates, etc) |
| Potion | Casts three spells on the drinker, once! | Funiture | Don't put the 'take' flag on these, just for looks :) |
| Trash | As the word says, anything that is just trash | Container | Pouches, bags, a hole or perhaps an astral void |
| Drink-container | Fountains and other normal drink holders | Key | Are used for locked doors, and nothing else |
| Food | Not used, since avatars doesn't need to eat | Money | Money is not used, but it might look nice in a room |
| Boat | Those who cannot fly, must use a boat to sail on water | Npc Corpse | Can be used as containers, perhaps a rotten corpse with something in it |
| Fountain | Same as drink-containers, but has unlimited water in them | Pill | Cast three spells when eaten |
| Portal | Permanent portals, very useful for creating fun areas | Quest | Quest Tokens, do not make these. |