DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 21, 2018, 03:38:56 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Poll
Question: Tried this module? What do you think?
Excellent - 3 (60%)
Good - 2 (40%)
Average - 0 (0%)
Bad - 0 (0%)
Poor - 0 (0%)
Total Voters: 5

Pages: [1]   Go Down
  Print  
Author Topic: Dwelling Open House Policy v0.0.4  (Read 4531 times)
0 Members and 1 Guest are viewing this topic.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« on: August 23, 2010, 02:24:36 PM »

Dwelling Open House Policy v0.0.4

Idea from Contessa. Smiley

This module allows dwellings owners to open up their house to anyone and everyone. No keys required. They can also mute the non key holders so they can't post. The coffer/logout links however will still only be accessible to the owner and key holders.

To get the open house policy the dwelling owner must buy it at the lodge. If you set lodge cost to zero then all dwellings owners can get it.

Settings allow you to limit where this is available by village and again by dwelling type. There's a link in each hamlet that shows a table showing the policy information.

Update
06/09/10 - v0.0.2
+ Fixed a location problem where open dwellings appeared in all locations.
12/09/10 - v0.0.3
+ Fixed a bug, had used $dwid instead of $arg['dwid'].
20/09/10 - v0.0.4
+ Added mute option so non keyholders can only view commentary, they can't post. Idea from Contessa. Smiley
+ Fixed logout bug. Link no longer shows for non keyholders.


-Edit-
I had attached version 0.0.4b which doesn't use the extra dwellings setting that I have. If you're not sure which version to use then use 0.0.4b - See post below.

Comments, suggestions, bugs welcome. Smiley

Zip files attached.
« Last Edit: September 26, 2010, 05:29:14 PM by Afkamm » Logged

Check My Modules for the latest versions.
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #1 on: August 23, 2010, 03:01:02 PM »

It would seem that my dwellings module has an extra setting. One that allows you to turn off dwellings in any village. I use this setting for part of the table information.

Here's the changes in my dwelling files.

Open: 'root/modules/dwellings.php'
Code:
//
// Find:
//
"prefs-city"=>array(

//
// After, ADD:
//
"allow" => "Are dwellings allowed in this city?,bool|1",

Open: 'root/modules/dwellings/dohook/village.php'
Code:
//
// Find:
//
tlschema($args['schemas']['gatenav']);

//
// Before, ADD:
//
require_once('modules/cityprefs/lib.php');
$loc = get_cityprefs_cityid('location',$session['user']['location']);
if( get_module_objpref('city',$loc,'allow','dwellings') )
{

//
// Find:
//
set_module_pref("dwelling_saver",0);

//
// After, ADD:
//
}

Without this extra setting nothing will break, you'll just get a column of No's in the table.
Logged

Check My Modules for the latest versions.
JollyGG
Mod God
*****
Offline Offline

Posts: 606


Jolly Good!


View Profile WWW
« Reply #2 on: August 23, 2010, 03:06:00 PM »

Ooooooh...I think I'll be the first to get this and try it out! Cheesy A site I help with like having Truth or Dare nights, lol, and this would make it a lot easier on the officiators Smiley
Logged

Senior Staff Coder to: RPGLink
Supporter of: Forbidden Realm and LotGD4Adults2.
Released Modules: Here
JollyGG
Mod God
*****
Offline Offline

Posts: 606


Jolly Good!


View Profile WWW
« Reply #3 on: August 23, 2010, 03:15:28 PM »

lol, that modules/dwellings/dohook/village.php was the easiest fix ever Tongue
Logged

Senior Staff Coder to: RPGLink
Supporter of: Forbidden Realm and LotGD4Adults2.
Released Modules: Here
JollyGG
Mod God
*****
Offline Offline

Posts: 606


Jolly Good!


View Profile WWW
« Reply #4 on: August 23, 2010, 03:27:12 PM »

As for my suggestion, I plan on doing this, but if you want to, lol, I'd like to make a set of dwelling, smaller ones, for new players. Only times they be able to access it are the first two DKs, and ONLY if in their prefs they choose to not want to be PVP'd (this idea mainly for a server that doesn't have immunity to it). Since there will be no issues to them stealing from coffers, no need to worry about that, but just somewhere for them to sleep, lol
Logged

Senior Staff Coder to: RPGLink
Supporter of: Forbidden Realm and LotGD4Adults2.
Released Modules: Here
MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #5 on: August 23, 2010, 04:28:10 PM »

I've been meaning to write an orphanage dwelling type module that lowly DK players can stay in for protection. =)
Logged

Check My Modules for the latest versions.
JollyGG
Mod God
*****
Offline Offline

Posts: 606


Jolly Good!


View Profile WWW
« Reply #6 on: August 23, 2010, 08:39:41 PM »

Ooooh, yeah, exactly! Let me know when you do, I'll be the first to download it too! Cheesy
Logged

Senior Staff Coder to: RPGLink
Supporter of: Forbidden Realm and LotGD4Adults2.
Released Modules: Here
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1046



View Profile WWW
« Reply #7 on: February 01, 2012, 02:48:26 PM »

How do you make it so the policy doesnt expire at the end of the day?
Logged

Minato
Codemeister
****
Offline Offline

Posts: 271


Script not working? Just beat it!


View Profile WWW
« Reply #8 on: February 01, 2012, 03:34:26 PM »

How do you make it so the policy doesnt expire at the end of the day?

Take a gander at the newday and/or newday-runonce cases, if they exist. He probably used this method to make sure things reset properly at the new day. Smiley
« Last Edit: February 01, 2012, 03:59:52 PM by Minato » Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1046



View Profile WWW
« Reply #9 on: February 01, 2012, 05:17:22 PM »

It doesnt have a newday run once or newday at all.
Logged

Minato
Codemeister
****
Offline Offline

Posts: 271


Script not working? Just beat it!


View Profile WWW
« Reply #10 on: February 01, 2012, 07:19:06 PM »

It doesnt have a newday run once or newday at all.

That's all I could give you short of downloading his file, opening it, and then writing the edit for you... Maybe one of these other fine gentlemen will have the time I lack? Smiley
Logged

MarcTheSlayer
Mod God
*****
Offline Offline

Posts: 1744


View Profile
« Reply #11 on: February 02, 2012, 12:34:13 PM »

How do you make it so the policy doesnt expire at the end of the day?

Once the dwelling owner buys this from the lodge, they're able to turn it on and off from that dwelling's management page. It does not expire. Smiley
Logged

Check My Modules for the latest versions.
Minato
Codemeister
****
Offline Offline

Posts: 271


Script not working? Just beat it!


View Profile WWW
« Reply #12 on: February 02, 2012, 01:09:47 PM »

How do you make it so the policy doesnt expire at the end of the day?

Once the dwelling owner buys this from the lodge, they're able to turn it on and off from that dwelling's management page. It does not expire. Smiley

Just a question for Megan, what function of the module made you believe it to work to expire the Policy?  Huh
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1046



View Profile WWW
« Reply #13 on: February 03, 2012, 03:39:44 PM »

when the houses you have keys too section refused to list it and you had to get to it from the hamlet registry.  but its all good now. it doesnt expire
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
16 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search