10-09-2025, 07:27 AM
KneeKap Wrote:Just drop it into your addons folder. That's all. So far, Molten Core is the only one it has a small issue with. (You have to go to mall for it to auto-reset)The reason molten core doesn't work is because the mapID between the dungeon & entrance stays the same (They are in the same area unlike othters).
If you die and release spirit, it won't reset. So basically, as it states, voluntarily leaving an instance or 'raid'.
I doubt it works for groups, since groups usually have to leave and then do .i u all. But basically, it does .i u all automatically.
In order to fix this, you need to track either the subZone ( GetSubZoneText() ) or the Zone ( GetZoneText() ).
Molten Core entrance
Code:
Zone: Blackrock Depths
SubZone: The Molten Bridge
MapID: 15 (party)Code:
Zone: The Molten Core
Subzone: "" (empty)
MapID: 15 (raid)Code:
f:SetScript("OnEvent", function(self, event, arg1)
local zone = GetZoneText()
-- Check if the player is leaving a dungeon
if event == "PLAYER_ENTERING_WORLD" then
local _, instanceType, difficulty, _, _, _, _, _, _ = GetInstanceInfo()
if instanceType == "none" or zone == "Blackrock Depths" then
-- Player is not in a dungeon
SendChatMessage(".i u all", "SAY") -- Execute the command in the SAY channel
-- Display a custom message on top of the screen with an image
local iconPath = "Interface\\TargetingFrame\\UI-TargetingFrame-Skull"
UIErrorsFrame:AddMessage("|T" .. iconPath .. ":0:0:0:0:64:64:4:60:4:60|t Instances have been unbound! |T" .. iconPath .. ":0:0:0:0:64:64:4:60:4:60|t", 1, 1, 0, 1.0)
end
end
end)
