nlinfo("Guildmate %s choose side Attacker at Nexus OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
}
}
}
else// CLASSIC OUTPOSTS
{
{
// validate outpost alias
// validate outpost alias
setOutpostAlias(_OutpostIdBeforeUserValidation);
setOutpostAlias(_OutpostIdBeforeUserValidation);
if(neutral)
if(guild!=NULL)
{
{
// he his guild owns the outpost he can only help his guild
if(outpostInFire)
if(_GuildId==outpost->getOwnerGuild())
{
{
nlinfo("Guildmate %s choose side Owner at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
nlinfo("Player %s choose neutral but OP on fire => random",getName().toString().c_str());
if(uint32(RandomGenerator.rand(1))==0)
setOutpostSide(OUTPOSTENUMS::OutpostOwner);
setOutpostSide(OUTPOSTENUMS::OutpostOwner);
_OutpostIdBeforeUserValidation=0;
else
return;
setOutpostSide(OUTPOSTENUMS::OutpostAttacker);
}
}
// he his guild attacks the outpost he can only help his guild
nlinfo("Guildmate %s choose side Attacker at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
setOutpostSide(OUTPOSTENUMS::UnknownPVPSide);
_OutpostIdBeforeUserValidation=0;
return;
}
}
}
}
// check : if outpost belongs to a tribe the choice can only be attacker
else
if(outpost->isBelongingToAGuild()==false)
{
{
if(side !=OUTPOSTENUMS::OutpostAttacker)
if(guild !=NULL)
{
{
nlwarning("<CCharacter::outpostSideChosen> Outpost %s belongs to a tribe but entity %s wants to help tribe, hack ?",CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str(),_Id.toString().c_str());
// check : if outpost belongs to a tribe the choice can only be attacker
{
if(outpost->isBelongingToAGuild()==false)
side=OUTPOSTENUMS::OutpostAttacker;
// his guild doesn't participate in outpost conflict so he can choose the side he wants
// his guild doesn't participate in outpost conflict so he can choose the side he wants
if(side==OUTPOSTENUMS::OutpostOwner)
if(side==OUTPOSTENUMS::OutpostOwner)
nlinfo("Player %s choose side Owner at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
nlinfo("Player %s choose side Owner at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
if(side==OUTPOSTENUMS::OutpostAttacker)
if(side==OUTPOSTENUMS::OutpostAttacker)
nlinfo("Player %s choose side Attacker at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());
nlinfo("Player %s choose side Attacker at OP %s",getName().toString().c_str(),CPrimitivesParser::aliasToString(_OutpostIdBeforeUserValidation).c_str());