Description
Runes Function Library for Macros
RFL4M es una librería de funciones que puedes incorporar en tus Macros o en otros addones. Esta librería está desarrollada a partir de las peticiones de los jugadores de la comunidad Española e Hispana.
RFL4M is a library full of funtions that you can use in your Macros and addons. This library is developed from the requests of Spanish and Latin players.
ESPAÑOL
Este addon contiene una lista de funciones que puedes usar en tus macros o en otros addones. Estas funciones han sido solicitadas por los jugadores en el foro oficial. Si quieres que ampliemos la lista de funciones con alguna otra que tu necesites, no dudes en pedirlo: https://forum.runesofmagic.com/showthread.php?p=2130445
BETA 1 contiene dos funciones:
- RFL4M.getAllBuff (tgt)
- tgt: uno de los valores validos para UnitID = {"target","player","focus","party#","raid#", "mouseover", ...}
- return: 2 listas de valores, una con los buffos que afectan a la Unidad separados por '&' y la otra con los debuffs tambien separador por '&'
- use: local b,d = RFL4M.getAllBuff("target"); DEFAULT_CHAT_FRAME:AddMessage("BUFF:"..b.."\nDEBUFF:"..d)
- RFL4M.hasBuff (tgt, buffname)
- tgt: uno de los valores validos para UnitID = {"target","player","focus","party#","raid#", "mouseover", ...}
- buffname: parte o todo el nombre del buff o debuff que quieres saber si está afectando a la Unidad
- return: 1 si lo encuentra entre los buffos, 2 si lo encuentra entre los debuff y 0 si no lo encuentra.
- use: if RFL4M.hasBuff("target","Regen")=0 then CastSpellByName("Regeneración")
ENGLISH
This addon contains a number of functions you can use in your macros or in other addons. This functions have been required by the players in the official forum. If you want us to enlarge the list of functions with the one you need, don't hesitate: https://forum.runesofmagic.com/showthread.php?p=2130445 (english alowed)
BETA 1 contains two functions:
- RFL4M.getAllBuff (tgt)
- tgt: one of the right values for UnitID = {"target","player","focus","party#","raid#", "mouseover", ...}
- return: 2 lists of values, one with all the buffs on the Unit separated bt & and the other with all the debuffs with same separator.
- use: local b,d = RFL4M.getAllBuff("target");
- RFL4M.hasBuff (tgt, buffname)
- tgt: one of the right values for UnitID = {"target","player","focus","party#","raid#", "mouseover", ...}
- buffname: part or full Buff or Debuff name you want to know if it is on the Unit.
- return: 1 if the name in found on bufs, 2 if it is found on debuffs and 0 if there is not.
- use: if RFL4M.hasBuff("target","Regen")=0 then CastSpellByName("Regeneration")
