GHI_ApplyBuff

Pilus edited this page Aug 11, 2015 · 4 revisions
Clone this wiki locally

Syntax:

GHI_ApplyBuff(name, text, texture, untilCancelled, filter, debuffType, duration, cancelable, stackable, count, delay, range, alwaysCastOnSelf)

Arguments:

name
''(String)''
This is the name of the buff.
text
''String''
This is the buff's description.
texture
''String''
This is the texture path to the icon for the buff. Remember to use double slashes.
untilCancelled
''Boolean''
Mark this true if the buff persists until canceled.
filter
''String''
Choose Helpful if a buff or Harmful if a debuff.
debuffType
''String''
Choose from this list of Buff Types: Curse, Disease, Magic, Poison, Physical
duration
''Number''
The duration time of the buff in seconds.
cancelable
''Boolean''
mark true if the player can cancel a helpful buff by right clicking.
stackable
''(Boolean)''
True or False if the buff can have multiple stacks
count
''(Number)''
This is the amount of stacks of the buff to apply
delay
''Number''
The delay to wait before the buff is cast.
range
''Number''
The range in meters / yards. Used for area buffs.
alwaysCastOnSelf
''Boolean''
Mark true if yo want to make sure the buff does not cast on anyone but the user.

Aliases:

  • ApplyBuff()
  • ApplyGHIBuff()
## Example:

local buffName = "Awesome!"

local buffText = "You are imbued with the power of pure awesomeness. Rock on man!"

local buffIcon = "Interface\\ICONS\\Ability_Mage_FieryPayback"

GHI_ApplyBuff(buffName, buffText, buffIcon, true, "Helpful", "Magic", 0, true, false, 1, 0, 0,1)

This script creates a buff of ""Awesome!"" on the player.