This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
Random message macros
Post Reply
Return to board index
Post by
Toldry
for example, this macro for a "pickpocketing" emote
/run xx = math.floor(math.random()*100);
/run yy = math.floor(math.random()*100);
/run SendChatMessage("picks your pocket for "..xx.." silver, "..yy.." copper.","EMOTE");
i dont understand how this hole deal works
Post by
56282
This post was from a user who has deleted their account.
Post by
Tildy
Floor and random are just standard C and lua math library functions, but SendChatMessage is part of the WoW API.
The only random parts of that macro are the numbers generated by math.random. They're saving the randomly generated numbers to variables after using math.floor to round them down to the next lower integer, and then printing them out along with the little emote message you see there.
Post by
Sentrios
:P
That was my macro from "funny macros" section, isn't it?
At least you could mention my name rather than copy+pasting it here...
Post by
30936
This post was from a user who has deleted their account.
Post by
56282
This post was from a user who has deleted their account.
Post by
Sentrios
Yes I know it could be similar but it's exactly the same.
I really don't mind but just notified.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.