Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2008, 05:07 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default Home?

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.
Reply With Quote
  #2  
Old 01-06-2009, 10:49 PM
Kilralpine
Sarnak
 
Join Date: Jul 2004
Posts: 98
Default

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?
Reply With Quote
  #3  
Old 01-07-2009, 11:56 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

The latter. It doesn't appear to be in the player profile and we don't seem to store it any where on creation.
Reply With Quote
  #4  
Old 01-07-2009, 04:58 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

We haven't implemented home city yet.
Reply With Quote
  #5  
Old 01-07-2009, 07:28 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by KLS View Post
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.
Reply With Quote
  #6  
Old 01-07-2009, 08:19 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Home it probably stored somewhere in player profile.
Reply With Quote
  #7  
Old 01-08-2009, 11:54 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by KLS View Post
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.
Reply With Quote
  #8  
Old 01-09-2009, 06:02 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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.

Code:
/** 
* 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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #9  
Old 01-09-2009, 12:09 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Thanks, Trev. I'll work with that.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:34 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3