lemolas

Initiate
Hi all, i was trying to change the behavior of the character creation. What i was trying to do is to not show the location gump but force all characters to spawn in a specific location and change the initial backpack items.

I think this could be a client issue, i just hope there is a way to change this.

Thank you all
 
it all can be changed in CharacterCreation.cs...

private static readonly CityInfo m_NewHavenInfo = new CityInfo("New Haven", "The Bountiful Harvest Inn", 3503, 2574, 14, Map.Trammel);

changing above to change start location....

private static void AddBackpack(Mobile m)
{
Container pack = m.Backpack;

if (pack == null)
{
pack = new Backpack();
pack.Movable = false;

m.AddItem(pack);
}

PackItem(new RedBook("a book", m.Name, 20, true));
PackItem(new Gold(1000)); // Starting gold can be customized here
PackItem(new Candle());
PackItem(new SkillBall());
PackItem(new StatBall());

if (m.Race != Race.Gargoyle)
PackItem(new Dagger());
else
PackItem(new GargishDagger());
}

and above as you can see changes pack items
 
I was replying to him asking about changing the GUMP itself.

This is my main intention, totally remove the GUMP.
The user ends to customize his char (hair, skin, race, ..), when "next" is clicked, instead of show the cities location (with the map and the little city description), the user spawns to a specific place (maybe with xyz coords).

Another way, if this step is mandatory, is to remove all the cities and show only the one i'm intrested into (so the users can actually click only there)
 
As far as I am aware you cannot remove the gump so your plan of only allowing one city would seem to be the way to go.

FB
 
Norman had also posted to this question in the past and stated with Young Status player will always spawn in New Haven no matter what :)
 
The only way to do this would be to fill the account with PlayerMobile objects when it is created, so when they get to character selection, there is no character creation - they simply select one of the blank pre-defined characters and you supply a totally custom creation gump yourself.

This is not my idea, but the person who told me about it is pretty smart for figuring it out and currently does this on their server.

So, having done this, your gump would obviously mimic steps needed for customization - after that, you can serve up a custom location selection gump.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back