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

Instant Healing


Quess
 Share

Recommended Posts

Lastly, I had a problem with healing spells which don't heal instantly and only when you got some damage it was refreshed. That meant that you couldn't see healing when not in combat. I managed to solve that problem and now decided to share this with those who have the same problem ;)

Go to server-side and search for those in modCombat:
```
TempPlayer(Index).SpellCD(spellslot) = GetTickCount + (Spell(spellnum).CDTime * 1000)
Call SendCooldown(Index, spellslot)
```
Place those lines below:
```
Call SendVital(Index, Vitals.HP)
If TempPlayer(Index).inParty > 0 Then SendPartyVitals TempPlayer(Index).inParty, Index
```
Hope I helped someone ;)
Link to comment
Share on other sites

They heal instantly, the value just isn't sent to your client. It's not really affecting anything but the client-side interface. ;)

But you are correct, this is a minor issue with healing spells.. :) You can heal any kind of NPC as well, making for some excellent griefing when someone is fighting mobs!
Link to comment
Share on other sites

@Quess:

> That meant that you couldn't see healing when not in combat.

I know, healing spells adds health instantly but don't send information about it to your client (NPCs damage does). That tutorial just allows you to see it instantly on your HP bar ^^
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

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...