meska

Metrics-Skill-Achievement Framework (MESKA) The hooks setups.

Functions

Escape(str)

View source »

The escaping wrapper.

Parameters

Returns

  • any

    function The escape gateway.

Exec(q, cb)

View source »

The execution wrapper.

Parameters

  • cb func

    Callback Function.

Returns

  • any

    function The query gateway.

Exp(skill)

View source »

Gets player skill exp.

Parameters

Returns

  • any

    number The exp.

Level(skill)

View source »

Gets player skill level.

Parameters

Returns

  • any

    number The level.

dateFromTime(time)

View source »

Converts time to human-readable date.

Parameters

  • time

    The timestamp.

Returns

  • any

    bool Whether result is valid.

hasAchievementsProp(ply)

View source »

Checks if player has achievement prop.

Parameters

  • ply

    Player entity.

Returns

  • any

    [table|false] Achievements table or false.

hasCustombonusProp(ply)

View source »

Checks if player has custombonus prop.

Parameters

  • ply

    Player entity.

Returns

  • any

    [table|false] Custombonus table or false.

hasSkillsProp(ply)

View source »

Checks if player has skill prop.

Parameters

  • ply

    Player entity.

Returns

  • any

    [table|false] Skills table or false.

hasSkillsProp(ply)

View source »

Checks if player has skill prop.

Parameters

  • ply

    Player entity.

Returns

  • any

    [table|false] Skills table or false.

isPlayer(ply)

View source »

Checks for a valid player.

Parameters

  • ply

    Player entity.

Returns

  • any

    bool If the entity is a Player.

memory.alloc()

View source »

Allocates the memory provider.

Returns

  • any

    number provider index.

memory.free(idx)

View source »

Frees the memory provider.

Parameters

  • idx number

    The provider index.

meska.providers.load(gmfolder)

View source »

Loads all MESKA providers.

Parameters

  • gmfolder string

    The gamemode (base) folder.

mysql.load()

View source »

Loads the mysql provider.

Returns

  • any

    number provider index.

mysql.unload(idx)

View source »

Unloads the mysql provider.

Parameters

  • idx number

    The provider index.

saveAll()

View source »

Executes cached database-queries.

tpl.append(key, value)

View source »

The append wrapper.

Parameters

  • value

    The value.

tpl.delete(key)

View source »

The deletion wrapper.

Parameters

tpl.lastIndex()

View source »

Gets the last index.

Returns

  • any

    number The index.

tpl.prepend(key, value)

View source »

The prepend wrapper.

Parameters

  • value

    The value.

tpl.pull(key)

View source »

The query wrapper.

Parameters

Returns

  • any

    any The value.

tpl.put(key, value)

View source »

The insertion wrapper.

Parameters

  • value

    The value.

tpl.putQuery(key, query)

View source »

The insertion wrapper for queries.

Parameters

  • query

    The query.

validResult(result)

View source »

Checks if player has achievement prop.

Parameters

  • result

    The result.

Returns

  • any

    bool Whether the result is valid.

Tables

meska.conf.defaults

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

View source »

Default levels and exp at which the player starts.

Fields

  • [general]

  • maxLvl

meska.conf.guides

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

View source »

Default guides.

Fields

  • [fishing]

  • title

  • version

  • template

  • sectionA

  • text

  • icon

meska.conf.perks

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

View source »

Default perks.

Fields

  • [fishing]

  • text

meska.conf.rods

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file. Fishing Skill config

View source »

Skill specific configuration for:

Fields

  • [cityrp_rod]

  • [rod_steel]

  • [rod_carbon]

meska.conf.skills

Deprecated

This function is deprecated and may be removed in a future version.

This will be moved to a separate skill-file.

View source »

[skill] = { [type] = { lvl, exp, ... } } The exp is being used to calculate players skill exp, and level based on dailybonus and percentage of skill level

Fields

  • [general]

  • exp

  • highlight

  • requirements

Fields

memory.load

View source »

Loads the memory provider. Wrapper function for memory.alloc.

memory.unload

View source »

Unloads the memory provider. Wrapper function for memory.free.

tpl.escapeGateway

View source »

The escape gateway.

tpl.queryGateway

View source »

The query gateway.