Packet names changed
This commit is contained in:
1 parent
d6ddc1dd6c
commit
22587cdb5a
4 files changed
+360
-359
No files matched your search
@@ -70,7 +70,7 @@ public class Component {
|
||||
|
||||
if (c.type == 0) {
|
||||
c.scrollableHeight = in.read16U();
|
||||
c.hidden = in.read8U() == 1;
|
||||
c.hide = in.read8U() == 1;
|
||||
int childCount = in.read16U();
|
||||
c.children = new int[childCount];
|
||||
c.childX = new int[childCount];
|
||||
@@ -287,7 +287,7 @@ public class Component {
|
||||
* Hides this component. Only works for parent components by default.
|
||||
* @see Game#drawParentComponent(Component, int, int, int)
|
||||
*/
|
||||
public boolean hidden;
|
||||
public boolean hide;
|
||||
public int hoverColor;
|
||||
public int id;
|
||||
public Image24 image;
|
||||
@@ -314,7 +314,7 @@ public class Component {
|
||||
public int[] scriptOperand;
|
||||
public int[][] scripts;
|
||||
public int scrollableHeight;
|
||||
public int scrollPosition;
|
||||
public int scrollPos;
|
||||
public int seqCycle;
|
||||
public int seqFrame;
|
||||
public int seqID;
|
||||
|
||||
+250
-250
File diff suppressed because it is too large.
Load diff
@@ -5,7 +5,7 @@
|
||||
public class ObjEntity extends Entity {
|
||||
|
||||
public int id;
|
||||
public int amount;
|
||||
public int count;
|
||||
|
||||
public ObjEntity() {
|
||||
}
|
||||
@@ -13,7 +13,7 @@ public class ObjEntity extends Entity {
|
||||
@Override
|
||||
public Model getModel() {
|
||||
ObjType type = ObjType.get(id);
|
||||
return type.getModel(amount);
|
||||
return type.getModel(count);
|
||||
}
|
||||
|
||||
}
|
||||
+105
-104
@@ -1,148 +1,149 @@
|
||||
public final class PacketIn {
|
||||
|
||||
// Names based on https://www.rune-server.ee/runescape-development/rs-503-client-and-server/informative-threads/622541-great-nxt-beta-dump-thread.html
|
||||
public static final int[] SIZE = new int[256];
|
||||
|
||||
public static final int CAMERA_DISABLE_CINEMATIC = 107;
|
||||
public static final int CAMERA_EFFECT = 35;
|
||||
public static final int CAMERA_LOOK_AT = 177;
|
||||
public static final int CAMERA_POSITION = 166;
|
||||
public static final int CAM_LOOKAT = 177;
|
||||
public static final int CAM_RESET = 107;
|
||||
public static final int CAM_SETPOS = 166;
|
||||
public static final int CAM_SHAKE = 35;
|
||||
public static final int CHAT_COMPONENT = 164;
|
||||
public static final int CHAT_COMPONENT_STICKY = 218;
|
||||
public static final int CHAT_MESSAGE = 196;
|
||||
public static final int CLEAR_COMPONENTS = 219;
|
||||
public static final int CLEAR_MINIMAP_FLAG = 78;
|
||||
public static final int COMPONENT_COLOR = 122;
|
||||
public static final int COMPONENT_HIDDEN = 171;
|
||||
public static final int COMPONENT_MODEL = 8;
|
||||
public static final int COMPONENT_MODEL_NPC = 75;
|
||||
public static final int COMPONENT_MODEL_OBJ = 246;
|
||||
public static final int COMPONENT_MODEL_PLAYER = 185;
|
||||
public static final int COMPONENT_MODEL_ROTATION = 230;
|
||||
public static final int COMPONENT_POSITION = 70;
|
||||
public static final int COMPONENT_RESET_SEQ = 142;
|
||||
public static final int COMPONENT_SCROLL_Y = 79;
|
||||
public static final int COMPONENT_SEQ = 200;
|
||||
public static final int COMPONENT_TEXT = 126;
|
||||
public static final int DISCONNECT = 109;
|
||||
public static final int ENERGY = 110;
|
||||
public static final int FRIENDSERVER_STATUS = 221;
|
||||
public static final int CHAT_FILTER_SETTINGS = 206;
|
||||
public static final int CLEAR_MAP_FLAG = 78;
|
||||
public static final int FRIENDLIST_LOADED = 221;
|
||||
public static final int FRIEND_STATUS = 50;
|
||||
public static final int HINT = 254;
|
||||
public static final int HINT_ARROW = 254;
|
||||
public static final int IF_CLOSE = 219;
|
||||
public static final int IF_SETANGLE = 230;
|
||||
public static final int IF_SETANIM = 200;
|
||||
public static final int IF_SETCOLOR = 122;
|
||||
public static final int IF_SETHIDE = 171;
|
||||
public static final int IF_SETMODEL = 8;
|
||||
public static final int IF_SETNPCHEAD = 75;
|
||||
public static final int IF_SETOBJECT = 246;
|
||||
public static final int IF_SETPLAYERHEAD = 185;
|
||||
public static final int IF_SETPOSITION = 70;
|
||||
public static final int IF_SETSCROLLPOS = 79;
|
||||
public static final int IF_SETTEXT = 126;
|
||||
public static final int IF_STOPANIM = 142;
|
||||
public static final int IF_VIEWPORT = 97;
|
||||
public static final int IF_VIEWPORT_AND_SIDEBAR = 248;
|
||||
public static final int IF_VIEWPORT_OVERLAY = 208;
|
||||
public static final int IGNORE_LIST = 214;
|
||||
public static final int INPUT_AMOUNT = 27;
|
||||
public static final int INPUT_NAME = 187;
|
||||
public static final int INVENTORY = 53;
|
||||
public static final int INVENTORY_CLEAR = 72;
|
||||
public static final int INVENTORY_UPDATE = 34;
|
||||
public static final int JINGLE = 121;
|
||||
public static final int INV_CLEAR = 72;
|
||||
public static final int LAST_LOGIN_INFO = 176;
|
||||
public static final int LOCAL_PLAYER = 249;
|
||||
public static final int LOC_PLACE = 151;
|
||||
public static final int LOC_REMOVE = 101;
|
||||
public static final int LOC_UPDATE = 160;
|
||||
public static final int LOGIN_INFO = 176;
|
||||
public static final int MESSAGE = 253;
|
||||
public static final int MINIMAP_STATE = 99;
|
||||
public static final int LOC_ADD = 151;
|
||||
public static final int LOC_CHANGE = 160;
|
||||
public static final int LOC_DEL = 101;
|
||||
public static final int LOGOUT = 109;
|
||||
public static final int MESSAGE_GAME = 253;
|
||||
public static final int MESSAGE_PUBLIC = 196;
|
||||
public static final int MIDI_JINGLE = 121;
|
||||
public static final int MIDI_SONG = 74;
|
||||
public static final int MINIMAP_TOGGLE = 99;
|
||||
public static final int MULTIZONE = 61;
|
||||
public static final int OBJ_PLACE = 44;
|
||||
public static final int OBJ_REMOVE = 156;
|
||||
public static final int OBJ_ADD = 44;
|
||||
public static final int OBJ_COUNT = 84;
|
||||
public static final int OBJ_DEL = 156;
|
||||
public static final int OBJ_REVEAL = 215;
|
||||
public static final int OBJ_UPDATE = 84;
|
||||
public static final int PLAYER_LOC = 147;
|
||||
public static final int PLAYER_OPTION = 104;
|
||||
public static final int PRIVACY_SETTINGS = 206;
|
||||
public static final int PROJECTILE = 117;
|
||||
public static final int RESTORE_VARPS = 68;
|
||||
public static final int SCENE_LOAD = 73;
|
||||
public static final int SCENE_LOAD_INSTANCED = 241;
|
||||
public static final int SCENE_RESET_SEQ = 1;
|
||||
public static final int SKILL = 134;
|
||||
public static final int SONG = 74;
|
||||
public static final int SOUND = 174;
|
||||
public static final int SPATIAL_SOUND = 105;
|
||||
public static final int SPOTANIM = 4;
|
||||
public static final int MAP_PROJANIM = 117;
|
||||
public static final int REBUILD_REGION = 73;
|
||||
public static final int REBUILD_REGION_INSTANCE = 241;
|
||||
public static final int RESET_ANIMS = 1;
|
||||
public static final int RESET_CLIENT_VARCACHE = 68;
|
||||
public static final int SET_PLAYER_OP = 104;
|
||||
public static final int SOUND_AREA = 105;
|
||||
public static final int MAP_ANIM = 4;
|
||||
public static final int SYNC_NPCS = 65;
|
||||
public static final int SYNC_PLAYERS = 81;
|
||||
public static final int SYSTEM_UPDATE = 114;
|
||||
public static final int SYNTH_SOUND = 174;
|
||||
public static final int TAB_COMPONENT = 71;
|
||||
public static final int TAB_HINT = 24;
|
||||
public static final int TAB_SELECTED = 106;
|
||||
public static final int VARP_BYTE = 36;
|
||||
public static final int VARP_INT = 87;
|
||||
public static final int VIEWPORT_AND_SIDEBAR_COMPONENTS = 248;
|
||||
public static final int VIEWPORT_COMPONENT = 97;
|
||||
public static final int VIEWPORT_OVERLAY_COMPONENT = 208;
|
||||
public static final int WEIGHT = 240;
|
||||
public static final int UPDATE_INV_FULL = 53;
|
||||
public static final int UPDATE_INV_PARTIAL = 34;
|
||||
public static final int UPDATE_REBOOT_TIMER = 114;
|
||||
public static final int UPDATE_RUNENERGY = 110;
|
||||
public static final int UPDATE_RUNWEIGHT = 240;
|
||||
public static final int UPDATE_STAT = 134;
|
||||
public static final int VARP_LARGE = 87;
|
||||
public static final int VARP_SMALL = 36;
|
||||
public static final int ZONE_BASE = 85;
|
||||
public static final int ZONE_CLEAR = 64;
|
||||
public static final int ZONE_UPDATE = 60;
|
||||
|
||||
static {
|
||||
SIZE[SPOTANIM] = 6;
|
||||
SIZE[COMPONENT_MODEL] = 4;
|
||||
SIZE[MAP_ANIM] = 6;
|
||||
SIZE[IF_SETMODEL] = 4;
|
||||
SIZE[TAB_HINT] = 1;
|
||||
SIZE[INVENTORY_UPDATE] = -2;
|
||||
SIZE[CAMERA_EFFECT] = 4;
|
||||
SIZE[VARP_BYTE] = 3;
|
||||
SIZE[OBJ_PLACE] = 5;
|
||||
SIZE[UPDATE_INV_PARTIAL] = -2;
|
||||
SIZE[CAM_SHAKE] = 4;
|
||||
SIZE[VARP_SMALL] = 3;
|
||||
SIZE[OBJ_ADD] = 5;
|
||||
SIZE[47] = 6;
|
||||
SIZE[FRIEND_STATUS] = 9;
|
||||
SIZE[INVENTORY] = -2;
|
||||
SIZE[UPDATE_INV_FULL] = -2;
|
||||
SIZE[ZONE_UPDATE] = -2;
|
||||
SIZE[MULTIZONE] = 1;
|
||||
SIZE[ZONE_CLEAR] = 2;
|
||||
SIZE[SYNC_NPCS] = -2;
|
||||
SIZE[COMPONENT_POSITION] = 6;
|
||||
SIZE[IF_SETPOSITION] = 6;
|
||||
SIZE[TAB_COMPONENT] = 3;
|
||||
SIZE[INVENTORY_CLEAR] = 2;
|
||||
SIZE[SCENE_LOAD] = 4;
|
||||
SIZE[SONG] = 2;
|
||||
SIZE[COMPONENT_MODEL_NPC] = 4;
|
||||
SIZE[COMPONENT_SCROLL_Y] = 4;
|
||||
SIZE[INV_CLEAR] = 2;
|
||||
SIZE[REBUILD_REGION] = 4;
|
||||
SIZE[MIDI_SONG] = 2;
|
||||
SIZE[IF_SETNPCHEAD] = 4;
|
||||
SIZE[IF_SETSCROLLPOS] = 4;
|
||||
SIZE[SYNC_PLAYERS] = -2;
|
||||
SIZE[OBJ_UPDATE] = 7;
|
||||
SIZE[OBJ_COUNT] = 7;
|
||||
SIZE[ZONE_BASE] = 2;
|
||||
SIZE[VARP_INT] = 6;
|
||||
SIZE[VIEWPORT_COMPONENT] = 2;
|
||||
SIZE[MINIMAP_STATE] = 1;
|
||||
SIZE[LOC_REMOVE] = 2;
|
||||
SIZE[PLAYER_OPTION] = -1;
|
||||
SIZE[SPATIAL_SOUND] = 4;
|
||||
SIZE[VARP_LARGE] = 6;
|
||||
SIZE[IF_VIEWPORT] = 2;
|
||||
SIZE[MINIMAP_TOGGLE] = 1;
|
||||
SIZE[LOC_DEL] = 2;
|
||||
SIZE[SET_PLAYER_OP] = -1;
|
||||
SIZE[SOUND_AREA] = 4;
|
||||
SIZE[TAB_SELECTED] = 1;
|
||||
SIZE[ENERGY] = 1;
|
||||
SIZE[SYSTEM_UPDATE] = 2;
|
||||
SIZE[PROJECTILE] = 15;
|
||||
SIZE[JINGLE] = 4;
|
||||
SIZE[COMPONENT_COLOR] = 4;
|
||||
SIZE[COMPONENT_TEXT] = -2;
|
||||
SIZE[SKILL] = 6;
|
||||
SIZE[COMPONENT_RESET_SEQ] = 2;
|
||||
SIZE[UPDATE_RUNENERGY] = 1;
|
||||
SIZE[UPDATE_REBOOT_TIMER] = 2;
|
||||
SIZE[MAP_PROJANIM] = 15;
|
||||
SIZE[MIDI_JINGLE] = 4;
|
||||
SIZE[IF_SETCOLOR] = 4;
|
||||
SIZE[IF_SETTEXT] = -2;
|
||||
SIZE[UPDATE_STAT] = 6;
|
||||
SIZE[IF_STOPANIM] = 2;
|
||||
SIZE[PLAYER_LOC] = 14;
|
||||
SIZE[LOC_PLACE] = 4;
|
||||
SIZE[OBJ_REMOVE] = 3;
|
||||
SIZE[LOC_UPDATE] = 4;
|
||||
SIZE[LOC_ADD] = 4;
|
||||
SIZE[OBJ_DEL] = 3;
|
||||
SIZE[LOC_CHANGE] = 4;
|
||||
SIZE[CHAT_COMPONENT] = 2;
|
||||
SIZE[CAMERA_POSITION] = 6;
|
||||
SIZE[COMPONENT_HIDDEN] = 3;
|
||||
SIZE[SOUND] = 5;
|
||||
SIZE[LOGIN_INFO] = 10;
|
||||
SIZE[CAMERA_LOOK_AT] = 6;
|
||||
SIZE[COMPONENT_MODEL_PLAYER] = 2;
|
||||
SIZE[CHAT_MESSAGE] = -1;
|
||||
SIZE[COMPONENT_SEQ] = 4;
|
||||
SIZE[PRIVACY_SETTINGS] = 3;
|
||||
SIZE[VIEWPORT_OVERLAY_COMPONENT] = 2;
|
||||
SIZE[CAM_SETPOS] = 6;
|
||||
SIZE[IF_SETHIDE] = 3;
|
||||
SIZE[SYNTH_SOUND] = 5;
|
||||
SIZE[LAST_LOGIN_INFO] = 10;
|
||||
SIZE[CAM_LOOKAT] = 6;
|
||||
SIZE[IF_SETPLAYERHEAD] = 2;
|
||||
SIZE[MESSAGE_PUBLIC] = -1;
|
||||
SIZE[IF_SETANIM] = 4;
|
||||
SIZE[CHAT_FILTER_SETTINGS] = 3;
|
||||
SIZE[IF_VIEWPORT_OVERLAY] = 2;
|
||||
SIZE[IGNORE_LIST] = -2;
|
||||
SIZE[OBJ_REVEAL] = 7;
|
||||
SIZE[CHAT_COMPONENT_STICKY] = 2;
|
||||
SIZE[FRIENDSERVER_STATUS] = 1;
|
||||
SIZE[COMPONENT_MODEL_ROTATION] = 8;
|
||||
SIZE[WEIGHT] = 2;
|
||||
SIZE[SCENE_LOAD_INSTANCED] = -2;
|
||||
SIZE[COMPONENT_MODEL_OBJ] = 6;
|
||||
SIZE[VIEWPORT_AND_SIDEBAR_COMPONENTS] = 4;
|
||||
SIZE[FRIENDLIST_LOADED] = 1;
|
||||
SIZE[IF_SETANGLE] = 8;
|
||||
SIZE[UPDATE_RUNWEIGHT] = 2;
|
||||
SIZE[REBUILD_REGION_INSTANCE] = -2;
|
||||
SIZE[IF_SETOBJECT] = 6;
|
||||
SIZE[IF_VIEWPORT_AND_SIDEBAR] = 4;
|
||||
SIZE[LOCAL_PLAYER] = 3;
|
||||
SIZE[MESSAGE] = -1;
|
||||
SIZE[HINT] = 6;
|
||||
SIZE[MESSAGE_GAME] = -1;
|
||||
SIZE[HINT_ARROW] = 6;
|
||||
}
|
||||
|
||||
private PacketIn() {
|
||||
|
||||
Reference in new issue
Block a user