public string getGamertag(int pIndex, JRPC Console) { if (Console.Memory.ReadByte(getPlayerState(pIndex) + 0x5534) != 0) return Console.Memory.ReadString(getPlayerState(pIndex) + 0x5534, 32); return ""; }
private int stat_get_int(string stat) { JRPC.WriteInt32(frmMain.Jtag, 0x83b66454, 0); object[] objArray1 = new object[] { Hash(stat), 0x83b66450, -1 }; JRPC.CallVoid(frmMain.Jtag, 0x82d161f0, objArray1); return(JRPC.ReadInt32(frmMain.Jtag, 0x83b66450)); }
private void SetDate2(string stat) { JRPC.WriteInt32(frmMain.Jtag, 0x83b66454, Convert.ToInt32(numericUpDown18.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b66458, Convert.ToInt32(numericUpDown20.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b6645c, Convert.ToInt32(numericUpDown22.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b66460, Convert.ToInt32(numericUpDown21.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b66464, Convert.ToInt32(numericUpDown19.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b66468, Convert.ToInt32(numericUpDown17.Value)); JRPC.WriteInt32(frmMain.Jtag, 0x83b6646c, Convert.ToInt32(numericUpDown16.Value)); object[] objArray1 = new object[] { Hash(stat), 0x83b66454, 7, 1 }; JRPC.CallVoid(frmMain.Jtag, 0x82d15828, objArray1); }
private t_datestat GetDate(string stat) { object[] objArray1 = new object[] { Hash(stat), 0x83b66454, 7, -1 }; JRPC.CallVoid(frmMain.Jtag, 0x82d164e8, objArray1); _datestat.d1 = JRPC.ReadInt32(frmMain.Jtag, 0x83b66454); _datestat.d2 = JRPC.ReadInt32(frmMain.Jtag, 0x83b66458); _datestat.d3 = JRPC.ReadInt32(frmMain.Jtag, 0x83b6645c); _datestat.d4 = JRPC.ReadInt32(frmMain.Jtag, 0x83b66460); _datestat.d5 = JRPC.ReadInt32(frmMain.Jtag, 0x83b66464); _datestat.d6 = JRPC.ReadInt32(frmMain.Jtag, 0x83b66468); _datestat.d7 = JRPC.ReadInt32(frmMain.Jtag, 0x83b6646c); return(_datestat); }
//Forgot what this is public void Test(JRPC Console) { for (int i = 0; i < 0x10; i++) { Console.Memory.WriteUInt32((uint)(getPlayerState(0) + 0x230 + (i * 0x2F)), 0xFF); Console.Memory.WriteUInt32((uint)(getPlayerState(0) + 0x22C + (i * 0x2F)), 0xFF); } }
public void Visibility(int pIndex, bool Enabled, JRPC Console) { Console.Memory.WriteUInt32(new gEnt().getGentity(pIndex) + 0x11C, 0); if (Enabled) { Console.Memory.AND_Int32(getPlayerState(pIndex) + 0xFC, ~0x20); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Visiblitity: ^2On\"", Console); } else { Console.Memory.OR_UInt32(getPlayerState(pIndex) + 0xFC, 0x20); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Visiblitity: ^1Off\"", Console); } }
public void setSpread(int pIndex, float Spread, JRPC Console) { Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x1E8, Spread); Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 2); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^7" + Spread.ToString() + "\"", Console); }
public void setVelocity(int pIndex, Vec3 Velocity, JRPC Console) { Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x34, Velocity.x); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x38, Velocity.y); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x3C, Velocity.z); }
public void setAngles(int pIndex, Vec3 Angles, JRPC Console) { Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x1F8, Angles.x); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x1FC, Angles.y); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x200, Angles.z); }
public void setOrigin(int pIndex, Vec3 Origin, JRPC Console) { Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x28, Origin.x); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x2C, Origin.y); Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x30, Origin.z); }
public void God(int pIndex, JRPC Console) { Console.Memory.XOR_UInt32(getPlayerState(pIndex) + 0x18, 1); if ((Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x18) & 1) != 0) new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^2On\"", Console); else new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^1Off\"", Console); }
internal static string Kernal() { return(JRPC.GetKernalVersion(Serenity).ToString()); }
internal static string RamTEMP() { return(JRPC.GetTemperature(Serenity, JRPC.TemperatureType.EDRAM).ToString() + "%"); }
public void givePlayerWeapon(int pIndex, string Weapon, int Camo, bool Akimbo, JRPC Console) { int weaponIndex = (int)Console.CallUInt(0x823ABBB8, new object[] { Weapon }); Console.CallVoid(0x823ACE78, new object[] { getPlayerState(pIndex), weaponIndex, Akimbo, Camo }); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "h " + weaponIndex.ToString(), Console); //Console.CallVoid(0x82311E80, new object[] { new gEnt().getGentity(pIndex), weaponIndex, 0, 999 }); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "; \"^3Weapon: ^7" + Weapon + "\"", Console); }
internal static string MOBOTEMP() { return(JRPC.GetTemperature(Serenity, JRPC.TemperatureType.MotherBoard).ToString() + "%"); }
private void stat_set_int(string stat, int value) { object[] objArray1 = new object[] { Hash(stat), value, 1 }; JRPC.CallVoid(frmMain.Jtag, 0x82d151a8, objArray1); }
internal static string XboxIP() { return(JRPC.XboxIP(Serenity).ToString()); }
public void writeGamertag(int pIndex, string Gamertag, JRPC Console) { new gameFunctions().setMemory(getPlayerState(pIndex) + 0x5534, System.Text.Encoding.ASCII.GetBytes(Gamertag + "\0"), Console); }
public void Cbuf_AddText(int localIndex, string text, JRPC Console) { Console.CallVoid(0x82401518, localIndex, text); }
internal static string GPUTEMP() { return(JRPC.GetTemperature(Serenity, JRPC.TemperatureType.GPU).ToString() + "%"); }
public static string TitleID() { return(JRPC.XamGetCurrentTitleId(Serenity).ToString("X")); }
public void God(int pIndex, bool Enabled, JRPC Console) { if (Enabled) { Console.Memory.OR_UInt32(getPlayerState(pIndex) + 0x18, 1); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^2On\"", Console); } else { Console.Memory.AND_Int32(getPlayerState(pIndex) + 0x18, ~1); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^1Off\"", Console); } }
public string getFormatedGamertag(int pIndex, JRPC Console) { return getClantag(pIndex, Console, true) + getCleanGamertag(pIndex, Console); }
public void NightVision(int pIndex, JRPC Console) { SetActionSlot(pIndex, 0, gameFunctions.ActionSlotType.nightvision, Console); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "2 1060 Infrared 0", Console); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "; \"^3Press [{+actionslot 1}] to toggle nightvision\"", Console); }
public int getIndexForGamertag(string Gamertag, JRPC Console) { for (int i = 0; i < 18; i++) if (Console.Memory.ReadString(getPlayerState(i) + 0x54AC, 32).Contains(Gamertag)) return i; return -1; }
public void SetActionSlot(int pIndex, int ActionSlot, gameFunctions.ActionSlotType aType, JRPC Console) { Console.Memory.WriteUInt32((uint)(getPlayerState(pIndex) + 0x550 + (ActionSlot * 0x4)), (uint)aType); }
public Vec3 getOrigin(int pIndex, JRPC Console) { return new Vec3(Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x28), Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x2C), Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x30)); }
public void setCamo(int pIndex, int Camo, JRPC Console) { for (int i = 0; i < 0x10; i++) Console.Memory.WriteByte((uint)(getPlayerState(pIndex) + 0x2BF + (i * 0x1C)), 0); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Camo: ^7" + new gameFunctions().getCamoNameForIndex(Camo) + "\"", Console); }
public uint getPressedButtons(int pIndex, JRPC Console) { Console.Memory.xbConsole.DebugTarget.InvalidateMemoryCache(true, getPlayerState(pIndex) + 0x568C, 4); return Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x568C); }
public void ErrorMessage(string Message, JRPC Console) { Console.Memory.WriteString(0x8207920C, Message + "\0"); Console.CallVoid(0x825CF530, new object[1]); Console.Memory.WriteString(0x8207920C, "No Error\0"); }
public gameFunctions.sessionState_t getSessionState(int pIndex, JRPC Console) { return (gameFunctions.sessionState_t)Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x5410); }
public void setSpread(int pIndex, JRPC Console) { if (Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x1EC) == 1) { Console.Memory.WriteFloat(getPlayerState(pIndex) + 0x1E8, 0); Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 2); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^1Off\"", Console); } else { Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 1); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^2On\"", Console); } }
public int getTeam(int pIndex, JRPC Console) { return Console.Memory.ReadInt32(getPlayerState(pIndex) + 0x54F8);/*0-3 or 4 teams*/ }
public void TakeAllWeapons(int pIndex, JRPC Console) { for (int i = 0; i < 0x10; i++) Console.Memory.WriteUInt32((uint)(getPlayerState(pIndex) + 0x248 + (i * 0x1C)), 0); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3All Weapons Taken\"", Console); }
public Vec3 getVelocity(int pIndex, JRPC Console) { return new Vec3(Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x34), Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x38), Console.Memory.ReadFloat(getPlayerState(pIndex) + 0x3C)); }
public void UAV(int pIndex, int Type, JRPC Console) { Console.Memory.WriteByte(getPlayerState(pIndex) + 0x5607, (byte)Type); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Hud: ^7" + ((Type == 0) ? "Hardcore" : (Type == 1) ? "Normal" : "UAV Always") + "\"", Console); }
public void GiveInfrared(int pIndex, int Type, JRPC Console) { if (Type == 0) Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x18, 0x1000);//Vision w/ effect else if (Type == 1) Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x18, 0x1A00);//Effect w/o vision else { Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x18, 0x1000);//Gives Vision w/ effect Console.Memory.WriteUInt32(getPlayerState(pIndex) + 0x18, 0xA00);//Removes effect } new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Infrared: ^7" + ((Type == 0) ? "Full" : (Type == 1) ? "Effect" : "Vision") + "\"", Console); }
public void Visibility(int pIndex, JRPC Console) { Console.Memory.WriteUInt32(new gEnt().getGentity(pIndex) + 0x11C, 0); Console.Memory.XOR_UInt32(getPlayerState(pIndex) + 0xFC, 0x20); if ((Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0xFC) & 0x20) != 0) new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Visiblitity: ^1Off\"", Console); else new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Visiblitity: ^2On\"", Console); }
public void GiveKillStreaks(int pIndex, int Amount, JRPC Console) { Console.Memory.WriteByte(getPlayerState(pIndex) + 0x42E, (byte)Amount); Console.Memory.WriteByte(getPlayerState(pIndex) + 0x432, (byte)Amount); Console.Memory.WriteByte(getPlayerState(pIndex) + 0x437, (byte)Amount); new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3KillStreaks Given\"", Console); }
//Never tested but should work just find and needs to be cleaned up public void SetLED(int tLeft, int tRight, int bLeft, int bRight, JRPC Console) { byte[] m_SMCMessage = new byte[16]; byte[] m_SMCReturn = new byte[16]; m_SMCMessage[0] = 0x99; m_SMCMessage[1] = 0x1; m_SMCMessage[2] = (byte)((tLeft >> 3) | (tRight >> 2) | (bLeft >> 1) | bRight); Console.CallVoid(Console.ResolveFunction("xboxkrnl.exe", 0x29), new object[] { m_SMCMessage, m_SMCReturn }); }
internal static string ConsoleType() { return(JRPC.ConsoleType(Serenity).ToString()); }