Domino_ Posted October 23, 2011 Author Share Posted October 23, 2011 When you finish this tutorial in your server you will be avabile to edit motd without loging in game or opening options.iniThere may be better way to do this and if you know it please say. :D**All Server Side.**In Controlsmake 2 commands ( cmdLoadMOTD and cmdMOTDChange )and make textbox ( txtMOTD )Like this:![](http://www.bildites.lv/images/9f9dwkyxtllxln88s6n.png)**In frmServer code just paste this**```Function ReadFile()Dim ReadFileName As StringReadFile = GetVar(App.Path & "\data\options.ini", "OPTIONS", "MOTD")txtMOTD.Text = ReadFileClose #1End FunctionPrivate Sub cmdLoadMOTD_Click()ReadFileEnd SubFunction WriteFile()Dim WriteFileName As StringPutVar App.Path & "\data\options.ini", "OPTIONS", "MOTD", Options.MOTDOptions.MOTD = txtMOTD.TextClose #1End FunctionPrivate Sub cmdMOTDChange_Click()WriteFileEnd Sub```Update!Change```Private Sub cmdMOTDChange_Click()WriteFileEnd Sub```to```Private Sub cmdMOTDChange_Click()WriteFile Call GlobalMsg("MOTD changed to: " & txtMOTD.Text, BrightCyan)End Sub``` Link to comment Share on other sites More sharing options...
Prince Posted October 23, 2011 Share Posted October 23, 2011 Pretty useful Link to comment Share on other sites More sharing options...
Harris6310 Posted October 23, 2011 Share Posted October 23, 2011 I'm doing to same thing with my server, though I'm adding console commands and doing it that way. Link to comment Share on other sites More sharing options...
bunny123 Posted June 13, 2012 Share Posted June 13, 2012 Use the following code to send a global message:Call GlobalMsg("(Message)", (Color))Colors:Black, Blue, Green, Cyan, Red, Magenta, Brown, Grey, DarkGrey, BrightBlue, BrightGreen, BrightCyan, BrightRed, Pink, Yellow, White, SayColor, GlobalColor, BroadcastColor, TellColor, EmoteColor, AdminColor, HelpColor, WhoColor, JoinLeftColor, NpcColor, AlertColor, NewMapColor Link to comment Share on other sites More sharing options...
DarkOne5890 Posted June 27, 2012 Share Posted June 27, 2012 Cant you do it by entering /motd isnt it easier sorry for late post Link to comment Share on other sites More sharing options...
Gold Apple Posted June 27, 2012 Share Posted June 27, 2012 I like this. I'll add it to my game. Crediting you of course. Link to comment Share on other sites More sharing options...
DarkOne5890 Posted June 28, 2012 Share Posted June 28, 2012 @Gold:> I like this. I'll add it to my game. Crediting you of course.Im sorry but who u talking to Link to comment Share on other sites More sharing options...
JohnPony Posted June 28, 2012 Share Posted June 28, 2012 @DarkBeast:> Im sorry but who u talking toThe damn OP who else? Link to comment Share on other sites More sharing options...
DarkOne5890 Posted June 28, 2012 Share Posted June 28, 2012 @General-Pony:> The damn OP who else?I feel stupid but I think my way is easier. Link to comment Share on other sites More sharing options...
Domino_ Posted June 28, 2012 Author Share Posted June 28, 2012 @DarkBeast:> I feel stupid but I think my way is easier./motd is client side… I made it server side to load and make new...In client if you make mistake in text somewhere you have to rewrite it but from server side you load and edit the wrong part.... Link to comment Share on other sites More sharing options...
Stein Posted June 28, 2012 Share Posted June 28, 2012 In all honesty, you're better off making an option on the admin panel for it. I mean usually when a server is hosted it is hosted on a remote computer that you don't use for anything BUT hosting a server, so you don't have any access to it aside from remote desktop or whatever half the time. Would you really want to connect to a remote desktop or walk over there to change a silly message each and every time?Just a word of advice. ;](Note: Not saying the idea is bad, just saying it's probably better to keep it client-side on the admin panel) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now