Difference between revisions of "LUA:IsHeroic"

(Created page with "= LUA Functions: IsHeroic() = Returns a true/false if a spawn is heroic. ==== Syntax ==== IsHeroic(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is...")
 
(No difference)

Latest revision as of 20:32, 12 December 2013

LUA Functions: IsHeroic()

Returns a true/false if a spawn is heroic.

Syntax

IsHeroic(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to check


Usage

function hailed(NPC, Spawn)
    if IsHeroic(Spawn) then
        Say(NPC, "I'm heroic!")
    end
end

When this npc is hailed it will say, "I'm heroic!", if it is indeed heroic.