Note to all;
This 'exploit' will work until the next patch. (Most likely will be a minor patch, just to fix the silly Lua bug you're all exploiting).
I suggest someone with decent Lua knowledge, writes a small addon to hook the PLAYER_ENTER_WORLD event to run some 'setup' commands for you guys. (Killing /dump spam, setting up some other variables, etc) And also register a 1 letter slash command (eg; /d) to use in macros. Possibly shorten some widely used function names so you can get more room in stuff. Or hell; just edit the Lua files to 'bot' with.
Edit:
I'm no Lua expert, but I *believe* this code should work. Just make it an addon or something and test it.
Code:
-- Handles silencing the /dump command for you. This executes any time the UI is reloaded or we change zones via UI load
-- Also includes after login!
local pewFrame = CreateFrame("dumpFrame")
pewFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
pewFrame:SetScript("OnEvent", function(self,event,...)
EL("DevTools_DumpCommand = (function(msg) loadstring(msg)() end)")
end)
-- ExecuteLua (Truncated to EL)
function EL(lua)
loadstring(lua);
end
-- CastSpellByName (Truncated to CSBN)
function CSBN(name)
EL("CastSpellByName(" .. name .. ")"))
end
Should automatically silence the /dump shit. Also lets you use EL("lua stuff here") in macros to avoid the loadstring() length, and also CSBN("Smite") to do CastSpellByName. (Just use EL("CSBN("Smite")") for example)
/run EL("CSBN(\"Smite\")")
^ Should cast Smite. You guys may want to test it.