View Single Post
03-08-15, 11:33 AM   #2
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
Insert the following here and it will create a simple little addon for you.
This should toggle the Minimap every time your character loads in for the first time.

Lua Code:
  1. Minimap:RegisterEvent('PLAYER_ENTERING_WORLD')
  2. Minimap:HookScript('OnEvent', function(self, event, ...)
  3.     if event == 'PLAYER_ENTERING_WORLD' then
  4.         ToggleMinimap()
  5.         self:UnregisterEvent('PLAYER_ENTERING_WORLD')
  6.     end
  7. end)
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
  Reply With Quote