[RunUO 1.0 Final/2.0 RC1] Sleepable Beds
UPDATE
These bed scripts allow a player to lie down on them and 'sleep'.
Inspiration for this was David's Sleeping NPC's scripts and much of that code was used as a base for this release.
[add sleep and get a list of 10 types of sleeping beds. These are deedable Addons.
large beds aligned EW and NS
small beds aligned EW and NS
futons aligned EW and NS
elven beds aligned EW and NS
tall elven beds aligned EW and NS
The player avatar on the bed will snore and little "ZZZ"s will float above their head. Only the player can wake themself up. If someone else disturbs the sleeper there could be dire results.
This was written, tested and used for a year and a half or so on a RunUO 1.0 shard. We used to sell them as house furnishings to players as a gold sink.
This has been tested on a 2.0 build 64 test shard as well and everything appears to work fine.
Just download the release and dump it in your custom scripts folder and restart. Let me know if there are any problems.
Note: In RunUO 1.0, the futon is not a base script although the graphic is in the mul files if you have patched up to OSI. If you DO NOT have a futon script, download that as well. With RunUO 2.0, you don't need to worry about it, it is already there.
Update: Added elven and small beds. Fixed the annoying Z displacement when you wake up. Redid sleeping body position on most beds so they look more natural. Added code so that a bed can only be slept in if an owner, co-owner or friend doubleclicks the bed inside a house.
UPDATE
These bed scripts allow a player to lie down on them and 'sleep'.
Inspiration for this was David's Sleeping NPC's scripts and much of that code was used as a base for this release.
[add sleep and get a list of 10 types of sleeping beds. These are deedable Addons.
large beds aligned EW and NS
small beds aligned EW and NS
futons aligned EW and NS
elven beds aligned EW and NS
tall elven beds aligned EW and NS
The player avatar on the bed will snore and little "ZZZ"s will float above their head. Only the player can wake themself up. If someone else disturbs the sleeper there could be dire results.
This was written, tested and used for a year and a half or so on a RunUO 1.0 shard. We used to sell them as house furnishings to players as a gold sink.
This has been tested on a 2.0 build 64 test shard as well and everything appears to work fine.
Just download the release and dump it in your custom scripts folder and restart. Let me know if there are any problems.
Note: In RunUO 1.0, the futon is not a base script although the graphic is in the mul files if you have patched up to OSI. If you DO NOT have a futon script, download that as well. With RunUO 2.0, you don't need to worry about it, it is already there.
Update: Added elven and small beds. Fixed the annoying Z displacement when you wake up. Redid sleeping body position on most beds so they look more natural. Added code so that a bed can only be slept in if an owner, co-owner or friend doubleclicks the bed inside a house.