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.

261

Friday, July 16th 2010, 12:22pm

Quoted from "ReagenL;306135"

Is there a macro to do a range check.
Like if a monster is in a certain range run so and so script, if it isnt, it doesnt do anything?


Ever since they disabled the UnitDistance() function, the only way to check to see if a you're within range to use a skill is to drag it to your action bar and use GetActionUsable(#), where # is the action bar slot number.

So, for instance, you'd do:

Source code

1
/run if GetActionUsable(5) then UseAction(5) end
That will check to see if you're in range to use the skill on slot #5 of your action bar and if so, execute it.

262

Friday, July 16th 2010, 10:11pm

Crap. It would be the stuff that makes things easier thats disabled.
That works.

But i always want my character to yell out something, but only if the monster is in range. If i add text after inputting that. He yells out even if the monster is in range or not.
How would I make it so he says some only when the monsters in range. Cause i sometimes i have to hit a hotkey more than once for a skill to actually follow through, and that leads to spamming my chat box with his speeches.
Roleplayer in Govinda
Leader of the roleplay guild Immortal Covenant
Reagen -- 50/39 K/M-- Govinda
Xushin -- 29/54 W/M-- Govinda
Foroque -- 29/27 M/Wd --Govinda
Olan -- 22/27 P/K -- Govinda
Shivaa -- 40/40 P/S -- Govinda
Shayn -- 50/37 R/M -- Govinda
Raiden -- 22/0 M/x -- Govinda
Dieiyna -- 38/38 D/W -- Govinda

263

Monday, July 19th 2010, 6:06pm

I'll need to know what you mean by "yell something out". Do you mean in /say or /party or just a message in your chat box?

Also, do you want it to keep spamming the message every time you hit the macro when it's in range, or just once?

264

Friday, August 6th 2010, 8:56am

I want to simply create a script that casts blind spot if usable and else shadowstab >.<
i put my Blind spot on slot 61 and shadow stab in slot 62
it looked like this
/script if GetActionUsable(61) then UseAction(61) elseif GetActionUsable(62) then
UseAction(61);end

but it doesnt work >.< tried also with else instead of elseif....
a lil help over here dont think its such a complicated matter but... im missing something
any help is greatly appreciated

265

Friday, August 6th 2010, 1:37pm

Quoted from "ArthuX;316271"

I want to simply create a script that casts blind spot if usable and else shadowstab >.<
i put my Blind spot on slot 61 and shadow stab in slot 62
it looked like this
/script if GetActionUsable(61) then UseAction(61) elseif GetActionUsable(62) then
UseAction(61);end

but it doesnt work >.< tried also with else instead of elseif....
a lil help over here dont think its such a complicated matter but... im missing something
any help is greatly appreciated


If I remember right, GetActionUsable doesn't do a positional check. So as long as you're in melee range and it isn't on cooldown, that will return true and try to use it even if you're not behind the target.

Also, I'm assuming the UseAction(61) at the end is a typo and should be UseAction(62)?

266

Friday, August 6th 2010, 4:30pm

yup was a mistake then is there a function for evaluating the behind the target event? this is just to get one extra slot on my main action bar since shadowstab combo and blind spot combo are alike also if you keep moving in circles it triggers the event some times... if the turning speed of the target aint that fast
... oh btw i was also lookin for a function to evaluate when the target is casting to use throat attack any thoughts on that?

267

Monday, August 9th 2010, 6:07pm

Quoted from "ArthuX;316334"

yup was a mistake then is there a function for evaluating the behind the target event? this is just to get one extra slot on my main action bar since shadowstab combo and blind spot combo are alike also if you keep moving in circles it triggers the event some times... if the turning speed of the target aint that fast


I don't know of any game event triggered by being behind the target, so I don't see any way to monitor that.

If you're looking to save action bar slots, then I'd suggest using the combat engine in my sig. That'll save you a LOT of slots lol.

Quoted from "ArthuX;316334"

... oh btw i was also lookin for a function to evaluate when the target is casting to use throat attack any thoughts on that?


Here's what I use:

Source code

1
/run local tspell,ttime,telapsed = UnitCastingTime("target"); if (tspell ~= nil) and (ttime >= 1) and (ttime - telapsed > 0.5) then CastSpellByName("Throat Attack") end
That checks to see if the target is casting a spell with at least a 1s cast time (so no instant-cast spells) and that there's at least 0.5 seconds left on his cast.

268

Tuesday, August 10th 2010, 1:24am

thanks :P

269

Friday, August 13th 2010, 12:54am

Ah... This thread is very helpful! Right now, I am fiddling around with some macros of my own, but I am having some trouble... Some help would be appreciated.
/script targetName = UnitName("target"); targetHealth = UnitMaxHealth("target"); targetLevel = UnitLevel("target"); SendChatMessage(targetName.." (Level "..targetLevel..") has "..targetHealth.." Life points.", "SAY" );

