mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix settarget + test force accept quest after complete one
This commit is contained in:
@@ -99,12 +99,12 @@ void ChooseTravelTargetAction::getNewTarget(TravelTarget* newTarget, TravelTarge
|
||||
{
|
||||
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)
|
||||
{
|
||||
foundTarget = SetQuestTarget(newTarget, true, false, false); //Find new (low) level quests
|
||||
foundTarget = SetQuestTarget(newTarget, false, true, false, false); //Find new (low) level quests
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -140,7 +140,7 @@ void ChooseTravelTargetAction::getNewTarget(TravelTarget* newTarget, TravelTarge
|
||||
//Do quests (start, do, end)
|
||||
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.
|
||||
|
||||
@@ -49,7 +49,7 @@ bool TalkToQuestGiverAction::ProcessQuest(Quest const* quest, Object* questGiver
|
||||
out << "|cffff0000Incompleted|r";
|
||||
break;
|
||||
case QUEST_STATUS_NONE:
|
||||
//AcceptQuest(quest, questGiver->GetGUID());
|
||||
AcceptQuest(quest, questGiver->GetGUID());
|
||||
out << "|cff00ff00Available|r";
|
||||
break;
|
||||
case QUEST_STATUS_FAILED:
|
||||
@@ -265,7 +265,7 @@ bool TurnInQueryQuestAction::Execute(Event event)
|
||||
out << "|cffff0000Incompleted|r";
|
||||
break;
|
||||
case QUEST_STATUS_NONE:
|
||||
//AcceptQuest(quest, object->GetGUID());
|
||||
AcceptQuest(quest, object->GetGUID());
|
||||
out << "|cff00ff00Available|r";
|
||||
break;
|
||||
case QUEST_STATUS_FAILED:
|
||||
|
||||
Reference in New Issue
Block a user