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

Development::Feature Requests Post suggestions/feature requests here.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2009, 09:28 PM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

Ok, I got sidetracked over the weekend, but I finished up and committed the home city code tonight. Here's an overview of the things I added:

The binds[4] slot in the player profile now tracks the home city bind point for all newly created characters. The bind point is set to where the character is initially bound, so it works for entries in the start_zones table as well as SoFStartZoneID rules and startzone variables.

For older characters, the char select screen will attempt to assign a home city. It does this by first checking for a starting zone variable, then checking the start_zones table. If there is only one possible home city, it assigns it. Otherwise, it leaves it unassigned.

For characters that have more than one possible city, or for later changes, I added a couple of commands. The client /setstartcity command gives the player a list of possible starting zones (pulled from the start_zones table) and allows them to select one. GMs have a #setstartzone command which takes either a zone number of shortname as an argument. Using #setstartzone 0 (or #setstartzone reset) will clear the player's home city and let them set it themselves.

Finally, $client->GetStartZone() and $client->SetStartZone() are new perl commands. GetStartZone() returns the zone number of the player's home city. The format to set a zone is SetStartZone(zoneid, x, y, z). The x, y, and z coordinates are optional, but if you specify one, you need to give them all. If they are left off, the coordinates are the zone's safe point.

That was a mouthful. Let me know if I missed anything or if there are any problems.
Reply With Quote
  #2  
Old 06-30-2009, 09:57 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Sweet! That rocks. I can't wait to try it out. That will help me finish off the LDoN Adventurer's Stone quest.
Reply With Quote
  #3  
Old 10-25-2009, 01:25 AM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default

This command $client->GetStartZone actually seems to do just that, get the start zone, not the home zone. I was wanting a way for someone to leave the tutorialb zone and go to their home zone. I could do this with a bunch of if statements but I thought maybe getting the start zone and porting them there would be better.

Anyway if you choose to get into the tutorial from character creation your startzone is listed as tutorialb. If you go to your home city first then the tutorial, it is listed as your home city.

So this is mostly an FYI.
__________________
Syl

"The significant problems we have cannot be solved at the same level of thinking with which we created them."
Albert Einstein
Reply With Quote
  #4  
Old 10-25-2009, 09:47 AM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

You're using SoF, right? As best I can tell, if you select the tutorial, the SoF client doesn't actually send your home city info at all. At this point, I think Sony just assumed everyone was going to Crescent Reach and didn't really care if you picked somewhere else.

I'd been meaning to change it so that it at least worked properly for characters with only one option for start city, but I'm writing a thesis at the moment, so my hobby programing time is pretty limited.
Reply With Quote
  #5  
Old 10-25-2009, 02:00 PM
Sylaei
Hill Giant
 
Join Date: Jan 2007
Posts: 124
Default

Yes I am using SOF. I just thought I'd through this out there, as it was confusing to start with. It would be nice if it worked with the characters with only one starting city. I have been toying with a task to automaticaly ask what they want the start city to be if the start city is set to tutorialb.
__________________
Syl

"The significant problems we have cannot be solved at the same level of thinking with which we created them."
Albert Einstein
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:50 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3