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

[Bug Fix] Upgrading Vitals of NPCs


Recommended Posts

**Sorry my english**

When you attack a monster with magic that affects HP, is sent to the client's vital Monster (HP and MP), but when you heals the HP, MP or MP Affects Monster, the update is not sent to players.

**Open Server**

**1 -** In **modCombat**, look for:

```
Public Sub SpellNpc_Effect
```

**2 -** After:

```
If increment Then

MapNpc(MapNum).NPC(index).Vital(Vital) = MapNpc(MapNum).NPC(index).Vital(Vital) + Damage

If Spell(SpellNum).Duration > 0 Then

AddHoT_Npc MapNum, index, SpellNum, SpellLevel

End If

ElseIf Not increment Then

MapNpc(MapNum).NPC(index).Vital(Vital) = MapNpc(MapNum).NPC(index).Vital(Vital) - Damage

End If
```

**3 -** Add:

```
' send update

SendMapNpcVitals MapNum, index
```

**Credits:**

Valentine
Link to post
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
×
×
  • Create New...