GetMyself

Function:

 * table getMyself

Parameters:

 * none

Return value:

 * This function return a table containing informations about the player. Returns table witch contains such informations:


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

Description:

 * This function can be used to get data about the player. Function returns a table with informations about the player.