Print Page | Close Window

Increase max items

Printed From: Mirage Source
Category: Tutorials
Forum Name: Temporary Archive (Read Only)
Forum Discription: Temporary 3.0.3 archive tutorials, will be deleted when converted.
URL: http://ms.shannaracorp.com/backup-forums/forum_posts.asp?TID=134
Printed Date: 20 December 2006 at 5:52pm
Software Version: Web Wiz Forums 8.01 - http://www.webwizforums.com


Topic: Increase max items
Posted By: Sync
Subject: Increase max items
Date Posted: 11 February 2006 at 2:41pm
Difficulty: Easy 2/5

Originaly Posted By: Sonire

I know this is fairly simple to do, but I couldn't figure it out when I was new to MS.


Client Side, modTypes:
Find Code:
Public Const MAX_ITEMS = 255


And Replace it with:
Public Const MAX_ITEMS As Integer = 500


Then find code:

Type PlayerInvRec
Num As Byte
Value As Long
Dur As Integer
End Type


Change:
Num As Byte
to
Num As Integer


Then find:

Type MapItemRec
Num As Byte
Value As Long
Dur As Integer


And Change:
Num As Byte
to
Num As Integer


Server Side, modTypes:
Find Code:
Public Const MAX_ITEMS = 255


And Replace it with:
Public Const MAX_ITEMS As Integer = 500


Then find code:

Type PlayerInvRec
Num As Byte
Value As Long
Dur As Integer
End Type


Change:
Num As Byte
to
Num As Integer


Then find:

Type MapItemRec
Num As Byte
Value As Long
Dur As Integer


And Change:
Num As Byte
to
Num As Integer



Hope some one finds this useful



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums version 8.01 - http://www.webwizforums.com
Copyright ©2001-2006 Web Wiz Guide - http://www.webwizguide.info