Thread Tools Display Modes
02-06-08, 03:24 AM   #1
kcdclan
A Murloc Raider
Join Date: May 2007
Posts: 7
How can I send hello %t

I'm new to this and trying to figure this out.
I program so I understand most of what is going on.
How am I to
When click on new target sent command Hello %t
Somthing that does that?
  Reply With Quote
02-06-08, 04:46 AM   #2
Hellarion
A Black Drake
 
Hellarion's Avatar
Join Date: Feb 2007
Posts: 81
try /hello %t (in macro menu) then put the button on ur bar
__________________
Hell
  Reply With Quote
02-06-08, 04:50 AM   #3
kcdclan
A Murloc Raider
Join Date: May 2007
Posts: 7
I'm talking about in a mod.
I want it to do.
On_Click cmd = sendcmd("/say Hello, %t Welcome to your doom");
  Reply With Quote
02-06-08, 07:07 AM   #4
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Code:
local f = CreateFrame("Frame")
f:RegisterEvent("TARGET_CHANGED")
f:SetScript("OnEvent", function()
    if UnitIsPlayer("target") and UnitIsEnemy("target", "player") then
        SendChatMessage("Hello, "..UnitName("target").." Welcome to your doom")
    end
end
Might get a bit spammy. All wow API found on WoWWiki API.
  Reply With Quote
02-06-08, 03:10 PM   #5
kcdclan
A Murloc Raider
Join Date: May 2007
Posts: 7
How would I wave to them?
Isn't there a palce that has the db of commands and such like msdn or somthing.
  Reply With Quote
02-06-08, 03:38 PM   #6
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
Originally Posted by kcdclan View Post
Isn't there a palce that has the db of commands and such like msdn or somthing.
Look one post up...
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How can I send hello %t


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off