Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 15:45

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

 

GM Commands in filters

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2017
Posts: 106
Received Thanks: 14
Talking GM Commands in filters

Hey guys,

I can find the notice packet in the filter different from the packet in bots like auto notice, and when I tried the packet of the bots notice in the filter, I get a crash immediately when I send the notice.. so what is the packet of the GM commands in the filters like : totown or smth?!

Notice : I know that the filter isn't a GM to use warp or movetouser or smth like that..



#HB is offline  
Old   #2
 
elite*gold: 371
Join Date: Dec 2013
Posts: 795
Received Thanks: 571
i can't understand what you mean really
but anyway since filter is just handling users in sessions , so users must have gm authorization to use gm command

i have done this already on NaviFilter long time ago
it will require some reverse engineering stuff on game server in order to remove gm command authorization
then you should make anti cheat in filter side


KingDollar is offline  
Old   #3
 
elite*gold: 0
Join Date: Sep 2017
Posts: 106
Received Thanks: 14
O.O

It looks kinda hard, but nvm...
I wanted to ask something else, I was working on disable skills by region, I declared region from teleporting or moving and it worked perfectly but when I use a skill I blocks me and tells me the notice but while the moving I use the skill and when I stop it blocks me...
I think I should stop the movement to declare the region.. I know its looks hard to understand, I will show you a video if you didn't understand
#HB is offline  
Old   #4
 
elite*gold: 371
Join Date: Dec 2013
Posts: 795
Received Thanks: 571
it depends on the way that you read region with it
you could read character region from db
or just parse b021 packet with the right way


KingDollar is offline  
Old   #5
 
elite*gold: 0
Join Date: Sep 2017
Posts: 106
Received Thanks: 14
Well, I read the region with movement packet : 0x9001

Code:
if (_pck.Opcode == 0xB021 && (FilterMain.CURRENT_REGION))
                                {
                                    try
                                    {
                                        _pck.Lock(); // Lock
                                        UInt32 Target = _pck.ReadUInt32(); // Unique ID from player

                                        // Check if target == this.unique_ID
                                        if (Target == this.Unique_ID)
                                        {
                                            byte unk = _pck.ReadUInt8();
                                            short Region = _pck.ReadInt16();
                                            int RegionL = Region.ToString().Length;

                                            // Make sure region is 5 numbers.
                                            if(RegionL == 5 && _pck.GetBytes().Length == 24) {
                                                // Register good.
                                                this.selfWalkLatestRegion = Region;
                                                this.ReadCurrentRegion = Region;
                                            }
                                            else
                                            {
                                                // Register false.
                                                this.selfWalkLatestRegion = -1;
                                                this.ReadCurrentRegion = -1;
                                            }

                                            /*Console.WriteLine("Current length: " + RegionL);
                                            Console.WriteLine("Current bytes: " + _pck.GetBytes().Length);
                                            Console.WriteLine("Current region: " + Region);
                                            */
                                        }
                                    }
                                    catch { }
                                }
*I added this : ReadCurrentRegion
#HB is offline  
Old   #6
 
elite*gold: 371
Join Date: Dec 2013
Posts: 795
Received Thanks: 571
Quote:
Originally Posted by #HB View Post
Well, I read the region with movement packet : 0x9001

Code:
if (_pck.Opcode == 0xB021 && (FilterMain.CURRENT_REGION))
                                {
                                    try
                                    {
                                        _pck.Lock(); // Lock
                                        UInt32 Target = _pck.ReadUInt32(); // Unique ID from player

                                        // Check if target == this.unique_ID
                                        if (Target == this.Unique_ID)
                                        {
                                            byte unk = _pck.ReadUInt8();
                                            short Region = _pck.ReadInt16();
                                            int RegionL = Region.ToString().Length;

                                            // Make sure region is 5 numbers.
                                            if(RegionL == 5 && _pck.GetBytes().Length == 24) {
                                                // Register good.
                                                this.selfWalkLatestRegion = Region;
                                                this.ReadCurrentRegion = Region;
                                            }
                                            else
                                            {
                                                // Register false.
                                                this.selfWalkLatestRegion = -1;
                                                this.ReadCurrentRegion = -1;
                                            }

                                            /*Console.WriteLine("Current length: " + RegionL);
                                            Console.WriteLine("Current bytes: " + _pck.GetBytes().Length);
                                            Console.WriteLine("Current region: " + Region);
                                            */
                                        }
                                    }
                                    catch { }
                                }
*I added this : ReadCurrentRegion

this not the right parse
but anyway
byte unk = _pck.ReadUInt8(); // this byte is bool HasDestination - if 0 == sky move else !skymove

so just check if hasdestination read region
else don't
KingDollar is offline  
Old   #7
 
elite*gold: 0
Join Date: Sep 2017
Posts: 106
Received Thanks: 14
You mean like this!?

*Sorry for being stupid
Code:
byte unk = _pck.ReadUInt8(); // this byte is bool HasDestination - if 0 == sky move else !skymove
                                                short Region = _pck.ReadInt16();
                                                int RegionL = Region.ToString().Length;

                                                if (unk != 0)
                                                {
                                                    // Make sure region is 5 numbers.
                                                    if (RegionL == 5 && _pck.GetBytes().Length == 24)
                                                    {
                                                        // Register good.
                                                        this.selfWalkLatestRegion = Region;
                                                        this.ReadCurrentRegion = Region;
                                                    }
                                                    else
                                                    {
                                                        // Register false.
                                                        this.selfWalkLatestRegion = -1;
                                                        this.ReadCurrentRegion = -1;
                                                    }
                                                }
#HB is offline  
Old   #8
 
elite*gold: 371
Join Date: Dec 2013
Posts: 795
Received Thanks: 571
Quote:
Originally Posted by #HB View Post
You mean like this!?

*Sorry for being stupid
Code:
byte unk = _pck.ReadUInt8(); // this byte is bool HasDestination - if 0 == sky move else !skymove
                                                short Region = _pck.ReadInt16();
                                                int RegionL = Region.ToString().Length;

                                                if (unk != 0)
                                                {
                                                    // Make sure region is 5 numbers.
                                                    if (RegionL == 5 && _pck.GetBytes().Length == 24)
                                                    {
                                                        // Register good.
                                                        this.selfWalkLatestRegion = Region;
                                                        this.ReadCurrentRegion = Region;
                                                    }
                                                    else
                                                    {
                                                        // Register false.
                                                        this.selfWalkLatestRegion = -1;
                                                        this.ReadCurrentRegion = -1;
                                                    }
                                                }
well ye i think it could work


KingDollar is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
WPE Filters to cheat on emulated Servers
Hi, i made these WPE Filters for emulated Servers about two weeks ago, they work perfectly and let you do funky stuff without typing any strange...
66 Replies - WoW PServer Exploits, Hacks & Tools
[Key Commands] Default Key Commands for the beginners
Default keybindings: Abilities Window V Backpack Window: B Career Window: K Character Window: C Battlegroup Window: Left Alt + R ...
0 Replies - General Gaming Releases
Search Ran Online WPE Filters !!!
Hello, read tropic !! i need it please !
1 Replies - General Gaming Discussion
Search WPE Filters
Hello every one ^^ I need Working WPE Pro Filters for Silkroadonline !! If anyone have plz pm me thx :) Neofight
9 Replies - SRO Main - Discussions / Questions



All times are GMT +2. The time now is 15:45.


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.