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, April 30th 2012, 8:40pm

Remove Buff Macro?

Is a way to remove a buff using a macro and then hotkey it? I know I can right click the icon up in the buff to dsable it bur but want to know if I can make it a single key to remove if on and add if off?

use case: I want my pet to loot bosses but not trash in an instance. So when I get to a boss I can click the hotkey to enable Magic Perfume and then afterwards click it to remove it.

Possible in a macro?

[LEFT]Magic Pefume Buffid = 503479
Magic Perfume (30 Days) Itemid =
204514

I can think of other times when this might be useful for instance rogues in hide in siege want to turn off anything that gives away their location in hide.
[/LEFT]
I miss the ant party

Kefkai

Professional

Posts: 907

Location: Pulling my own puppet strings

Occupation: Jerk

  • Send private message

2

Monday, April 30th 2012, 11:05pm


Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

3

Monday, April 30th 2012, 11:26pm

Well, this may be possible, as long as the buff is applied to you and not the pet.

To remove (again, as long as this buff is on You and not the pet)

Source code

1
/run for i=1,100 do n,_,_,id=UnitBuff("player",i) if id==503479 then CancelPlayerBuff(i) break end end


As for using the item, you can simply put it on an action bar slot and either click the item manually, or use it via a macro with:

Source code

1
/run UseAction([I][B]slot[/B][/I])

replace slot above with the action bar slot number. They are numbered from left to right, top to bottom in the following way

  • Main Bar (1-20)
  • Upper Bar (21-40)
  • Right Bar (41-60)
  • Left Bar (61-80)
2013... The year from hell....