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

Tuesday, December 16th 2008, 2:44pm

Macro Guide

Credit For These Findings Goes To Thegooch(Cyanide)

Original guide link :http://forum.runesofmagic.com/showthread.php?t=20186

Syndreamer's guide : http://forum.runesofmagic.com/showthread.php?t=16065



[LEFT]Message:
Experiment a bit after looking through some of the listed Macros. If you need help or found a use for a Function we don't have up yet, post.[/LEFT]

[LEFT]Each Content links to the post with the explanations and details.[/LEFT]

[LEFT]Contents:
Changing Width of Chat Frame, and relocating the Framerate text(Crtl-X)
If you always party with only one other person, then here's some handy macros
Put the open backpack where you want
Cancel Buff by Index(Number)[/LEFT]

Using skills through hotbar slot
Numbers for each corresponding hotbar
Moving the Casting Bar(also moves crafting/gathering progress, credit strombow for pointing it out)
Moving the "Equipment Damaged" Graphic
Moving the Scrolling Text
Open Bank, House Chest, Character Window
[LEFT]Creating an Echo(message only you can see)[/LEFT]

Checking the amount of HitPoints a mob has(before Attack)
Target Nearest Enemy
Assisting Person(requires you to target the person you want to help)

[LEFT]Get Target's Primary/Secondary Classes in chat frame[/LEFT]


These only scratch the surface, there is far more you can do with the current macro system.

[LEFT]There are more in the Thread, but due to my beliefs I will not list them, but if you are willing to search/read through the thread you'll find them.[/LEFT]

Terms/Syntax/General Information to know:

/script - Needs to be in the Macro of Most if not all of the Macros listed above. It Tells the Macro System to access the LUA Functions in the RoM API. Like the /cast function which tell the system to access the Cast Function.

Syntax of an if/else statement - Code:

[LEFT]/script if (*Condition*) then *Action*; else *Action*; end[/LEFT]

[LEFT]Example: Code:[/LEFT]

[LEFT]/script if (UnitHealth("player")/UnitMaxHealth("player")<=.85) then UseAction(9); elseif (UnitHealth("player")/UnitMaxHealth("player")<=.90) then UseAction(11); else UseAction(13); end[/LEFT]

[LEFT]The semicolon (; ) - is used to mark the end of a statement, its like the period (.) in english. It is better to learn from example, look at the above example and guess why the (; ) is there.[/LEFT]




Character Limit - Macros are limited by a certain number of characters(letters) allowed per Macro. There are ways to connect Macros, and you'll see a few in the list above.

RoM/WoW Similarities - A lot of functions are similar to the WoW API, http://www.wowwiki.com/Portal:Interface_customization, so some functions from WoW may work in RoM.

Tips:

[LEFT]Quote:[/LEFT]

[LEFT]Originally Posted by TheGooch [/LEFT]

[LEFT]If you include it with your other favorite macros (for window positions) then it's just one click of a macro to set up a bunch of stuff each time you log in. Unfortunately the 1793 patch still doesn't save all these settings, so we're using macro's to set a bunch in one shot.[/LEFT]


[I]Hotbar Numbering[/I]

[LEFT]Main Bar: 1-20 Upper Bar: 21-40 Right Bar: 41-60 Left Bar: 61-80[/LEFT]




Tip: Throw all your UI mods on one of your unused Quick Bars (I use Left Bar: 61-80, which is not visible on my screen) and use the /script UseAction(61); UseAction(62); UseAction(63); etc. script to activate all of them from one visible quick bar slot.

Quoted


