Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tutorial] Add custom command (SYSTEM)

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 19, 2011
Messages
129
Reaction score
7
I have no idea if it was already released so if its not
No problem haha :p

How to make it work :

GameServer -> Networking -> Virtual Objects -> User -> VirtualUser.CS * line 757 *

Place this code :

PHP:
                    case "system":
                        {
                            if (Rank < 6) return true;

                            foreach (virtualUser Player in UserManager.getAllUsers())
                            {
                                Player.send(new PACKET_CHAT("SYSTEM", PACKET_CHAT.ChatType.Room_ToAll, "SYSTEM >>" + Command.Substring(7), 999, "Server"));
                            }

                            return true;
                        }

Save / Build solution!

screenshot - [Tutorial] Add custom command (SYSTEM) - RaGEZONE Forums

Enjoy ^^

*what does this do ?*

When you type : /system fkthis

everyone in the chat *also for the people who are already ingame*
they will see in the Chat area

SYSTEM: fkthis :p
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Dec 6, 2012
Messages
134
Reaction score
22
Re: [TuT] Add custom command (SYSTEM)

Haha, funny command :eek:tt1:
 
Newbie Spellweaver
Joined
Aug 19, 2013
Messages
5
Reaction score
0
Re: [TuT] Add custom command (SYSTEM)

Hahaha i like it.
 
◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜
Developer
Joined
May 29, 2007
Messages
2,167
Reaction score
899
Re: [TuT] Add custom command (SYSTEM)

An other idea is making custom classes so you can make every command run into its own class so you can manage it better.
 
Status
Not open for further replies.
Back
Top