02-06-2006, 06:59 PM
Author: grimsk8ter11
Difficulty: 1/5
Example of how you can change some variables in Mirage to get some new effects. The "Amulet of Speed" item:
:: CLIENT SIDE ::
In modConstants, remove:In modGlobals, add:In modGameLogic, find UpdateInventory, and replace it with:[code]Public Sub UpdateInventory()
Dim i As Long
frmMirage.lstInv.Clear
' Show the inventory
For i = 1 To MAX_INV
If GetPlayerInvItemNum(MyIndex, i) > 0 And GetPlayerInvItemNum(MyIndex, i)
Difficulty: 1/5
Example of how you can change some variables in Mirage to get some new effects. The "Amulet of Speed" item:
:: CLIENT SIDE ::
In modConstants, remove:
Code:
' Speed moving vars
Public Const WALK_SPEED = 4
Public Const RUN_SPEED = 8
Code:
' Speed moving vars
Public WALK_SPEED As Integer
Public RUN_SPEED As Integer
Dim i As Long
frmMirage.lstInv.Clear
' Show the inventory
For i = 1 To MAX_INV
If GetPlayerInvItemNum(MyIndex, i) > 0 And GetPlayerInvItemNum(MyIndex, i)