|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Summary:
Version 2.01Version 2.01 News Only about 15 days late, here is my latest TownHouses release! Since it is a build on top of the current 2.0 system, I just adjusted a little itty bitty .01! There have been many recent feature requests, and this only touches a few. One of them, however, is quite important, that being a major RAM usage overhaul. For most of you this will be transparent but the large shards will see an improvement.Commands TownHouses: View a list of all TownHouses and access their menus here. You can also create new TownHouses from this menu.Details With this system you can not only sell static buildings to players, you can sell or rent any portion of land in any shape and size! Nothing like owning Blackthorn's Castle, or the center of the Hedge Maze! Good way to give many of the never-used areas of the game some life.Installing - Remove any older versions of TownHouses.Enabling RunUO 1.0 Final - In the main TownHouses directory, open up RUOVersion.csContact Info: Send me an email day or night (Though I will likely be sleeping at night)! kmwill23@hotmail.com
__________________
"Morality is a lonely path." - Me Last edited by kmwill23; 07-24-2007 at 07:33 PM. |
|
|
|
|
|
#5 (permalink) |
|
Master of the Internet
|
quick question - removing the utilities will not effect your chat system will it?
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
when i replace the script will townhouses already owned become unowned
__________________
http://z10.invisionfree.com/Crows_Kingdom/index.php? |
|
|
|
|
|
#11 (permalink) |
|
Forum Expert
|
Thx this is a great script
__________________
http://z10.invisionfree.com/Crows_Kingdom/index.php? |
|
|
|
|
|
#20 (permalink) |
|
Forum Novice
|
is this modify right in basehouses.cs? the line is 987
Code:
public virtual bool IsInside(Point3D p, int height)
{
Sector sector = Map.GetSector(p);
foreach (BaseMulti m in sector.Multis)
{
if (m != this
&& m is Knives.TownHouses.TownHouse
&& ((Knives.TownHouses.TownHouse)m).ForSaleSign is Knives.TownHouses.RentalContract
&& ((Knives.TownHouses.TownHouse)m).IsInside(p, height))
return false;
}
return Region.Contains(p);
}
/*public virtual bool IsInside( Point3D p, int height )
{
if ( Deleted )
return false;
MultiComponentList mcl = Components;
int x = p.X - (X + mcl.Min.X);
int y = p.Y - (Y + mcl.Min.Y);
if ( x < 0 || x >= mcl.Width || y < 0 || y >= mcl.Height )
return false;
if ( this is HouseFoundation && y < (mcl.Height-1) && p.Z >= this.Z )
return true;
Tile[] tiles = mcl.Tiles[x][y];
for ( int j = 0; j < tiles.Length; ++j )
{
Tile tile = tiles[j];
int id = tile.ID & 0x3FFF;
ItemData data = TileData.ItemTable[id];
// Slanted roofs do not count; they overhang blocking south and east sides of the multi
if ( (data.Flags & TileFlag.Roof) != 0 )
continue;
// Signs and signposts are not considered part of the multi
if ( (id >= 0xB95 && id <= 0xC0E) || (id >= 0xC43 && id <= 0xC44) )
continue;
int tileZ = tile.Z + this.Z;
if ( p.Z == tileZ || (p.Z + height) > tileZ )
return true;
}
return false;
}*/
|
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
|
You don't have TownHouses 2.0 installed. This command is new to TownHouses 2.0.
It looks like you downloaded the 1.0 version then saw this topic and assumed they were the same one. You should download the one in this post and remove the old. This one also doesn't use the Utilities, which is another clue.
__________________
"Morality is a lonely path." - Me |
|
|
|
|
|
#22 (permalink) |
|
Forum Expert
|
one problem i had at first, i was doing [townhouse...and kept getting the error.
then realized it is [townhouses (with an s) and it worked fine... command shouldn't have the s in my opinion...easy enough to change, but threw me off at first lol i like how it does the names and what not, but it doesn't change when someone buys the house....so it seems kinda pointless to me...*shrug* unless im missing a different purpose behind it. cause if you change the name it would change the sale sign wouldn't it? great fun to play around with though...i like the quick setup and easier explanation of the last couple of pages....all in all a WONDERFUL update ![]() |
|
|
|
|
|
#23 (permalink) |
|
Forum Expert
|
While testing another script i found this warning in the townhouse script
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 1 warnings)
Warnings:
+ Customs/Town Houses v2.0/Items/TownHouse.cs:
CS0114: Line 46: 'Knives.TownHouses.TownHouse.BaseBanLocation' hides inherit
ed member 'Knives.TownHouses.VersionHouse.BaseBanLocation'. To make the current
member override that implementation, add the override keyword. Otherwise add the
new keyword.
__________________
http://z10.invisionfree.com/Crows_Kingdom/index.php? |
|
|
|
|
|
#24 (permalink) | |
|
Forum Expert
|
Quote:
__________________
"Morality is a lonely path." - Me |
|
|
|
|