This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Learning about the WoW API (LUA, scrips, macros)
Post Reply
Return to board index
Post by
320570
This post was from a user who has deleted their account.
Post by
320570
This post was from a user who has deleted their account.
Post by
Gryphon
Sorry avengeance, didn't think you saw my post, I removed it thinking later that it didn't answer your question very well. In reference I linked,
http://www.wowwiki.com/Making_a_macro
Well you can use the blizzard api in macros by using /run so for example I have a macro that I use for mounting but it uses MiniMount's functions.
/cancelform
/run if (not IsMounted()) then if (GetMouseButtonClicked() == 'RightButton') then MiniMount_Mount('Ground') else MiniMount_Mount() end else Dismount() end
Uses a blizzard macro specific command, /cancelform and then runs regular lua script using functions created by MiniMount addon, also shows an example of an if statement.
Post by
RedwoodElf
The general syntax is:
/command <BlockList>;<BlockList>;<Blocklist>;<etc>
command is something like cast, castsequence, use, equip, etc.
Each Blocklist consists of:
<Arglist>
Each can contain, in a comma separated list:
Booleans (harm,help,flyable, etc)
Modifiers (mod:alt, mod:ctrl, mod:shift)
a temporary target (target=<valid target variable>) Valid target variables include target,player (you), pet, a name, focus, etc. This ONLY applies to the arglist that follows.
Arglist is usually a single spell, item, etc. The exception is for /castsequence, where it is a list of several spells, items, etc. castsequence also has an optional "reset=<condition>" setting, which comes after the condition in each blocklist. Typical conditions are: target, combat, a number of seconds, etc.
Post by
320570
This post was from a user who has deleted their account.
Post by
Gryphon
If you are just learning, it isn't too difficult. I know PHP but I learned lua mainly from wowwiki and dissecting others code. Another resource, I haven't really used much, is
http://wowprogramming.com/
and you can look at Blizzard's implementation by digging through their own files at
http://wowcompares.com/
.
Post by
320570
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.