You can stack multiple items under one /script command (but the macro's only allow a certain number of characters)(separate with a semi-colon( ; ))
Quote:

[LEFT]Originally Posted by TheGooch [/LEFT]

[LEFT]This tip isn't a macro, but it's related to macros. Often you write macros under one character but want your other characters to be able to use it as well. If you're familiar with windows and copying files, it's pretty easy to do, and faster than logging in as each character and re-creating the macro's over and over for each character.[/LEFT]

If you're using Windows Vista, your macro file is here:

[LEFT]C:/Users/[your windows user name]/Documents/Radiant Arcana/[character name]/Macro.bsd[/LEFT]

[LEFT]If you're using Windows XP, your macro file is here:[/LEFT]

[LEFT]C:/Documents and Settings/[your windows user name]/My Documents/Radiant Arcana/[character name]/Macro.bsd[/LEFT]

Just copy the Macro.bsd file from the character name folder that has the most up-to-date macros into each of your other characters folders (overwriting them if they exist). The next time you log in as those characters you will have all your latest macros and just need to drag the ones you want onto your hotbar.

Additional credit goes to Stormbow.

*** Some links may not work. If that happends please use the original THREAD LINKS to view them. This is only a copy , feel free to add any commands that you wish***

2

Tuesday, December 16th 2008, 3:30pm

Very nice info.

3

Thursday, December 18th 2008, 6:57am

Great guide! Keep the good work up =>
[LEFT]
[img][/img]

I Am Legend.


InGame Name: Darkcrosser
Server: Macantacht

[/LEFT]

So, 2 muffins are sitting in a oven...
One muffin turns to the other and says;
"Man, it's hot in here!"
The other says, "Holy crap! A talking muffin!"

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

4

Monday, December 22nd 2008, 12:01pm

Discussing the Program can lead to bad things

No Warnings, No Infraction, Just a Tap on the Shoulder
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

5

Monday, December 22nd 2008, 11:39pm

I'm sure this is an ignorant question but please bear with me, how do you actually create the macro and turn it into a button? Do you type /script <macro name> <code> or is there some other method?

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

6

Tuesday, December 23rd 2008, 5:24am

This is a script I created for finding the Name, Level, Class and Health of a targeted creature.

Source code

1
/script local mainClass, subClass = UnitClass("target"); DEFAULT_CHAT_FRAME:AddMessage(UnitName("target").." is a lv"..UnitLevel("target").." "..mainClass .. "/" .. subClass.." and has "..UnitChangeHealth("target").." health." );
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

7

Tuesday, December 23rd 2008, 6:09am

If you could get this one, "Sending Monster Information to public chat" I would be a happy camper.

I keep trying and cant get it to work myself.

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

8

Tuesday, December 23rd 2008, 6:19am

Quoted from "ItchyJML;7197"

If you could get this one, "Sending Monster Information to public chat" I would be a happy camper.

I keep trying and cant get it to work myself.

Hmm, that would be a handy one for a party fighting a boss. I might try and figure that one out too.
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

9

Tuesday, December 23rd 2008, 7:35am

Okay, so I've figure out how to send information to the chat window, but I can't figure out how to concatenate more than one variable.

Source code

1
/script local var1 = UnitLevel("target"); SendChatMessage(var1, "SAY" );
The syntax for sending a message is this: SendChatMessage("[Message here]", "[Chatchannel]");
So for example, SendChatMessage("Hello Zone", "Zone"); would send "Hello Zone" to the zone channel. But what I want to be able to do is concatenate several variables and text. Something like;

SendChatMessage("Hello Zone. I am lv" & UnitLevel("target") & " and have " & UnitChangeHealth("target") & " Hit Points", "Zone");

but I'm unsure if there is a concatenation symbol that can be used in that context. Anyone got any ideas?

Edit: Okay I think I have it. .. is how to concatenate in this scripting language. I should have realised from the earlier script I wrote. I'll post again once I have it all written.

Edit 2:
Okay got it.

Source code

1
/script local var1 = UnitLevel("target"); var2 = UnitHealth("target"); var3 = UnitName("target"); SendChatMessage(var3.." is level "..var1.." and has "..var2.." health.", "SAY" );
This script should give you the target Name, Level and Health and output it to the "say" chat channel. If you want it to output to party, guild, zone or whatever channel you want, just change the last part of the script to the appropriate channel.
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

10

Tuesday, December 23rd 2008, 7:42am

The use of Third Party Software for the purpose of Macroing is prohibited. I've used the program you mentioned and understand it goes far deeper than binding function. Any farther than the rebinding features of that program can lead to a Ban.

To use the Macro System Built into the game either press esc and click on Macros, or in chat type /m then press enter. Once you made your macro drag it into one of your quickbars and bind a key to it in the options.

No warnings, no infractions needed just a tap on the shoulder :D

11

Tuesday, December 23rd 2008, 7:49am

/script SendChatMessage(var1 .. " Hi there " .. var2 .. " you are " .. var3 , ZONE)

use ..

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

12

Tuesday, December 23rd 2008, 7:49am

Quoted from "Saveme;7242"

The use of Third Party Software for the purpose of Macroing is prohibited. I've used the program you mentioned and understand it goes far deeper than binding function. Any farther than the rebinding features of that program can lead to a Ban.

To use the Macro System Built into the game either press esc and click on Macros, or in chat type /m then press enter. Once you made your macro drag it into one of your quickbars and bind a key to it in the options.

No warnings, no infractions needed just a tap on the shoulder :D

Ahh cool. No problem at all. Being able to bind a macro to a key is great. It makes the use of AutoHotKey redundant for this use anyway. Thanks for the heads up.

Quoted from "Saveme;7246"

/script SendChatMessage(var1 .. " Hi there " .. var2 .. " you are " .. var3 , ZONE)

use ..

Yep, yep. Got it sus'ed out now. :)
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

13

Tuesday, December 23rd 2008, 4:13pm

Thank you Rosie and SaveMe. This should help alot :)

