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

Level cap


144701
 Share

Recommended Posts

Do you have Visual Basic 6? (There's a guide in that big TUTORIALS tab up top.)

If so, read on.

Open server.vbp. Press Control + F. Press the "Current Project" radio button. Copy and paste this into the Find box:
```
MAX_LEVELS As Long

```
Press Enter.

After that, there should be something like:
```
Public Const MAX_LEVELS As Long = 100

```
Change 100 to whatever you want to be the max level.

Now press File (in the top left corner) and then press "Make server.exe". You should now be able to level higher.

Do the same process above for client.vbp.

If you need any further help, do not be afraid to post.
Link to comment
Share on other sites

  • 1 month later...
I use Visual Basic 6.0 Enterprise,is that bad?(it is the only thing that works….) Visual Basic 6.0 (the normal) won't work for me....

I always change it on client and server side,and the max items,npc,level cap,and stuff stay same.... :(
Link to comment
Share on other sites

@djs428X:

> I use Visual Basic 6.0 Enterprise,is that bad?(it is the only thing that works….) Visual Basic 6.0 (the normal) won't work for me....

Its ok.

@djs428X:

> I always change it on client and server side,and the max items,npc,level cap,and stuff stay same…. :(

did you compile it?
Link to comment
Share on other sites

@djs428X:

> Omg! I did it finally! Thanks so much,finally I changed the level cap! :) But I can't change the max items,npc,maps and stuff…....and how do I change Experience need to level up?

Change MAX_ITEMS, MAX_NPCS and others **both client and server** (in modConstants)

For the exp needed to level up, its a formula, its in **Function GetPlayerNextLevel**

@djs428X:

> What do you mean Compile? As in Save Server.exe? I did….(and also in Launcher,but Launcher won't let me save because of some memory data thing)

File -> Make Server.exe
Link to comment
Share on other sites

@djs428X:

> I did in  both sides and I did the Make Server.exe…..still the same things....and I am going to try Experience thing now. (The MAX_ITEMS,NPCS and stuff are still same = 255)

Did you also compiled client side?

@djs428X:

> Where is the formula?? (Function GetPlayerNextLevel)

**Server side -> modPlayer**

And stop double posting, there is an edit button for that.
Link to comment
Share on other sites

@djs428X:

> Sorry XD I can't compile in Client….. It says when ever I try to compile: COMPILE ERROR: METHOD OR DATA MEMBER NOT FOUND
>
> I went to ModPlayer and I found the formula but I don't see anything to change the experience. o.o

Press Debug and tell us what he's selecting.

And the exp is calculated with that formula, if you want to change it easily I recommend you do this tutorial:
http://www.touchofdeathforums.com/smf/index.php/topic,60997.0.html
Link to comment
Share on other sites

I'l try to do tutorial,thanks :)

The selection selects:

–-------------------------------------------------------

If frmMain.chckLv = 1 Then
    If GetPlayerAccess(Index) = 0 Then

---------------------------------------------------------

(It selects the:    .chckLv    )

Those words are found in ModText
Link to comment
Share on other sites

@djs428X:

> I'l try to do tutorial,thanks :)
>
> The selection selects:
>
> –-------------------------------------------------------
>
> If frmMain.chckLv = 1 Then
>     If GetPlayerAccess(Index) = 0 Then
>
> ---------------------------------------------------------
>
> (It selects the:    .chckLv    )
>
> Those words are found in ModText

Is there a checkbox called chckLv on frmMain?
Link to comment
Share on other sites

@djs428X:

> No…......pretty sure there ain't....
>
> By the way I am looking at the Experience Tutorial and this person isn't explaining exekly what to do....I hate tutorials like those.....I never understand A thing what to do.

Remove the code or make a new checkbox called chkLv.

And everything is very well explained (were to put things, etc.), if you cant even follow a tutorial then I don't recommend making a game.
Link to comment
Share on other sites

I just read the first part of the tutorial,there is: Public Const MAX_LEVELS As Byte = 100      written on A code box…....she didnt say where to put it,she says what is under the text what to put in.....I don't think I may follow it good.....

anyways.......so I change from this:            If frmMain.chckLv = 1 Then
To this?:                                                      If frmMain chekLv = 1 Then

Brb....please send me a message.
Link to comment
Share on other sites

@djs428X:

> I just read the first part of the tutorial,there is: Public Const MAX_LEVELS As Byte = 100      written on A code box…....she didnt say where to put it,she says what is under the text what to put in.....I don't think I may follow it good.....

Every tutorial does that, and Ballie is a male.

@djs428X:

> anyways…....so I change from this:            If frmMain.chckLv = 1 Then
> To this?:                                                      If frmMain chekLv = 1 Then
>
> Brb....please send me a message.

Try that, and if it doesn't work delete it or comment it out (put ' in front of it)
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...