postreply Home » Forums » Rift » Rift - Bots / Macros / Hacks

Rift Offsets For Version, Movement, Agro WIth Example Codes : Rift - Bots / Macros / Hacks

Posted: May 3rd, 2011, 2:24 pm
tault_Broden

Total Posts: 2313
Joined: August 21st, 2004, 5:20 pm
User avatar
Here is a nice post that gives players a ton of rift online code they may need. This is mainly useful for those players that are making their own rift online bots in the game. You may need to take some time to read it for undestanding how it works, but if you can get it down it will help bring you one step closer to your own rift bot.

hey guys some of the stuff I needed for my bot was to see the current error message,... the length of that message , if the player is moving and if a player has agro or should I say "being attacked by an agro mob" return 1... simple stuff, but much needed for certain functions...


Code: Select all

            public const uint Playerbase = 0x0F48C20;
            public const uint IsAgroStatic = 0x0E30A25;
            public const uint ErrorMsgBase = 0x0E25380;
            public const uint ErrorMsgOffs = 0x0;
            //IsRunningbase+offs
            public const uint RunBase1 = 0x17C;
            public const uint RunBase2 = 0x270;
            public const uint RunBase3 = 0x004;
            public const uint RunBase4 = 0x024;
            public const uint IsPlayerRunningOffset = 0x175;



Example code for _IsMoving Function...

Code: Select all

 //getrunningbase
                RunningBase = Rift.ReadUInt(playerBase + PlayerData.RunBase1);
                RunningBase = Rift.ReadUInt(RunningBase + PlayerData.RunBase2);
                RunningBase = Rift.ReadUInt(RunningBase + PlayerData.RunBase3);
                RunningBase = Rift.ReadUInt(RunningBase + PlayerData.RunBase4);
               
                public static bool _IsMoving(BlackPosion Rift)
                {
                      var IsMoving = 0;
                      IsMoving = Rift.ReadByte(RunningBase + PlayerData.IsPlayerRunningOffset);
                      if (IsMoving == 1)
                      {
                              Console.WriteLine("Toon is moving!!");
                               return (true);
                      }
                return (false);
             }

Example for _IsAgro()

Code: Select all

public static bool _IsAgro(BlackPosion Rift)
        {
            var IsAgro = 0;
            IsAgro = Rift.ReadByte((uint) _baseAddress(Rift) + PlayerData.IsAgroStatic);
            if (IsAgro == 1)
            {
                Report("::Agro Detected!");
                return (true);
            }
            return (false);
        }
And last but not least the error messages!! (I hard coded the length since Im lazy and dont even need the function that much... so buzz off! lol

Code: Select all

public static string GetErrorMessage(BlackPosion Rift)
        {
            var lenbase = Rift.ReadUInt((uint) _baseAddress(Rift) + 0x0E20CDC);
            lenbase = Rift.ReadUInt(lenbase + 0x5E4);
            lenbase = Rift.ReadUInt(lenbase + 0x340);
            lenbase = Rift.ReadUInt(lenbase + 0x1D0);
            lenbase = Rift.ReadUInt(lenbase + 0x0);
            int strLen = Rift.ReadByte(lenbase + 0x53);
            Report("Error Message Length: " + strLen);

            var errorbase = Rift.ReadUInt((uint) _baseAddress(Rift) + PlayerData.ErrorMsgBase);
            var ErrorMsg = Rift.ReadUnicodeString(errorbase + PlayerData.ErrorMsgOffs, strLen);
            Report("Error Message: " + ErrorMsg);
            if (ErrorMsg == "You are too far away")
                return ("ToFarAway");
            if (ErrorMsg == "You must be facing your target!")
                return ("NotFacing");
            else
            {
                return (ErrorMsg);
            }
        }
sorry if some of my names confuzzzzeeeees you, but hey what can you do!


Hope this helps someone!

edit* and just incase anyone needs to see my _baseAddress() function

Code: Select all

public static int _baseAddress(BlackPosion Rift)
        {
            int baseaddress = Rift.MainModule.BaseAddress.ToInt32();
            return (baseaddress);
        }

_________________
I DO NOT TAKE CREDIT FOR MY INFO.

I am a member of a exploit guild and post it here because i like this site and want to help it.

Image
Want Advertisements After The Last Post Removed? Create A Free Account!
blue large dotWho is online
Users browsing this forum: No registered users and 3 guests