diff --git a/EquipmentManager.xml b/EquipmentManager.xml index 2c5d657..9c443ba 100644 --- a/EquipmentManager.xml +++ b/EquipmentManager.xml @@ -163,14 +163,23 @@ function Character.New() return player end function Character:Level() + if not checkGMCPValue("char.status.level") then + Send_GMCP_Packet("request char") + end dnote(("%s Character:Level() returns: %d"):format(Prepend, tonumber(checkGMCPValue("char.status.level")))) return tonumber(checkGMCPValue("char.status.level")) end function Character:TierLevel() + if not checkGMCPValue("char.base.tier") then + Send_GMCP_Packet("request char") + end dnote(("%s Character:TierLevel() returns: %d"):format(Prepend, (tonumber(checkGMCPValue("char.base.tier"))*10))) return (tonumber(checkGMCPValue("char.base.tier"))*10) end function Character:EffectiveLevel() + if not checkGMCPValue("char") then + Send_GMCP_Packet("request char") + end dnote(("%s Character:EffectiveLevel() returns: %d"):format(Prepend, (self:Level()+self:TierLevel()))) return (self:Level() + self:TierLevel()) end