Register for your free account! | Forgot your password?

You last visited: Today at 22:56

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

Advertisement



sro-r petfilter

Discussion on sro-r petfilter within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2014
Posts: 9
Received Thanks: 0
sro-r petfilter

Hello, someone can give me examples, how pet filter is working programmatically?
Like picking up gold, pots etc.
x1stvanx is offline  
Old 12/27/2017, 09:04   #2
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
Main action opcode is : 0x7074, then you can declare what you want from it!

Code:
// Main action
                                    if (_pck.Opcode == 0x7074)
                                    {
                                        /*
                                            1 = Attack success
                                            2 = Cancel attack
                                        */
                                        // Derp
                                        if (_pck.ReadUInt8() == 1)
                                        {
                                            // Action
                                            byte num = _pck.ReadUInt8();

                                            /*
                                            num values
                                                1 = Normal attack
                                                2 = Pickup / Cancel attack
                                                3 = Trace
                                                4 = Skill cast
                                        
                                            */
                                            }
                                            }
#HB is offline  
Reply




All times are GMT +1. The time now is 22:57.


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.