World of Warcraft programming Book Reading Notes (1)

Source: Internet
Author: User

Chapter 2World of Warcraft Programming

1.1Custom User Interface

The game client of World of Warcraft consists of two parts: the game world and the user interface. The gaming world is a 3D world. These elements are not accessible and cannot be changed in the scripting interface.

The user interface consists of other elements of the game client, including dynamic buttons, unit forms, maps, and option windows. The authors can enhance functionality by writing plug-ins to add or change existing elements, or display information in a different way.

1.1.1 How plug-ins work

The plug-in is a simple directory in the World of Warcraft directory, including documents, images, sounds, and font files. These plug-ins are loaded by the client and run by its script system. It does not include any third-party executable files that are executed outside the game (such programs are forbidden by wow servers ). The plug-in can only use the script interface provided by blizzard to developers and run by the game itself.

1.1.2 What plug-ins can do

As a general rule, the plug-in can display all information that can be displayed to the game client, so that users can make more informed decisions. They can change the user interface visually in multiple ways, although there are some restrictions on how to change the interface behavior.

The following actions are not allowed in the plug-in:

L automatic role movement;

L automatic target selection;

L automatically selects or uses spells and items;

L real-time interaction with the plug-in.

In addition, the plug-in cannot provide any means for the Alliance and the tribe to talk to each other. This is prohibited by World of Warcraft's terms of use.

1.2New Lua

The Lua programming language is designed and implemented by the Catholic transfer University of São Paulo, Rio de Janeiro, Brazil. It is a scripting language embedded into some large software projects, including wow. This lightweight scripting language is very powerful.

Bytes. I hope you can see it in English ~~).

1.2.1 Download and install wowlua

Access ingress. This will download a. ZIP file to your computer. After saving the file, you can use your favorite decompression software, or double-click it on Windows XP or Mac OS X to decompress the file. A wowlua folder is extracted. Next, place the directory in the interface/Addons subdirectory under your world of warcraft installation directory.

You can click the plug-in button in the lower-left corner of the role selection screen to verify that the plug-in has been correctly installed. You will see related display in the plug-in list.

Select a role to enter the game. In the chat window, enter/Lua or/wowlua. The wowlua window is displayed. Click the X button in the upper-right corner or Press ESC to close the window.

1.2.2 Use Lua online

You only need to visit http://wowprograming.com/utils/webluato start and run weblua.

1.2.3 Download and install the Lua interpreter

The interpreter in windows can be downloaded from http://wowprogramming.com/utils/pc/lua-wow( note that there is a hyperlink "download this file ). This package does not require any installation process. You can place it wherever you find it convenient. Decompress the package to use it.

1.3Explore your Lua interpreter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.