Wikia

WoWWiki

API GameTooltip SetPlayerBuff

Talk0
101,313pages on
this wiki
Revision as of 23:59, July 14, 2008 by Charibot (Talk | contribs)

Widget API


Sets a GameTooltip to a player buff of the type last used in GetPlayerBuff.

GameTooltip:SetPlayerBuff(buffIndex)


Arguments

buffIndex 
Number - The index of the buff to set in the game tooltip (affected by the filter used in GetPlayerBuff)


Returns

nil


Example

local buffIndex, untilCancelled = GetPlayerBuff(1, "HARMFUL");
GameTooltip:SetPlayerBuff(buffIndex);

Result

The GameTooltip is set to the first harmful buff.


Details

It will use whatever the last type of buff you specified in GetPlayerBuff was, hence the reason you should specify GetPlayerBuff right before you call SetPlayerBuff.
Options for the GetPlayerBuff filter are : HELPFUL|HARMFUL|PASSIVE

Around Wikia's network

Random Wiki