View Single Post
02-17-11, 01:32 PM   #4
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Code:
/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:
Code:
/run SendChatMessage("loots %t for "..random(40).."g "..random(0,99).."s.", "EMOTE")
/cast Revive
More info: String Concatenation

Edit:
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