WoW:API UnitExists: Difference between revisions
Jump to navigation
Jump to search
(upgraded deprecated template) |
m (Remove singatures made using ~ in main namespace) |
||
| Line 16: | Line 16: | ||
---- | ---- | ||
Revision as of 06:35, 10 February 2007
← WoW API < UnitExists
Just a simple example:
function 1stBuff()
if(UnitExists("target")) then
MeinZiel="target";
DEFAULT_CHAT_FRAME:AddMessage("My targets 1st buff: "..(UnitBuff(MeinZiel, 1)));
else
MeinZiel="player";
DEFAULT_CHAT_FRAME:AddMessage("My own 1st buff: "..(UnitBuff(MeinZiel, 1)));
end;
end