Public Sub display(Index As Integer)
On Error Resume Next
Dim a As Integer
Dim msg As String
msg = Chr$(2)
'
If City(User(Index).Location).OwnerGUID <> User(Index).UName Then
frmMain.wsk(Index).SendData Chr$(2) & "You need to return to you hideout before you can stash items." & vbCrLf & vbCrLf & Chr$(0)
DoEvents
Exit Sub
End If
For a = 0 To UBound(Item)
If Item(a).ItemGUID = User(Index).UserGUID And _
Item(a).OnPlayer = False Then 'item belongs to me, aint on me..so must be stored.
frmMain.wsk(Index).SendData Chr$(2) & "Your stash, type grab itemname." & vbCrLf & vbCrLf & Chr$(0)
DoEvents
msg = msg & Item(a).IName & vbCrLf & Chr$(0)
End If
Next a
'Runs if no item in room matches get message
frmMain.wsk(Index).SendData Chr$(2) & "You have no stashed items matching that name." & vbCrLf & vbCrLf & Chr$(0)
DoEvents
frmMain.wsk(Index).SendData msg & Chr$(0)
DoEvents
End Sub