December 9, 20187 yr 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
December 11, 20187 yr RunMacro takes an id, not a name. And yes, you need to activate "not spell, is lua script" for that particular one.
December 11, 20187 yr Author 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)
December 11, 20187 yr 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
December 11, 20187 yr Author 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?
December 11, 20187 yr Shouldn't be a problem. Try DEFAULT_CHAT_FRAME:AddMessage('test message ingame') and see if it prints anything in your chat frame
December 11, 20187 yr 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.
December 11, 20187 yr Author disabled all addons (should have started with that ..^^) same issue though
December 11, 20187 yr Author .. 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.
December 11, 20187 yr 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, 20187 yr by Matenia
Create an account or sign in to comment