14

Thursday, December 25th 2008, 3:55am

I tried using the macro to use skills but it dosent work.
i typed /script UseSkill(1); UseSkill(2) but it dosent get to skill 2
it only goes to skill 1 and stops.. Someone please help

15

Thursday, December 25th 2008, 7:54am

You problem might be coming from the 1second global cool down on all abilities. Try doing a wait 1 between the abilities.

/script UseSkill(1);
/wait 1;
/script UseSkill(2);

or

/cast Cheap Shot
/wait 1
/cast Blind Spot

Rosie

Beginner

Posts: 6

Location: Earth

Occupation: Bum

  • Send private message

16

Thursday, December 25th 2008, 5:34pm

I have a question for the GMs. I went to create a new macro today after the patch and it seems that you can only use 60 characters in a macro now. Prior to the patch you could use, well at least 229.

Source code

1
/script local mainClass, subClass = UnitClass("target"); DEFAULT_CHAT_FRAME:AddMessage(UnitName("target").." is a lv"..UnitLevel("target").." "..mainClass .. "/" .. subClass.." and has "..UnitChangeHealth("target").." health." );
Before the patch I could make a macro with the above script. Now I can only make a marco with 60 Chars. Was this an intentional change or is it an error?
[img][/img]


Rosie - Mage/Priest lv39/36 [Osha]
Kitsune - Rogue/Mage lv21/19 [Osha]
Sapphire - Warrior lv11 [Osha]

RoM Patches for manual patching

Religion is Dangerous

The GMs and Mods here are unnecessarily authoritarian. Lighten up guys. Criticising a GM or Mod is not the same as disrespecting a GM or Mod. And remember, we are your paying customers.

&#12525;&#12540;&#12474; &#12473;&#12540;&#12497;&#12540;

17

Friday, December 26th 2008, 8:26am

I noticed the same thing, I can't get most of the macros on here to work cause they keep getting cutoff due to a character limit.

Any reason as to why this is happening?

18

Friday, December 26th 2008, 5:32pm

might be a limit imposed to avoid abuse? too bad, first time to try these macro's and this is what i got (patch macro limitation)

19

Friday, December 26th 2008, 5:38pm

ok so the guide is pretty good. I just need help with combos as its the first time in tryin macros.

I wrote the following script:

/script TargetNearestEnemy();
/cast Throw
/wait 1
/cast Shadowforce
/wait 1
/cast Villainy
/cast Attack


So the first line works, then the first cast works and then nothing else. I though maybe i typed something wrong. so went back to check the commands. and i saw that the latter part of my command disappeared. all i had remaining was this:

/script TargetNearestEnemy();
/cast Throw
/wait 1
/cast Shadowf


can some1 please tell me what i did wrong and what i can do 2 fix this?

20

Friday, December 26th 2008, 7:09pm

Quoted from "rajatk15;9943"

ok so the guide is pretty good. I just need help with combos as its the first time in tryin macros.

I wrote the following script:

/script TargetNearestEnemy();
/cast Throw
/wait 1
/cast Shadowforce
/wait 1
/cast Villainy
/cast Attack


So the first line works, then the first cast works and then nothing else. I though maybe i typed something wrong. so went back to check the commands. and i saw that the latter part of my command disappeared. all i had remaining was this:

/script TargetNearestEnemy();
/cast Throw
/wait 1
/cast Shadowf


can some1 please tell me what i did wrong and what i can do 2 fix this?


Same problem
I tried linking up macros by /UseAction(whereever i put the next macro on my hotbar) but it doesn't work!! Anyone help please?

edit: Ahh found the problem, forgot to write /script