Voxpire

Voxpire
Vita-Nex
Administrator
Voxpire submitted a new resource:

Knive's Town Houses - "Turn static buildings into homes, turn anything into a home" - Knives

Knives said:
Commands:

[TownHouses: View a list of all TownHouses and access their menus here. You can also create new TownHouses from this menu.

[TownHouseErrors, [the: View or report errors in the TownHouse system. Very similar to previous Error systems in Chat and TownHouses.

"Create rental contract": If allowed, players can use this spoken command in their home to begin the setup for renting portions of their home.

"Check...

Read more about this resource...
 
Trying to get this to work but got some errors.

It might be because im using RUNUO 2.6 and 7.042.0 UO client?

C#:
Expand Collapse Copy
errors:
 + Customs / Items / TownHouseSign.cs:
    CS1061: Line 1226: System.Collections.ArrayList does not contain a definition for Keys and could not find any Keys add-on method that accepts a first argument of type System.Collections.ArrayList (missing a using directive or composition reference?)
    CS1061: Line 1254: object does not contain a definition for Item and could not find any Item add-on method that accepts an initial object of type object (is there a missing directive or a composition reference?)
    CS1061: Line 1256: object does not contain a definition for Item and could not find any Item add-on method that accepts an initial object of type object (missing a using directive or composition reference?)
    CS1061: Line 1257: object does not contain an item definition and could not find any Item add-on method that accepts an initial object type argument (is there a missing directive or a composition reference?)
    CS1061: Line 1258: object does not contain a definition for Item and could not find any Item add-on method that accepts a first object of type object (is there a missing directive or a composition reference?)
    CS1061: Line 1259: object does not contain an item definition and could not find any Item add-on method that accepts an initial object type argument (is there a missing directive or a composition reference?)
    CS1061: Line 1261: object does not contain a definition for Item and could not find any Item add-on method that accepts an initial object of type object (is there a missing directive or a composition reference?)
    CS0246: Line 1288: Could not find type or namespace name AddonToolComponent (missing a using directive or composition reference?)
    CS0117: Line 1541: Server.Multis.BaseHouse does not contain a definition for AtAccountHouseLimit
 + Customs / Items / RentalContract.cs:
    CS1061: Line 212: System.Collections.ArrayList does not contain a definition for Keys, and no Keys add-on method could be found that accepts a first argument of type System.Collections.ArrayList (missing a using directive or composition reference?)
 + Customs / Misc / General.cs:
    CS1061: Line 66: Knives.TownHouses.TownHouse does not contain an IsSameAccount definition, and no IsSameAccount add-on method was found that accepts a first Knives.TownHouses.TownHouse type argument (missing a directive or a composite reference?)
 
I see that whenever the server is restarted, the timers for rent reset completely.
Just tested this and had 3 days left until due date (weekly rent), and after restarting the server, the due date went back to 7 days.

Any way to prevent this from happening?
 
Using ServUO LoA publish 54 I think but, got these errors:
Errors:
+ CUSTOM/New Systems/TownHouses/Items/TownHouseSign.cs:
CS1061: Line 1254: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 1256: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 1257: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 1258: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 1259: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 1261: 'object' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
CS0117: Line 1541: 'Server.Multis.BaseHouse' does not contain a definition for 'AtAccountHouseLimit'
 
i am in the same boat as you. I am using the latest ServUO distro. Version 0.5, Build 7506.3271

Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Custom/Town Houses/Items/TownHouse.cs:
CS0234: Line 8: The type or namespace name 'Deeds' does not exist in the namespace 'Server.Multis' (are you missing an assembly reference?)
CS0246: Line 14: The type or namespace name 'VersionHouse' could not be found (are you missing a using directive or an assembly reference?)
CS0246: Line 79: The type or namespace name 'HouseDeed' could not be found (are you missing a using directive or an assembly reference?)
CS0115: Line 43: 'TownHouse.Area': no suitable method found to override
CS0115: Line 79: 'TownHouse.GetDeed()': no suitable method found to override
CS0115: Line 148: 'TownHouse.IsInside(Point3D, int)': no suitable method found to override
CS0115: Line 193: 'TownHouse.GetNewVendorSystemMaxVendors()': no suitable method found to override
CS0115: Line 198: 'TownHouse.GetAosMaxSecures()': no suitable method found to override
CS0115: Line 203: 'TownHouse.GetAosMaxLockdowns()': no suitable method found to override
CS0115: Line 208: 'TownHouse.OnMapChange()': no suitable method found to override
CS0115: Line 218: 'TownHouse.OnLocationChange(Point3D)': no suitable method found to override
CS0115: Line 228: 'TownHouse.OnSpeech(SpeechEventArgs)': no suitable method found to override
CS0115: Line 261: 'TownHouse.OnDelete()': no suitable method found to override
CS0115: Line 281: 'TownHouse.OnAfterDelete()': no suitable method found to override
CS0115: Line 288: 'TownHouse.Serialize(GenericWriter)': no suitable method found to override
CS0115: Line 303: 'TownHouse.Deserialize(GenericReader)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Im no coder...and this is beyond me.

2nd question.

why does it give me multiple errors when it states there is only one?
 
I would really like to use this! I am getting these errors on 'dotnet build'....
/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/TownHouse.cs(199,29): error CS0115: 'TownHouse.GetNewVendorSystemMaxVendors()': no suitable method found to override [/home/uo/ServUO-master/Scripts/Scripts.csproj]
/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/RUOVersion.cs(88,33): error CS0234: The type or namespace name 'Deeds' does not exist in the namespace 'Server.Multis' (are you missing an assembly reference?) [/home/uo/ServUO-master/Scripts/Scripts.csproj]
/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/RUOVersion.cs(88,49): error CS0115: 'VersionHouse.GetDeed()': no suitable method found to override [/home/uo/ServUO-master/Scripts/Scripts.csproj]

Build FAILED.

/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/TownHouse.cs(199,29): error CS0115: 'TownHouse.GetNewVendorSystemMaxVendors()': no suitable method found to override [/home/uo/ServUO-master/Scripts/Scripts.csproj]
/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/RUOVersion.cs(88,33): error CS0234: The type or namespace name 'Deeds' does not exist in the namespace 'Server.Multis' (are you missing an assembly reference?) [/home/uo/ServUO-master/Scripts/Scripts.csproj]
/home/uo/ServUO-master/Scripts/c.downloaded/townhouses/RUOVersion.cs(88,49): error CS0115: 'VersionHouse.GetDeed()': no suitable method found to override [/home/uo/ServUO-master/Scripts/Scripts.csproj]
0 Warning(s)
3 Error(s)
 
I see that whenever the server is restarted, the timers for rent reset completely.
Just tested this and had 3 days left until due date (weekly rent), and after restarting the server, the due date went back to 7 days.

Any way to prevent this from happening?
Did you ever solve this issue?
 
A little bit of a stretch but I'll ask here.

Everything... seems to work, at least I cannot get it to throw an error. But every time someone purchases a house, whether or not it is for Rent, Purchase, Furnished, or Unfurnished, that house becomes a crash area for any player entering its vicinity.

Running on ServUO 57. Console shows it as players just naturally disconnecting from the server but it's definitely crashing on client side.

Edit: Well after some more digging and testing I guess it's just a long-standing Enhanced Client bug with the Town Houses. Makes me curious what the difference is but I suppose I'll just have to decide which client to use.
 
Last edited:
Installed this script on my test server. I want to use this to give players a large 180x180 plot of land to build a kingdom/town upon. Everything works great so far, the only issue im having is trying to place addons like this: Pre-built UO Houses and Structures Addons - 6 Custom Houses and 4 Custom Structures as Addons All small addons, even custom made addons made with addongen (Included in this message) work fine. But larger addons just give the message, you cannot place this here. I thought maybe I had to add more floors, so I jacked it up as high as i could go, and still wont let anyone (including admins) place them.
Installed this script on my test server. I want to use this to give players a large 180x180 plot of land to build a kingdom/town upon. Everything works great so far, the only issue im having is trying to place addons like this: Pre-built UO Houses and Structures Addons - 6 Custom Houses and 4 Custom Structures as Addons All small addons, even custom made addons made with addongen (Included in this message) work fine. But larger addons just give the message, you cannot place this here. I thought maybe I had to add more floors, so I jacked it up as high as i could go, and still wont let anyone (including admins) place them.

Okay so I figured out what was going on, addon placement works fine.. it was our character that was blocking placement. Awesome script! Thank you!
 

Attachments

Last edited:
This installed no problem for me. As an Admin, I could set up the rental. My player, however, is unable to make the purchase with gold in the bank. The message he gets ("You cannot purchase this house") appears in only one place in my code, in TownHouseSign.cs. The code is:
C#:
Expand Collapse Copy
        public bool CanBuyHouse(Mobile m)
        {
            if (c_Skill != "")
            {
                try
                {
                    var index = (SkillName)Enum.Parse(typeof(SkillName), c_Skill, true);

                    if (m.Skills[index].Value < c_SkillReq)
                    {
                        return false;
                    }
                }
                catch
                {
                    return false;
                }
            }

            if (c_MinTotalSkill != 0 && m.SkillsTotal / 10 < c_MinTotalSkill)
            {
                return false;
            }

            if (c_MaxTotalSkill != 0 && m.SkillsTotal / 10 > c_MaxTotalSkill)
            {
                return false;
            }

            if (c_YoungOnly && m.Player && !((PlayerMobile)m).Young)
            {
                return false;
            }

            if (c_Murderers == Intu.Yes && m.Kills < 5)
            {
                return false;
            }

            if (c_Murderers == Intu.No && m.Kills >= 5)
            {
                return false;
            }

            return true;
        }
I can't see why any of these falses would be triggered.
 
Voxpire submitted a new resource:

Knive's Town Houses - "Turn static buildings into homes, turn anything into a home" - Knives



Read more about this resource...
I seen someone had a townhouse script that was an update from this old one on here a couple weeks ago. I downloaded it but it seems to have disapeared from the forums since.

I have made an update to it adding the following features for those who want to have play run shops in towns

1) Ability to select shop type (carpenter blacksmith etc)
2) sign shows blue town house when for rent and changes to the shop type sign when wented
3) Ability for admin to add three lines text to the sign when for rent and player to add three lines when rented
4) Ability for statics to be registered and then made into lock downs when rented then revert back on vacancy (Needs work)
5) region based that recognizes the town it is in and can have a bank stone in each bank that sends half the rent money there and half to britain treasure if you want to do economics here
6) mayor system for electing mayor and allowing them to spend the money for city upgrades and such
7) abity to change direction of sign
8) House commands "i wish to lock this down and such) added
9) Vendor list of items corresponds to shop type and only allows vendors to sell items for that kind shop profession
10) vendor mall stalls for each town so can give free spot in mall to shop owners sell anything there but only trade items in show
11) add repair vendors for shops
12) vendor mall addon for each town and checks if owner is shop keeper and if so is free

But I dont meet the requiments to post a script here and cant credit the other guy cause i cant seem find the updated script he did

all of this is 85-90 percent working the statics thing needs some work and the sign changing is almost there but getting item id wrong and needs work

but there is a lot here for better then me people to go to town with if they want hopefully this will count as one post and i can meet the requiments to post it I also have a studio thing with all commands in game, item and gump and art and sound viewerand multi viewer built in and travel book and toolbar for it as well going to add a static maker to when i can.
 

Donations

Total amount
$50.00
Goal
$500.00

Shards

Back