Nostlike macro syntax

Nostlike macro syntax

by SerzaNT » Sun Sep 13, 2015 7:34 am

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
SerzaNT
Tester
 

Re: Nostlike macro syntax

by LYQ » Sun Sep 13, 2015 1:20 pm

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
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by SerzaNT » Tue Sep 15, 2015 9:40 am

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.
SerzaNT
Tester
 

Re: Nostlike macro syntax

by Rhena » Tue Sep 15, 2015 11:26 am

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.
Author of LunaUnitFrames - The most advanced unit frames for classic WoW. Visit my GitHub page for them and some other tools i wrote.
Rhyna - Warrior | Nost PvP | Alliance
User avatar
Rhena
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by SerzaNT » Sun Sep 20, 2015 1:56 pm

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?
SerzaNT
Tester
 

Re: Nostlike macro syntax

by LYQ » Sun Sep 20, 2015 5:28 pm

LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by SerzaNT » Sun Nov 15, 2015 2:01 pm

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.
SerzaNT
Tester
 

Re: Nostlike macro syntax

by Rhena » Sun Nov 15, 2015 4:34 pm

/script TargetUnit("pet")
Author of LunaUnitFrames - The most advanced unit frames for classic WoW. Visit my GitHub page for them and some other tools i wrote.
Rhyna - Warrior | Nost PvP | Alliance
User avatar
Rhena
Sergeant Major
Sergeant Major
 

Re: Nostlike macro syntax

by SerzaNT » Mon Nov 16, 2015 12:17 pm

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.
SerzaNT
Tester
 

Re: Nostlike macro syntax

by modernist » Mon Nov 16, 2015 4:28 pm

/script TargetUnit'player'
/script CastSpellByName('Devour Magic(Rank 4)', 1)
/script TargetLastTarget()
modernist
Sergeant Major
Sergeant Major
 

Next

Return to Addons & macros

cron