![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Recently, I've been have some fun by following people around and typing "/me steals 3 silver and 23 copper from your bag" and stuff like that.
I was just wondering if possible, what the commands are to make a macro that does this: /me steals <Random Integer Between 1 and 5> silver and <Random Number Integer 1 and 99> copper from your bag. I'm sure there are some better uses for such a macro, but any help on the matter would be appreciated. |
|
||||
|
RandomRoll(low, high) is what you are looking
/script SendChatMessage("me steal" .. RandomRoll(1,5) .. "silver and" .. RandomRoll(0,99) .. "copper from your bag", "SAY", "Common","") or /script s=RandomRoll(1,5) c=RandomRoll(0,99) SendChatMessage("me steal" .. s .. "silver and" .. s .. "copper from your bag", "SAY", "Common","") .. is concatenation in lua language, which scripts are written in. I didn't try atm i hope they work dude. If it doesnt work tell me. The nil values of sendchatmessage might causing problem. for simplicity you can just use SendChatMessage(message) coz defaults are SAY,Common,nil BTW last parameter (nil) is "channel" and used with whisper generally.
__________________
..Born in hell, boy of fire.. Topic: What macros can not do CastBySpellName() Only thing needed in macros where blizz don't permit it.
Last edited by MiracleMage : 11-06-2008 at 03:40 AM. |
|
||||
|
Quote:
Have fun mates. I'm looking forward wotlk to renew my account ^^
__________________
..Born in hell, boy of fire.. Topic: What macros can not do CastBySpellName() Only thing needed in macros where blizz don't permit it.
|
|
|||
|
I've made 3 ones to that I use depending on what level the people I'm around are to make it more believable.
Low level: Code:
/script s=random(5);c=random(99);SendChatMessage("pickpockets " .. s .. " silver and " .. c .. " copper from your bag", "EMOTE", "Common","")
Code:
/script s=random(50);c=random(99);SendChatMessage("pickpockets " .. s .. " silver and " .. c .. " copper from your bag", "EMOTE", "Common","")
Code:
/script s=random(99);c=random(99);g=random(5);SendChatMessage("pickpockets " .. g .. " gold, ".. s .. " silver and " .. c .. " copper from your bag", "EMOTE", "Common","")
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|