Extend clientless bots with browser queues, PvP intents and test automation

This commit is contained in:
Nico committed 2026-10-31 13:36:33 +01:00
1 parent 649915e575
commit 69b5a1c4a1
245 files changed
+49535 -114

No files matched your search

@@ -234,6 +234,8 @@ public:
void Update(Player* player, uint32 diff) override
{
sClientlessLuaEngine->UpdateWorldPresence(player,sAdventureBehaviorMgr->InteractionIntent(player));
// Browser responses remain independent of combat and supply animations.
sAdventureGroupMgr->UpdateBrowser(player);
sAdventureGroupTravelMgr->Observe(player,diff);
sAdventurePopulationMgr->Maintain(player,diff);
// Restart restores native ship attachment, but CPC ride execution is
@@ -590,7 +592,7 @@ void ClientlessLuaEngine::UpdateWorldPresence(Player* player, std::string const&
if (player->getRace()!=RACE_WORGEN) return;
if (!player->HasSpell(SPELL_TWO_FORMS_RACIAL)) player->LearnSpell(SPELL_TWO_FORMS_RACIAL,false);
if (player->getLevel()>=20 && !player->HasSpell(458)) player->LearnSpell(458,false);
bool active=intent=="adventure" || intent=="instance" || intent=="raid" || player->IsInCombat() || player->GetMap()->IsDungeon();
bool active=intent=="pvp" || intent=="adventure" || intent=="instance" || intent=="raid" || player->IsInCombat() || player->GetMap()->IsDungeon();
auto guid=player->GetGUID().GetCounter();
auto wanted=_worgenForms.find(guid);
if (arrived && !active) wanted=_worgenForms.insert_or_assign(guid,urand(0,1)!=0).first;