|
|
@ -13418,12 +13418,12 @@ void CCharacter::abandonMission(uint8 indexClient)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
|
|
|
|
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
|
|
|
|
if (params.size() >= 1)
|
|
|
|
if (mission->getFinished() && params.size() >= 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mission->getFinished() == false)
|
|
|
|
if (mission->getMissionSuccess())
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=ABD");
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=SUCCESS");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=FINABD");
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=ABD");
|
|
|
|
setCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK", "");
|
|
|
|
setCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK", "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -13715,6 +13715,15 @@ bool CCharacter::processMissionStepUserEvent(std::list<CMissionEvent*> &eventLis
|
|
|
|
if (!templ->Tags.NoList && !templ->Tags.AutoRemove)
|
|
|
|
if (!templ->Tags.NoList && !templ->Tags.AutoRemove)
|
|
|
|
sendDynamicSystemMessage(_Id, bChained ? "EGS_MISSION_STEP_SUCCESS" : "EGS_MISSION_SUCCESS");
|
|
|
|
sendDynamicSystemMessage(_Id, bChained ? "EGS_MISSION_STEP_SUCCESS" : "EGS_MISSION_SUCCESS");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!bChained) {
|
|
|
|
|
|
|
|
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
|
|
|
|
|
|
|
|
if (params.size() >= 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
validateDynamicMissionStep(params[0]+"&result=FINISHED");
|
|
|
|
|
|
|
|
setCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CMissionManager::getInstance()->missionDoneOnce(templ);
|
|
|
|
CMissionManager::getInstance()->missionDoneOnce(templ);
|
|
|
|
mission->stopChildren();
|
|
|
|
mission->stopChildren();
|
|
|
|
|
|
|
|
|
|
|
|