Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Purchasing houses

Purchasing houses

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Denvar   (11 posts)  Bio
Date Fri 07 Jun 2002 06:12 PM (UTC)
Message
Well where to start...at the begining i guess..

well what im wanting to implament into my game is players being able to purchase property...for example :

You can go into a building called suting like 'Home Purchases' and their is an NPC thier..form him you can buy these:

Building permit - Gives the player 1 room from which they can build their own house..for this example every new room costs 5,000 gold...

Hovel - Players can buy this, a pre-built home with 3 rooms...

House - Players can buy this, a pre-built home with 5 rooms

When they buy pre-built homes they get a door key to a 'obviously' pre-made home...say 'Apendix apartments 2106' (the 2106 is the door number and part of the name not the vnum) and once inside their own home they can edit the room descriptions....

If they buy a building permit they get a 1 roomed house...from that they can do the same as a builder but to only add rooms/exits to thier house using a selection menu...will look like this:

anything in (bracets) will not be shown on the screen..just side-notes

<500> <500> <599> build (a new command)
Syntax: Build <direction> <room> <value>

Room being one of:
LivingRoom Sauna Labratory Bathroom etc etc etc
etc etc etc etc etc......

The command 'build' is restricted to the house that the buyer bought, and only the buyer can use the command...


Any idea on how i could go about this?
....One suggestion was to skip the first part out, build houses and give them a 'buy' flag so when they are in the first(main room) of the house and type 'buy' t subtracts the amount of the house form their current gold and the room and all the specified connecting rooms become 'owned' by the buyer...but thats not really what i want
thnx for any help

~Denvar
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 07 Jun 2002 11:06 PM (UTC)
Message
One comment - this is the sort of thing that the PennMUSH server implements as standard. Maybe you want a different server?

Unlike SMAUG, in PennMUSH most players can build (maybe excepting guests), they have a quota from which they can build things (eg. number of rooms), they can make rooms, exits, objects etc.

I have some examples on this site, look in the PennMUSH section.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Raina   (1 post)  Bio
Date Reply #2 on Wed 06 Nov 2002 02:31 PM (UTC)
Message
I'm a complete newbie but perhaps it would be easier to set aside say 1000 vnum for pre made houses of 3-4 room each, anything larger could be requested.

the player would go to the building like you want, buy thier permit then go to the location they want thier house and type some command that would add the link of the house to that room (where they are standing) they would have the key from the mob they bought the permit from so they could simply go in and out after that.

as for them desc, it would be easier imo to set up 1 or 2 style houses, or how many types you want for that matter and copy them, all houses have standard desc, which is basically minimal cause they will add thier own items to dress it up.

Anything special they wanted could be sent in writing and a fee charged for your builder having to take time to go add it for them, or maybe add some sorta listing they could pick from, like if they wanted water in the house, or whatever.

anything over 10 rooms I would have them send the specific cause you dont want to get stuck with tons of wasted vnums of players long gone. If you go with a standard desc then if they leave the game you can resell thier house :)
Top

Posted by Festerhead   USA  (8 posts)  Bio
Date Reply #3 on Thu 07 Nov 2002 03:20 PM (UTC)
Message
Visit this link for a Smaug housing snippet.

http://www.inetsolve.com/~ucmm/downloads/

FesterHead Radio - Maui's premier Indie, Modern, Progressive, and Classic Rock station.
http://www.festerhead.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,244 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.