Difference between revisions of "Prop ClosedDayNight"

From CoffeeMud Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
===Notes===
 
===Notes===
 
*If this property is placed on the room of a shopkeeper, the room will close access for the night, but the shopkeeper MAY remain available if players are still in the room.  If placed directly on the MOB with a LOCKUP parameter, it will effectively close up shop for the night.
 
*If this property is placed on the room of a shopkeeper, the room will close access for the night, but the shopkeeper MAY remain available if players are still in the room.  If placed directly on the MOB with a LOCKUP parameter, it will effectively close up shop for the night.
 +
**If an archon views a closed room with SYSMSGS, he will still see the mob there.
 +
*If there is no door on the exit, or no lock on the door, then the room won't be unavailable to players during closed hours.
 +
**For public places, it is best to default the door to being not closed and not locked. You may even wish to not put a lock on the inside of the door, so it can be opened from the inside in case someone gets locked in.
 
*As of v5.9.8.2, Shopkeepers with a SIT or SLEEP parameter will look for a chair or bed to interact with before choosing the floor.
 
*As of v5.9.8.2, Shopkeepers with a SIT or SLEEP parameter will look for a chair or bed to interact with before choosing the floor.
 
*As of v5.9.8.2, Shopkeepers will no longer be able to sell in their sleep.
 
*As of v5.9.8.2, Shopkeepers will no longer be able to sell in their sleep.
 +
  
 
[[Category:MOBS(BuilderInfo)]]
 
[[Category:MOBS(BuilderInfo)]]

Revision as of 18:17, 31 October 2022

CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Builder Information=
Basics Praetor     Player Support     Commands     Zapper Masks Advanced Races     Classes     Abilities     Socials     Scripting    
Building Behaviors     Properties     Areas     Rooms     Exits     Items     Mobs Systems Achievements     Crafting     Help Info     Ships     Planes of Existence     Quests     Triumphs    
===Prop_ClosedDayNight===
Effect: Day/Night Visibility
Targets: Items, Mobs, Rooms, Exits
Parameters: (DAY/NIGHT)(SLEEP)(SIT)(LOCKUP)(HOURS=0-13)(HOME=Room#)
Examples: DAY

SLEEP HOURS=5-10 "Home=My Area#123" SLEEP LOCKUP "Home=Bob's House" SLEEP LOCKUP "shopmsg=Go Away! I'm Closed!"

Description: Affects the thing with this property depending on the time of day. By default, this property activates at night. If the DAY paramater is included, it will activate by day instead. The effect of the property is that rooms will go dark, exits will close, and items will become unseeable. Mobs will become unseeable by default, though if the sit or sleep flags are set, they will do that instead. LOCKUP will cause the mob to lock up his starting room, if any doors with locks are found. If a Home Room is specified with the HOME= parameter, the mob will track to that room at closing time, then back to their start room the next day. For shopkeepers, you can specify a string for them to say whenever someone tries to interact with them as a shopkeeper during closed hours.

Notes

  • If this property is placed on the room of a shopkeeper, the room will close access for the night, but the shopkeeper MAY remain available if players are still in the room. If placed directly on the MOB with a LOCKUP parameter, it will effectively close up shop for the night.
    • If an archon views a closed room with SYSMSGS, he will still see the mob there.
  • If there is no door on the exit, or no lock on the door, then the room won't be unavailable to players during closed hours.
    • For public places, it is best to default the door to being not closed and not locked. You may even wish to not put a lock on the inside of the door, so it can be opened from the inside in case someone gets locked in.
  • As of v5.9.8.2, Shopkeepers with a SIT or SLEEP parameter will look for a chair or bed to interact with before choosing the floor.
  • As of v5.9.8.2, Shopkeepers will no longer be able to sell in their sleep.