View Single Post
08-13-07, 09:39 PM   #3
jonthegamer
A Defias Bandit
Join Date: Aug 2007
Posts: 3
ok, just thought it would be easier

autoupgrade.lua
Code:
function OnLoad()

  	this:RegisterEvent('MERCHANT_SHOW')    
	
end

function merchanttest()
	message("Merchant has opened");
end
function OnEvent()
	if ( event == "MERCHANT_SHOW" ) then
		merchanttest();
	end
end
autoupgrade.toc
Code:
## Interface: 20100
## Title: Auto Upgrade
## Notes: Will automaticialy buy the upgrades for your character.
## Dependencies:
autoupgrade.lua
autoupgrade.xml
autoupgrade.xml
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ 
..\..\FrameXML\UI.xsd"> 
<Frame name="HelloWorldFrame">
	<Scripts>
		<OnLoad>
			<OnLoad> OnLoad(); </OnLoad>
			<OnEvent> OnEvent(); </OnEvent>
		</OnLoad>
	</Scripts>
</Frame>
</Ui>
  Reply With Quote