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

Bank and shop


Jumbofile
 Share

Recommended Posts

Client side replace Sub OpenShop with:

```
Public Sub OpenShop(ByVal shopnum As Long)
    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    InShop = shopnum
    ShopAction = 0
    frmMain.picCover.Visible = False
    frmMain.picShop.Visible = True
    BltShop

    ' Error handler
    Exit Sub
errorhandler:
    HandleError "OpenShop", "modGameLogic", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
End Sub

```
Link to comment
Share on other sites

> what about trade that doesnt seem to work the same way?

It does, just not in that sub. You can search VB6 for "picCover.Visible = True" to disable it anywhere. 

I haven't edited this code. Read the comments.

```
Private Sub HandleTrade(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
Dim Buffer As clsBuffer

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    Set Buffer = New clsBuffer
    Buffer.WriteBytes Data()

    InTrade = Buffer.ReadLong

'This one! Change it to false.
    frmMain.picCover.Visible = True

'Not this one! D:
    frmMain.picTrade.Visible = True
    BltTrade

    Set Buffer = Nothing

    ' Error handler
    Exit Sub
errorhandler:
    HandleError "HandleTrade", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
End Sub
```
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...