EC: block transmogrify potion usage

ForeverFunForeverFun Posts: 802
edited November 2023 in General Discussions
For a belt and suspenders approach, add the following to GumpsParsing.lua, function GumpsParsing.ShowHide()

	for gumpID, value in pairs(GumpData.Gumps) do
-- new code
if (gumpID == 9250) then -- transmogrify potion
--OpenWebBrowser("https://forum.uo.com/discussion/comment/97223/#Comment_97223")
if(Interface.AllowTransmogrify == nil or Interface.AllowTransmogrify ~= 1) then
Debug.PrintToChat(L"Transmogrify disabled, script Interface.AllowTransmogrify=1 to over-ride.")
Debug.PrintToChat(L"See this link for details/status")
Debug.PrintToChat(L"https://forum.uo.com/discussion/comment/97223/#Comment_97223")
GumpsParsing.ToShow[gumpID] = 0
end
end
-- end of new code
This will block the potion usage unless you've set the over-ride.  I only tested with a shield transmog, as I don't have any others handy.  Read the link above for more info/status.

I don't know if there's a way to do this in CC.
Sign In or Register to comment.