Esempio n. 1
1
 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);
 }
Esempio n. 5
0
 //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);
     }
 }
Esempio n. 6
0
 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);
     }
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 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);
 }
Esempio n. 9
0
 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);
 }
Esempio n. 10
0
 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);
 }
Esempio n. 11
0
 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);
 }
Esempio n. 12
0
 internal static string Kernal()
 {
     return(JRPC.GetKernalVersion(Serenity).ToString());
 }
Esempio n. 13
0
 internal static string RamTEMP()
 {
     return(JRPC.GetTemperature(Serenity, JRPC.TemperatureType.EDRAM).ToString() + "%");
 }
Esempio n. 14
0
 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);
 }
Esempio n. 15
0
 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);
 }
Esempio n. 17
0
 internal static string XboxIP()
 {
     return(JRPC.XboxIP(Serenity).ToString());
 }
Esempio n. 18
0
 public void writeGamertag(int pIndex, string Gamertag, JRPC Console)
 {
     new gameFunctions().setMemory(getPlayerState(pIndex) + 0x5534, System.Text.Encoding.ASCII.GetBytes(Gamertag + "\0"), Console);
 }
Esempio n. 19
0
 public void Cbuf_AddText(int localIndex, string text, JRPC Console)
 {
     Console.CallVoid(0x82401518, localIndex, text);
 }
Esempio n. 20
0
 internal static string GPUTEMP()
 {
     return(JRPC.GetTemperature(Serenity, JRPC.TemperatureType.GPU).ToString() + "%");
 }
Esempio n. 21
0
 public static string TitleID()
 {
     return(JRPC.XamGetCurrentTitleId(Serenity).ToString("X"));
 }
Esempio n. 22
0
 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);
     }
 }
Esempio n. 23
0
 public string getFormatedGamertag(int pIndex, JRPC Console)
 {
     return getClantag(pIndex, Console, true) + getCleanGamertag(pIndex, Console);
 }
Esempio n. 24
0
 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);
 }
Esempio n. 25
0
 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;
 }
Esempio n. 26
0
 public void SetActionSlot(int pIndex, int ActionSlot, gameFunctions.ActionSlotType aType, JRPC Console)
 {
     Console.Memory.WriteUInt32((uint)(getPlayerState(pIndex) + 0x550 + (ActionSlot * 0x4)), (uint)aType);
 }
Esempio n. 27
0
 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));
 }
Esempio n. 28
0
 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);
 }
Esempio n. 29
0
 public uint getPressedButtons(int pIndex, JRPC Console)
 {
     Console.Memory.xbConsole.DebugTarget.InvalidateMemoryCache(true, getPlayerState(pIndex) + 0x568C, 4);
     return Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x568C);
 }
Esempio n. 30
0
 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");
 }
Esempio n. 31
0
 public gameFunctions.sessionState_t getSessionState(int pIndex, JRPC Console)
 {
     return (gameFunctions.sessionState_t)Console.Memory.ReadUInt32(getPlayerState(pIndex) + 0x5410);
 }
Esempio n. 32
0
 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);
     }
 }
Esempio n. 33
0
 public int getTeam(int pIndex, JRPC Console)
 {
     return Console.Memory.ReadInt32(getPlayerState(pIndex) + 0x54F8);/*0-3 or 4 teams*/
 }
Esempio n. 34
0
 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);
 }
Esempio n. 35
0
 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));
 }
Esempio n. 36
0
 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);
 }
Esempio n. 37
0
 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);
 }
Esempio n. 38
0
 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);
 }
Esempio n. 39
0
 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);
 }
Esempio n. 40
0
        //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 });
        }
Esempio n. 41
0
 internal static string ConsoleType()
 {
     return(JRPC.ConsoleType(Serenity).ToString());
 }