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

Monday, June 25th 2012, 7:00am

can someone help build this

I am a lvl 5 mage and need a macro that will target the closest enemy then fire plasma arrow and fireball.
it would help at this point if i could check if enemy is still alive and either fire again or loop thru program again.
I checked out some websites with info on building macros but the instructions did not work.here is the example it showed.

Source code

1
/script TargetNearestEnemy();

can some one help me here.

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Monday, June 25th 2012, 11:51am

Quoted from "dvdljns;540799"

I am a lvl 5 mage and need a macro that will target the closest enemy then fire plasma arrow and fireball.
it would help at this point if i could check if enemy is still alive and either fire again or loop thru program again.

You can't perform loops in a macro. That is a feature specifically disabled by Runewaker. As for the rest of it, that should be easy enough. Try this:

Source code

1
2
3
4
/run if UnitHealth("target") <= 0 or not UnitExists("target") then TargetNearestEnemy() end
/cast Fire Plasma Arrow
/wait 1.0
/cast Fireball

You may need to change the names of the spells cast to reflect the exact name in the skillbook, and you'll need to change the amount of time to wait between the two casts to account for casting time and the global cooldown.


Quoted from "dvdljns;540799"

I checked out some websites with info on building macros but the instructions did not work.
can some one help me here.

Check out my macro guide on these forums (linky).

You can also look at DIYCE 2.0, though that may be a little more involved than you want at this point.
2013... The year from hell....