Skip to content

Emulator

Keramat Jokar edited this page May 13, 2024 · 1 revision

Get the emulator instance

$realm = $this->realms->getRealm(ID);

$emulator = $realm->getEmulator();

[String] getTable($name)

Get the name of a table

String $name

[String] getColumn($table, $name)

Get the name of a column

String $table

String $name

[String] getAllColumns($table, $name)

Get a set of all columns

$table

String $name

[String] getQuery($name)

Get a pre-defined query

String $name

encrypt($username, $password)

Password encryption

$username

$password

[Array] getExpansions()

Expansion getter

[String] getExpansionName($id)

Get the name of an expansion by the id

Int $id

[Int] getExpansionId($name)

Get the name of an expansion by the name

String $name

sendCommand($command)

Send console command

String $command

[Boolean] hasConsole()

Whether or not console actions are enabled for this emulator

[Boolean] hasStats()

Whether or not character stats are logged in the database

sendItems($character, $subject, $body, $items)

Send items via ingame mail to a specific character

String $character

String $subject

String $body

Array $items

[Array] send($command, $items, $body, $subject, $character)

Send mail via ingame mail to a specific character

String $command

Array $items

String $body

String $subject

String $character

sendMail($character, $subject, $body)

Send mail via ingame mail to a specific character

String $character

String $subject

String $body

telnetReadOutput()

telnetOpen($ip, $port)

$ip

$port

telnetLogin($username, $password)

$username

$password

telnetWrite($string)

$string

telnetSleep()