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

[EOv2.0] How To Add New Equipment Slots


Justn
 Share

Recommended Posts

  • Replies 128
  • Created
  • Last Reply

Top Posters In This Topic

Make sure you did this part in mod constants:
```
' Character consts
Public Const EqTop As Long = 164
Public Const EqLeft As Long = 43
Public Const EqOffsetX As Long = 3
Public Const EqOffsetY As Long = 4
Public Const EqColumns As Long = 3

```
And make sure  you did this : Find in Sub BltEquipment():
```
With rec_pos
                .top = EqTop
                .Bottom = .top + PIC_Y
                .Left = EqLeft + ((EqOffsetX + 32) * (((i - 1) Mod EqColumns)))
                .Right = .Left + PIC_X
            End With
```
change to:
```
With rec_pos
                .top = EqTop + ((EqOffsetY + 32) * ((i - 1) \ EqColumns))
                .Bottom = .top + PIC_Y
                .Left = EqLeft + ((EqOffsetX + 32) * (((i - 1) Mod EqColumns)))
                .Right = .Left + PIC_X
            End With
```
And in frmMain Find Private Function IsEqItem:
```
.Top = EqTop
```
change to:
```
.Top = EqTop + ((EqOffsetY + 32) * ((i - 1) \ EqColumns))
```
Here is a new char window if anyone needs it:

>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/7a4fdd9913ac5a4701cd2a5d6ef5139b.JPG)
>! ![](http://www.freemmorpgmaker.com/files/imagehost/pics/e65ed629fefba0668917d994b0a34a6e.JPG)
**updated OP with downloads for the pictures
Link to comment
Share on other sites

~~in the client?~~

I dont think it is you should delete your item dat files or go to your item editor and make sure the axe is still set as a weapon cause it can change when you edit your cmbtype list.

If that doesnt help make sure you set this to the right order in the server:
```
' Equipment used by Players
Public Enum Equipment
    Enchant = 1
    Helmet
    Ring
    Weapon
    Armor
    Shield
    Glove
    Legs
    Boots
    ' Make sure Equipment_Count is below everything else
    Equipment_Count
End Enum
```
Link to comment
Share on other sites

Ok I see what you did wrong..
First you added this to picspells_mouseup:
```
With rec_pos
                .top = EqTop + ((EqOffsetY + 32) * ((i - 1) \ EqColumns))
                .Bottom = .top + PIC_Y
                .Left = EqLeft + ((EqOffsetX + 32) * (((i - 1) Mod EqColumns)))
                .Right = .Left + PIC_X
            End With
```
I changed it back to this:
```
' drag + drop
        For i = 1 To MAX_PLAYER_SPELLS
            With rec_pos
                .top = SpellTop + ((SpellOffsetY + 32) * ((i - 1) \ SpellColumns))
                .Bottom = .top + PIC_Y
                .Left = SpellLeft + ((SpellOffsetX + 32) * (((i - 1) Mod SpellColumns)))
                .Right = .Left + PIC_X
            End With
```
And you didn't add this to the right spot cause you added it to picspells:
modDirectDraw7 in **Sub bltEquipment**
find: .top = EqTop
change to
```
.top = EqTop + ((EqOffsetY + 32) * ((i - 1) \ EqColumns))
```
<*Fixed and sent to u*>
Link to comment
Share on other sites

  • 2 weeks later...
i deleted all characters and items. Its a runtime error 9 subscript out of range. and when i run in debug it highlights the code i put on my first post. thanks for looking into it.    i just copied and pasted everything you did exactly and this time it worked so apparently im an idiot. thank you for all the help and this guide is sweet!
Link to comment
Share on other sites

_AddressOf HandlePlayerWornEq_

HandleDataSub(SPlayerWornEq) = GetAddress(AddressOf HandlePlayerWornEq)

When I go to compile the client I am faced with this? I went over the stuff a few times I probably missed something tho. Any thoughts?
Link to comment
Share on other sites

  • 2 weeks later...
@Sigridunset:

> I followed the whole tutorial and compiled. I then start the server and i open my client. As i log in, i get an RTE 9\. Any help?

[![](http://filehost.worldlifewarfare.com/pics/f7107396e15b1766b2ee62ffc3759e28.JPG)](http://filehost.worldlifewarfare.com/#f7107396e15b1766b2ee62ffc3759e28.JPG)
Link to comment
Share on other sites

Find these and change them to fit what u need

```
' Character consts
Public Const EqTop As Long = 164
Public Const EqLeft As Long = 43
Public Const EqOffsetX As Long = 3
Public Const EqOffsetY As Long = 4
Public Const EqColumns As Long = 3

```
If u can't figure it out ill help u when I get home from work
Link to comment
Share on other sites

Well first off u need to change the eqcolumns to 5 then the rest is for where it draws and the spacing. Then to change the order in which it draws them find this
```
' Equipment used by Players
Public Enum Equipment

```
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...