PDA

View Full Version : help: trying to make simple addon for hearthing


skoodat
01-07-2006, 07:43 PM
ok thier is this macro out there that i modded to suit my needs but i want it to fire off no matter where the stone is in my bags and make it into an addon this is the macro

---/script UseContainerItem(0,1);
---/script DEFAULT_CHAT_FRAME:AddMessage("You are recalling to " .. GetBindLocation() .. ".",0, 0.9, 0, 1,4);
---/script UIErrorsFrame:AddMessage("Recalling To " .. GetBindLocation() .. ".",0, 0.9, 0, 1,4);



this is so far what i have for the addon lol

function BW_OnLoad()


BW_AddMessage("BindWarn Loaded! Created By SkOODaT");


end
function BW_AddMessage(msg)

if ( DEFAULT_CHAT_FRAME ) then
DEFAULT_CHAT_FRAME:AddMessage("BW: "..msg);
UIErrorsFrame:AddMessage("BW: "..msg);
end

end
function BW_WarnOnUse
------->>>>


BW_AddMessage("You are recalling to " .. GetBindLocation() .. ".",0, 0.9, 0, 1,4);
end

*i dont know where to start .... how do i set it up to fire on hearthstone use lol does it have something to do with the item link?

any help is awesome

SkOO~

skoodat
02-07-2006, 06:01 PM
common not 1 post lol /bump

oramac
03-07-2006, 01:07 AM
why not just put the hearth on your actionbar? then it's a one-click thing too, and no addon needed.

Cleeq
03-07-2006, 05:14 AM
You could always use:

/Cast Hearthstone

conure
03-07-2006, 11:20 PM
hrm, don't forgot the shamans!
have it compare the cooldowns of astral recall and the hearthstone
or you could just make a macro:

/cast Astral Recall
/cast Hearthstone