Chat
client:say(msg)
| Field | Type |
|---|---|
| Signature | (self: Client, msg: string) → string? |
| Returns | string? — nil kalau sukses |
| Common errors | Errors.NOT_IN_WORLD, Errors.DISCONNECTED |
| Async | yes |
client:setStatus(icon)
| Field | Type |
|---|---|
| Signature | (self: Client, icon: number) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
Lewatkan konstanta StatusIconType.*.
client:setStatus(StatusIconType.typing)
client:say("halo!")
client:setStatus(StatusIconType.none)
Nilai StatusIconType:
StatusIconType.none
StatusIconType.menu
StatusIconType.typing
StatusIconType.trading
StatusIconType.card
Presence / animasi lain
client:setIsVisible(show)
| Field | Type |
|---|---|
| Signature | (self: Client, show: boolean) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
Toggle visibility lokasi.
client:setIsOnline(show)
| Field | Type |
|---|---|
| Signature | (self: Client, show: boolean) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
Toggle status akun online.
client:setFaceAnimation(animId)
| Field | Type |
|---|---|
| Signature | (self: Client, animId: number) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
client:respawn()
| Field | Type |
|---|---|
| Signature | (self: Client) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
client:enter()
| Field | Type |
|---|---|
| Signature | (self: Client) → string? |
| Returns | string? — nil kalau sukses |
| Async | yes |
Masuk lewat portal apapun yang lagi diinjak.
client:setIsVisible(true)
client:setIsOnline(true)
client:setFaceAnimation(animId)
client:respawn()
client:enter()