Page 1 of 1

Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 3:09 pm
by Etaew
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.

Re: Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 5:46 pm
by HunabKu
Nice Thanks.

Hunab Ku.

Re: Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 9:07 pm
by Graveen
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.

Re: Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 9:20 pm
by Etaew
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 ;)

Re: Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 9:42 pm
by Graveen
ahah excellent ! :D :D

Re: Housing - Free Lot Finder

PostPosted: Wed May 30, 2012 10:19 pm
by Phen
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 ?

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 4:34 am
by mattress
I didn't select it, but the "What are you smoking" option is great, cool idea for the npc!

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 11:15 am
by Graveen
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 ?

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 11:19 am
by Etaew
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.

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 11:24 am
by Graveen
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 !

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 11:47 am
by geshi
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..

Re: Housing - Free Lot Finder

PostPosted: Thu May 31, 2012 12:49 pm
by Graveen
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 ?

Re: Housing - Free Lot Finder

PostPosted: Sun Jun 03, 2012 1:20 pm
by Apo
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?

Re: Housing - Free Lot Finder

PostPosted: Tue Jun 19, 2012 1:29 pm
by Etaew
Has anyone tried using this yet? :p I didn't really test using a full housing system.