Switch to old newbieland

ryzomclassic-develop
kaetemi 5 years ago committed by Jan Boon
parent ee8ccf13b7
commit f980988ae4

@ -353,12 +353,12 @@
<proc id="proc_finish3"> <proc id="proc_finish3">
<action handler="proc" params="appear_disable_buttons" /> <action handler="proc" params="appear_disable_buttons" />
<action handler="set" params="dblink=UI:TEMP:FROM|value=1" /> <action handler="set" params="dblink=UI:TEMP:FROM|value=1" />
<!--
<action handler="set" params="dblink=UI:NEXT_SCREEN|value=%screen_location" /> <action handler="set" params="dblink=UI:NEXT_SCREEN|value=%screen_location" />
<action handler="copy" params="dbdst=UI:CURRENT_SCREEN|dbsrc=UI:NEXT_SCREEN" /> <action handler="copy" params="dbdst=UI:CURRENT_SCREEN|dbsrc=UI:NEXT_SCREEN" />
--> <!--
<action handler="set" params="dblink=UI:TEMP:CHAR3D:DEST|value=1" /> <action handler="set" params="dblink=UI:TEMP:CHAR3D:DEST|value=1" />
<action handler="ask_create_char" params="name=ui:outgame:appear_name:eb|caracs=UI:TEMP:JOB_|charsum=UI:TEMP:CHAR3D|loc=UI:TEMP:CHAR3D:DEST|slot=@UI:TEMP:CHARSELSLOT" /> <action handler="ask_create_char" params="name=ui:outgame:appear_name:eb|caracs=UI:TEMP:JOB_|charsum=UI:TEMP:CHAR3D|loc=UI:TEMP:CHAR3D:DEST|slot=@UI:TEMP:CHARSELSLOT" />
-->
</proc> </proc>

@ -568,7 +568,9 @@ CVariable<NLMISC::TGameCycle> OutpostLeavePeriod("egs","OutpostLeavePeriod", "ti
CVariable<bool> VerboseFactionPoint("egs", "VerboseFactionPoint", "set if faction point system is verbose or not", false, 0, true); CVariable<bool> VerboseFactionPoint("egs", "VerboseFactionPoint", "set if faction point system is verbose or not", false, 0, true);
#ifdef RYZOM_FORGE
CVariable<bool> UseNewNewbieLandStartingPoint("egs", "UseNewNewbieLandStartingPoint", "set if create new character start at new noobland or old", false, 0, true); CVariable<bool> UseNewNewbieLandStartingPoint("egs", "UseNewNewbieLandStartingPoint", "set if create new character start at new noobland or old", false, 0, true);
#endif
// Fame // Fame
// - Limits // - Limits

@ -1577,12 +1577,15 @@ void CEntityBase::serial(NLMISC::IStream &f)
{ {
// select starting point // select starting point
RYZOM_STARTING_POINT::TStartPoint sp; RYZOM_STARTING_POINT::TStartPoint sp;
#ifdef RYZOM_FORGE
// if(UseNewNewbieLandStartingPoint) // if(UseNewNewbieLandStartingPoint)
{ // {
sp= RYZOM_STARTING_POINT::starting_city; sp= RYZOM_STARTING_POINT::starting_city;
} // }
/* else // else
{ #else
// {
switch( _Race ) switch( _Race )
{ {
case EGSPD::CPeople::Fyros: case EGSPD::CPeople::Fyros:
@ -1600,8 +1603,9 @@ void CEntityBase::serial(NLMISC::IStream &f)
default: default:
sp = RYZOM_STARTING_POINT::aegus; sp = RYZOM_STARTING_POINT::aegus;
} }
} // }
*/ #endif
// set the character initial state // set the character initial state
TAIAlias bot,mission; TAIAlias bot,mission;
const CTpSpawnZone * zone = CZoneManager::getInstance().getStartPoint( (uint16)sp,bot,mission ); const CTpSpawnZone * zone = CZoneManager::getInstance().getStartPoint( (uint16)sp,bot,mission );

@ -965,10 +965,12 @@ void cbCreateChar( CMessage& msgin, const std::string &serviceName, NLNET::TServ
createCharMsg.serial( msgin ); createCharMsg.serial( msgin );
// Yoyo: fix to force new newbieland. // Yoyo: fix to force new newbieland.
#ifdef RYZOM_FORGE
if(UseNewNewbieLandStartingPoint) if(UseNewNewbieLandStartingPoint)
{ {
createCharMsg.StartPoint= RYZOM_STARTING_POINT::starting_city; createCharMsg.StartPoint= RYZOM_STARTING_POINT::starting_city;
} }
#endif
// acceptable name if: first char is an upper case, all the name is lower case // acceptable name if: first char is an upper case, all the name is lower case
for (uint i = 0; i < createCharMsg.Name.size(); i++) for (uint i = 0; i < createCharMsg.Name.size(); i++)

@ -8381,6 +8381,7 @@ void CCharacter::setStartStatistics( const CCreateCharMsg& createCharMsg )
RYZOM_STARTING_POINT::TStartPoint sp = createCharMsg.StartPoint; RYZOM_STARTING_POINT::TStartPoint sp = createCharMsg.StartPoint;
if( sp < RYZOM_STARTING_POINT::stalli || sp >= RYZOM_STARTING_POINT::NB_START_POINTS ) if( sp < RYZOM_STARTING_POINT::stalli || sp >= RYZOM_STARTING_POINT::NB_START_POINTS )
{ {
// FIXME: There's no safety on player race for starting zone. -Kaetemi
if(UseNewNewbieLandStartingPoint) if(UseNewNewbieLandStartingPoint)
sp = RYZOM_STARTING_POINT::starting_city; sp = RYZOM_STARTING_POINT::starting_city;
else else

@ -490,11 +490,13 @@ CEntityId CPlayer::createCharacter( const std::string& characterName, EGSPD::CPe
msg.Name = characterName; msg.Name = characterName;
msg.People = people; msg.People = people;
msg.Sex = gender; msg.Sex = gender;
#ifdef RYZOM_FORGE
if(UseNewNewbieLandStartingPoint) if(UseNewNewbieLandStartingPoint)
{ {
msg.StartPoint = RYZOM_STARTING_POINT::starting_city; msg.StartPoint = RYZOM_STARTING_POINT::starting_city;
} }
else else
#endif
{ {
msg.StartPoint = RYZOM_STARTING_POINT::aegus; msg.StartPoint = RYZOM_STARTING_POINT::aegus;
} }

Loading…
Cancel
Save