C# Code

09/09/2018 05:10 athena1410#16
Method 32 is used to warp to x, y coordinates in game.
Code:
int num = (int_0 % 0xc0) * 10;
                int num2 = (int_1 % 0xc0) * 10;
                int num3 = ((int_0 - (num / 10)) / 0xc0) + 0x87;
                int num4 = ((int_1 - (num2 / 10)) / 0xc0) + 0x5c;
                int num5 = Convert.ToInt32((double) ((num4 * Math.Pow(2.0, 8.0)) + num3));
convert x,y condinates in game to regionid, x, y, z in database

Code:
Class9 class2 = new Class9(0x7010);
                class2.method_34(0x10);
                class2.method_34(0);
                class2.method_50(num5);
                class2.method_42((float) num);
                class2.method_42(1000f);
                class2.method_42((float) num2);
                class2.method_35(1);
                class2.method_34(0);
                Class4.smethod_4(class2);
warp packet

Code:
Class9 class3 = new Class9(0x34b6);
                Class4.smethod_4(class3);
Packet confirm character spawned after teleport
09/09/2018 15:48 $WeGs#17
Quote:
Originally Posted by TREXSRO View Post
Code:
public void method_32(int int_0, int int_1)
        {
            try
            {
                int num = (int_0 % 0xc0) * 10;
                int num2 = (int_1 % 0xc0) * 10;
                int num3 = ((int_0 - (num / 10)) / 0xc0) + 0x87;
                int num4 = ((int_1 - (num2 / 10)) / 0xc0) + 0x5c;
                int num5 = Convert.ToInt32((double) ((num4 * Math.Pow(2.0, 8.0)) + num3));
                Class9 class2 = new Class9(0x7010);
                class2.method_34(0x10);
                class2.method_34(0);
                class2.method_50(num5);
                class2.method_42((float) num);
                class2.method_42(1000f);
                class2.method_42((float) num2);
                class2.method_35(1);
                class2.method_34(0);
                Class4.smethod_4(class2);
                Thread.Sleep(0x3e8);
                Class9 class3 = new Class9(0x34b6);
                Class4.smethod_4(class3);
            }
            catch
            {
            }
Class3 indicate to userevears(0x34b6)

Code:
public void method_12()
        {
            try
            {
                    this.method_32(0x1922, 0x36d);
            }
            catch
            {
            }
this.method_32(0x1922, 0x36d);indicate to RagionID and X,y,z in janganSouth
0x34b6 opcode used to confirm the teleport, it should be send after every teleport with warp packet