Save interface (needs to be added to all instances)

Issue #2 resolved
Former user created an issue

Proper instance reload after crashif(pInstance) { // Not in progress pInstance->SetData(DATA_SHADEOFARAN_EVENT, NOT_STARTED); if(GameObject Door = GameObject::GetGameObject(m_creature, pInstance->GetData64(DATA_GAMEOBJECT_LIBRARY_DOOR))) Door->SetGoState(0); }You have tu add a check before setting the event data to NOT_STARTED.if(pInstance) { if(m_creature->isAlive()) { // Not in progress pInstance->SetData(DATA_SHADEOFARAN_EVENT, NOT_STARTED); } if(GameObject Door = GameObject::GetGameObject(m_creature, pInstance->GetData64(DATA_GAMEOBJECT_LIBRARY_DOOR))) Door->SetGoState(0); }To be implement in all instances :)

Comments (2)

  1. davevmb repo owner

    going to add the save interface as i progress fixing instances. If anyone adds a script or modify's a script for an instance please add a save interface if it has not been added.

  2. Log in to comment