Quantcast WoWInterface - View Single Post - Fun random generator rez macro...
View Single Post
02-17-11, 01:32 PM   #4
A Molten Giant
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 846
/run local t={"2g 37s","3g 99s","9g 22s","11g 68s","16g 89s","37g 55s"} SendChatMessage("loots %t for "..t[random(6)]..".", "EMOTE")
/cast Revive
But in your case it can be simplified to this:
/run SendChatMessage("loots %t for "..random(40).."g "..random(0,99).."s.", "EMOTE")
/cast Revive
More info: String Concatenation

Sorry, I didn't imply to "rob" players if u just "looted" 97 gold from some1
Went a bit overboard there xD

Last edited by Ketho : 02-17-11 at 06:54 PM.
  Reply With Quote