wow插件开发

来源:百度知道 编辑:UC知道 时间:2024/05/20 15:31:54
按照网上提供的资料,我在AddOns下面的建立一个hello文件夹,并在文件夹中建立了如下三个文件:
A. hello.toc
## Interface: 20400(最新版本2.4.2)
## Title: Hello World
## Notes: The obligatory hello world script – WoW-style!
## OptionalDeps:
## Dependencies:
hello.xml

B.hello.xml
<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="hello.lua"/>
<!-- Frame to handle all core events -->
<Frame name="hello_core">
<Scripts>
<OnLoad>
this:RegisterEvent("VARIABLES_LOADED");
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED")
then hello_initialize();
end
</OnEvent>
</Scripts>
</Frame>

function hello_command(msg) 这句不是自定义 hello_command(msg) 这个函数吗
你要改也该 message(msg);
而且 sendchatmessge(msg,"say") 中 sendchatmessge 你又拼错了且没有大小写,不知道你代码里是不是也拼错了。
这个是WOW API里的
SendChatMessage("msg",[ "chatType",[ "language",[ "channel"]]]) - Sends a chat message.

您的问题太高深,建议发到网络程序专区。。

lz.别太执着这个了,你想用一个好的插件,下载个大脚把.里面什么都有,不过仇恨插件 建议用omen2 因为大脚的内置的仇恨插件不大准