

You are missing an opening quote on this print line:.Running the game now, we should see a message box popup with our message:Īs little as less than $1 a month to enjoy an ad-free experience, unlock premium features, and support the site!Ĭomment by FundaJust a few friendly suggestions. We can fix this by appending a to the TOC file. Since we haven't added a to our TOC file, the script won't run. Remember, our TOC file is what specifies that scripts that should be executed. If we try running World of Warcraft now, we will notice that nothing happens. However, there is a key difference in that the message function will display a message box in the game rather than printing to the console. the print function in Python or the System.println method in Java). The message function is analgous to the standard output functions in other programming languages (i.e.
#Best addons for wow 7.3.5 code
In the file, paste the following code and save: In your addon directory, create a new file called "a" and open it in your text editor of choice.


In this section, we will fix this by writing a script to display a message whenever we login to the game. the interface number is outdated).Īt this point, we have a fully functional addon however, it doesn't do anything because we haven't specified any scripts to run in your TOC file. If the name of an addon is displayed in red, it means that the addon is outdated (i.e. Locate the name of your addon and make sure that it is enabled. To access the addon manager, open your World of Wacraft client and on the bottom left hand side of the screen, click on the AddOns button. By the same token, you can disable specific addons in the same interface. "\_retail_\Interface\Addons\HelloWorld"), create a new file called "HelloWorld.toc" and populate it with the following information:Īn addon must be enabled in the addon manager interface for it to execute. In your newly created addon directory (i.e. It is the TOC file which empowers the client to run your addon.Īlong with listing out the scripts that should be executed, the TOC file aslo contains other information like the name of your addon and version. As a result, without the TOC file, an addon is essentially just a collection of source code that is relatively useless. In particular, it contains a list of all the Lua scripts that should be executed. The table of contents (TOC) file specifies the addon's metadata information. This chapter will go through writing our first addon. That is the file path you should have now this is how it should look at the top after you make theĬ:\Program Files\World of Warcraft\_retail_\Interface\Addons\HelloWorld Inside this folder, create a new directory with the name of "HelloWorld" this will contain the source code of your first addon.Ĭ:\Program Files\World of Warcraft\_retail_\Interface\Addons\ Navigate to the installation folder of your World of Warcraft client and then locate the "_retail_\Interface\Addons" subdirectories. With the interface number obtained, we know want to setup the folder structure of our addon. The best way to get the interface number is to run the following command in the chat window of the game: Chiefly, we are going to need the current interface number which specifies the World of Warcraft version for which the addon is intended to run on. Developing an addon requires a far broader understanding of the World of Warcraft scripting API (refer to the documentation).īefore we can start building our addon, we need some important information for our addon's metadata.
#Best addons for wow 7.3.5 how to

This new version of the guide is completely rewritten and is updated for the latest version of World of Warcraft. I wrote it when I was in wee kid in elementary school-it is only now that I have taken an interest in updating and revising it. World of Warcraft Addon Writing Guide: A basic introduction by example
