Ertzel Posted October 2, 2012 Author Share Posted October 2, 2012 The following tutorial will show you how to add a character editor to the server program. The editor will allow you to edit player levels, exp, stats and also inventory item/amounts and bank items/amounts.First go to frmServer and click on the SSTab1 (The background of the frm) Scroll down in the Properties panel until you find the Tabes and TabesPerRow sections. Change both of those from 3 to 4\. Now click on the 4th tab you will now see at the top. Change it's caption to Character Editor (or whatever you want it called) **(*NOTE: If using Dragon Eclipse, Tables and TablesPerRow will already be 4 and need to be changed too 5)**Now download the [following link](http://www.mediafire.com/download.php?bq9gohijo28azv8) and open the project in vb6\. Copy-Paste everything from the frmCharEditorTab in this project onto your new tab created in your server source.Now click anywhere on frmServer and add the following at the bottom:```''''''''''''''''''''''' Character Editor'''''''''''''''''''''''Private Sub cmdEBankLoad_Click()Dim i As LongIf txtEInvNum.Text > MAX_INV Then txtEInvNum.Text = MAX_INV Exit SubEnd If i = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then txtEBItemNum.Text = GetPlayerBankItemNum(i, txtEBankNum.Text) txtEBItemQty.Text = GetPlayerBankItemValue(i, txtEBItemQty.Text)Else Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdEBankLoadNext_Click()Dim i As LongIf txtEInvNum.Text + 1 > MAX_BANK Then Exit SubtxtEBItemNum.Text = txtEBItemNum.Text + 1i = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then txtEBItemNum.Text = GetPlayerBankItemNum(i, txtEBItemNum.Text) txtEBItemQty.Text = GetPlayerBankItemValue(i, txtEBItemQty.Text)Else Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdEBankSave_Click()Dim i As Longi = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then SetPlayerBankItemNum i, txtEBankNum.Text, txtEBItemNum.Text SetPlayerBankItemValue i, txtEBankNum.Text, txtEBItemQty.Text SaveBank i SavePlayer i SendPlayerData iElse Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdEInvLoad_Click()Dim i As LongIf txtEInvNum.Text > MAX_INV Then txtEInvNum.Text = MAX_INV Exit SubEnd Ifi = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then txtEItemNum.Text = GetPlayerInvItemNum(i, txtEInvNum.Text) txtEItemQty.Text = GetPlayerInvItemValue(i, txtEInvNum.Text)Else Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdEInvLoadNext_Click()Dim i As LongIf txtEInvNum.Text + 1 > MAX_INV Then Exit SubtxtEInvNum.Text = txtEInvNum.Text + 1i = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then txtEItemNum.Text = GetPlayerInvItemNum(i, txtEInvNum.Text) txtEItemQty.Text = GetPlayerInvItemValue(i, txtEInvNum.Text)Else Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdEInvSave_Click()Dim i As Longi = FindPlayer(txtEName.Text)If FindPlayer(txtEName.Text) Then SetPlayerInvItemNum i, txtEInvNum.Text, txtEItemNum.Text SetPlayerInvItemValue i, txtEInvNum.Text, txtEItemQty.Text SendInventoryUpdate i, txtEInvNum.Text SendPlayerData i SavePlayer iElse Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdELoad_Click()Dim i As Longi = FindPlayer(txtEName.Text)If Not FindPlayer(txtEName.Text) = 0 Then txtELvl.Text = GetPlayerLevel(i) txtEExp.Text = GetPlayerExp(i) txtEPts.Text = GetPlayerPOINTS(i) txtEStr.Text = GetPlayerStat(i, Strength) txtEEnd.Text = GetPlayerStat(i, Endurance) txtEInt.Text = GetPlayerStat(i, Intelligence) txtEAgi.Text = GetPlayerStat(i, Agility) txtEWill.Text = GetPlayerStat(i, Willpower) txtEInvNum.Text = 1 txtEItemNum.Text = GetPlayerInvItemNum(i, 1) txtEItemQty.Text = GetPlayerInvItemValue(i, 1) txtEBankNum.Text = 1 txtEBItemNum.Text = GetPlayerBankItemNum(i, 1) txtEBItemQty.Text = GetPlayerBankItemValue(i, 1)Else Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd SubPrivate Sub cmdESave_Click()Dim i As Longi = FindPlayer(txtEName.Text)If Not FindPlayer(txtEName.Text) = 0 Then If GetPlayerLevel(i) < txtELvl.Text Then SetPlayerPOINTS i, GetPlayerPOINTS(i) + (3 * (txtELvl.Text - GetPlayerLevel(i))) SendPlayerData i txtEPts.Text = GetPlayerPOINTS(i) End If SetPlayerLevel i, txtELvl.Text SetPlayerExp i, txtEExp.Text SetPlayerPOINTS i, txtEPts.Text SetPlayerStat i, Strength, txtEStr.Text SetPlayerStat i, Endurance, txtEEnd.Text SetPlayerStat i, Intelligence, txtEInt.Text SetPlayerStat i, Agility, txtEAgi.Text SetPlayerStat i, Willpower, txtEWill.Text SetPlayerInvItemNum i, txtEInvNum.Text, txtEItemNum.Text SetPlayerInvItemValue i, txtEInvNum.Text, txtEItemQty.Text SetPlayerBankItemNum i, txtEBankNum.Text, txtEBItemNum.Text SetPlayerBankItemValue i, txtEBankNum.Text, txtEBItemQty.Text SendInventoryUpdate i, txtEInvNum.Text SendEXP i CheckPlayerLevelUp i SaveBank i SavePlayer i SendPlayerData iElse Call MsgBox("Player Not Found!", vbOKOnly)End IfEnd Sub```After adding the above tutorial and labels your Server should look something like this for the Character Editor tab:>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/bb1a521d7ac2a6ff92dd310725281e55.png) Link to comment Share on other sites More sharing options...
TheLordOfTheManor Posted October 2, 2012 Share Posted October 2, 2012 Nice! Will be adding this to AVSW soon! Link to comment Share on other sites More sharing options...
clark Posted October 2, 2012 Share Posted October 2, 2012 Me too ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)PS: it won't surcharge the server ? Link to comment Share on other sites More sharing options...
Ertzel Posted October 2, 2012 Author Share Posted October 2, 2012 > PS: it won't surcharge the server ?Now sure what this question means.. If you are downloading the files, replacing the ones in your source with them should work right away. Link to comment Share on other sites More sharing options...
clark Posted October 2, 2012 Share Posted October 2, 2012 > Now sure what this question means.. If you are downloading the files, replacing the ones in your source with them should work right away.I mean adding this script won't decrease the performances of the server right?Like : (less players , more lags etc..) ? Link to comment Share on other sites More sharing options...
Zzbrandon Posted October 2, 2012 Share Posted October 2, 2012 It depends if you are paying for a host for your game you can hold more players with less lag if it is running on one computer then more lag if more player's It works with Dragon Eclipse just have to edit some lines. Hope I helped! Link to comment Share on other sites More sharing options...
clark Posted October 2, 2012 Share Posted October 2, 2012 Ok thanks ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)! Link to comment Share on other sites More sharing options...
iSnow Posted October 2, 2012 Share Posted October 2, 2012 Useful indeed. Loving the amount of devotion Advanced is getting with it's progress xD Although I'll definitely have to check this. Link to comment Share on other sites More sharing options...
tslusny Posted October 2, 2012 Share Posted October 2, 2012 Good job Ertzel ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Joyce Posted October 2, 2012 Share Posted October 2, 2012 Wouldn't this make much more sense on a properly worked and tabbed out admin panel in the game? I mean in general when you host your server you're not going to stare at the server computer through an RDP all day. Link to comment Share on other sites More sharing options...
clark Posted October 2, 2012 Share Posted October 2, 2012 > Wouldn't this make much more sense on a properly worked and tabbed out admin panel in the game? I mean in general when you host your server you're not going to stare at the server computer through an RDP all day.+1 That's true i forgot about thatYou can do it as Joyce said , or maybe make an .exe acount editor that connect to the server Link to comment Share on other sites More sharing options...
Joyce Posted October 2, 2012 Share Posted October 2, 2012 Aherm, just to re-iterate.. I don't mean the tutorial is useless or bad, not by any stretch of the imagination. Link to comment Share on other sites More sharing options...
damian666 Posted October 2, 2012 Share Posted October 2, 2012 i used to do exactly that, watch my server tru teamviewer xdso i think this is great ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Ertzel Posted October 2, 2012 Author Share Posted October 2, 2012 Okay, I created the same thing but client side also. I'll upload it sometime today when I have time and fix one final bug (it randomly adds numbers to the strength stat when saving)It will do all the same things this tutorial does and look the same, but be accessed through the Admin Panel opening a new editor in-game for people Developer status or higher. Link to comment Share on other sites More sharing options...
Alerd Posted October 2, 2012 Share Posted October 2, 2012 Work on eo 2.3?? Link to comment Share on other sites More sharing options...
Ertzel Posted October 2, 2012 Author Share Posted October 2, 2012 It should, you may need to rename some of the variables, but I don't think you will have to. Link to comment Share on other sites More sharing options...
TheLordOfTheManor Posted October 4, 2012 Share Posted October 4, 2012 > It depends if you are paying for a host for your game you can hold more players with less lag if it is running on one computer then more lag if more player's It works with Dragon Eclipse just have to edit some lines. Hope I helped!What lines specifically? Link to comment Share on other sites More sharing options...
Ertzel Posted October 4, 2012 Author Share Posted October 4, 2012 From my own tests of adding this to Dragon Eclipse, nothing had to be changed except you had to create all the buttons/text boxes/labels on your own. I have changed the download link now to be a new project constraining all the labels/buttons/text boxes and to add it to your server you now follow these step:> First go to frmServer and click on the SSTab1 (The background of the frm) Scroll down in the Properties panel until you find the Tabes and TabesPerRow sections. Change both of those from 3 to 4\. Now click on the 4th tab you will now see at the top. Change it's caption to Character Editor (or whatever you want it called) **(*NOTE: If using Dragon Eclipse, Tables and TablesPerRow will already be 4 and need to be changed too 5)**> > Now download the [following link](http://www.mediafire.com/download.php?bq9gohijo28azv8) and open the project in vb6\. Copy-Paste everything from the frmCharEditorTab in this project onto your new tab created in your server source.Then the rest from the tutorial at the top. I have also updated the main post to have this new setup link and instructions. Link to comment Share on other sites More sharing options...
Ganjika Posted November 28, 2012 Share Posted November 28, 2012 Does this work on EO Nightly Dx8? I am getting a type mismatch errorat```If txtEInvNum.Text > MAX_INV Then```nvm - there was some typos in tutorial i believe. 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