sro-r petfilter

12/25/2017 14:24 x1stvanx#1
Hello, someone can give me examples, how pet filter is working programmatically?
Like picking up gold, pots etc.
12/27/2017 09:04 #HB#2
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
                                        
                                            */
                                            }
                                            }