Flags
From dodWiki
The SMAUG codebase uses several types of flags to assign conditions and information to the various building blocks of the game.
Contents |
Arena flags
Container flags
These are the bitvectors for V1 for containers.
| Closeable | 1 |
| Pickproof | 2 |
| Closed | 4 |
| Locked | 8 |
- Closeable means that you can open and close this object.
- Closed means that the object is currently closed. Always use this flag in conjunction with "closeable". Otherwise, you will never be able to open the container.
- Locked means that the object is currently locked. Always use this flag in conjunction with "closed" AND "closeable". If it's not closed, locking it doesn't do much good.
- Pickproof makes the container impregnable to the thief's pick lock skill. Always use this flag in conjunction with "locked" AND "closed" AND "closeable". If it's not locked, making it pickproof won't do a lot of good.
Useful bitvector combinations:
- 0 = Always open, cannot be closed
- 1 = Can open and close
- 5 = Closed, can open and close (4+1)
- 13 = Locked, closed, can open and close (8+4+1)
- 15 = Locked, closed, pickproof, can open and close (8+4+2+1)
Note: This value will change dynamically as players open, close, lock, and unlock the container.
Exit flags
Mob flags
Object flags
oset <object name or vnum> flags <flag(s)>
Flags define certain properties of an object.
Click HERE for the list of flags
On line editing uses the name of the flags and can be stacked just by listing the flags.
Example: oset dagger flags antineutral glow hum
Text editing uses stacked, added up, bitvectors.
Example: 2051 represents the flags antineutral, glow and hum
Player flags
Attacker and Killer flags are put on players who violate laws regarding pkilling. Having either one of these flags will cause mobs to treat you differently. Shopkeepers will not sell to you and guards will attack you on sight. You may apply to Captain Garet in Blackmoor to remove the flag. He is located in the Town Hall.
Attacker
Attacker flags are automatically given by the MUD to players who engage in illegal attacks upon other players. These attacks can initiated by using the 'murder' command, casting an attack spell, or ordering followers to attack a player. Deadlies attacking other deadlies do not receive Attacker flags. These flags are only given out in situations that involve peaceful players, i.e., deadlies attacking peacefuls (or vice versa) or peacefuls attacking peacefuls. You will be tagged with an Attacker flag if:
- You attempt to murder another player, or they attempt to murder you.
- You order charmed mobiles or pets to attack a player or you are attacked by another player's mobiles. You will also be flagged if you order your pet to murder a mob instead of using the kill command.
- You are a deadly player and attacked a fellow clanmember.
Killer
Killer flags are automatically given by the MUD to players who illegally cause the death of another player. Only situations which involve peacefuls being killed by mortals, or deadlies killing fellow clanmembers will result in the assignment of this flag. You will receive a Killer flag if:
- You caused the death of another player, regardless of who attacked first. To help prevent yourself from acquiring a Killer flag after being attacked, set yourself to Config +Nice.
- You were the master of a mobile or pet which killed another player while under the influence of your charm. Please note that you will receive a Killer flag even if the player that died attacked the charmed mobile without the master's permission. Charmers and pet owners are held responsible for the actions of their pets/charms.
- You are a deadly player and caused the death of a fellow clanmember.
Thief
The Thief flag was used in Realms of Despair, the original SMAUG MUD, to punish players who killed the shopkeepers in the newbie area. It is not currently used in DoD.
Litterbug
The litterbug flag may be applied to players who drop useless items everywhere or fill up an important room with object spam. It will prevent the player from dropping items. It must be applied manually, using the syntax:
litterbug <player>
Pardon
The 'pardon' command can be used by Immortals of level 103 or higher to remove player flags. However, having the player see Captain Garet is the preferred method.
pardon <player> [flag]
Room flags
These are the various room flags of SMAUG.
redit flags <flag>
Each time a redit flags is used the flag is set or cleared. Online the flag names are used. If editing a text file offline the bitvectors are stacked.
| Name | Bitvector | Effect |
|---|---|---|
| Dark | 1 | Room is always dark |
| Death | 2 | Room causes instant death (a DT) |
| Nomob | 4 | Mobs cannot wander into this room (includes pets I think) |
| Indoors | 8 | Room is indoors, MUST also use Sector 0 |
| Lawful | 16 | Room is oriented to those of lawful alignment |
| Neutral | 32 | Room is oriented to those of neutral alignment |
| Chaotic | 64 | Room is oriented to those of chaotic alignment |
| Nomagic | 128 | Magic cannot be used in this room |
| Tunnel | 256 | Room is a tunnel, x number of players allowed (use 'redit tunnel #' to set the number) |
| Private | 512 | Room is private (restricted to 2 people) |
| Safe | 1024 | Room is safe (no violence allowed) |
| Solitary | 2048 | Room is solitary (restricted to 1 person) |
| Petshop | 4096 | Petshop (next room vnum must be the storeroom for pets) |
| Norecall | 8192 | Players cannot recall out of this room |
| Donation | 16384 | Donation room (cannot get all) |
| Nodropall | 32768 | Can not drop all in this room |
| Silence | 65536 | Not a sound can be made or heard in this room |
| Logspeech | 131072 | All speech in this room is logged (Don't use) |
| Nodrop | 262144 | Nothing can be dropped in this room |
| Clanstoreroom | 524288 | Clan storage room (Room contents persist across reboots) |
| Nosummon | 1048576 | Player cannot be summoned out of this room |
| Noastral | 2097152 | People cannot astral/mistwalk/teleport to this room |
| Teleport | 4194304 | People in this room will be teleported out |
| Teleshowdesc | 8388608 | Players will see the room description of the teleport destination. |
| Nofloor | 16777216 | Room has no floor: exit down + no fly = fall |
| Prototype | 1073741824 | Room is a prototype, (under construction) |
| Arena | 67108864 | Not sure of this one. |
| Nomissile | 134217728 | Missiles can not be fired into this room? |
| Nosupplicate | 33554432 | Player can not supplicate corpse from this room? |
