Acesta este o rezolvare pentru un core doner rar.
Este un fix facut de @Gurgarath
*Poze / Video:While trying things on my server, I stumbled accross a weird core-downer. It is really simple but I say "weird" because in litteraly 10 years it has never happened to me nor anyone I know. It probably gets triggered by a malfunctioning quest I had taken from 2012 and forgot to remove (quests were not my concern at the time). I didn't want to only remove the quest but instead I decided to fix the coredowner.
It happens because the game is not expected to trigger the function get_leader_vid() without a party. However, there is no check at all if it somehow did and on my server it randomly got triggered without a party and the core simply crashed. So instead of digging further, I thus added a check to avoid the core to crash. Please note that my sources were vanilla at that time.
*Link download / Code:
Cum rezolvam?
Deschidem questlua_npc.cpp si cautam functia:
Code:
//Function "npc_get_leader_vid"
{
CQuestManager& q = CQuestManager::instance();
LPCHARACTER npc = q.GetCurrentNPCCharacterPtr();
LPPARTY party = npc->GetParty();
LPCHARACTER leader = party->GetLeader();
if (leader)
lua_pushnumber(L, leader->GetVID());
else
lua_pushnumber(L, 0);
return 1;
}

la acest mesaj și conținutul se va afișa automat.

