View Single Post
11-17-10, 07:24 PM   #19
TransformedBG
A Fallenroot Satyr
Join Date: Oct 2010
Posts: 23
So i got it all up and running fine.. now i want to expand on this function a little more. I want to have multiple saying that it could randomly select to say instead of one defined saying.

I was thinkign it would have to be something like this:

Code:
local me = UnitClass("player");
local number = UnitLevel("player");
number = number +1;
quote_this = {};

quote_this["level"] = {
"DING DING DING! Yeah thats right this guild needed "..me.."!",
"OH NOEZ! What just happened? Ohh that was me! I Just LEVELED! BOYAH!",
"Check this guys! Im now a level "..number.." "..me.."!",
"If you heard it once, you have now heard it "..number..." times!",
"DING DING DING Tell um what you just won "..me.."!",
"Go ahead and just say gratz already!",
}
But im not sure i would work the call into SendChatMessage(...)? any help would be appreciated.
  Reply With Quote