azerothcore/mod-eluna

Remove Code/Eluna interaction restrictions

Opened this issue · 0 comments

Currently Eluna can not interact with map data which are not scripted in Eluna. These restrictions should be removed and methods like Set/GetBossState should be exposed.

For example this adjustment can remove some restrictions:

int SaveInstanceData(lua_State* /*L*/, Map* map)

    int SaveInstanceData(lua_State* /*L*/, Map* map)
    {
        if (InstanceMap* inst = map->ToInstanceMap())
            if (InstanceScript* script = inst->GetInstanceScript())
                script->SaveToDB();

        return 0;
    }

Thanks @Nyeriah for the help with this issue.