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

EXP Bar filling(no filling actual exp)


DshWinchester
 Share

Recommended Posts

The filling of the bar does not fill as it should.
For example:  I have 50 exp and need 100 exp to levelUp,my ExpBar filling would must be in half in expBar but its in the begining(no filling)

this does not happen in the beginning when the player is weak but getting stronger, gives this 'mistake'.

I didnt mess with exp bar or something and my TNL is the right value so I cant see why this happen.

Anyone can help ?thanks
Link to comment
Share on other sites

On the **client** side.
In **modHandleData**
search
**Sub HandlePlayerExp**
And replaced by….
```
Private Sub HandlePlayerExp(ByVal index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
Dim Buffer As clsBuffer
Dim i As Long
Dim TNL As Long

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

    Set Buffer = New clsBuffer
    Buffer.WriteBytes Data()

    SetPlayerExp index, Buffer.ReadLong
    TNL = Buffer.ReadLong
    frmMain.lblEXP.Caption = GetPlayerExp(index) & "/" & TNL
    ' mp bar
    frmMain.imgEXPBar.width = ((GetPlayerExp(MyIndex) / EXPBar_Width) / (TNL / EXPBar_Width)) * EXPBar_Width

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

```
sorry, I speak Spanish
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...