I am attempting to add customized start locations based on profession and added Case 0, 1, 2 and 3 for Warrior, Mage, Blacksmith and Advanced templates in Charactercreation.cs. I am having a strange problem, when I select warrior during character creation it sends me to the Paladin start location instead of the specified coordinates I have set up. I used the paladin case as a reference
My charactercreation.cs looks like this so far keep in mind the only location I have setup so far is warrior to see if it would work.
Anyone know why my warrior is starting at Uzeraans Mansion instead of Brit Warrior Guild?
Code:
case 5: //Paladin
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
My charactercreation.cs looks like this so far keep in mind the only location I have setup so far is warrior to see if it would work.
Code:
switch ( args.Profession )
{
case 0: //Advanced
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
case 1: //Blacksmith
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
case 2: //Mage
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
case 3: //Warrior
{
return new CityInfo( "Brittain", "Warriors Guild", 1339, 1737, 20, Map.Trammel );
}
case 4: //Necro
{
if ( (flags & ClientFlags.Malas) != 0 )
{
return new CityInfo( "Umbra", "Mardoth's Tower", 2114, 1301, -50, Map.Malas );
}
else
{
useHaven = true;
new BadStartMessage( m, 1062205 );
/*
* Unfortunately you are playing on a *NON-Age-Of-Shadows* game
* installation and cannot be transported to Malas.
* You will not be able to take your new player quest in Malas
* without an AOS client. You are now being taken to the city of
* Haven on the Trammel facet.
* */
}
break;
}
case 5: //Paladin
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
case 6: //Samurai
{
if ( (flags & ClientFlags.Tokuno) != 0 )
{
return new CityInfo( "Samurai DE", "Haoti's Grounds", 368, 780, -1, Map.Malas );
}
else
{
useHaven = true;
new BadStartMessage( m, 1063487 );
/*
* Unfortunately you are playing on a *NON-Samurai-Empire* game
* installation and cannot be transported to Tokuno.
* You will not be able to take your new player quest in Tokuno
* without an SE client. You are now being taken to the city of
* Haven on the Trammel facet.
* */
}
break;
}
case 7: //Ninja
{
if ( (flags & ClientFlags.Tokuno) != 0 )
{
return new CityInfo( "Ninja DE", "Enimo's Residence", 414, 823, -1, Map.Malas );
}
else
{
useHaven = true;
new BadStartMessage( m, 1063487 );
/*
* Unfortunately you are playing on a *NON-Samurai-Empire* game
* installation and cannot be transported to Tokuno.
* You will not be able to take your new player quest in Tokuno
* without an SE client. You are now being taken to the city of
* Haven on the Trammel facet.
* */
}
break;
}
}
if( useHaven )
return m_NewHavenInfo;
else
return args.City;
}
Anyone know why my warrior is starting at Uzeraans Mansion instead of Brit Warrior Guild?