MooMoo.io Packet Code

Packet code for moomoo.io

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyfork.org/scripts/478839/1472141/MooMooio%20Packet%20Code.js

// ==UserScript==
// @name         MooMoo.io Packet Code
// @description  Packet code for moomoo.io
// @author       KOOKY WARRIOR
// @version      1.3
// @license      MIT
// ==/UserScript==

const PACKETCODE = {
	SEND: {
		aJoinReq: "P",
		kickFromClan: "Q",
		sendJoin: "b",
		createAlliance: "L",
		leaveAlliance: "N",
		storeEquipOrBuy: "c",
		sendChat: "6",
		resetMoveDir: "e",
		sendAtckState: "F",
		sendMoveDir: "f",
		sendLockDirOrAutoGather: "K",
		sendMapPing: "S",
		selectToBuild: "z",
		enterGame: "M",
		sendUpgrade: "H",
		sendDir: "D",
		pingSocket: "0"
	},
	RECEIVE: {
		setInitData: "A",
		disconnect: "B",
		setupGame: "C",
		addPlayer: "D",
		removePlayer: "E",
		updatePlayers: "a",
		updateLeaderboard: "G",
		loadGameObject: "H",
		loadAI: "I",
		animateAI: "J",
		gatherAnimation: "K",
		wiggleGameObject: "L",
		shootTurret: "M",
		updatePlayerValue: "N",
		updateHealth: "O",
		killPlayer: "P",
		killObject: "Q",
		killObjects: "R",
		updateItemCounts: "S",
		updateAge: "T",
		updateUpgrades: "U",
		updateItems: "V",
		addProjectile: "X",
		remProjectile: "Y",
		serverShutdownNotice: "Z",
		addAlliance: "g",
		deleteAlliance: "1",
		allianceNotification: "2",
		setPlayerTeam: "3",
		setAlliancePlayers: "4",
		updateStoreItems: "5",
		receiveChat: "6",
		updateMinimap: "7",
		showText: "8",
		pingMap: "9",
		pingSocketResponse: "0"
	}
}

const OLDPACKETCODE = {
	SEND: {
		11: PACKETCODE.SEND.aJoinReq,
		12: PACKETCODE.SEND.kickFromClan,
		10: PACKETCODE.SEND.sendJoin,
		8: PACKETCODE.SEND.createAlliance,
		9: PACKETCODE.SEND.leaveAlliance,
		"13c": PACKETCODE.SEND.storeEquipOrBuy,
		ch: PACKETCODE.SEND.sendChat,
		rmd: PACKETCODE.SEND.resetMoveDir,
		c: PACKETCODE.SEND.sendAtckState,
		33: PACKETCODE.SEND.sendMoveDir,
		7: PACKETCODE.SEND.sendLockDirOrAutoGather,
		14: PACKETCODE.SEND.sendMapPing,
		5: PACKETCODE.SEND.selectToBuild,
		sp: PACKETCODE.SEND.enterGame,
		6: PACKETCODE.SEND.sendUpgrade,
		2: PACKETCODE.SEND.sendDir,
		pp: PACKETCODE.SEND.pingSocket
	},
	RECEIVE: {
		id: PACKETCODE.RECEIVE.setInitData,
		d: PACKETCODE.RECEIVE.disconnect,
		1: PACKETCODE.RECEIVE.setupGame,
		2: PACKETCODE.RECEIVE.addPlayer,
		4: PACKETCODE.RECEIVE.removePlayer,
		33: PACKETCODE.RECEIVE.updatePlayers,
		5: PACKETCODE.RECEIVE.updateLeaderboard,
		6: PACKETCODE.RECEIVE.loadGameObject,
		a: PACKETCODE.RECEIVE.loadAI,
		aa: PACKETCODE.RECEIVE.animateAI,
		7: PACKETCODE.RECEIVE.gatherAnimation,
		8: PACKETCODE.RECEIVE.wiggleGameObject,
		sp: PACKETCODE.RECEIVE.shootTurret,
		9: PACKETCODE.RECEIVE.updatePlayerValue,
		h: PACKETCODE.RECEIVE.updateHealth,
		11: PACKETCODE.RECEIVE.killPlayer,
		12: PACKETCODE.RECEIVE.killObject,
		13: PACKETCODE.RECEIVE.killObjects,
		14: PACKETCODE.RECEIVE.updateItemCounts,
		15: PACKETCODE.RECEIVE.updateAge,
		16: PACKETCODE.RECEIVE.updateUpgrades,
		17: PACKETCODE.RECEIVE.updateItems,
		18: PACKETCODE.RECEIVE.addProjectile,
		19: PACKETCODE.RECEIVE.remProjectile,
		20: PACKETCODE.RECEIVE.serverShutdownNotice,
		ac: PACKETCODE.RECEIVE.addAlliance,
		ad: PACKETCODE.RECEIVE.deleteAlliance,
		an: PACKETCODE.RECEIVE.allianceNotification,
		st: PACKETCODE.RECEIVE.setPlayerTeam,
		sa: PACKETCODE.RECEIVE.setAlliancePlayers,
		us: PACKETCODE.RECEIVE.updateStoreItems,
		ch: PACKETCODE.RECEIVE.receiveChat,
		mm: PACKETCODE.RECEIVE.updateMinimap,
		t: PACKETCODE.RECEIVE.showText,
		p: PACKETCODE.RECEIVE.pingMap,
		pp: PACKETCODE.RECEIVE.pingSocketResponse
	}
}