MR-8: Nemere Dungeon

This commit is contained in:
Mind Rapist
2026-01-18 09:01:56 +02:00
parent 94a2e35129
commit 681a8cae1b
24 changed files with 1317 additions and 90 deletions

View File

@@ -1047,6 +1047,13 @@ EVENTFUNC(quest_login_event)
}
else if (d->IsPhase(PHASE_GAME))
{
// MR-8: Fix "when_login" being loaded before character affects
if (!ch->IsLoadedAffect())
{
return PASSES_PER_SEC(1);
}
// MR-8: -- END OF -- Fix "when_login" being loaded before character affects
sys_log(0, "QUEST_LOAD: Login pc %d by event", ch->GetPlayerID());
quest::CQuestManager::instance().Login(ch->GetPlayerID());
return 0;
@@ -1110,18 +1117,12 @@ void CInputDB::QuestLoad(LPDESC d, const char * c_pData)
pkPC->SetLoaded();
pkPC->Build();
if (ch->GetDesc()->IsPhase(PHASE_GAME))
{
sys_log(0, "QUEST_LOAD: Login pc %d", pQuestTable[0].dwPID);
quest::CQuestManager::instance().Login(pQuestTable[0].dwPID);
}
else
{
quest_login_event_info* info = AllocEventInfo<quest_login_event_info>();
info->dwPID = ch->GetPlayerID();
// MR-8: Fix "when_login" being loaded before character affects
quest_login_event_info* info = AllocEventInfo<quest_login_event_info>();
info->dwPID = ch->GetPlayerID();
event_create(quest_login_event, info, PASSES_PER_SEC(1));
}
event_create(quest_login_event, info, PASSES_PER_SEC(1));
// MR-8: -- END OF -- Fix "when_login" being loaded before character affects
}
}