LuaPad |
From WoWDev
LuaPad is a small addon that provides an in-game Lua editor. Lua code can be entered into the provided textbox, and will be executed upon clicking the "Execute" button. After downloading it, install it into drive:\Program Files\World of Warcraft\Interface\Addons\LuaPad. Restart WoW and after logging back in, check the AddOns button that it appears. After entering the world, type "/luapad".
Contents |
[edit]
Hello World
Cut and paste the following into the Luapad window, then press <Execute>
DEFAULT_CHAT_FRAME:AddMessage("hello world");
message("hello world");
[edit]
Slash Hello
Paste and <Execute> the following, then type "/slashhello Benjorman" and "/sh FriendOfMine" into the normal chat window. See HOWTO: Create a Slash Command for further information.
function SlashHello_Action(param)
DEFAULT_CHAT_FRAME:AddMessage("SlashHello greets" .. param);
end
SLASH_HELLO1 = "/slashhello";
SLASH_HELLO2 = "/sh"; --shortcut or alias
SlashCmdList["HELLO"] = SlashHello_Action;
[edit]
Download
[edit]

