This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Funny Class-Specific Macros
Post Reply
Return to board index
Post by
Toldry
/cast Pick Pocket
/run SendChatMessage(("picks %s's pocket for %d silver, %d copper."):format(UnitName"target",math.random(99),math.random(99)),"EMOTE")
Why do so many people do things the long and stupid way?
you forgot that it also cant be 0, you only made it not do 99.... i think
and you also forgot the
#showtooltip pick pocket
/cast pick pocket
part
Post by
91244
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
112926
This post was from a user who has deleted their account.
Post by
109430
This post was from a user who has deleted their account.
Post by
121522
This post was from a user who has deleted their account.
Post by
modrogon
/cast Pick Pocket
/run SendChatMessage(("picks %s's pocket for %d silver, %d copper."):format(UnitName"target",math.random(99),math.random(99)),"EMOTE")
Why do so many people do things the long and stupid way?
you forgot that it also cant be 0, you only made it not do 99.... i think
and you also forgot the
#showtooltip pick pocket
/cast pick pocket
part
It acts differently:
math.random() returns a real number from 0-1
math.random(n) returns an integer number from 1-n
math.random(x,y) returns an integer number from x-y
Also yes nefarion has a good point, using scripts which introduce global variables with common names like xx and yy is asking for serious trouble.
For the pick pocket macro, can you have it do something else if you have no one targeted? Cause it's giving me an error otherwise...
Post by
2198
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
Lunien
Hmm...I'm tempted to try this on my warrior:
/y Hey %t *Insert "Yo mama" joke here*
/cast Taunt
Post by
113401
This post was from a user who has deleted their account.
Post by
modrogon
For the pick pocket macro, can you have it do something else if you have no one targeted? Cause it's giving me an error otherwise...
Ok here:
/cast Pick Pocket
/run if UnitName("Target") then SendChatMessage(("picks %s's pocket for %d silver, %d copper."):format(UnitName"target",math.random(99),math.random(99)),"EMOTE")end
Thanks Shoggy with your code I went with this:
/run if UnitName("Target") then SendChatMessage(("picks %s's pocket for %d silver, %d copper."):format(UnitName"target",math.random(99),math.random(99)),"EMOTE") else SendChatMessage("jingles the stolen money","EMOTE") end
This will allow me to "pick the target pocket" or jingles the stolen money when I have no one targeted.
Post by
104767
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
steelelfknight
For mages with polymorph: Pig
/cast polymorph: Pig
/s I smell bacon I smell pork run piggy run cause I got a fork.
and for the rouges
/cast sprint
/y BEEP BEEP
Post by
107345
This post was from a user who has deleted their account.
Post by
107717
This post was from a user who has deleted their account.
Post by
Chatillon
Would it be annoying if I put something like- "BOOM-Headshot!" on my Paladin whenever he used Crusader Strike?
If not, anyone have a macro for it? :3
Post by
70747
This post was from a user who has deleted their account.
Post by
125099
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.