Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO 2.0]Tutorial Message


XPiXel
 Share

Recommended Posts

**This guide 100% supports Version 2.0,but it has not been tested on outdated versions.
**_______________________________________________________________________**
This is a guide on how to add a tutorial message when you first log-in. By the end of the tutorial, you must have created a tutorial message like I said above. Everything is client-side , and of course ,you need **Visual Basic 6(Enterprise/Professional)**.

1.Open up your "**client.vbp**".
2.Open up your "**modGeneral**" and search for:
```
Public Sub MenuState(ByVal state As Long)
```Under this:
```
MENU_STATE_ADDCHAR
```Add this below it:
```
            frmMain.picTutorial.Left = frmMain.txtChat.Left
            frmMain.picTutorial.top = frmMain.txtChat.top
            frmMain.txtMyChat.Locked = True
            frmMain.picTutorial.Visible = True
```
3.Open up your "**frmMain**" and search for:
```
Private Sub Form_Unload(Cancel As Integer)
```Under this:
```
logOutGame
```Add this below it:
```
    picTutorial.Visible = False
    txtMyChat.Locked = False
    frmMain.txtMyChat.Visible = True
```
4.Add the following form work:

>! Make a picturebox with the following properties:
**Name** - picTutorial
**BackColor** - &H000C0E0F&
**Visible** - True
(To see the picturebox with these positioning properties, extend the form's height)
**Left** - 432
**Height** - 138
**Top** - 704
**Width** - 476
>! Make a label on the picturebox with the following properties:
**Name** - lblTutorialName
**Caption** - Welcome to Eclipse Origins! (This is an optional caption.)
**Font** - Georgia 8(Bold)
**BackStyle** - Transparent
**ForeColor** - &H8000000E&
**Height** - 255
**Left** - 120
**Top** -  240
**Width** - 6855
>! Make a second label on the picturebox with the following properties:
**Name** - lblTutorialText
**Caption** - Before playing, you should learn the basic controls for the game. First, use the ARROW KEYS to move your character. Use SHIFT to walk slower. Use the CONTROL key to attack or interact with NPCs. Finally, use the MOUSE to interact with the game interface, target players and NPCs and other things. (This is an optional caption.)
**Font** - Georgia 8
**BackStyle** - Transparent
**ForeColor** - &H8000000E&
**Height** - 855
**Left** - 120
**Top** - 600
**Width** - 6855
>! Make a third label on the picturebox with the following properties:
**Name** - lblTutorialExit
**Caption** - Close Window (This is an optional caption.)
**Font** - Georgia 8(Bold)
**BackStyle** - Transparent
**ForeColor** - &H8000000E&
**Height** - 255
**Left** - 2880
**Top** - 1560
**Width** - 1335

5.Double-click "**lblTutorialExit**" and add this:
```

picTutorial.Visible = False
txtMyChat.Locked = False
```**_______________________________________________________________________**
Remember to put the height back to the original after doing the form work.
Glad to help out, if you get any issues on this, feel free to reply.
**Please do not PM me for any issues on this tutorial.
Please give me credit if you are to use this.****
Link to comment
Share on other sites

@Domino_:

> Looks good, but woun't this tutorial message appear afther closing game and login again?

Yes, it's the same reason why I added that code to the NPC Speech Box, like when you log in, the NPC conversation you were in would be gone.

```
    picTutorial.Visible = False
```
If you want to remove it just remove the code above in your project below logoutGame. Don't remove anything else if you want your players not to be able to type when they log in again without closing the client.

By the way,
```
            frmMain.txtMyChat.Locked = True
```This code is to prevent typing when the tutorial is up.
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
@Likestodraw:

> Why would you post this tutorial when you posted another tutorial that was much more simple?

Ugh… I thought this tutorial was resting in peace until you bumped it, lol.
Anyways, that other one was just a simple chatbox message, this one is really a tutorial to match those NPC dialogues, so I posted this one to improve the first terrible and simple one. I prefer you use this one.

@whittenator25:

> I did it but nothing is popping up…any ideas what it might be?

Register again. This only shows up to first-time players.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...