Call me crazy but /am every time I launch lazy bot same as everyone else doesn't exactly seem fool proof as far as detection goes I havn't learn LUA yet but I am assuming that If i change.
SlashCmdList["LazyBot"]=FunctionSlash;
SLASH_LazyBot1="/am";
self:RegisterEvent("ADDON_LOADED");
self:RegisterEvent("MERCHANT_SHOW");
self:RegisterEvent("MAIL_SHOW");
end
I am assuming If i change the /am to launch these commands I will need to change everywhere else that has /am to what i changed the original one to correct?
e.g.
function FunctionSlash(cmd)
if(cmd == "help") then
DEFAULT_CHAT_FRAME:AddMessage("<LazyBot>", 0, 0.7, 1);
DEFAULT_CHAT_FRAME:AddMessage(" /am show ", 0, 0.7, 1);
DEFAULT_CHAT_FRAME:AddMessage(" /am on ", 0, 0.7, 1);
DEFAULT_CHAT_FRAME:AddMessage(" /am hide ", 0, 0.7, 1);
DEFAULT_CHAT_FRAME:AddMessage(" /am setname ", 0, 0.7, 1);
DEFAULT_CHAT_FRAME:AddMessage(" /am showname ", 0, 0.7, 1);
Would I need to change all those to what I changed the first /am to?
Can any coders that know LUA help me out. Thanks.
+rep to anybody that can help (: