Difference between revisions of "API EJ GetCreatureInfo"

From Wowpedia
Jump to: navigation, search
m (→‎Arguments: forgot to change the argument)
m
Line 1: Line 1:
  +
<br>{{framexmlfunc|Blizzard_EncounterJournal/Blizzard_EncounterJournal.lua|http://wow.go-hero.net/framexml/14809/}} __NOTOC__
{{wowapi}} __NOTOC__
 
  +
  +
 
Returns Boss / Creature info
 
Returns Boss / Creature info
 
id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo(creatureIndex[, encounterID])
 
id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo(creatureIndex[, encounterID])

Revision as of 19:57, 14 October 2011


These functions are implemented by FrameXML in FrameXML/Blizzard_EncounterJournal/Blizzard_EncounterJournal.lua and FrameXML/http://wow.go-hero.net/framexml/14809/.


Returns Boss / Creature info

id, name, description, displayInfo, iconImage = EJ_GetCreatureInfo(creatureIndex[, encounterID])

Arguments

creatureIndex 
Number - Creature Index (1 - 6). Encounters mostly have a single "Creature", but can support up to 6 Creatures
encounterID 
Number - Encounter ID. If omitted, this will default to the Encounter ID of the currently viewed Encounter
File:EJ GetCreatureInfo 01.png
Creature Name & Creature Description
Encounter Icon

Returns

id 
Number - Creature ID
name 
String - Creature Name
description 
String - Creature Description
displayInfo 
Number - Creature Model ID
iconImage 
String - Encounter Icon. All Creatures from the same Encounter ID share the same Encounter Icon

Example

Murozond (1 Creature)

/dump EJ_GetCreatureInfo(1, 289)
=> 827, "Murozond", "The Lord of the Infinite", 38931, "INTERFACE\ENCOUNTERJOURNAL\UI-EJ-BOSS-MUROZOND.BLP"

Mannoroth and Varo'then (2 Creatures)

/dump EJ_GetCreatureInfo(1, 292)
=> 913, "Mannoroth", "", 38996, "INTERFACE\ENCOUNTERJOURNAL\UI-EJ-BOSS-MANNOROTH.BLP"

/dump EJ_GetCreatureInfo(2, 292)
=> 914, "Captain Varo'then", "", 39127, "INTERFACE\ENCOUNTERJOURNAL\UI-EJ-BOSS-MANNOROTH.BLP"

Details

  • FrameXML: Blizzard_EncounterJournal.lua L303, L349