Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amulet of Speed
#1
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:
Code:
' Speed moving vars
Public Const WALK_SPEED = 4
Public Const RUN_SPEED = 8
In modGlobals, add:
Code:
' Speed moving vars
Public WALK_SPEED As Integer
Public RUN_SPEED As Integer
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)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)