Lowky 0 Posted December 9, 2018 Share Posted December 9, 2018 Hey guys, im new to Wrobot and currently having fun exploring some of its features ? Im trying to include my ingame macros into a fightclass. Is there any way to do this? Some of them use data from various addons (such as swingtimers, combat log events, energy ticks etc.) to work properly. I've been trying the macro section in the General Options. The "press all x seconds" option seems to be an integer, thus not allowing values <1. Because Swingtimers change frequently due to proccs/WF, i would need the Combat Routine to spam the macro (at least once every 200ms) for a precise use. Cheers Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/ Share on other sites More sharing options...
Matenia 628 Posted December 10, 2018 Share Posted December 10, 2018 https://wow.gamepedia.com/API_RunMacro it's a simple Lua call Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49852 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 This wont work i guess? Lua script enabled Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49866 Share on other sites More sharing options...
Matenia 628 Posted December 11, 2018 Share Posted December 11, 2018 RunMacro takes an id, not a name. And yes, you need to activate "not spell, is lua script" for that particular one. Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49867 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 according to your link both should be fine, ID isnt working either. [F] 18:41:01.996 - [FightClass] Launch LUA script: RunMacro(1) uses the script, but does nothing ingame (apart from melee) Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49868 Share on other sites More sharing options...
Matenia 628 Posted December 11, 2018 Share Posted December 11, 2018 Does it throw a Lua error ingame? Otherwise you could put the macro on an action slot, then use UseAction(1) http://wowwiki.wikia.com/wiki/API_UseAction?oldid=181130 Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49870 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 nope no lua error .. doesnt seem to take any API functions i tried so far might it have something to do with me using a trial version atm? Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49871 Share on other sites More sharing options...
Matenia 628 Posted December 11, 2018 Share Posted December 11, 2018 Shouldn't be a problem. Try DEFAULT_CHAT_FRAME:AddMessage('test message ingame') and see if it prints anything in your chat frame Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49872 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 btw appreciate your help Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49873 Share on other sites More sharing options...
Matenia 628 Posted December 11, 2018 Share Posted December 11, 2018 If that works, then UseAction(1) should work and press the button in that action slot. If you are using custom action slots through addons, DON'T. Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49874 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 disabled all addons (should have started with that ..^^) same issue though Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49875 Share on other sites More sharing options...
Lowky 0 Posted December 11, 2018 Author Share Posted December 11, 2018 .. the macro itsself seemed to be the problem. used /script if not buffed("Moonfire", "Target") then CastSpellByName("Moonfire") end for testing. removed the buffed function after disabling addons (since its a supermacro function) and used /script CastSpellByName("Moonfire") which still wouldnt work. changed to /cast Moonfire and suddenly it does. Tbh, im confused af .. shouldnt UseAction use the macro regardless of its contents?? All macros work when used manually - just the bot decides not to use those containing functions. Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49877 Share on other sites More sharing options...
Matenia 628 Posted December 11, 2018 Share Posted December 11, 2018 (edited) buffed("Moonfire", "target") does not exist. You're trying to use some functions that are either PQR and not proper Lua or from within an addon that wRobot might not have access to UseAction should use the macro regardless of its contents (but then throw an error, potentially). Also what you're doing, starting with /script or /run are technically "macros" in that they execute Lua only after the "/run" portion. Edit: After re-reading it seems that this might be due to wRobot's Lua protection (so it doesn't get caught for unlocking). Unsure why this would cause issues. Edited December 12, 2018 by Matenia Link to comment https://wrobot.eu/forums/topic/10487-include-ingame-macros-into-fightclass/#findComment-49878 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now