Nockar
Sorceror
[RunUO 2.0] House Door Keys (Old Style Housing Rules)
[RunUO 2.0] House Door Keys (Old Style Housing Rules)
Credits:
Grodon for starting the post!
Tresdni for the ideas to get started!
Serenadethis for his 2004 post with the key code!! HAHAH
Description: Every wish you could have the old style housing rules and still keep your expansion’s & custom housing? Ever wish you could steal someone’s key and break into their house? Or just sneak into it?
This code will revert back to the old style of houses with out having to set your expansion to none! This way you can keep using all the normal stuff that you are using now and have a mostly old style housing system/rules.
What got changed:
Private: Previously while the house was private you could not ban players
- You can now Ban anyone
- The Ban buttons show up in the Gump
Private Non-friends: Previously while the house was private, a unfriended player & monsters could not enter your house. There was a magic box around it.
- Non-friends can walk into house
- Non-friends will turn gray (criminal) when in house
- Monster can walk into house
Door Key: Previsously, for both public and private, the outside door was done with security levels.
- Door security gump from right-clicking the door is now gone.
- When you make the house or transfer it, a key gets made and put in your pack or bank
- If you change house to public key stays or go away depending on what code you use
- The key is used to unlock and re-lock the front door(s)!
- The key can be stole
What does this all mean? It means just like in old times you can sneak into someone’s house or steal their key(s) and break in.
Note:
- This works fine with old housing and the new custom housing!
- This still may not work perfectly the way you want it it. But I didn’t find any bugs or problems when I tested it.
- I didn’t change anything to make items not decay inside houses. May do that later.
- HouseTeleporter will probably need to get the key code added to it. But I didn’t even know there were such things as HouseTeleporters. lol
- I have not figured out how to generate new keys. Like re-keying the doors.
How to Install:
I did not include any already edited files because there are different version of house files out there. In order to get this to work you have to go in and make a bunch of edits to a number of files. In order to do this you need to open up the attached txt file with the changes and go in and manually compare them to your current CS files then make the appropriate changes.
BaseHouse.cs
HouseDoors.cs
HouseTeleporter.cs
HouseRegion.cs
HouseGumpAOS.cs
An example of how to do this...
You will be editing BaseHouse.cs & the new code is between the //House Door Key Mod. I will make it bold so you can see it. So for this one you will be adding that bit of code to your BaseHouse.cs file.
From House Door Keys.txt
UPDATE:
[12/1/2010] Added new “House Door Keys.txt” with the couple of change from below.
[RunUO 2.0] House Door Keys (Old Style Housing Rules)
Credits:
Grodon for starting the post!
Tresdni for the ideas to get started!
Serenadethis for his 2004 post with the key code!! HAHAH
Description: Every wish you could have the old style housing rules and still keep your expansion’s & custom housing? Ever wish you could steal someone’s key and break into their house? Or just sneak into it?
This code will revert back to the old style of houses with out having to set your expansion to none! This way you can keep using all the normal stuff that you are using now and have a mostly old style housing system/rules.
What got changed:
Private: Previously while the house was private you could not ban players
- You can now Ban anyone
- The Ban buttons show up in the Gump
Private Non-friends: Previously while the house was private, a unfriended player & monsters could not enter your house. There was a magic box around it.
- Non-friends can walk into house
- Non-friends will turn gray (criminal) when in house
- Monster can walk into house
Door Key: Previsously, for both public and private, the outside door was done with security levels.
- Door security gump from right-clicking the door is now gone.
- When you make the house or transfer it, a key gets made and put in your pack or bank
- If you change house to public key stays or go away depending on what code you use
- The key is used to unlock and re-lock the front door(s)!
- The key can be stole
What does this all mean? It means just like in old times you can sneak into someone’s house or steal their key(s) and break in.
Note:
- This works fine with old housing and the new custom housing!
- This still may not work perfectly the way you want it it. But I didn’t find any bugs or problems when I tested it.
- I didn’t change anything to make items not decay inside houses. May do that later.
- HouseTeleporter will probably need to get the key code added to it. But I didn’t even know there were such things as HouseTeleporters. lol
- I have not figured out how to generate new keys. Like re-keying the doors.
How to Install:
I did not include any already edited files because there are different version of house files out there. In order to get this to work you have to go in and make a bunch of edits to a number of files. In order to do this you need to open up the attached txt file with the changes and go in and manually compare them to your current CS files then make the appropriate changes.
BaseHouse.cs
HouseDoors.cs
HouseTeleporter.cs
HouseRegion.cs
HouseGumpAOS.cs
An example of how to do this...
You will be editing BaseHouse.cs & the new code is between the //House Door Key Mod. I will make it bold so you can see it. So for this one you will be adding that bit of code to your BaseHouse.cs file.
From House Door Keys.txt
Code:
\Scripts\Multis\BaseHouse.cs
--------------------------------------------------------
public abstract class BaseHouse : BaseMulti
{
public static bool NewVendorSystem{ get{ return Core.AOS; } } // Is new player vendor system enabled?
//House Door Key Mod
[B]public uint m_keyvalue = Key.RandomValue();[/B]
//House Door Key Mod
public const int MaxCoOwners = 15;
public static int MaxFriends { get { return !Core.AOS ? 50 : 140; } }
public static int MaxBans { get { return !Core.AOS ? 50 : 140; } }
--------------------------------------------------------
UPDATE:
[12/1/2010] Added new “House Door Keys.txt” with the couple of change from below.