Page 1 of 2
Nostlike macro syntax
Posted:
Sun Sep 13, 2015 7:34 am
by SerzaNT
Hello,
i'm fairly new to the server and to the community. I manage to level up my one char-mage without using any macros. But now i start looking for my old tricks and optimization macros, and i found that Blizzard macros are nor correct to this server and there is some way to script alternatively(script looks little bit like Python, Java, etc.). I would like to ask then, if there is some guide or wiki with the list of commands, conditions and syntax to this scripting language. It would be very helpful to know what we have to available as players to code/script in order make own life easier. Thanks
Re: Nostlike macro syntax
Posted:
Sun Sep 13, 2015 1:20 pm
by LYQ
blizzard macros do work like they did on that patch.
just tell us what you want as macro.
the thing is with most vanilla macros, and why you say it looks like python/java, this is lua code packed in a macro.
lua is the language the wow addons are based on.
so basicly you can check out
http://wowwiki.wikia.com/index.php?titl ... did=281620 the API functions for that patch
but if you don't have that much experience it will be quicker if you simply say what exactly you need and we can give you an example so you know how such macros work
Re: Nostlike macro syntax
Posted:
Tue Sep 15, 2015 9:40 am
by SerzaNT
Thanks,
i have been looking on API functions and still missing the part that i was interested in. Basically, there was macro /castsequence that was used on save next action in to some buffer and after current action was complete, the saved one started, so there was no delay caused by connection and etc. My idea of the code for macro would be this buffer, additionally some limitation, like the size of the buffer- to ensure there will be no memory leaks and so on.
Re: Nostlike macro syntax
Posted:
Tue Sep 15, 2015 11:26 am
by Rhena
You don't use castsequence in vanilla. You just put all the /cast in one macro starting with the highest priority. You can use supermacro to check if debuffs are on target and buffs are up.
Re: Nostlike macro syntax
Posted:
Sun Sep 20, 2015 1:56 pm
by SerzaNT
It is a pity. Another function i would like to do is condition for check if i have target(if exist) and if target is friendly. Then would be nice to use /cast 'spell name' with specific rank of the spell. For example,
if (target dont exist) cast AE rank1
else cast AE max rank
can you give me some hint with the syntax here?
Re: Nostlike macro syntax
Posted:
Sun Sep 20, 2015 5:28 pm
by LYQ
Re: Nostlike macro syntax
Posted:
Sun Nov 15, 2015 2:01 pm
by SerzaNT
I would like to ask for one more macro. Im trying to pvp as a warlock and i would love to get possibility to set target to my pet. So far i was not be able to find any targeting mechanics for pet, but i'm especially interested in setting target for CastPetActions. Thank you.
Re: Nostlike macro syntax
Posted:
Sun Nov 15, 2015 4:34 pm
by Rhena
/script TargetUnit("pet")
Re: Nostlike macro syntax
Posted:
Mon Nov 16, 2015 12:17 pm
by SerzaNT
well, this is misunderstanding. I don't want to target my pet, i want to be able set target FOR my pet, For example, i would like to use Devour magic on myself, without manually targeting my character.
Re: Nostlike macro syntax
Posted:
Mon Nov 16, 2015 4:28 pm
by modernist
/script TargetUnit'player'
/script CastSpellByName('Devour Magic(Rank 4)', 1)
/script TargetLastTarget()