horsehead Posted February 15, 2011 Author Share Posted February 15, 2011 This is a simple serverlist Tutorial… Lets begin.ALL Client Side1\. Create 2 optionbuttons on frmMenu, picLogin.2\. Put 2 labels next to the otionbuttons and give them as caption the name of the different servers.3\. open the code of the optionbuttons and add that in them> Private Sub Option1_Click()> If Option1 = True Then> Option2 = False> If Option1 = True Then> Options.Port = 7001> SaveOptions> End If> End If> > End Sub> > Private Sub Option2_Click()> > If Option1 = False Then> Option2 = True> If Option2 = True Then> Options.Port = 7002> > SaveOptions> End If> End If> > End Sub4\. Then open the code of lblLAccept and add> frmMain.Socket.RemotePort = Options.Portabout> If isLoginLegal(txtLUser.text, txtLPass.text) Then5\. now you can create a second server folder (Copy your EO server) and change in the second server folder the port to 7002.So I hope I dont forgotten something… Enjoy it^^ Link to comment Share on other sites More sharing options...
EclipseCommunity Posted February 15, 2011 Share Posted February 15, 2011 A good feature if your server has at least 100 active players, otherwise I don't see the point, unless you have 2 different games using the same graphics. Link to comment Share on other sites More sharing options...
Tvirus06 Posted February 15, 2011 Share Posted February 15, 2011 Lol. you took my idea. I had this already but differnet i think? Link to comment Share on other sites More sharing options...
horsehead Posted February 15, 2011 Author Share Posted February 15, 2011 Yes that feature is more usefull for games with more players… but if anyone want to add it so he or she can it^^ Link to comment Share on other sites More sharing options...
Jumbofile Posted February 15, 2011 Share Posted February 15, 2011 how do you add optionbuttons Link to comment Share on other sites More sharing options...
horsehead Posted February 15, 2011 Author Share Posted February 15, 2011 @Noctis:> Yes that feature is more usefull for games with more players… but if anyone want to add it so he or she can it^^regard at first its for me to learn to programm but i release my stuff for others thats the bonus and i dont want to steal anyones ideas but every big mmo had this feature Link to comment Share on other sites More sharing options...
horsehead Posted February 15, 2011 Author Share Posted February 15, 2011 @Neno:> how do you add optionbuttonsyou need VB 6 and on the top of the menu is a hammer icon click it and you open a toolbox to create optionsboxes and that stuff Link to comment Share on other sites More sharing options...
Jumbofile Posted February 15, 2011 Share Posted February 15, 2011 doesn't open a tool box Link to comment Share on other sites More sharing options...
horsehead Posted February 15, 2011 Author Share Posted February 15, 2011 http://www.freemmorpgmaker.com/files/imagehost/pics/a8784b05446a558ffbe1718d5f706420.jpghere is a picturePS: Post 100 xP Link to comment Share on other sites More sharing options...
Tvirus06 Posted February 16, 2011 Share Posted February 16, 2011 Mines better, Mine has a custom interface, with server status. and be able to click which server to connect to with a character transfer with saves :D. my project of this is on this forum, just digg for it. Link to comment Share on other sites More sharing options...
horsehead Posted February 16, 2011 Author Share Posted February 16, 2011 @SnowFox:> Mines better, Mine has a custom interface, with server status. and be able to click which server to connect to with a character transfer with saves :D. my project of this is on this forum, just digg for it.I looked into your world selection thread. Its nice but how can i code the server startus check? Link to comment Share on other sites More sharing options...
Jumbofile Posted February 16, 2011 Share Posted February 16, 2011 it would be cool if you made it so you needed a member ship or admin status Link to comment Share on other sites More sharing options...
Jumbofile Posted February 16, 2011 Share Posted February 16, 2011 in the last step is about part of the code Link to comment Share on other sites More sharing options...
horsehead Posted February 16, 2011 Author Share Posted February 16, 2011 @Neno:> in the last step is about part of the codeyes its possible i test it and maybe post a tutorial for this later but you must login before you can check if the account have an admin status Link to comment Share on other sites More sharing options...
aaaron Posted February 16, 2011 Share Posted February 16, 2011 You should post pictures on it. Link to comment Share on other sites More sharing options...
mitlark Posted February 16, 2011 Share Posted February 16, 2011 Well, at least it do the trick, so it's good =).As for the server status checker, take a look at this:```Function IsConnected() As Boolean```You then use the port change and then call the IsConnected and save that value somewhere. With that, you can check if connection is possible. Something like this:```lblServerStat(1).Caption = "Offline"lblServerStat(2).Caption = lblServerStat(1).Caption 'not sure, but there probably exist better ways... I'm bad at this stuff ya know?Select Case Index Case 1 frmMain.Socket.RemotePort = Options.Port frmMain.Socket.Close frmMain.Socket.Connect I = IsConnected lblServerStat(Index).Caption = "Online" if I = True Case 2 frmMain.Socket.RemotePort = Options.Port frmMain.Socket.Close frmMain.Socket.Connect I = IsConnected lblServerStat(Index).Caption = "Online" if I = True End Select```I think that it should do the trickGood luck,L'ark Mitsinikos Link to comment Share on other sites More sharing options...
Ne-o-x Posted February 19, 2011 Share Posted February 19, 2011 Working like a charm :D Link to comment Share on other sites More sharing options...
Draken Posted March 1, 2011 Share Posted March 1, 2011 nice Tutorial very useful if you want to set up a full PVP server or a Non PVP server. 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