Log in

View Full Version : Home?


Andrew80k
10-20-2008, 05:07 PM
Is there any way to tell a player's home city? I've been looking through the source and the docs and can't seem to find anything. Anyone know? Thanks.

Kilralpine
01-06-2009, 10:49 PM
Like /charinfo - that will give you the current characters bind point???

Or do you mean home city as in where the character landed upon creation?

Andrew80k
01-07-2009, 11:56 AM
The latter. It doesn't appear to be in the player profile and we don't seem to store it any where on creation.

KLS
01-07-2009, 04:58 PM
We haven't implemented home city yet.

Andrew80k
01-07-2009, 07:28 PM
We haven't implemented home city yet.
It didn't look like it to me going through the code so I have a prototype of it being added to the character_ table. I'm working on some of the home city specific stuff, ie Origin and that seems to work out ok. Just not sure if that's the best place for it since C++ is not my strongest language and I haven't had that much time to get into the code.

KLS
01-07-2009, 08:19 PM
Home it probably stored somewhere in player profile.

Andrew80k
01-08-2009, 11:54 AM
Home it probably stored somewhere in player profile.
That's what I figured too, but I don't know where to put it in there though it's easy enough to do.

trevius
01-09-2009, 06:02 AM
In the player profile, it looks like home city is stored in the bindstruct as far as I can tell. Looking at the packets from EQLive, it shows 5 bind points. The first one is your actual normal bind point. After that, all of the other 4 on my barbarian show Everfrost. I figured it would be halas, but I guess it starts you outside the town instead of inside. IIRC, when you first started, you would spawn inside the town, but you were actually bound outside in the noobie area in most towns. So, if you hit a guard/merchant, it was a quick trip to the hunting area.

/**
* A bind point.
* Size: 20 Octets
*/
struct BindStruct {
/*000*/ uint32 zoneId;
/*004*/ float x;
/*008*/ float y;
/*012*/ float z;
/*016*/ float heading;
/*020*/
};

So, I think that is probably the best place to put it, if you can figure out how to do it.

Andrew80k
01-09-2009, 12:09 PM
Thanks, Trev. I'll work with that.