The text in bold is my problem area. I know that I can use UnitChangeHealth("target") to find a target's health before an attack, but I wish to be able to find the target's current health at any point that I wish! If I use UnitHealth("target"), I am given the number that everyone else sees (12234 for a player's health, but 100 (%) or 50 (%) for a monster).

Now... I wish to be able to see numbers, not percentages, when dealing with a monster... How would I go about doing this?

270

Friday, August 13th 2010, 5:55pm

Quoted from "Yottsu;320141"

Now... I wish to be able to see numbers, not percentages, when dealing with a monster... How would I go about doing this?


For whatever reason, once the monster has been attacked, you can no longer get it's actual health value. It used to work as you'd expect, but several patches ago it changed, so I'm not sure if it was a bug or by design.

271

Friday, August 13th 2010, 6:26pm

A question answered, another is asked.

Oh man... Well, thank you anyways! Also...
I do not have any addons for my Runes of Magic, but I want to set up a folder where I can define my own functions (I want to add some text to some attacks), how would I go about doing this?

Thanks in advance.

272

Tuesday, August 31st 2010, 4:43pm

Macro noob has a question on setting up an add on targeting macro. I am a complete noob when it comes to macros. I just dl'ed etarget list add on from curse.com.
Apparently with the proper macro you can get it to target specific units even if they r behind u. (Very useful imo since u usually cant do that). The following are 4 macros that can be used with the add on:
TgtLowestHPNotAggro() -> target unit that is not attacking you and has lowest HP in the list.
TgtHighestHP() -> target unit that has highest HP in the list.
TgtHighestHPAggro() -> target unit that is attacking you and has highest HP in the list.
TgtHighestHPNotAggro() -> target unit that is not attacking you and has highest HP in the list.
I put the first code into the in-game macro creator in the system help just as it is written. It didnt work of course. Having read a few of the early posts on this thread i know i need a /. Do i need a number for a hotkey or some action like thunder sword in between the parenthesis? What else do i need to just get toon to do the acton? Help.

273

Tuesday, August 31st 2010, 6:48pm

Quoted from "rawnblaed;330037"

I put the first code into the in-game macro creator in the system help just as it is written. It didnt work of course. Having read a few of the early posts on this thread i know i need a /. Do i need a number for a hotkey or some action like thunder sword in between the parenthesis? What else do i need to just get toon to do the acton? Help.


Try putting "/run" in front of each function name, so for instance:

Source code

1
/run TgtLowestHPNotAggro()

274

Wednesday, September 1st 2010, 4:22am

Ok, I tried to put
/run TgtLowestHPNotAggro ()
into the macro command line in the macro interface of the system help. I put the resulting icon into my hotbar. I found a target without aggro and punched the hotkey. Nuthin'. I even had the semicolon at the end. So i have tried
/script TgtLowestHPNotAggro ();
and
/run TGTLowestHPNotAggro ();
neither works.
I also seem to be unable to type in more than 30 characters in the macro command line in the system help.
I guess i am trying to get the macro that will target the lowest HP target in the list of up to 8 targets and then attack that target. The addon link is:http://rom.curse.com/downloads/rom-addon…targetlist.aspx in case you want to see what its supposed to do. To target something you just click the bar on the list. To target and attack you right click on the list. Anyway i am still confused. Any other suggestions for a complete macro would be helpful.

275

Wednesday, September 1st 2010, 7:26am

Quoted from "rawnblaed;330317"

So i have tried
/script TgtLowestHPNotAggro ();
and
/run TGTLowestHPNotAggro ();
neither works.
To target and attack you right click on the list. Anyway i am still confused. Any other suggestions for a complete macro would be helpful.

The only fault I'm seeing is a space between TgtLowestHPNotAggro and () . Try removing that and see what happens.

276

Thursday, September 2nd 2010, 9:01pm

Quoted from "rawnblaed;330317"

I also seem to be unable to type in more than 30 characters in the macro command line in the system help.


That's because you're typing the macro in the box where the macro title goes. The macro code goes below in the bigger box.

277

Sunday, October 10th 2010, 6:41pm

awesome macros are fun
Well then, I am trying to get on all the time and so just whisper [Monoaonom] if your on Reni and wanna chat. I am not new to Reni but you probably haven't heard of me but you probably have heard of my friend Blakjak (blakjak02 on the forums).

53/34 k/s [Monoaonom]

21/20 m/r [Nomnomers]

Posts: 2

Location: On a plane between CA and MI

  • Send private message

278

Thursday, November 25th 2010, 11:26pm

transport macro?

is it possible to make a macro that uses a specific transport in ur transport log then says something in zone?

thinking of like a macro i hit before i go afk that transports to a spot in SJF then says 'event' in zone.

if any ideas pop up let me know! :D

delmlord

Beginner

Posts: 42

Location: Jersey

Occupation: NoLifer

  • Send private message

279

Friday, January 28th 2011, 1:49am

A friend of mine said in the EULA , that it Prohibited the use of Macro's??
I know that can't be true, can anyone clear that up for me?

ghostwolf82

Professional

Posts: 859

Location: Kalvans Trunk

Occupation: It's dark in here

  • Send private message

280

Friday, January 28th 2011, 6:12am

If they were prohibited, why would you be able to type /macro in the game itself?
If they were prohibited, why would this thread be stickied?
If they were prohibited, why would there be a forum section devoted to them?

Common sense should be reigning supreme here... Why is it not?