Register for your free account! | Forgot your password?

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

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

Advertisement



Command GM can add to filter like auto notice

Discussion on Command GM can add to filter like auto notice within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
@Grayson's Avatar
 
elite*gold: 0
Join Date: Oct 2019
Posts: 71
Received Thanks: 16
Command GM can add to filter like auto notice

Command GM
/settime 3
automatic every minutes
I want to add this to filter. SR Proxy Can someone help with that?
Or someone tells me what to do and i will try to do it
Or does anyone have another idea to do?
@Grayson is offline  
Old 06/19/2020, 16:56   #2
 
elite*gold: 0
Join Date: May 2018
Posts: 244
Received Thanks: 119
make thread to send notice every time (3 min or what you want)
use client chat packet to know how the sender if gm do it
ex. /settime 3,notice here
Hercules* is offline  
Old 06/19/2020, 19:19   #3
 
@Grayson's Avatar
 
elite*gold: 0
Join Date: Oct 2019
Posts: 71
Received Thanks: 16
Quote:
Originally Posted by Hercules* View Post
make thread to send notice every time (3 min or what you want)
use client chat packet to know how the sender if gm do it
ex. /settime 3,notice here
How to extract the package
@Grayson is offline  
Old 06/19/2020, 20:38   #4
 
elite*gold: 0
Join Date: May 2018
Posts: 244
Received Thanks: 119
Quote:
Originally Posted by @Grayson View Post
How to extract the package
USE STRING.SPLIT TO GET THE TIME,NOTICE.
Hercules* is offline  
Old 06/19/2020, 20:57   #5
 
@Grayson's Avatar
 
elite*gold: 0
Join Date: Oct 2019
Posts: 71
Received Thanks: 16
Quote:
Originally Posted by Hercules* View Post
USE STRING.SPLIT TO GET THE TIME,NOTICE.
can get the package
/settime

i don't have experience clarification please

If I want to change notice to /settime 3 what should i do in src sr proxy
@Grayson is offline  
Old 06/19/2020, 22:06   #6
 
elite*gold: 0
Join Date: May 2018
Posts: 244
Received Thanks: 119
you need to parse the client side chat packet to see who is the sender
if gm user do the func
ex like all chat msg type in all chat /settime 3,Hello World

by using string split you can get the time and the msg
split(' ') the white space before the num of the time

HOW?
string[] xpass = message.Split(' ');
now we can get the time how??
xpass[0] will return /settime
xpass[1] will return 3,Hello World
string[] xpass2= xpass[1].ToString().Split(',');
re:
xpass2[0] will return 3
xpass2[1] will return Hello World

now you need to make fun that like timer/thread
to send notice every time

like
Code:
int time=0; // you will set this
        static async void NoticeCommand()
        {
            while (true)
            {
                Thread.Sleep(TimeSpan.FromSeconds(time)); // on seconds 
            }
        }
Hercules* is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
friends what is bonus add "command" like "71051" and "71052" jobs command its need fo
12/22/2013 - Metin2 Private Server - 0 Replies
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni so i want add boni as "71051" and "71052" but with quest
friends what is bonus add "command" like "71051" and "71052" jobs command its need fo
12/22/2013 - Metin2 Private Server - 0 Replies
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni so i want add boni as "71051" and "71052" but with quest push
*Notice*Warning Password stealing site*Notice*
12/28/2009 - World of Warcraft - 0 Replies
Notice is as follows, do not enter this site, if you get a notice in your email like this for gawd sakes dont give anyone your password Subject:World of Warcraft Account Trade Dispute Notice When we carry out a routine check when the account, we have evidence to show that your account has been involved in the disputed transactions. So we have to inform you visit our website(worldofwarcraft*com]fill out some information to facilitate our investigation. If you can not tie in with our soon...



All times are GMT +1. The time now is 15:02.


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.