I have, in my OnLoad() methid,
Code:
SLASH_BID1 = "/bid";
SlashCmdList["BID"] = function( msg )
DKP_Bid_Auction_SlashCommandHandler( msg );
end
later on,
Code:
msg = string.lower(msg);
msgArgs = GetArgs(msg, " ");
-- Get the number of arguments
numArgs = table.getn(msgArgs);
... bunch of useless stuff ...
elseif (numArgs >= 3) then
if (msgArgs[1] == "begin") then
AuctionEnabled = true;
DEFAULT_CHAT_FRAME:AddMessage("DKP_Bid: Auction started.");
AuctionList = {};
Display_Bidders("GUI");
AuctionToggleButton:SetText("End Auction");
SendChatMessage("Send tell to "..UnitName('player').." with keyword `bid' to bid on ".. msgArgs[2] .. " @ " .. msgArgs[3] .."pts","GUILD")
else
Which as you can see, i want to do
/bid begin [uber item] 7 (which repepresents the dkp cost of the item)
However, when i do that, the game either crashes, or only
Send tell to player with keyword `bid' to bid on
is shown. If i dont put an item link, but plain text (i.e. /bid begin foo 7), it displays the whole thing properly.
Any ideas on what im doing wrong ? I'm begining to point the blame at the strng.lower() and GetArgs() methods, but when i modify the code to completly bypass them, it still doesnt fix the problems.
thanks