Skip to content

Remove Code/Eluna interaction restrictions #49

@55Honey

Description

@55Honey

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:
https://github.com/azerothcore/mod-eluna/blob/e67a18ca7253dffa505c5f400c883165f6d10bef/src/LuaEngine/MapMethods.h#L315

    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions