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

Stuck


Matt
 Share

Recommended Posts

Where can i change the amount of stat points given per combat level achieved? And how can i add a new object tool type? I went to client and searched for "hatchet". i came up with only the code for editor resource. I saw
>!         Case 0
            Name = "None"
        Case 1
            Name = "Hatchet"
        Case 2
            Name = "Rod"
        Case 3
            Name = "Pickaxe"
and so added in

>!         Case 4
            Name = "Flint"
I looked for another place in the code where hatchet was and found nothing. I looked at the server side, and found nothing. I saw no max object tools, so i compiled and it didnt work. :(
Link to comment
Share on other sites

Well, it's easy, but not that easy. You've already done the first step, but I'll post it here anyway for future reference.

**Client-side** (yes, client-side!)

Find:
```
Select Case scrlTool.Value

```
and before the End Select add:
```
        Case 4
            Name = "Flint"

```
Note: you **increment the previous case by 1** and then **change the name in quotation marks to whatever you want it to be.**

Now it's time to modify the GUI to reflect the changes you made.

Go to scrlTool on frmEditor_Resource. Change the maximum to one more than what it was before (in this case, we change it to four because we are on Case 4, the next item would be five).

In frmEditor_Item, go to cmbTool and add your tool on to the list. Keep it in the order it is in!

That's all. If anything I said is wrong, inaccurate, or just doesn't work, feel free to post.
Link to comment
Share on other sites

Thank you so much! It really helped me :)
As for the leveling up, i went looking through the code and found it in modPlayer in the server side.
>!     Do While GetPlayerExp(index) >= GetPlayerNextLevel(index)
        expRollover = GetPlayerExp(index) - GetPlayerNextLevel(index)

        ' can level up?
        If Not SetPlayerLevel(index, GetPlayerLevel(index) + 1) Then
            Exit Sub
        End If

        Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 3)
        Call SetPlayerExp(index, expRollover)
        level_count = level_count + 1
    Loop

all you have to do is change the 3 to the desired number and compile. :D
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...