Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 13:43

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


[Discuss] Lucky Crit Event

Reply
 
Old   #1
 
elite*gold: 53
Join Date: Sep 2014
Posts: 105
Received Thanks: 36
Post [Discuss] Lucky Crit Event

i wanna to make a Lucky critical event but i want to know what should packets i have to parse it and how i can know the dmg is crit?



Mr.Awesome1337 is online now  
Thanks
1 User
Old 04/14/2018, 12:07   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 215
Received Thanks: 419
https://www.elitepvpers.com/forum/sr...de-0xb071.html


DaxterSoul is offline  
Old 04/16/2018, 02:05   #3
 
elite*gold: 53
Join Date: Sep 2014
Posts: 105
Received Thanks: 36
Quote:
Originally Posted by DaxterSoul View Post
Ok thanks, i need to ask you a question i found a Walk(Movment Packet) in Zbot Source and i need to know how i can use it i need the character as example move from Jangan Stable to jangan Stoarge

Code:
    public static void WalkTo(int X, int Y)
        {
            uint xPos = 0;
            uint yPos = 0;

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

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


            if (Char_Data.char_horseid == 0)
            {
                Packet packet = new Packet((ushort)WorldServerOpcodes.CLIENT_OPCODES.CLIENT_MOVEMENT, false, enumDestination.Server);
                packet.data.AddBYTE(0x01);
                if (Character.cave.char_incave == true)
                {
                    xPos = (uint)((X - (int)((xSector - 135) * 192)) * 10);
                    yPos = (uint)((Y - (int)((162 - 92) * 192)) * 10);
                    packet.data.AddBYTE(Character.cave.xsector);
                    packet.data.AddBYTE(0x80);
                    packet.data.AddDWORD(xPos);
                    packet.data.AddDWORD(0x00000000);
                    Packet.Data data = new Packet.Data();
                    data.AddDWORD(yPos - 250);
                    packet.data.AddBYTE(data.ReadBYTE());
                    packet.data.AddBYTE(data.ReadBYTE());
                    packet.data.AddBYTE(0xFF);
                    packet.data.AddBYTE(0xFF);
                }
                else
                {
                    ushort xposition = (ushort)((X - (int)((xSector - 135) * 192)) * 10);
                    ushort yposition = (ushort)((Y - (int)((ySector - 92) * 192)) * 10);
                    packet.data.AddBYTE(xSector);
                    packet.data.AddBYTE(ySector);
                    packet.data.AddWORD(xposition);
                    packet.data.AddWORD(0x0000);
                    packet.data.AddWORD(yposition);
                }
                Globals.ServerPC.SendPacket(packet);
            }
            else
            {
                Packet packet = new Packet((ushort)WorldServerOpcodes.CLIENT_OPCODES.CLIENT_PETACTION, false, enumDestination.Server);
                packet.data.AddDWORD(Char_Data.char_horseid);
                packet.data.AddBYTE(0x01);
                packet.data.AddBYTE(0x01);
                if (Character.cave.char_incave == true)
                {
                    xPos = (uint)((X - (int)((xSector - 135) * 192)) * 10);
                    yPos = (uint)((Y - (int)((162 - 92) * 192)) * 10);

                    packet.data.AddBYTE(Character.cave.xsector);
                    packet.data.AddBYTE(0x80);
                    packet.data.AddDWORD(xPos);
                    packet.data.AddDWORD(0x00000000);
                    Packet.Data data = new Packet.Data();
                    data.AddDWORD(yPos - 250);
                    packet.data.AddBYTE(data.ReadBYTE());
                    packet.data.AddBYTE(data.ReadBYTE());
                    packet.data.AddBYTE(0xFF);
                    packet.data.AddBYTE(0xFF);
                }
                else
                {
                    ushort xposition = (ushort)((X - (int)((xSector - 135) * 192)) * 10);
                    ushort yposition = (ushort)((Y - (int)((ySector - 92) * 192)) * 10);
                    packet.data.AddBYTE(xSector);
                    packet.data.AddBYTE(ySector);
                    packet.data.AddWORD(xposition);
                    packet.data.AddWORD(0x0000);
                    packet.data.AddWORD(yposition);
                }
                Globals.ServerPC.SendPacket(packet);
            }
        }
so what x,y should i put and what the correct code should be
Mr.Awesome1337 is online now  
Reply



« Editing silkroad Height Map | Movment Walk Packet »

Similar Threads
Pirate Booty: Lucky? Bad luck? Discuss! :)
10/20/2014 - DarkOrbit - 109 Replies
Hello. In this topic we will discuss about Pirate Booty. LF4, Design, Apis etc. ! I started. Today: 200Booty keys=7LF2, 4LF3, 4LF4, 3Bo2, Design Spectrum, Cloack XL, 14 Apis parts. :) You? Have a nice day! ;)
SELLING: Lv. 24, 15 Champs, 6x Crit Runes, 2x Crit Essence
02/26/2012 - League of Legends Trading - 0 Replies
Hallo, ich verkaufe hier einen Lv. 24 Account mit 15 Champions (u.a. Ziggs, Jax & Co. vorhanden). Es sind 2x Kritischer-Schaden Essenz, als auch 6x Normale Runen Kritische Schaden dabei. Es ist anbei 1xx Rest Riot Points vorhanden. --- Hello, I'm...
Zian Archon WTS crit ohkeros,knight stuff, WTB crit hwaridun
08/22/2011 - Archlord Trading - 1 Replies
hi evrybody, I want to sell my crit ohkeros with 8% resis in it for scrolls, Also i want to sell the following items : Boots of excen 9% extra block, 2 ashtals Excen greaves 12% resis +220hp, lvl 5 stones Excen top : 11% sb 10% hp 4 slots full...
WTT 4% cast ring+2% crit ring for 3% crit ring or good unique
01/09/2010 - Archlord Trading - 2 Replies
titel say all



All times are GMT +2. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.