Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegisterInstanceEvent( instance_id, event, function ) does not fire #62

Open
55Honey opened this issue Sep 12, 2022 · 2 comments
Open

Comments

@55Honey
Copy link
Member

55Honey commented Sep 12, 2022

Tested with

function InitInstance(event, instance_data, map)
    print("InitInstance 1")
end
function LoadInstance(event, instance_data, map)
    print("LoadInstance 2")
end
function UpdateInstance(event, instance_data, map)
    print("UpdateInstance 3")
end
function PlayerEnterInstance(event, instance_data, map)
    print("PlayerEnterInstance 4")
end
function CreatureCreateInInstance(event, instance_data, map)
    print("CreatureCreateInInstance 5")
end
function GOCreateInInstance(event, instance_data, map)
    print("GOCreateInInstance 6")
end
function EncounterInProgress(event, instance_data, map)
    print("EncounterInProgress 7")
end

RegisterInstanceEvent(36, 1, InitInstance, 0)
RegisterInstanceEvent(36, 2, LoadInstance, 0)
RegisterInstanceEvent(36, 3, UpdateInstance, 0)
RegisterInstanceEvent(36, 4, PlayerEnterInstance, 0)
RegisterInstanceEvent(36, 5, CreatureCreateInInstance, 0)
RegisterInstanceEvent(36, 6, GOCreateInInstance, 0)
RegisterInstanceEvent(36, 7, EncounterInProgress, 0)

instanceData = sEluna->GetInstanceData(instanceMap);

As you may see, sEluna->GetInstanceData is called to create a new instance data, but it is assigned to instanceData which is actually just a local variable.

@kncxstudio
Copy link

Is there a plan when this issue will be fixed?

@55Honey
Copy link
Member Author

55Honey commented Mar 4, 2023

Mod-eluna and Azerothcore are open source projects. There is no schedule to fix certain issues and our voluntary contributors pick issues according to their skills and preferences.
Anyone can provide a bounty for issues, if they wish to have it resolved as fast as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants