Command GM can add to filter like auto notice

06/19/2020 15:30 @Grayson#1
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?
06/19/2020 16:56 Hercules*#2
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
06/19/2020 19:19 @Grayson#3
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
06/19/2020 20:38 Hercules*#4
Quote:
Originally Posted by @Grayson View Post
How to extract the package
USE STRING.SPLIT TO GET THE TIME,NOTICE.
06/19/2020 20:57 @Grayson#5
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
06/19/2020 22:06 Hercules*#6
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 
            }
        }