View Single Post
06-12-06, 10:23 AM   #2
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
The OnLoad bit would require seeing the xml.

Were you to do this:

SLASH_IncTun1 = "/inct";
SlashCmdList["IncTun"] = EBS_Incoming_Tunnel;

function EBS_Incoming_Tunnel()
SendChatMessage("INCOMING TUNNEL", "RAID");
end

/inct would do nothing (until you ran it twice) because EBS_Incoming_Tunnel is nil at the time of evaluation.

Do this instead:

function EBS_Incoming_Tunnel()
SendChatMessage("INCOMING TUNNEL", "RAID");
end

SLASH_IncTun1 = "/inct";
SlashCmdList["IncTun"] = EBS_Incoming_Tunnel;

If you really have an OnLoad running then your xml is likely bad, causing the frame to not load and the slash commands to not load.
  Reply With Quote