Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 19:48

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

Advertisement



[HELP] Moving packets and identifying mobs

Discussion on [HELP] Moving packets and identifying mobs within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Vanapapi's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 111
Received Thanks: 10
[HELP] Moving packets and identifying mobs

Hi, I have two questions.

1) How to send a moving packet to silkroad with 0x7021? Do I have to use pk(warp) codes or can I use a formula of some sort? (A formula with X cords and Y cords to xSector,ySector,xOffset,yOffset or something like that)
Two threads I found:



2)How to get mob ID's(or list of mobs) around me so I can select them with something like [0x7045]. The last 2 bytes seem to repeat, but how can I get the first two?
6c 78 b6 02 (mangyang)

EDIT: Found the same ting from zbot source, but thanks anyway. For other newbies like me, the zbot source code is good to find things out.
Vanapapi is offline  
Old 08/26/2013, 19:32   #2
 
tarekwiz's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 26
Received Thanks: 7
umm .. i did some code for ya cuz i dont have time to explain it . i think its kinda easy
P.S its written in C#
Code:
public static void WalkTo(long X, long Y, short Z)
        {
            long xPos = 0;
            long yPos = 0;

            if (X > 0 && Y > 0)
            {
                xPos = (X % 192) * 10;
                yPos = (Y % 192) * 10;
            }
            else if (X < 0 && Y < 0)
            {
                xPos = (192 + (X % 192)) * 10;
                yPos = (192 + (Y % 192)) * 10;
            }
            else if (X < 0 && Y > 0)
            {
                xPos = (192 + (X % 192)) * 10;
                yPos = (Y % 192) * 10;
            }
            else if (X > 0 && Y < 0)
            {
                xPos = (X % 192) * 10;
                yPos = (192 + (Y % 192)) * 10;
            }

            byte xSector = (byte)((X - xPos / 10) / 192 + 135);
            byte ySector = (byte)((Y - yPos / 10) / 192 + 92);

            xPos = (X - ((xSector - 0x87) * 0xC0)) * 0x0A;
            yPos = (Y - ((ySector - 0x5C) * 0xC0)) * 0x0A;

            Packet p_Writer = new Packet(Proxy_Test.Opcodes.Opcode.CLIENT_MOVEMENT);
            if (xSector == 1)
            {
                ySector++;	

                //Recalculate X, Y coordinates
                xPos = (X - ((xSector - 0x87) * 0xC0)) * 0x0A;
                yPos = (Y - ((ySector - 0x5C) * 0xC0)) * 0x0A;

                p_Writer.WriteByte(1);

                p_Writer.WriteByte(1);
                p_Writer.WriteByte(128);

                p_Writer.WriteShort((short)xPos);
                p_Writer.WriteShort(Z);
                p_Writer.WriteShort((short)yPos);
            }
            else
            {
                p_Writer.WriteByte(1);

                p_Writer.WriteByte(xSector);
                p_Writer.WriteByte(ySector);

                p_Writer.WriteShort((short)xPos);
                p_Writer.WriteShort(Z);
                p_Writer.WriteShort((short)yPos);
            }


            Proxy.SendAgent(p_Writer);
        }
tarekwiz is offline  
Thanks
1 User
Old 11/12/2013, 18:42   #3
 
elite*gold: 0
Join Date: Nov 2013
Posts: 168
Received Thanks: 117
GL
Skullsoil is offline  
Reply


Similar Threads Similar Threads
Need help identifying a cheater...
10/22/2010 - Eudemons Online - 2 Replies
Well i've been reading in the hacks/exploits section about speedhack and Legion gate jumping hack. There is a legion on the server I play on who manages to get inside legion land, to the pole and shield before the gates are down... My question is, is this them hacking? Also, is there a way to make it so the hack doesn't work... same with speed/zoom hack..
LF: Aion Private Server with moving mobs
05/16/2010 - Aion Private Server - 3 Replies
okay, so i'm looking for an aion pserver with actually moving mobs. i don't mean mobs that move after you attack them, i mean mobs just moving by themselves (like in retail). every pserver i've tried all seems to have non-moving mobs (some even have no AI). so that 1 feature is basically all i'm looking for right now. thanks
identifying effects
06/29/2009 - Conquer Online 2 - 2 Replies
so what i want to do is to remove most of the visual effects and leave just a few witch are worth keeping if anyone else played with the effects before and knows their names in the ini file please post for the following: ss fb cure adv cure stig 2fold
Identifying a Good Server
02/06/2009 - CO2 Private Server - 8 Replies
1. They (the owner/s) actually have a cool username, or use just their name in general. Proof of this Qonquer - Cool, Servers good Ultimation - Cool, Good server Hybrid - (Biased?) Cool, Good server Andy - Normal Name, Good Server XMasterrrr - Bad Name, Bad Server koio - Bad Name, Bad Server 2. They understand how to port forward.
metdove identifying tool
06/14/2006 - Conquer Online 2 - 11 Replies
i serched all over this forum, i couldnt find any tool . i tried encypt tool, but real dove is still same size with the rest. plz, can any1 help me out?



All times are GMT +1. The time now is 19:48.


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.