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

Character Window Stats Text does not Update


Kaymak
 Share

Recommended Posts

Hello Community,

I'm sorry that i write so much threads with multiple problems, but no one else did post anything similar like my suggestions.

My problem right now is that the stats which i rendered with RenderText Font_Default etc etc blah blah.

My Weapon with +33Str does his work against NPC's the Text stats does update in background but the

Text does not update after i equiped the item. After i walked to another map or the Relogg i get the + 33 (+ 1= 34) STR

on the character window str text.

![](http://fs2.directupload.net/images/150519/lk4gt5pn.png)
Link to comment
Share on other sites

//EDIT: I solved the problem by my own. All i did is:

i added:

**CLIENT-SIDE**

```

For i = 1 To Stats.Stat_Count - 1
SetPlayerStat Index, i, buffer.ReadLong
Next
```
to **Private Sub HandlePlayerStats** so it looks like :

```

Private Sub HandlePlayerStats(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
Dim buffer As clsBuffer
Dim i 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()

For i = 1 To Stats.Stat_Count - 1
SetPlayerStat Index, i, buffer.ReadLong
Next

' Error handler
Exit Sub
ErrorHandler:
HandleError "HandlePlayerStats", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
End Sub
```
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...