ISXWoW:activeplayer (Data Type)

From ISMods Wiki

Object Type Vitals
activeplayer
Defined By ISXWoW
Inherits player
Reduces To object.Name
Variable Object Type none
Uses Sub-Types no
C/C++ Type CGActivePlayer_C *

Contents

Description

Members

Returns whether you are currently autoattacking.

echo Am I attacking? ${Me.Attacking}
Returns a container object that corresponds to the given bag. 0 is for main backpack or 1-4 for other bags

Returns the percentage chance you have to block a melee attack from an equal level NPC or player.

Returns whether you currently casting a spell.

echo Am I casting a spell like Harry Potter? ${Me.Casting}

Returns the amount of copper you have on your character.

echo You have ${Math.Calc[${Me.Coinage}/10000]} gold.
Returns the location of you corpse
${Me.Corpse.X}, ${Me.Corpse.Y}, ${Me.Corpse.Z}

Returns the percentage chance you have to get a critical melee hit against an equal level NPC or player.

echo ${If[${Math.Rand[100]}<=${Me.CritPct},You would have crit,Try again later]}
  • int CurrentHPs

Returns your current HP total taking into account damage you have taken.

Returns the percentage chance you have to dodge a melee attack from an equal level NPC or player.

  • int EmptyInventorySlots
Returns the number of Inventory slots you have empty.
  • item Equip[item slot name]

Returns an item object that corresponds to the item you have in the slot.

Slot Names
head
neck
shoulders
shirt
chest
waist
legs
feet
wrists
hands
finger1
finger2
trinket1
trinket2
back
mainhand
offhand
ranged
tabard

Returns the current amount of exp you have in the current level.

echo You need ${Math.Calc[${Me.NextLevelExp} - ${Me.Exp}]} more experience to level.
  • int FilledInventorySlots
Returns the number of Inventory slots you have filled.

Returns the direction your character is facing in degrees from 0 where 0 is North, 90 is East, 180 is South, and 270 is West.

Returns the heading you must face or travel to reach a certain location. For instance, if you were facing north at 0,0 and did Heading To 0,10 it would return 90 meaning you would need to turn 90 degrees right to reach the destination of 0,10.

Returns whether you are on a hate list.

echo Am I hated? ${Me.InCombat}
 Note: There is a small amount of lag with this so it may return true if you have just finished combat and do not actually have any other aggro.

Returns your current HP maximum taking into account buffs and items.

  • int NextLevelExp

Returns the total amount of exp you need for your next level.

Returns the percentage chance you have to parry a melee attack from an equal level NPC or player.

Returns a quest object

Returns the amount of experience left that you will continue to gain 200% exp.

echo ${Math.Calc[(${Me.RestExp} / (${Me.NextLevelExp} - ${Me.Exp})) * 100]}% of your needed
exp for this level will be gained at 200% normal rate.
(Could be higher than 100%)

Returns whether you are sitting or not sitting.

  • int Skill[ID]
  • int Talent[name]
  • int Skill[name]
  • int TotalInventorySlots
Returns the total number of Inventory slots you have available.
  • bool WillCollide[x,y,radius]

Returns true if at the current heading you will pass within 'radius' of the point specified by 'x','y'

  • bool WillCollide[degrees,x,y,radius]

Returns true if at the given heading you will pass within 'radius' of the point specified by 'x','y'

Methods


See Also