Help please
I have this macro to toggle Auto-Loot on and off. It works fine except the Print message always says Off never On when I use the macro.
/run SetCVar("autoLootDefault",1-GetCVar("autoLootDefault")) print(("AutoLoot is %s"):format((GetCVar("autoLootDefault")==1) and "on" or "off")) |
Code:
/run local v = GetCVarBool("autoLootDefault") SetCVar("autoLootDefault", v and 0 or 1) print(format("AutoLoot is now %s.", v and "off" or "on")) |
Works perfectly! Thank you very much for helping me with this.
|
I have another question, is there a way to have this print to MiksScrollingBattleText or maybe as a system message?
|
Change print to say UIErrorsFrame:AddMessage
|
Thank you :banana:
|
All times are GMT -6. The time now is 01:05 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI