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.

81

Wednesday, January 14th 2009, 7:41pm

Help

i have made some macros that work great and others just wont so looking for a kind person to share info or help.

first here is what i know and that is very lil to nothing :)

/cast Fireball <-- will cast a fire ball (used as ex and skill name input as in game would cast)


/script UseAction(1) <-- will use what ever button is in slot one on hotkey bars.

/wait .75 <- time in secs you want it to wait before doign next stage


ex. of a macro i made that works

/cast snipe
/wait 4.5
/cast Frost Arrows
/wait .75
/cast Vampire Arrows
/wait .75
/cast Fireball
/wait .75
/cast Frost Arrows
/wait .75
/cast Frost Arrows
/wait .75
/cast Frost Arrows

Works great, when farming mobs for a daily or w/e can hit that key and know it will die.

i also have a cast for Holy Seal, resolution and armor enhanced BUT the Enhanced armor doesnt work the other two do?????

/cast Enhanced Armor <-- this macro is in slot 29
/wait 125
/script UseAction(30)

/script UseAction(29) <-- in slot 30

for the Holy Seal and resolution it works fine anyone have an idea why not for enhanced armor??????

last thing i have tryed many way of making a macro to use a heal pot at say <.65 health, have even try'd to copy macros from different threads but doesnt work, if someone could let me know why this simple one doesnt work i would be very happy and thankful

/script if(UnitHealth(Buffalobadass)/UnitMaxHealth(Buffalobadass)<=.50) then UseAction(23); else UseAction(41); end
[B] [/B]
/wait 10
/script UseAction(40);

action 23 is a hp pot - 40 is first - 41 is second


forgive any skill name errors, i am at work and do not have access to my macros and or skills :) ty for the read.

82

Wednesday, January 14th 2009, 10:15pm

I still DESPERATELY need a macro to equip an offhand sword. Anyone have ideas on that?

If it doesn't exist, just squash my dreams. I'll get over it eventually.

83

Thursday, January 15th 2009, 3:51am

i tried

/script local mana1, mana2=UnitMana("player"); SendChatMessage("Primary Mana:"..mana1..". Secondary Mana:"..mana2..".","SAY");

in game and it returns nothing. Removing the mana2 parts like:

/script local mana1=UnitMana("player"); SendChatMessage("Primary Mana:"..mana1,"SAY");

works correclty and says Primary Mana: 0
(0 rage)

are you sure there are multiple fields to the UnitMana(xxxx) call? based on macros i have seen that do things like UnitMana(x)/UnitMaxMana(x) to get percentage of mana used would tell me that it is a single field return,otherwise the arethmetic would throw an error. There must be some other call to get secondary mana.

EDIT: found it on EU formus. Its UnitSkill("player") to get the subclass mana

Stormbow

Beginner

Posts: 14

Location: NY

Occupation: Gamer.

  • Send private message

84

Thursday, January 15th 2009, 5:38pm

Correction

Quoted from "bezralu;13756"

Toggles off Class/Rep Icons:
/script GC_SetTitleTitleIconVisible(false);


That 2nd "Title" in bold above shouldn't be there.

The correct script is:
/script GC_SetTitleIconVisible(false);

;)

85

Sunday, January 18th 2009, 9:40am

Check it! A Macros initiating other Macros...

People complain about limited characters in the in-game macro editor and don't wanna risk being banned by using the third party software. You can make really long Macros by linking them together. You could even loop them if you are crazy enough...

Macro1 (on hotbar 1)

/script UseAction(2)
/wait 1.5
/script UseAction(3)

(Action 3 is yet another Macro)

Macro2 (on hotbar 3)
/script UseAction(4)
/wait 1.5
/script UseAction(5)

(Action 5 is another Macro)

Macro3 (on hotbar 5)
/script UseAction(6)
/wait 1.5
/script UseAction(1)

