fix settarget + test force accept quest after complete one

This commit is contained in:
Atidot3
2024-07-30 17:05:07 +02:00
parent c36cfbb55b
commit 2e63381d48
2 changed files with 5 additions and 5 deletions

View File

@@ -99,12 +99,12 @@ void ChooseTravelTargetAction::getNewTarget(TravelTarget* newTarget, TravelTarge
{ {
if (urand(1, 100) > 50) //50% Focus on active quests for money. if (urand(1, 100) > 50) //50% Focus on active quests for money.
{ {
foundTarget = SetQuestTarget(newTarget, false, true, true); //Turn in quests for money. foundTarget = SetQuestTarget(newTarget, true, false, true, true); //Turn in quests for money.
} }
if (!foundTarget) if (!foundTarget)
{ {
foundTarget = SetQuestTarget(newTarget, true, false, false); //Find new (low) level quests foundTarget = SetQuestTarget(newTarget, false, true, false, false); //Find new (low) level quests
} }
} }
else else
@@ -140,7 +140,7 @@ void ChooseTravelTargetAction::getNewTarget(TravelTarget* newTarget, TravelTarge
//Do quests (start, do, end) //Do quests (start, do, end)
if (!foundTarget && urand(1, 100) > 5) //95% chance if (!foundTarget && urand(1, 100) > 5) //95% chance
{ {
foundTarget = SetQuestTarget(newTarget, true, true, true); //Do any nearby foundTarget = SetQuestTarget(newTarget, false, true, true, true); //Do any nearby
} }
//Explore a nearby unexplored area. //Explore a nearby unexplored area.

View File

@@ -49,7 +49,7 @@ bool TalkToQuestGiverAction::ProcessQuest(Quest const* quest, Object* questGiver
out << "|cffff0000Incompleted|r"; out << "|cffff0000Incompleted|r";
break; break;
case QUEST_STATUS_NONE: case QUEST_STATUS_NONE:
//AcceptQuest(quest, questGiver->GetGUID()); AcceptQuest(quest, questGiver->GetGUID());
out << "|cff00ff00Available|r"; out << "|cff00ff00Available|r";
break; break;
case QUEST_STATUS_FAILED: case QUEST_STATUS_FAILED:
@@ -265,7 +265,7 @@ bool TurnInQueryQuestAction::Execute(Event event)
out << "|cffff0000Incompleted|r"; out << "|cffff0000Incompleted|r";
break; break;
case QUEST_STATUS_NONE: case QUEST_STATUS_NONE:
//AcceptQuest(quest, object->GetGUID()); AcceptQuest(quest, object->GetGUID());
out << "|cff00ff00Available|r"; out << "|cff00ff00Available|r";
break; break;
case QUEST_STATUS_FAILED: case QUEST_STATUS_FAILED: