Game Client
getClient() ngembaliin handle bot yang dipakai skrip. Dari skrip, parent client itu implisit (getClient() tanpa argumen), tapi kamu juga bisa fetch bot lain berdasarkan id, email, atau device id.
local client = getClient() -- bot parent skrip
local target = getClient("57ce9585c26da4fe...") -- by device id
Method yang nyentuh server biasanya ngembaliin string? — nil kalau sukses, atau salah satu kode Errors.* kalau gagal. Method yang mengembalikan nilai tetap ngirim value-nya sebagai bagian pertama dari tuple (value, err).
Topik
- Koneksi — connect, disconnect, status, ping, subserver, field akun
- Chat — say, status icon, presence, animasi
- Gerakan — setPoint/setPosition, pathfinding, lokasi
- Dunia — warp, lookup dunia, query
- Interaksi tile — hit, place, plant, hitEnemy
- Inventory — drop, trash, wear, collectable, gift box, item pack
- Presence & fisika — kamera, gravity
- Quest — daily gift, achievement, quest
- Paket — raw send/on, instance child
- Errors — referensi kode error
Buat driver tutorial + query state, lihat halaman Tutorial.