| FX Server Chapter 5 |
Chapter 5 – Commands Part 2 We now compose our default access . We give to a user the possibility to write normal, colored and capital text and to be able to write in third person with the command /me text or /action text /DefaultAccess cvCa I hope this is clear by now. You may be wondering what if I want to give a certain levels only to certain users. The user who types this password in chat will assume the levels marked of side to the password. The command in chat is Notice that of side to the levels there is a =1 /DefaultFormat User=1 You may assign a different text format for every password. It is possible to create endless custom text format and endless passwords. We previously showed this with the examples textformat 4 and 5. Next the admins…. /addpassword passwAdmin=A=4 (The capital letter “A” can be used in place of typing all the level letters) We have assigned for this password the format: 4. /addpassword friend=Cvncapf=5 (Here we have created a password for a trusted friend so that he can use the commands that could be dangerous to allow a normal user to execute.) New function of this chat server is the level: cohost. /addpassword passwordhelphost=cohost=4 (This password is for those who sometimes open the chat when you are unable to do it yourself. Cohost has the same level of the host. You are therefore able to plan completely the config.txt. You can save the changes by typing /savecfg and to reload with /reload.) Remember that passwords should not be your date of birth, name of a loved one, or name of a friend. Invent a Password with at least 6 figures composed of letters and numbers (If you make a mistake with the password many times the server will not allow you to continue to try). We go on with the formulation of the config.txt /Users 0 (Imposes the number of false users that will be seen in the list chat) /Limit 50 (Imposes a limit of 50 users. If the number of users in the channel exceeds this number, no one else will be able to enter until other users leave.) /TrimName 9 (Imposes the number of characters to hide in the nickname. If set to 9, users will not see the last 9 characters from the end of the nickname. For example: <Paolo123_12345> you will be seen as <Paolo>). /MaxConnections 3 (Sets the number of multiple connections from a single user. If set to 3 all users can enter the chat room with up to 3 different names). /Zones 3 (Sets the zone for the WinMX Network 3=Europe) /WpnConnections 2 (Sets the number of connections to the WinMX Network. It is not recommended to use more than 3 connections) /ConsoleName server*000_12345 (Sets the nickname with which you will appear in chat when you will write from the server) /ChatPassword parolasegreta (you replace parolasegreta with your password) The following commands block the user of certain commands in the chatroom through the server configuration. If set to “0″ they are active, as “1″ they are disabled. /BlockCommand Redirect=0 /BlockCommand Exile=0 Exile is the redirect command used to send a single user to another room withe the command: /exile nickname Room /BlockCommand addPassword=1 /BlockCommand Notice=0 /BlockCommand SetUserLevel=0 The following are options to automatically protect our chat, without the aid of a bot! They are very useful functions for the management of a chatserver. Set as “1″ are active, as “0″ inactive. /setAdvOption FloodKick=1 /setAdvOption AllowInfiniteBan=1 /setAdvOption FilterSpam=1 /setAdvOption ChatLog=1 /setAdvOption SplitLog=0 /setAdvOption AutoAdmin=0 /setAdvOption checkNameCloning=1 25/03/06 02:27:55> simone137_26185 (100.0.0.1) Refused Connection (Cloned Name) It is up to you to decide if it is the same user or someone attempting to clone a nickname. You can use the “Whois” command in WinMX to check if the user is the same. If it is the same user, the result will be user “offline” and therefore you will simply need to kick the old nickname in the list to allow the user to reenter the chatroom with the same name. /setAdvOption NickColours=1 This command allows users to see coloured nicknames as the owner intended them to be seen. If set to “0″ the colours set in the Text Format section of the configuartion will be applied to nicknames. /setAdvOption ColourCodesVisible=0 /setAdvOption ViewJoinAttempts=1 /setAdvOption RenameMessage=$OLDNAME$#c58 #you has changed the nickname in $NEWNAME $, The following are the messages that are shown when someone uses a password or login, or when a user surrenders the received levels and returns to normal user status!! /setAdvOption Get@Msg=$NAME $it is admin /setAdvOption LogLimit=5 /ShowRoom 1 Another important command is Block. There are three types of blocks: /block hi—> Block the word “hi” for all users. Only moderators and admins will be able to read it in opmsg. /blockk hi—> Anyone who uses the word “hi” will be kicked from the channel without warning. /blockb hi—> Anyone who uses the word “hi” will be kicked and banned from the channel. (Unlimited ban without warning) It is not possible to avoid a kick or ban from using a banned word. The block is also applied to nicknames; therefore if a user’s name was ciao*129_12345 he or she would not be able to enter the channel. 25/03/06 02:27:55> Ciao137_26185 (100.00.00.01) Refused Connection (word in the blocklist) Other examples Other amusing function is the replace or the substitution of a word with another word. There are two types of replace: simple replace and replacewhole: /Replace you have msn=Do you have a frying pan? –> Amusing results, the server will transform the words “you have msn” to “Do you have a frying pan?”. This is a simple replace. /Replace Whole Piece of crap=#c19#str <bip>o#c1# –> Here you can censor the words that you don’t want said in your chat or to turn even them into coloured messages that jump to the eyes of the user!! The difference between a simple replace and replacewhole is this: Simple replace works by replacing only the word or words you define in which ever context they appear. Replacewhole works the same way; however the replaced word will be replaced only if it appears exactly as written in the config. Give some consideration to the effects of the replace function when planning the words to be replaced, or it could end up that nobody can understand anything in the chat. ———————————————————————————— /AutoUpdate 0 FX Guide ©2006,2007 TNT-Tony. English Translation by Calypso. |