레이백님이 올린 투구탈착에드온 사용중인데여. 망토까지 추가하고 싶은데 어떻게 해야하는지를;;

 

--
-- Helmet On/Off on Regen
--

local O = CreateFrame("Frame");

W = "PLAYER_ENTERING_WORLD";

O:RegisterEvent(W);

O:SetScript("OnEvent", function(self, event)
 if ShowingHelm() then
  ShowHelm(false);
 end;
end)

local C = CreateFrame("Frame");

D = "PLAYER_REGEN_DISABLED";
E = "PLAYER_REGEN_ENABLED";

C:RegisterEvent(E);
C:RegisterEvent(D);

C:SetScript("OnEvent", function(self, event)
 if event == D then
  ShowHelm(true);
 else
  ShowHelm(false);
 end;
end)

 

어디에 어떻게 추가하면 되는지 부탁합니다.;;