This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Whats synthax for UnitCastingInfo?
Post Reply
Return to board index
Post by
100594
This post was from a user who has deleted their account.
Post by
100594
This post was from a user who has deleted their account.
Post by
dinnerbone
/script spell = UnitCastingInfo("player"); SendChatMessage(spell, "say")
The difference between my working script and your broken one is that you have a colon connecting UnitCastingInfo() and SendChatMessage(). Replace that colon with a semi-colon and put a space after it.
Post by
Tildy
Space should not matter at all, there or in various other places I'm seeing spaces. You can make it quite ugly while retaining functionality, nice for the one-line macro requirement.
edit: like, this thing is ugly but it's shorter than it might otherwise be.
/run local t,u,z="target"if UnitInRaid("player")then u,z="Raid",GetNumRaidMembers()else u,z="Party",GetNumPartyMembers()end for i=0,z do u=u..i+1 if UnitIsUnit(u..t,t)then SendChatMessage("Change","WHISPER",nil,UnitName(u))end end
Post by
dinnerbone
No, the space does not matter but it helps alot for readability, the reason the original script didn't work was the colon, I just added the space to make it easier to read.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.