\Rune_Craft

Owned rune craft item.

Represents an object from the table 'rune_craft'.

Summary

Methods
Properties
Constants
__construct()
$db
$uid
$id
$quality
$quality_name
$rune
$stat
$stat_name
$gem
$ancient
$inmemorial
$name
$min
$max
$value
No constants found
No protected methods found
No protected properties found
N/A
stat_name()
quality_name()
No private properties found
N/A

Properties

$db

$db : resource

Type

resource — Database connection.

$uid

$uid : integer

Type

integer — Owner identifier.

$id

$id : integer

Type

integer — Item identifier.

$quality

$quality : integer

Type

integer — Item quality.

$quality_name

$quality_name : string

Type

string — Item quality name.

$rune

$rune : \K_Rune_Set

Type

\K_Rune_Set — Rune set the item can be used on.

$stat

$stat : integer

Type

integer — Stat the item modifies.

$stat_name

$stat_name : string

Type

string — Stat name.

$gem

$gem : boolean

Type

boolean — Indicates if the Item is a gem.

$ancient

$ancient : boolean

Type

boolean — Indicates if the Item is ancient.

$inmemorial

$inmemorial : boolean

Type

boolean — Indicates if the Item is inmemorial.

$name

$name : string

Type

string — Item name.

$min

$min : integer

Type

integer — Minimum value of the stat.

$max

$max : integer

Type

integer — Maximum value of the stat.

$value

$value : integer

Type

integer — Sell value.

Methods

__construct()

__construct(resource  $db, integer  $id) 

Constructor.

Searches the database and retrieves the information about the rune, populating it and it's items.

Parameters

resource $db

Connection to the database.

integer $id

Rune id.

stat_name()

stat_name(integer  $stat) : string

Gets a stat name from the maps.

Parameters

integer $stat

Stat id.

Returns

string —

Stat name (Uppercase)

quality_name()

quality_name(integer  $q) : string

Gets a stat name from the maps.

Parameters

integer $q

Quality id.

Returns

string —

Quality (Uppercase)