Register for your free account! | Forgot your password?

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

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

Advertisement



[Discuss] Lucky Crit Event

Discussion on [Discuss] Lucky Crit Event within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 86
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 offline  
Thanks
1 User
Old 04/14/2018, 12:07   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 313
Received Thanks: 667
DaxterSoul is offline  
Old 04/16/2018, 02:05   #3
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 86
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 offline  
Reply


Similar Threads 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 selling here a Lv. 24 Account with 15 champions (with Ziggs, Jax & Co. present). There are 2x Critical damage essence, and 6 times normal damage Critical runes here. It is enclosed 1xx rest Riot exist.
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 lvl 5 stones, Excen bracelets : 11%as lvl 5 stones. and a 92 blunt with the following stats : +1 rank
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 12:39.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.