See what I did there? it loops. push one button to cast in order and repeat Actions 2, 4, and 6. Now we are just worried about hotbar space :(

And I suppose Actions 2, 4, and 6 could be Macros as well, have fun!
Nogmire
Toadster Guild Leader
Class: Mage/Priest
Master Profession: Alchemy (soon)
Server: Osha

86

Sunday, January 18th 2009, 1:32pm

I found out something fairly interesting:

Source code

1
/script EquipItem(#)


This command will "unequip" a item from the designated equipment slot. ie) /script EquipItem(17) will unequip my off-hand weapon.

I've a feeling theres more to this command than meets the eye; however, for the life of me I can't get it to EQUIP to slots. I asked a similar question elsewhere, but apparantly no one really likes propperly reading posts.

Hoping someone else can build off this and share.

87

Sunday, January 18th 2009, 6:49pm

Quoted from "ptbarrett;19970"

I still DESPERATELY need a macro to equip an offhand sword. Anyone have ideas on that?

If it doesn't exist, just squash my dreams. I'll get over it eventually.



Pt this was answered on like page 3 basically ...

use the command /script UseBagItem(x) where X is the slot number of the item you want to equip. You will have to do some testing to figure it out.

For instance if you are currently DW and you want to go S/B

/script UseBagItem(9); UseBagItem(10) Where yoru Sword is in bag slot 9 and your shield in bag slot 10.

something like that.

Now if your S/B and you want to DW this gets tricky because depending on if wep is only avail in the OH or if it's 1H the same macro won't work.

For that you need someone far more knowledgable than I. Or just some timeto play around with Macros :P.

88

Sunday, January 18th 2009, 9:34pm

The problem is UseItem defaults to the main hand. I think atsuru was onto something with EquipItem(#). I just need to figure out how to combine that with UseItem (which isn't likely since I don't play with macros much at all).

Switching to a shield is easy. I have my shield on the action bar and click it when I need to equip the shield. Going back to DW is the aggravating part.

89

Sunday, January 18th 2009, 10:35pm

Please DO try because I spent nearly 2 hours last night just sitting at the macro screen figuring out what other types of inputs that EquipItem() function could take. Judging by the name of the function I'd imagine you can use it to equip items! But hell I can only make it so it unequips an item.

90

Tuesday, January 20th 2009, 12:24am

switching offhand!!!!!!!

Quoted from "atsuru;21557"

Please DO try because I spent nearly 2 hours last night just sitting at the macro screen figuring out what other types of inputs that EquipItem() function could take. Judging by the name of the function I'd imagine you can use it to equip items! But hell I can only make it so it unequips an item.


Well, in fact there is a way of using your dicovery for equipping the offhand!
I found your post this afternoon and just played around with it a little while, when I finally tried this: /script EquipItem (17,1) and it said: "You cannot store items in the cashshop-box....Yeah!!
A little while further I ended up in this: /script EquipItem (17,79) and it worked!!!
So here's why: "17" is the equipslot for the offhand (main:16) and 79 was the backpackslot 79, where my sword was in and the makro just exchanged both! I just had to try a little, until i found the right slot , and I'm afraid you'll have to aswell, since I found no logic system for defining the backpackslots (the top-left should be 61, but it isn't).
Well, enough storytelling, here's it:

/script EquipItem (x,y)

"x" is from 1 and 17 (maybe more, didn't try) and defines the equipment-slot (17: offhand)
"y" is between 61-120 and defines the backpack-slots ( I: 61-90 and II: 91-120 etc.)

This Makro switches the item in Equip.slot "x" with the item in Inv.slot "y", so it works both ways: weapon/shield to weapon/weapon AND BACK!
I'm just a little afraid, that you have to redefine the Inv.slot from time to time (Auto-sort is no problem, but don't touch the offhand items in your inv. ;)).

So a BIG THANKS goes to "atsuru" for his discovery, since I wouldn't have done anything without his "Inspiration" :D

91

Tuesday, January 20th 2009, 5:57am

o...m...g.... I love you. Please bear my children!

No seriously, thanks alot. I play K/W and I really needed the ability to switch on the fly.

Oh and my first slot in bag 1 was 82

92

Wednesday, January 21st 2009, 6:22pm

when i try to loop any macro it disconnects and sends an error report.

edit follows
that was supposed to be an answer of this. i think


BuffaloBadAss
Banned



Help
i have made some macros that work great and others just wont so looking for a kind person to share info or help.

first here is what i know and that is very lil to nothing :)

/cast Fireball <-- will cast a fire ball (used as ex and skill name input as in game would cast)


/script UseAction(1) <-- will use what ever button is in slot one on hotkey bars.

/wait .75 <- time in secs you want it to wait before doign next stage


ex. of a macro i made that works

/cast snipe
/wait 4.5
/cast Frost Arrows
/wait .75
/cast Vampire Arrows
/wait .75
/cast Fireball
/wait .75
/cast Frost Arrows
/wait .75
/cast Frost Arrows
/wait .75
/cast Frost Arrows

Works great, when farming mobs for a daily or w/e can hit that key and know it will die.

i also have a cast for Holy Seal, resolution and armor enhanced BUT the Enhanced armor doesnt work the other two do?????

/cast Enhanced Armor <-- this macro is in slot 29
/wait 125
/script UseAction(30)

/script UseAction(29) <-- in slot 30

for the Holy Seal and resolution it works fine anyone have an idea why not for enhanced armor??????

last thing i have tryed many way of making a macro to use a heal pot at say <.65 health, have even try'd to copy macros from different threads but doesnt work, if someone could let me know why this simple one doesnt work i would be very happy and thankful

/script if(UnitHealth(Buffalobadass)/UnitMaxHealth(Buffalobadass)<=.50) then UseAction(23); else UseAction(41); end

/wait 10
/script UseAction(40);

action 23 is a hp pot - 40 is first - 41 is second


forgive any skill name errors, i am at work and do not have access to my macros and or skills :) ty for the read.

93

Wednesday, January 21st 2009, 7:59pm

Quoted from "fostina1;23033"

when i try to loop any macro it disconnects and sends an error report.

edit follows
that was supposed to be an answer of this. i think

Quoted





