|
|
|
@ -13521,9 +13521,9 @@ void CCharacter::abandonMission(uint8 indexClient)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
|
|
|
|
|
if (mission->getFinished() && params.size() >= 1)
|
|
|
|
|
if (params.size() >= 1)
|
|
|
|
|
{
|
|
|
|
|
if (mission->getMissionSuccess())
|
|
|
|
|
if (mission->getFinished() && mission->getMissionSuccess())
|
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=SUCCESS");
|
|
|
|
|
else
|
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=ABD");
|
|
|
|
@ -14483,6 +14483,18 @@ void CCharacter::updateSavedMissions()
|
|
|
|
|
_Id, "JOURNAL:ADD_COMPASS_BOT", x, y, txt, c->getEntityRowId().getCompressedIndex());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
CMissionTemplate * templ = CMissionManager::getInstance()->getTemplate((*it).second->getTemplateId());
|
|
|
|
|
string textName;
|
|
|
|
|
getPositionCheck(toUpper(templ->getMissionName()), x, y, textName);
|
|
|
|
|
if (x != 0 && y != 0)
|
|
|
|
|
{
|
|
|
|
|
SM_STATIC_PARAMS_1(textParams, STRING_MANAGER::literal);
|
|
|
|
|
textParams[0].Literal.fromUtf8(textName);
|
|
|
|
|
uint32 txt = STRING_MANAGER::sendStringToClient( c->getEntityRowId(), "LITERAL", textParams );
|
|
|
|
|
PlayerManager.sendImpulseToClient(_Id, "JOURNAL:ADD_COMPASS", x, y, txt);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
CPlace* place = CZoneManager::getInstance().getPlaceFromId((uint16)(*itCompass).second.getPlace());
|
|
|
|
|
|
|
|
|
@ -14498,6 +14510,7 @@ void CCharacter::updateSavedMissions()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
++it;
|
|
|
|
|
}
|
|
|
|
|