Resource icon

Health Orb 1.0

No permission to download

Morgion

Citizen
Morgion submitted a new resource:

Health Orb - Diablo III style healing

This simple script will add Diablo 3 style health orbs.
When player moves over them, it will heal all players and controlled pets within 4 tiles radius, for 20 (+enhance bonus potions) percent of their maximum hit points or remove poison when target is poisoned.

Installation:
Just drop it somewhere to Scripts folder.
To trigger it, add line
HealthOrb.Drop(harmedMobileHere);
in PlayerMobile or BaseCreature or specific monster script to OnDamage(...), OnBeforeDeath() etc.

Read more about this resource...
 

Rex

Citizen
This is an example of how to add it to a specific mob script, for example Rat.cs
C#:
public override void OnDamage(int amount, Mobile from, bool willKill)
{
    base.OnDamage(amount, from, willKill);

    if (Utility.RandomDouble() > .25)
        HealthOrb.Drop(this);
}
 

Finaltwist

Squire
interested in finding out if it would be easy to use the onetime timer system instead of having each orb use its own individual timer?