You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Friday, February 17th 2012, 7:01pm

Knight Macros of Doom Assistance please..

There are a couple of things i'd like to do but can't seem to get the syntax right. Can you guys help me out? I've searched for addons and things else where also with no luck :/

"Keep Buffs Up":
===============
/cast Enhanced Armor
/wait 1
/cast Holy Seal
/wait 300
/wait 300
/wait 300
/wait 300
/wait 300
/script UseAction (70);
===============
My thought is that after 5 minutes, it would call itself (it's placed in the 10th slot down on the left bar) but it's not doing that. Also, if there was a way to make it check to see if i'm mounted before recalling them that'd be awesome (so it doesn't knock me off when i'm running away).


"Check for Buffs, and Then Smite That Joker Macro"
(I looked into this but couldn't figure it out, so here is some pseudo code):
===============
If (count(target_has_buff(holy seal))==3) then
cast Threaten;
else
cast Holy Strike;

====
Even more desireable:
====
If (count(target_has_buff(holy seal))==3) then
cast Threaten;
else if (player_has_buff(holy seal)==false) then
cast Holy Seal
wait 1
cast Enhanced Armor
wait 1
end if;
cast Holy Strike;
===============
Are any of my desires feasible lol? This is actually for my Dad's character and i'm just trying to make it as easy for him to play as possible.

Thanks,
-Flashy

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Sunday, February 19th 2012, 1:17am

Sorry for the delay in replying. Let's see if I can answer these.

Quoted from "flashsplat;510852"

There are a couple of things i'd like to do but can't seem to get the syntax right. Can you guys help me out? I've searched for addons and things else where also with no luck :/

"Keep Buffs Up":
===============
/cast Enhanced Armor
/wait 1
/cast Holy Seal
/wait 300
/wait 300
/wait 300
/wait 300
/wait 300
/script UseAction (70);
===============
My thought is that after 5 minutes, it would call itself (it's placed in the 10th slot down on the left bar) but it's not doing that. Also, if there was a way to make it check to see if i'm mounted before recalling them that'd be awesome (so it doesn't knock me off when i'm running away).

The reason the above macro doesn't work is that you cannot run a macro from within a macro. This ability is blocked by design.

What you are attempting really requires the use of an add-on. Wouldn't be too hard to implement, but things done on timers require add-ons. I can try to cook something up (though as I can't test it, it may need additional debugging), but maybe you would want to take a crack at it yourself. If so, check out my Frame tutorials on the Runes of Magic Wiki.


Quoted from "flashsplat;510852"

"Check for Buffs, and Then Smite That Joker Macro"
(I looked into this but couldn't figure it out, so here is some pseudo code):
===============
If (count(target_has_buff(holy seal))==3) then
cast Threaten;
else
cast Holy Strike;

====
Even more desireable:
====
If (count(target_has_buff(holy seal))==3) then
cast Threaten;
else if (player_has_buff(holy seal)==false) then
cast Holy Seal
wait 1
cast Enhanced Armor
wait 1
end if;
cast Holy Strike;
===============
Are any of my desires feasible lol? This is actually for my Dad's character and i'm just trying to make it as easy for him to play as possible.

Your best bet for this would be to use DIYCE 2.0. Everything you are trying to do can be done with it, though the waits between casts in your preferred version would be a little tricky to do (may need some custom actions for that).
2013... The year from hell....

3

Sunday, February 19th 2012, 4:04am

Thanks for the reply. Better late than never aye?

Man, the thought of creating an addon just seems so overwhelming! I've always wanted to give it a shot thought. I'll take a look at your stuff on the wiki and see what i can do. I think an add-on like such would be desired by most knights.

I'm going to look at this DIYCE thing too. I like to spend more time playing than coding but.. this may be worth the time investment.

I apreshiate the info/guildance as always.
Thanks Peryl!
- Flashy

4

Friday, February 24th 2012, 4:39am

Peryl,

That's for pointing me at DIYCE. This will be a great help. Here's what i've come up with so far:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
            --Class: Knight/Warrior
            elseif mainClass == "KNIGHT" and subClass == "WARRIOR" then
            
            --Potions and Buffs
            Skill = {
                { name = "Holy Seal",                     use = (pctEB1 >= .05) and (not pbuffs['Holy Seal']) },
                { name = "Enhanced Armor",                use = (pctEB1 >= .05) and (not pbuffs['Enhanced Armor']) },
                { name = "Action: "..healthpot,           use = (phealth <= .40) },
                { name = "Action: "..manapot,             use = (pctEB1 <= .20) },
                { name = "Holy Shield",                   use = (phealth <= .10) },
                    }
                    
            --Combat
                if enemy then
                Skill2 = {
                    { name = "Resolution",                   use = combat and phealth <= .65 },
                    { name = "Shield of Valor",              use = (phealth <= .8) and shield }, 
                    { name = "Shield of Discipline",         use = combat and shield }, 
                    { name = "Shield of Atonement",          use = combat and shield }, 
                    { name = "Threaten",                     use = boss and party and (tbuffs['Holy Seals 3']) },
                    { name = "Hatred Strike",                use = boss and party },
                    { name = "Whirlwind Shield",             use = party and shield }, 
                    { name = "Mana Return",                  use = (tbuffs['Holy Seals 3']) and (pctEB1 <= .70) },
                    { name = "Holy Strike",                  use = (pctEB1 >= .05)},
                            }
                end


And it works! You wouldn't happen to know how I could check for aggro and if i don't have it cast something (like Authoritative Deterrence) by chance would you?

I've searched but have had no luck :/

Thanks!