*Version 5 : 7/27/06* Reworked some functions, fixed some errors.
7/26/06 Fixed issues with the house tokens, creating 10+ of the same furniture, and making homes with 10 or more areas.
Sins Housing Project uses NwnX2/MySQL, and therefor is very fast and very clean. The furniture system includes persistent storage containers that can handle non-modular, dynamic items. Furniture can be placed anywhere in the house (not just at waypoints), can be altered after placement, and is stored persistently when a PC leaves the area (including when the PC logs out of the server while in a home). Players may preview homes beforehand so they know exactly what they're getting. Instructions included tell you how to set up your system (after you try the demo of course), as well as how to create new furniture to be used in your home. Check out the demo module to set up the core system table and to make sure it works for you! Be sure to read through the instructions, as it documents the features and how to use them. Thanks! -f0ul cr0w
Another small update coming soon: I fixed some issues with miscalculating size and price of multi story homes, and the owner being bootable from his own home. Also made more use of the SHS_GetMainFloor function so that less variables are stored on each area of the house. Only H_MainFloorTag and H_Owner will be on each area now. Removed the constant for using the Unlock script on interior doors. Now, you can just do it and it will behave properly, whether you choose to use the thief/upgrade system or disable it. I'm considering either removing the ability to grant access to all homes using the house token, or redoing the way the house token works entirely. I'm thinking of adding players who are granted access to a new table, which could also track values for those players corresponding to the house (like access levels, ranks, etc). This would mean no variables getting thrown onto the house token itself anymore. And the ability to store additional information about each guest would open the door to other possibilities.
Posted by f0ul_cr0w at 2006-07-2611:01:33
The update is in, but that particular issue is unresolved for now.
Posted by f0ul_cr0w at 2006-07-2509:26:02
The 10+ furniture issue I've resolved (as well as another unreported issue concerning 10+ stories in a home). However, I can't see what would be causing the PC to re-enter a home he's sold. The table for the house should be getting dropped in the function SHS_RefundHome, and the local variables that are checked for ownership and whatnot are also deleted in that function. I will check again when I get the chance, and should have the update later tonight.
Posted by f0ul_cr0w at 2006-07-2507:57:21
I will check into both of these, thanks. Let me ask, are you using the demo module or a seperate module to do this? And are you using default furniture or furniture you created?
Posted by Jugs at 2006-07-2422:06:08
Thx f0ul_cr0w! I think i came across a few more problems today, not sure if it's just me though, haha... I realised if a I place more than 9 of the same furnitures at the same area, the 10th furniture will be recorded into the database but without resref and location... and sometimes causes other furnitures to dissapear... Another problem is if a dm is in the same house as a player when he re-sell the deed, the player will get his money back, but the door will still show as he owns it, which he can re-enter and sell it again.. i haven't tested it with a player standing inside though...will test it later once i get a friend to help :)
Posted by f0ul_cr0w at 2006-07-2409:24:35
BTW, the download has been updated to include this fix.
Posted by f0ul_cr0w at 2006-07-2409:01:51
Jugs n Mugs - Thank you for reporting this; it was an oversight on my part. This can be fixed by changing one line of code. Open the script shs_act_token and go to line 42, or the line that says : SetLocalInt( oTarget, "OwnerUnlocked", 1 ); and change that to : SetLocalInt( oTarget, "H_OwnerUnlocked", 1 ); I changed the naming of most variables and I suppose I overlooked this script. Thank you for reporting and let me know if you find anything else!
Posted by Jugs at 2006-07-2403:29:05
hmm.. not sure if it's just me or what, but after changing some settings in shs_inc_const (after some narrowing down), the house tokens don't work... Basically, i changed the pricings, disabled the theft system, display name on clicking door, display in feet to TRUE, and the house tokens stopped working. Anyone else having this problem?
Posted by Jugs at 2006-07-2012:38:46
hi, i love ur house scripts. i just updated from version 3 to 5. but i keep having problems with house tokens after that. after the house owner gives a token to another player, the token, when used on the house owner, does shows that he has access to the right house, but when used on the door of the house, it says "locked" without other message. we made sure it was set to allow guest access, but same thing happened. we also checked to make sure the door's resref n tags are correct, and the house deed does work on the door, only the given tokens weren't. pls help! thanks in advance!
Posted by BigMacDaddy at 17:25:17 Voted10.00
Ok I'll email you later tonight or tomorrow... Sorry I've been busy dealing with other things for the last few weeks... please dont torture yourself :) we'll work it out... _________________________ BigMacDaddy Forgotten Worlds: Dragon Mountain Link