GetBattlelist

Function:

 * table getBattlelist

Parameters:

 * none

Return value:

 * This function return a table containing informations about all creatures visible on the screen. For each creature there is an information about:


 * .id - creature id
 * .index - at witch position on the battlelist (from the top, starting from 0) the creature is
 * .name - name of the creature
 * .x - }
 * .y - } position of the creature (x,y,z)
 * .z - }
 * .offsetHorizontal - (advanced) value in pixels indicating how many pixels creature is from center of the tile in X Asis (only if creature is moving).
 * .offsetVertical - (advanced) value in pixels indicating how many pixels creature is from center of the tile in Y Asis (only if creature is moving).
 * .isWalking - is the creature walking at the moment? (true/false)
 * .direction - witch direction creature faces (possible: 0,1,2,3)
 * .outfit - ID of the creature outfit
 * .colorHead - }
 * .colorBody - } Color of parts of the creature's outfit (possible: 0-255)
 * .colorLegs - }
 * .colorFeet - }
 * .addon - witch addons the creature have (possible: 0,1,2,3)
 * .mount - ID of the creature's current mount (0 == no mount)
 * .hppc - Percentage value of creature's health points (possible: 1-100)
 * .speed - Number value of creature's speed
 * .skull - Number value indicating what type of skull creature have (0 == no skull)
 * .party - Number value indicating if the creature is in party, and what role in party it plays (0 == no party)
 * .warIcon - Number value indicating if the creature have a war icon and of witch type (0 == no icon)
 * .isBlocking - is this creature blocking path (player can't move through)? (true/false)
 * .isSummon - is this creature a summon? (true/false)
 * .isPlayer - is this creature a player? (true/false)
 * .isNPC - is this creature a NPC? (true/false)
 * .isMonster - is this creature a monster (non-summon)? (true/false)
 * .blackSquare - is there black square around this creature (do this creature attacks You at the moment)? (true/false)

Description:

 * This function can be used to get data about every creature visible on battlelist. Function returns a table, where all creatures are also tables placed in order of position on the battlelist.

Example usages: