05-15-2021, 02:24 PM
updated post and the area.cpp should read like this .
I also added 2 new fixes to the post.
m_nMakeNPC = 0;
CNPC* npc;
vec_raidnpcrregenlist_t::iterator it = m_raidNPCRegenList.begin();
vec_raidnpcrregenlist_t::iterator endit = m_raidNPCRegenList.end();
for (; it != endit; ++it)
{
CNPCRegenInfo* p = *(it);
p->m_lastDieTime = gserver->m_pulse + GetRandom(1, p->m_regenSec / 2);
p->m_bAlive = false;
}
if (this->m_RaidDifficulty > 2 || this->m_RaidDifficulty <= -1)
{
this->m_RaidDifficulty = 0;
}
if(m_RaidDifficulty != -1)
m_RaidInfoList[this->m_RaidDifficulty].m_pArea = this;
if(nRaidRoomNum != -1)
m_nRaidRoomNo = nRaidRoomNum;

