ollievar Posted December 12, 2007 Author Share Posted December 12, 2007 Player Trade Request Box TutorialThis tutorial assumes you are using Eclipse Evolution [not tested on other versions].This tutorial explains how to install a small form, like the settings form into your game. The player enters a user-name into the text box and if the player is online the player recieves a trade-request.This makes Player to Player Trading a WHOLE lot easier! This is a MUST-HAVE in ANY eclipse game. **NOTE: I will include an accept/reject trade guide in this topic soon.****TUTORIAL BEGINS HERE:**1] Load frmMirage in VB62] Using the Picture Box tool, make a picture box roughly the same width and half the height of the settings box anywhere ON the gamescreen. Name this _picBarter_3] Create a small Command Button inside this picture box. Name it _cmdBarter_4] Create a text box suitable for a players name inside this picture box. Name it _txtBarter_5] Create a Command Button anywhere NOT on the game screen. For example, below where the HP, MP and EXP bars are located. Name this _cmdGoBarter_6] Create a label just above txtBarter in the picture box. Name it _lblBarter_. Change the caption to something like: "Player to send Request to". Create another label and name it _lblx_ . Change the caption to: "Cancel" and place it at the bottom of picBarter.7] Now, double click cmdBarter. This will open the code window, with Private Sub cmdBarter_Click(). Enter the following code between Private Sub cmdBarter_Click() and End Sub:``` ' Check if the name is long enough If Len(txtBarter.Text) > 3 Then Call SendTradeRequest(txtBarter.Text) Else Call AddText("Invalid Command", AlertColor) End If MyText = "" Exit Sub```8] Now, single click on picBarter. In the properties window, find the 'visible' property. Select 'False'.9] Double click on cmdGoBarter. Enter the following code in the between Sub cmdGoBarter_Click() and End Sub:```picBarter.Visible = True```10] Double click on lblx. Enter the following code in the sub:```picBarter.Visible = False```**YOUR DONE!**Now players will be able to trade a whole lot easier in your game increasing player economy in your game!Other Useful Source Tutorial: Server Select Tutorial : http://www.freemmorpgmaker.com/smf/index.php/topic,22032.0.htmlPLEASE NOTIFY ME OF ANY BUGS 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