Home
Alisson Nunes edited this page Jul 20, 2021
·
3 revisions
Hi, I'm here to let you know all the functions that you can use to create your own Extension.
-
print(any)
: Print (almost) anything in the log (right side). -
loadScript(name)
: Loads an pre-build script. Available: 'help' (this) | 'parse_NewNavigatorSearchResults' -
load(url)
: Loads any URL, I use and recommend Gist, you can use some from here. -
intercept(TOCLIENT, headerIdOrName, handler)
/interceptToClient(headerIdOrName, handler)
: Start intercepting packets from server with the headerId -
intercept(TOSERVER, headerIdOrName, handler)
/interceptToServer(headerIdOrName, handler)
: Start intercepting packets from client with the headerId -
send(TOSERVER, packet)
/sendToServer(packet)
: Send the packet to the server -
send(TOCLIENT, packet)
/sendToClient(packet)
: Send the packet to the client -
HPacket(headerIdOrName, bytesOrObjects, direction)
: Create a packet to be send, is the same as GEarth use, so all it's methods are available. -
getBytes(packet)
: Convert the packet to bytes in hexadecimal, useful while parsing unknown packets.
function handle() {
print('latency test found')
}
interceptToServer(2056, handle) // LatencyTest
var wlk = HPacket(652, [3, 5]) // RoomUserWalk
wlk.toExpression()
sendToServer(wlk)
var wlk = HPacketToServer("RoomUserWalk", [3, 5]) // same as `HPacket("RoomUserWalk", [3, 5], TOSERVER)`
wlk.toExpression()
sendToServer(wlk)