Register for your free account! | Forgot your password?

You last visited: Today at 00:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# Code

Discussion on C# Code within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old 09/09/2018, 05:10   #16
 
athena1410's Avatar
 
elite*gold: 0
Join Date: Jul 2017
Posts: 118
Received Thanks: 65
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
athena1410 is offline  
Thanks
1 User
Old 09/09/2018, 15:48   #17
 
elite*gold: 135
Join Date: May 2015
Posts: 647
Received Thanks: 752
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
$WeGs is offline  
Reply


Similar Threads Similar Threads
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 3 Replies
Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code Mp7a1 Code Famas Retail Code G36 Retail Code
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 9 Replies
Waffen Code´s - Premium Code´s - Dinar Code´s ! ! ! Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code
°°xm8 code°°katana code°° Javelin code°°
12/21/2010 - WarRock Trading - 0 Replies
Habe Codes Bei Intresse bitte in Skype adden: war.rock.16 Ich will dafür nur psc reste ;D:D
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online



All times are GMT +1. The time now is 00:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.