Housing - Free Lot Finder

Share files with other Dawn of Light users

Moderator: Support Team

Housing - Free Lot Finder

Postby Etaew » Wed May 30, 2012 3:09 pm

A proof of concept NPC which displays the free housing lots. To accompany the article at: http://etaew.wordpress.com/2012/05/30/d ... inder-npc/

- By Village
- By Zone

Note:
Villages have to be manually added, I have only done this for Caerwent for now.
Attachments
HouseFinder.cs
A NPC which lists the zones and villages with free housing lots.
(8.65 KiB) Downloaded 289 times
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: Housing - Free Lot Finder

Postby HunabKu » Wed May 30, 2012 5:46 pm

Nice Thanks.

Hunab Ku.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: Housing - Free Lot Finder

Postby Graveen » Wed May 30, 2012 9:07 pm

It's interesting. On my side, i think this system is interesting in complement of an overlay standing on /map maps, in exemple red dots, similar to what is used for quests.

First, you ask the registrar what zone is suitable, second you choose on appropriate map. Or you directly browse the maps - perhaps a client side work only is more appropriate.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Housing - Free Lot Finder

Postby Etaew » Wed May 30, 2012 9:20 pm

Having a npc is simple and requires no changes client side, an overlay would be ideal, but unrealistic for DAoC.

Also, the npc is in tribute of you ;)
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: Housing - Free Lot Finder

Postby Graveen » Wed May 30, 2012 9:42 pm

ahah excellent ! :D :D
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Housing - Free Lot Finder

Postby Phen » Wed May 30, 2012 10:19 pm

It's interesting. On my side, i think this system is interesting in complement of an overlay standing on /map maps, in exemple red dots, similar to what is used for quests.

First, you ask the registrar what zone is suitable, second you choose on appropriate map. Or you directly browse the maps - perhaps a client side work only is more appropriate.
do the red dots work ?
Phen
Storm GM
 
Posts: 674
Joined: Thu Jun 12, 2008 12:55 am
Yahoo Messenger: KerzedSoul@yahoo.com

Re: Housing - Free Lot Finder

Postby mattress » Thu May 31, 2012 4:34 am

I didn't select it, but the "What are you smoking" option is great, cool idea for the npc!
Matt450/Variations of "Matt"
User avatar
mattress
Server Team
 
Posts: 277
Joined: Mon Jul 05, 2010 3:30 am
Location: Oceanside, California

Re: Housing - Free Lot Finder

Postby Graveen » Thu May 31, 2012 11:15 am

It's interesting. On my side, i think this system is interesting in complement of an overlay standing on /map maps, in exemple red dots, similar to what is used for quests.

First, you ask the registrar what zone is suitable, second you choose on appropriate map. Or you directly browse the maps - perhaps a client side work only is more appropriate.
do the red dots work ?
I don't know, but if this is the case, this is something to dig, as iirc we have yellow and blue dots. Tom, you confirm blue dots, too ?
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Housing - Free Lot Finder

Postby Etaew » Thu May 31, 2012 11:19 am

Yellow = Quest Available
Red = Quest Kill
Blue = Quest Complete

- This effect is sent in the npc creation or update packet, and the map reads this.
- The client may automatically ignore mobs a certain distance away.
- There may be a limit to the amount of dots that the map can draw

/shrug can't know until it's tested.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: Housing - Free Lot Finder

Postby Graveen » Thu May 31, 2012 11:24 am

So in fact it is possible, in attaching automagically an npc to unused slots. I agree with last 2 points. Let's suggest Mythic a green dot for free slots !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Housing - Free Lot Finder

Postby geshi » Thu May 31, 2012 11:47 am

For the dots relating to NPCs ( yellow and blue ) they only appear at the moment if the player is within 2k range of the NPC.. since it sends it on SendNPCCreate and SendNPCUpdate or whatever they are both called..

The red dot is actually sent with SendQuestPacket and you can have 2 red dot per quest... (not implemented in any quests in the core that I saw..)

You can create those red dots by doing the following with a quest goal (example from a quest I made..)
Code: Select all
questGoal.XOffset1 = mobToKill.X - mobToKill.CurrentZone.XOffset;
questGoal.XOffset2 = mobToKill.X - mobToKill.CurrentZone.XOffset;

questGoal.YOffset1 = mobToKill.Y - mobToKill.CurrentZone.YOffset;
questGoal.YOffset2 = mobToKill.Y - mobToKill.CurrentZone.YOffset;

questGoal.ZoneID1 = mobToKill.CurrentZone.ID;
questGoal.ZoneID2 = mobToKill.CurrentZone.ID;

I tested all of this before the new quest icons btw, maybe something changed..
geshi
Contributor
 
Posts: 1826
Joined: Tue Oct 21, 2008 9:16 pm

Re: Housing - Free Lot Finder

Postby Graveen » Thu May 31, 2012 12:49 pm

not 50 dots per quests... ah damn.

The workaround would be an interface through an NPC "Where do you want to live ? Near a market, in zone X or Y, near a lake ?" that 'd propose the 2 best locations ?
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Housing - Free Lot Finder

Postby Apo » Sun Jun 03, 2012 1:20 pm

What about GamePlayer.TempProperty? Save a collection within that holds all points of interest and only send the nearest one to the player? If he is near the lot, remove this point of interest from the collection and display the next nearest one?

Or add a extra command for it which allows the player to browse through this collection and if he don't like the place that is displayed on map, he can use something like /command nextplace.

In that way, the player don't need to run to each village.

Not sure if there is a map point which can be displayed all the time without any range cap - maybe a group member point?
Apo
Contributor
 
Posts: 341
Joined: Sun May 22, 2005 10:21 pm
Location: Germany

Re: Housing - Free Lot Finder

Postby Etaew » Tue Jun 19, 2012 1:29 pm

Has anyone tried using this yet? :p I didn't really test using a full housing system.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England


Return to “%s” User Files

Who is online

Users browsing this forum: Bing [Bot] and 1 guest