When i have tryed HP or MP pot macros to loop it has also disconnected me. On the other hand the loop for casting holy seal and Resolution worked fine (even thou it tryed to cast every 60 secs even thou i had 300 in there) but the enhanced armor would cast once then never again but wouldnt crash the game...? anyhow thank you for the response

94

Wednesday, January 21st 2009, 8:17pm

Quoted from "buffaloes;23080"

Quoted from "fostina1;23033"

when i try to loop any macro it disconnects and sends an error report.

edit follows
that was supposed to be an answer of this. i think

Quoted





When i have tryed HP or MP pot macros to loop it has also disconnected me. On the other hand the loop for casting holy seal and Resolution worked fine (even thou it tryed to cast every 60 secs even thou i had 300 in there) but the enhanced armor would cast once then never again but wouldnt crash the game...? anyhow thank you for the response




you could try this. i think this is right
/script TargetUnit("player") dont change player to your name. and that may be the problem with your pot macro.
before the second time you cast it. maybe the first time too.
it may not be casting b/c you are targeted on a monster
i had to add that to my r/p regen macro.

95

Wednesday, January 21st 2009, 9:00pm

Quoted from "fostina1;23088"



you could try this. i think this is right
/script TargetUnit("player") dont change player to your name. and that may be the problem with your pot macro.
before the second time you cast it. maybe the first time too.
it may not be casting b/c you are targeted on a monster
i had to add that to my r/p regen macro.



Oh thanks.... again new to them so that would explain a lot, the game reads "player" as you so the name isnt needed, i thought that cuz otehr in party could be targeted by a macro that you would have to use a name. excited to get home from work to try it 8D

96

Wednesday, January 21st 2009, 9:04pm

Quoted from "buffaloes;23112"

Oh thanks.... again new to them so that would explain a lot, the game reads "player" as you so the name isnt needed, i thought that cuz otehr in party could be targeted by a macro that you would have to use a name. excited to get home from work to try it 8D


ya im not at home either so i cant be certain. the good guides on the international forum are blocked at work but not this forum. i do know ive spent almost as much time making macros as i have getting 11priest/14rogue lol.

97

Wednesday, January 21st 2009, 9:09pm

LOL i hear these macros are nice but take some work. i think the best use of them is when grinding, instead of hitting 5-10 buttons for skills when you use alomst the same buttons everytiome to jsut click the macro and then move to the next mob. the recasting of buffs is just bcuz i forget to rebuff all the time LOL.

and yeah why is that, i also cant access the international one at work but can from home.... weird.

98

Wednesday, January 21st 2009, 11:11pm

Can anybody still reading this thread help me out with this macro, it doesn't seem to work:

On hotkey 1

/cast Vampire Arrow
/wait 1.2
/cast Shot
/wait 2.75
/cast Wind Arrows
/wait 1.2
/cast Wind Arrows
/wait 1.2
/cast Wind Arrows
/wait 1.2
/cast Shot
/wait 2.75
/script UseAction(8);

On hotkey 8

/script if (UnitHealth("target")>0)then UseAction(1); end;

My ping is about 1200-1275 so I have longer wait times. I can't seem to get any macro to work, even a simple UseAction(x). Just to make sure I am not missing something, I hit escape-macro-new, pick an icon then type in the above, save, and put on the hotbar (positions 1, and 8). I really want it to work because of my internet latency. I usually get hit 2 or three times as I am looting the kill and I have to watch multiple red messages about invalid target.

Thanks in advance

Zeromatter

Beginner

Posts: 11

Location: New Zealand

Occupation: Real work.

  • Send private message

99

Thursday, January 22nd 2009, 9:17am

Quoted from "DarkStorm;23181"

Can anybody still reading this thread help me out with this macro, it doesn't seem to work:

On hotkey 1

/cast Vampire Arrow
/wait 1.2
/cast Shot
/wait 2.75
/cast Wind Arrows
/wait 1.2
/cast Wind Arrows
/wait 1.2
/cast Wind Arrows
/wait 1.2
/cast Shot
/wait 2.75
/script UseAction(8);

On hotkey 8

/script if (UnitHealth("target")>0)then UseAction(1); end;

My ping is about 1200-1275 so I have longer wait times. I can't seem to get any macro to work, even a simple UseAction(x). Just to make sure I am not missing something, I hit escape-macro-new, pick an icon then type in the above, save, and put on the hotbar (positions 1, and 8). I really want it to work because of my internet latency. I usually get hit 2 or three times as I am looting the kill and I have to watch multiple red messages about invalid target.

Thanks in advance


I have a feeling that script is over 64 characters, hence the ingame macro editor will truncate the code to the first 64 characters only.
Read through this thread again, and download and use the stand-alone Macro editor to create code longer than 64 characters.
-- Matt / Exarrr

100

Thursday, January 22nd 2009, 11:10am

I want to make a macro that will do the following

Cast Heal spell on my target
announce in /party chat "[Target] is being healed"

This will help prevent multiple healers in a group from healing the same person and wasting mana. How do I do this?