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

[SOLVED] Remove Stats Limit


Shube
 Share

Recommended Posts

@Shube:

> How can i remove the stats limits? How can i set the stats limit at 999?

Using VB6 you can compile codes to your game. Updating both CLIENT & SERVER are required.
Step 1: Go to server>src>modConstants which SHOULD be a VB6 file.
Step 2: Edit it with VB6, then compile in "Run"
Step 3: Save
Then do the exact same with the client.

The max for the bytes is 255, not 999.
In those files it should be easy to decide which is which.

Hope this helped.
Link to comment
Share on other sites

Ignore Cici.

The stats are represented by constants, which are unchanging variables. The MAX_ constants are bytes, or you could think of them as variables that have a range of 0 - 255\. By changing any of the MAX_ variables defined "As Byte" you cannot make them surpass 255 or go below 0, or you'll get an "Overflow" error. If you wish your MAX_  variable to be larger, simply change the "As Byte" for that variable definition to "As Integer" or "As Long" if you wish to know the ranges of those data types, google "VB6 data types" and you'll find a nifty little chart.

Now to edit these MAX_ variables, you must edit the source code appropriately. To do this, open your Client and Server projects respectively, these are in the Client and Server folders, .vbp files.

Now in your VB6 IDE should be a list of source files, in each project you're going to want to the edit the appropriate MAX_ variable in the module modConstants. You must then File -> Save Project, and File -> Make "Client.exe" / "Server.exe" to make the executable versions of the code include your modifications.

Hope this helps.
Link to comment
Share on other sites

Ok, thank you all! I love this community ^^

I have changed in server side and client side (they are more than one)
```
Stat(1 To Stats.Stat_Count - 1) as Byte
```with
```
Stat(1 To Stats.Stat_Count - 1) as Long
```
Im sorry for my bad english! But its dont work..
Link to comment
Share on other sites

@Shube:

> Ok, thank you all! I love this community ^^
>
> I have changed in server side and client side (they are more than one)
> ```
> Stat(1 To Stats.Stat_Count - 1) as Byte
> ```with
> ```
> Stat(1 To Stats.Stat_Count - 1) as Long
> ```
> Im sorry for my bad english! But its dont work..

Have you removed all your accounts after the edit?
Link to comment
Share on other sites

@Sigridunset:

> How did you solve it?

1) Client and Server side
Change all
```
(1 To Stats.Stat_Count - 1) as Byte
```with
```
(1 To Stats.Stat_Count - 1) as Long
```
2) Client side
Change
```
If Value > MAX_BYTE Then Value = MAX_BYTE
```with
```
If Value > MAX_LONG Then Value = MAX_LONG
```
3) Server side
Delete this folders: …server/data/account and ...server/data/items
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...