RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Sleepable Beds [RunUO 2.0]

Sythen

Sorceror
Just a little fix on a nice system that someone wrote years ago and posted to the forum. I'm not sure how popular this was/is, but I've enjoyed this script a lot. This package is completely plug and play..

All I did was restructure 3 files into a base script and renamed some of the methods to make a little better sense. I also regioned the scripts out so that everyone can make new beds easily. None of the work in this package is my work or idea - I just restructured it and fixed some of the body positions; the body on the large bed now positions correctly!... Finally I also added public beds for those that didn't have them before. What this does is allows you to add them to inns so people can use the bed to go afk or (if you tweak the way RunUO allows players to securely login and log out) you can possibly make the public beds effectively act like a bedroll thus allowing players to secure logout on sleep. :D

As per requested I give you an image of 3 of the beds... but they all work the same way: when you double click the beds your body turns invisible, only staff can see you, you are muted, can't walk, and so all you can really do is go afk or log out. At that point when you come back in game, double click the bed again and your body comes back to life.



Besides the bugs mentioned below, I found 1 other that happens when you log off and you log back on your character can walk again. Not sure how to fix that. Also if you go onto your front steps while invisible and your body is in the bed... you'll get stuck on the steps and need a gm to help.
 

Attachments

  • SleepableBeds.rar
    59.9 KB · Views: 204

Hammerhand

Knight
I remember years ago I had taken the old sleepable beds & converted one to a sleepable Fur. Looked pretty cool as I recall..
 

Sythen

Sorceror
yes I included yours in this package :) I thought that was a cool idea because I can now make vegabond/nomad camp sites and abandoned player camps using them. Thanks Hammerhand.
 

Pakko

Traveler
Thanx heaps for these, there very well done and a long time waiting for a fix on these, so many thanx .
 

koluch

Sorceror
Was the problem with customizing a house when a player had logged one of his characters out while on the bed fixed?
(1)Have your player use the bed and then log that player out.
(2)Log in another player and customize the house, if that bed gets moved into the crate(now deeds replace but changing structure can send it to the moving crate)the character "sleeping" ends up bugged. Dont remember all the details, we finally got him somehow using staff to do something :(
Been a LONG time ago.
 

Sythen

Sorceror
Hiya Koluch,

I just followed the steps you mentioned above and apparently the bed bugs still bite! If you log out, log back in on another character, customize the house, and then open the moving crate... your sleeping character is still on the floor, but without a bed because the bed redeeded. If you place the bed again under the sleeping body, you will get a message saying something like I'm already sleeping somewhere....lol

To fix this one would need to add a check that basically would auto-wake the corpse up if the house goes into customize mode.

A way around this would be to simply make the beds instant-logable on double-click... My way would be to set a gump (already made - I wanted to do this but didnt know how to make a button instant log out someone securely) with the option to either instant log or refuse instant log and remain afk sleeping in the bed. On instant log the player would need to first 'auto wakeup' from the sleeping bed (becoming visable again for a split second) and log out safely (as if in an inn or his house - if its a public bed) The gump I created is very simple:

 

koluch

Sorceror
Hiya Koluch,

I just followed the steps you mentioned above and apparently the bed bugs still bite! If you log out, log back in on another character, customize the house, and then open the moving crate... your sleeping character is still on the floor, but without a bed because the bed redeeded. If you place the bed again under the sleeping body, you will get a message saying something like I'm already sleeping somewhere....lol

To fix this one would need to add a check that basically would auto-wake the corpse up if the house goes into customize mode.

A way around this would be to simply make the beds instant-logable on double-click... My way would be to set a gump (already made - I wanted to do this but didnt know how to make a button instant log out someone securely) with the option to either instant log or refuse instant log and remain afk sleeping in the bed. On instant log the player would need to first 'auto wakeup' from the sleeping bed (becoming visable again for a split second) and log out safely (as if in an inn or his house - if its a public bed) The gump I created is very simple:


Thanks Sythen and will look at the other thing you posted, the walking while invisible. I believe one of our players abused that on the old version, hehe.
 
Top